Compare commits

..

6 Commits

Author SHA1 Message Date
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
101 changed files with 2907 additions and 128 deletions

View File

@@ -1,3 +1,21 @@
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.

View File

@@ -1 +1 @@
1.36.549
1.36.555

View File

@@ -241,8 +241,12 @@ set(green_public_header_model
include/alibabacloud/green/model/UpdateAuditRangeResult.h
include/alibabacloud/green/model/UpdateAuditSettingRequest.h
include/alibabacloud/green/model/UpdateAuditSettingResult.h
include/alibabacloud/green/model/UpdateBizTypeImageLibRequest.h
include/alibabacloud/green/model/UpdateBizTypeImageLibResult.h
include/alibabacloud/green/model/UpdateBizTypeSettingRequest.h
include/alibabacloud/green/model/UpdateBizTypeSettingResult.h
include/alibabacloud/green/model/UpdateBizTypeTextLibRequest.h
include/alibabacloud/green/model/UpdateBizTypeTextLibResult.h
include/alibabacloud/green/model/UpdateCustomOcrTemplateRequest.h
include/alibabacloud/green/model/UpdateCustomOcrTemplateResult.h
include/alibabacloud/green/model/UpdateImageLibRequest.h
@@ -302,7 +306,9 @@ set(green_public_header_model
include/alibabacloud/green/model/VoiceIdentityStartRegisterRequest.h
include/alibabacloud/green/model/VoiceIdentityStartRegisterResult.h
include/alibabacloud/green/model/VoiceIdentityUnregisterRequest.h
include/alibabacloud/green/model/VoiceIdentityUnregisterResult.h )
include/alibabacloud/green/model/VoiceIdentityUnregisterResult.h
include/alibabacloud/green/model/VoiceSyncScanRequest.h
include/alibabacloud/green/model/VoiceSyncScanResult.h )
set(green_src
src/GreenClient.cc
@@ -526,8 +532,12 @@ set(green_src
src/model/UpdateAuditRangeResult.cc
src/model/UpdateAuditSettingRequest.cc
src/model/UpdateAuditSettingResult.cc
src/model/UpdateBizTypeImageLibRequest.cc
src/model/UpdateBizTypeImageLibResult.cc
src/model/UpdateBizTypeSettingRequest.cc
src/model/UpdateBizTypeSettingResult.cc
src/model/UpdateBizTypeTextLibRequest.cc
src/model/UpdateBizTypeTextLibResult.cc
src/model/UpdateCustomOcrTemplateRequest.cc
src/model/UpdateCustomOcrTemplateResult.cc
src/model/UpdateImageLibRequest.cc
@@ -587,7 +597,9 @@ set(green_src
src/model/VoiceIdentityStartRegisterRequest.cc
src/model/VoiceIdentityStartRegisterResult.cc
src/model/VoiceIdentityUnregisterRequest.cc
src/model/VoiceIdentityUnregisterResult.cc )
src/model/VoiceIdentityUnregisterResult.cc
src/model/VoiceSyncScanRequest.cc
src/model/VoiceSyncScanResult.cc )
add_library(green ${LIB_TYPE}
${green_public_header}

View File

@@ -20,7 +20,7 @@
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include <alibabacloud/core/RoaServiceClient.h>
#include "GreenExport.h"
#include "model/AddFacesRequest.h"
#include "model/AddFacesResult.h"
@@ -242,8 +242,12 @@
#include "model/UpdateAuditRangeResult.h"
#include "model/UpdateAuditSettingRequest.h"
#include "model/UpdateAuditSettingResult.h"
#include "model/UpdateBizTypeImageLibRequest.h"
#include "model/UpdateBizTypeImageLibResult.h"
#include "model/UpdateBizTypeSettingRequest.h"
#include "model/UpdateBizTypeSettingResult.h"
#include "model/UpdateBizTypeTextLibRequest.h"
#include "model/UpdateBizTypeTextLibResult.h"
#include "model/UpdateCustomOcrTemplateRequest.h"
#include "model/UpdateCustomOcrTemplateResult.h"
#include "model/UpdateImageLibRequest.h"
@@ -304,13 +308,15 @@
#include "model/VoiceIdentityStartRegisterResult.h"
#include "model/VoiceIdentityUnregisterRequest.h"
#include "model/VoiceIdentityUnregisterResult.h"
#include "model/VoiceSyncScanRequest.h"
#include "model/VoiceSyncScanResult.h"
namespace AlibabaCloud
{
namespace Green
{
class ALIBABACLOUD_GREEN_EXPORT GreenClient : public RpcServiceClient
class ALIBABACLOUD_GREEN_EXPORT GreenClient : public RoaServiceClient
{
public:
typedef Outcome<Error, Model::AddFacesResult> AddFacesOutcome;
@@ -643,9 +649,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateAuditSettingResult> UpdateAuditSettingOutcome;
typedef std::future<UpdateAuditSettingOutcome> UpdateAuditSettingOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::UpdateAuditSettingRequest&, const UpdateAuditSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAuditSettingAsyncHandler;
typedef Outcome<Error, Model::UpdateBizTypeImageLibResult> UpdateBizTypeImageLibOutcome;
typedef std::future<UpdateBizTypeImageLibOutcome> UpdateBizTypeImageLibOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::UpdateBizTypeImageLibRequest&, const UpdateBizTypeImageLibOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateBizTypeImageLibAsyncHandler;
typedef Outcome<Error, Model::UpdateBizTypeSettingResult> UpdateBizTypeSettingOutcome;
typedef std::future<UpdateBizTypeSettingOutcome> UpdateBizTypeSettingOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::UpdateBizTypeSettingRequest&, const UpdateBizTypeSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateBizTypeSettingAsyncHandler;
typedef Outcome<Error, Model::UpdateBizTypeTextLibResult> UpdateBizTypeTextLibOutcome;
typedef std::future<UpdateBizTypeTextLibOutcome> UpdateBizTypeTextLibOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::UpdateBizTypeTextLibRequest&, const UpdateBizTypeTextLibOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateBizTypeTextLibAsyncHandler;
typedef Outcome<Error, Model::UpdateCustomOcrTemplateResult> UpdateCustomOcrTemplateOutcome;
typedef std::future<UpdateCustomOcrTemplateOutcome> UpdateCustomOcrTemplateOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::UpdateCustomOcrTemplateRequest&, const UpdateCustomOcrTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCustomOcrTemplateAsyncHandler;
@@ -736,6 +748,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::VoiceIdentityUnregisterResult> VoiceIdentityUnregisterOutcome;
typedef std::future<VoiceIdentityUnregisterOutcome> VoiceIdentityUnregisterOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::VoiceIdentityUnregisterRequest&, const VoiceIdentityUnregisterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VoiceIdentityUnregisterAsyncHandler;
typedef Outcome<Error, Model::VoiceSyncScanResult> VoiceSyncScanOutcome;
typedef std::future<VoiceSyncScanOutcome> VoiceSyncScanOutcomeCallable;
typedef std::function<void(const GreenClient*, const Model::VoiceSyncScanRequest&, const VoiceSyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VoiceSyncScanAsyncHandler;
GreenClient(const Credentials &credentials, const ClientConfiguration &configuration);
GreenClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -1071,9 +1086,15 @@ namespace AlibabaCloud
UpdateAuditSettingOutcome updateAuditSetting(const Model::UpdateAuditSettingRequest &request)const;
void updateAuditSettingAsync(const Model::UpdateAuditSettingRequest& request, const UpdateAuditSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateAuditSettingOutcomeCallable updateAuditSettingCallable(const Model::UpdateAuditSettingRequest& request) const;
UpdateBizTypeImageLibOutcome updateBizTypeImageLib(const Model::UpdateBizTypeImageLibRequest &request)const;
void updateBizTypeImageLibAsync(const Model::UpdateBizTypeImageLibRequest& request, const UpdateBizTypeImageLibAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateBizTypeImageLibOutcomeCallable updateBizTypeImageLibCallable(const Model::UpdateBizTypeImageLibRequest& request) const;
UpdateBizTypeSettingOutcome updateBizTypeSetting(const Model::UpdateBizTypeSettingRequest &request)const;
void updateBizTypeSettingAsync(const Model::UpdateBizTypeSettingRequest& request, const UpdateBizTypeSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateBizTypeSettingOutcomeCallable updateBizTypeSettingCallable(const Model::UpdateBizTypeSettingRequest& request) const;
UpdateBizTypeTextLibOutcome updateBizTypeTextLib(const Model::UpdateBizTypeTextLibRequest &request)const;
void updateBizTypeTextLibAsync(const Model::UpdateBizTypeTextLibRequest& request, const UpdateBizTypeTextLibAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateBizTypeTextLibOutcomeCallable updateBizTypeTextLibCallable(const Model::UpdateBizTypeTextLibRequest& request) const;
UpdateCustomOcrTemplateOutcome updateCustomOcrTemplate(const Model::UpdateCustomOcrTemplateRequest &request)const;
void updateCustomOcrTemplateAsync(const Model::UpdateCustomOcrTemplateRequest& request, const UpdateCustomOcrTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCustomOcrTemplateOutcomeCallable updateCustomOcrTemplateCallable(const Model::UpdateCustomOcrTemplateRequest& request) const;
@@ -1164,6 +1185,9 @@ namespace AlibabaCloud
VoiceIdentityUnregisterOutcome voiceIdentityUnregister(const Model::VoiceIdentityUnregisterRequest &request)const;
void voiceIdentityUnregisterAsync(const Model::VoiceIdentityUnregisterRequest& request, const VoiceIdentityUnregisterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VoiceIdentityUnregisterOutcomeCallable voiceIdentityUnregisterCallable(const Model::VoiceIdentityUnregisterRequest& request) const;
VoiceSyncScanOutcome voiceSyncScan(const Model::VoiceSyncScanRequest &request)const;
void voiceSyncScanAsync(const Model::VoiceSyncScanRequest& request, const VoiceSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VoiceSyncScanOutcomeCallable voiceSyncScanCallable(const Model::VoiceSyncScanRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -37,6 +37,8 @@ namespace AlibabaCloud
std::string getBizTypeImport()const;
void setBizTypeImport(const std::string& bizTypeImport);
bool getCiteTemplate()const;
void setCiteTemplate(bool citeTemplate);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getIndustryInfo()const;
@@ -46,6 +48,7 @@ namespace AlibabaCloud
private:
std::string bizTypeImport_;
bool citeTemplate_;
std::string sourceIp_;
std::string industryInfo_;
std::string bizTypeName_;

View File

@@ -34,7 +34,9 @@ namespace AlibabaCloud
public:
struct ImageAutoFreeze
{
std::string ad;
std::string terrorism;
std::string live;
bool enabled;
std::string porn;
};

View File

@@ -36,8 +36,10 @@ namespace AlibabaCloud
{
std::string sourceBizType;
bool gray;
bool citeTemplate;
std::string bizType;
std::string source;
std::string industryInfo;
};

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_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBREQUEST_H_
#define ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/green/GreenExport.h>
namespace AlibabaCloud
{
namespace Green
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT UpdateBizTypeImageLibRequest : public RpcServiceRequest
{
public:
UpdateBizTypeImageLibRequest();
~UpdateBizTypeImageLibRequest();
std::string getScene()const;
void setScene(const std::string& scene);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getWhite()const;
void setWhite(const std::string& white);
std::string getReview()const;
void setReview(const std::string& review);
std::string getBizTypeName()const;
void setBizTypeName(const std::string& bizTypeName);
std::string getBlack()const;
void setBlack(const std::string& black);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
private:
std::string scene_;
std::string sourceIp_;
std::string white_;
std::string review_;
std::string bizTypeName_;
std::string black_;
std::string resourceType_;
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBREQUEST_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_UPDATEBIZTYPEIMAGELIBRESULT_H_
#define ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBRESULT_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 UpdateBizTypeImageLibResult : public ServiceResult
{
public:
UpdateBizTypeImageLibResult();
explicit UpdateBizTypeImageLibResult(const std::string &payload);
~UpdateBizTypeImageLibResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPEIMAGELIBRESULT_H_

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_GREEN_MODEL_UPDATEBIZTYPETEXTLIBREQUEST_H_
#define ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPETEXTLIBREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/green/GreenExport.h>
namespace AlibabaCloud
{
namespace Green
{
namespace Model
{
class ALIBABACLOUD_GREEN_EXPORT UpdateBizTypeTextLibRequest : public RpcServiceRequest
{
public:
UpdateBizTypeTextLibRequest();
~UpdateBizTypeTextLibRequest();
std::string getScene()const;
void setScene(const std::string& scene);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getWhite()const;
void setWhite(const std::string& white);
std::string getReview()const;
void setReview(const std::string& review);
std::string getIgnore()const;
void setIgnore(const std::string& ignore);
std::string getBizTypeName()const;
void setBizTypeName(const std::string& bizTypeName);
std::string getBlack()const;
void setBlack(const std::string& black);
std::string getResourceType()const;
void setResourceType(const std::string& resourceType);
private:
std::string scene_;
std::string sourceIp_;
std::string white_;
std::string review_;
std::string ignore_;
std::string bizTypeName_;
std::string black_;
std::string resourceType_;
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPETEXTLIBREQUEST_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_UPDATEBIZTYPETEXTLIBRESULT_H_
#define ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPETEXTLIBRESULT_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 UpdateBizTypeTextLibResult : public ServiceResult
{
public:
UpdateBizTypeTextLibResult();
explicit UpdateBizTypeTextLibResult(const std::string &payload);
~UpdateBizTypeTextLibResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_UPDATEBIZTYPETEXTLIBRESULT_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_GREEN_MODEL_VOICESYNCSCANREQUEST_H_
#define ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANREQUEST_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 VoiceSyncScanRequest : public RoaServiceRequest
{
public:
VoiceSyncScanRequest();
~VoiceSyncScanRequest();
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getClientInfo()const;
void setClientInfo(const std::string& clientInfo);
private:
std::string regionId_;
std::string clientInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANREQUEST_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_VOICESYNCSCANRESULT_H_
#define ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANRESULT_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 VoiceSyncScanResult : public ServiceResult
{
public:
VoiceSyncScanResult();
explicit VoiceSyncScanResult(const std::string &payload);
~VoiceSyncScanResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_GREEN_MODEL_VOICESYNCSCANRESULT_H_

View File

@@ -28,21 +28,21 @@ namespace
}
GreenClient::GreenClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
RoaServiceClient(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, "green");
}
GreenClient::GreenClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "green");
}
GreenClient::GreenClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
RoaServiceClient(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, "green");
@@ -4011,6 +4011,42 @@ GreenClient::UpdateAuditSettingOutcomeCallable GreenClient::updateAuditSettingCa
return task->get_future();
}
GreenClient::UpdateBizTypeImageLibOutcome GreenClient::updateBizTypeImageLib(const UpdateBizTypeImageLibRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateBizTypeImageLibOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateBizTypeImageLibOutcome(UpdateBizTypeImageLibResult(outcome.result()));
else
return UpdateBizTypeImageLibOutcome(outcome.error());
}
void GreenClient::updateBizTypeImageLibAsync(const UpdateBizTypeImageLibRequest& request, const UpdateBizTypeImageLibAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateBizTypeImageLib(request), context);
};
asyncExecute(new Runnable(fn));
}
GreenClient::UpdateBizTypeImageLibOutcomeCallable GreenClient::updateBizTypeImageLibCallable(const UpdateBizTypeImageLibRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateBizTypeImageLibOutcome()>>(
[this, request]()
{
return this->updateBizTypeImageLib(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GreenClient::UpdateBizTypeSettingOutcome GreenClient::updateBizTypeSetting(const UpdateBizTypeSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4047,6 +4083,42 @@ GreenClient::UpdateBizTypeSettingOutcomeCallable GreenClient::updateBizTypeSetti
return task->get_future();
}
GreenClient::UpdateBizTypeTextLibOutcome GreenClient::updateBizTypeTextLib(const UpdateBizTypeTextLibRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateBizTypeTextLibOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateBizTypeTextLibOutcome(UpdateBizTypeTextLibResult(outcome.result()));
else
return UpdateBizTypeTextLibOutcome(outcome.error());
}
void GreenClient::updateBizTypeTextLibAsync(const UpdateBizTypeTextLibRequest& request, const UpdateBizTypeTextLibAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateBizTypeTextLib(request), context);
};
asyncExecute(new Runnable(fn));
}
GreenClient::UpdateBizTypeTextLibOutcomeCallable GreenClient::updateBizTypeTextLibCallable(const UpdateBizTypeTextLibRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateBizTypeTextLibOutcome()>>(
[this, request]()
{
return this->updateBizTypeTextLib(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
GreenClient::UpdateCustomOcrTemplateOutcome GreenClient::updateCustomOcrTemplate(const UpdateCustomOcrTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5127,3 +5199,39 @@ GreenClient::VoiceIdentityUnregisterOutcomeCallable GreenClient::voiceIdentityUn
return task->get_future();
}
GreenClient::VoiceSyncScanOutcome GreenClient::voiceSyncScan(const VoiceSyncScanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VoiceSyncScanOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VoiceSyncScanOutcome(VoiceSyncScanResult(outcome.result()));
else
return VoiceSyncScanOutcome(outcome.error());
}
void GreenClient::voiceSyncScanAsync(const VoiceSyncScanRequest& request, const VoiceSyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, voiceSyncScan(request), context);
};
asyncExecute(new Runnable(fn));
}
GreenClient::VoiceSyncScanOutcomeCallable GreenClient::voiceSyncScanCallable(const VoiceSyncScanRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VoiceSyncScanOutcome()>>(
[this, request]()
{
return this->voiceSyncScan(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddFacesRequest;
AddFacesRequest::AddFacesRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/face/add");
setMethod(HttpRequest::Method::Post);
}
AddFacesRequest::~AddFacesRequest()
{}
@@ -33,7 +36,7 @@ std::string AddFacesRequest::getRegionId()const
void AddFacesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string AddFacesRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string AddFacesRequest::getClientInfo()const
void AddFacesRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddGroupsRequest;
AddGroupsRequest::AddGroupsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/person/groups/add");
setMethod(HttpRequest::Method::Post);
}
AddGroupsRequest::~AddGroupsRequest()
{}
@@ -33,7 +36,7 @@ std::string AddGroupsRequest::getRegionId()const
void AddGroupsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string AddGroupsRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string AddGroupsRequest::getClientInfo()const
void AddGroupsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddPersonRequest;
AddPersonRequest::AddPersonRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/person/add");
setMethod(HttpRequest::Method::Post);
}
AddPersonRequest::~AddPersonRequest()
{}
@@ -33,7 +36,7 @@ std::string AddPersonRequest::getRegionId()const
void AddPersonRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string AddPersonRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string AddPersonRequest::getClientInfo()const
void AddPersonRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddSimilarityImageRequest;
AddSimilarityImageRequest::AddSimilarityImageRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/similarity/image/add");
setMethod(HttpRequest::Method::Post);
}
AddSimilarityImageRequest::~AddSimilarityImageRequest()
{}
@@ -33,6 +36,6 @@ std::string AddSimilarityImageRequest::getClientInfo()const
void AddSimilarityImageRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddSimilarityLibraryRequest;
AddSimilarityLibraryRequest::AddSimilarityLibraryRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/similarity/library/add");
setMethod(HttpRequest::Method::Post);
}
AddSimilarityLibraryRequest::~AddSimilarityLibraryRequest()
{}
@@ -33,6 +36,6 @@ std::string AddSimilarityLibraryRequest::getClientInfo()const
void AddSimilarityLibraryRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddVideoDnaGroupRequest;
AddVideoDnaGroupRequest::AddVideoDnaGroupRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/dna/group/add");
setMethod(HttpRequest::Method::Post);
}
AddVideoDnaGroupRequest::~AddVideoDnaGroupRequest()
{}
@@ -33,6 +36,6 @@ std::string AddVideoDnaGroupRequest::getClientInfo()const
void AddVideoDnaGroupRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::AddVideoDnaRequest;
AddVideoDnaRequest::AddVideoDnaRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/dna/add");
setMethod(HttpRequest::Method::Post);
}
AddVideoDnaRequest::~AddVideoDnaRequest()
{}
@@ -33,6 +36,6 @@ std::string AddVideoDnaRequest::getClientInfo()const
void AddVideoDnaRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -38,6 +38,17 @@ void CreateBizTypeRequest::setBizTypeImport(const std::string& bizTypeImport)
setParameter("BizTypeImport", bizTypeImport);
}
bool CreateBizTypeRequest::getCiteTemplate()const
{
return citeTemplate_;
}
void CreateBizTypeRequest::setCiteTemplate(bool citeTemplate)
{
citeTemplate_ = citeTemplate;
setParameter("CiteTemplate", citeTemplate ? "true" : "false");
}
std::string CreateBizTypeRequest::getSourceIp()const
{
return sourceIp_;

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteFacesRequest;
DeleteFacesRequest::DeleteFacesRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/face/delete");
setMethod(HttpRequest::Method::Post);
}
DeleteFacesRequest::~DeleteFacesRequest()
{}
@@ -33,7 +36,7 @@ std::string DeleteFacesRequest::getRegionId()const
void DeleteFacesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeleteFacesRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string DeleteFacesRequest::getClientInfo()const
void DeleteFacesRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteGroupsRequest;
DeleteGroupsRequest::DeleteGroupsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/person/groups/delete");
setMethod(HttpRequest::Method::Post);
}
DeleteGroupsRequest::~DeleteGroupsRequest()
{}
@@ -33,7 +36,7 @@ std::string DeleteGroupsRequest::getRegionId()const
void DeleteGroupsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeleteGroupsRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string DeleteGroupsRequest::getClientInfo()const
void DeleteGroupsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeletePersonRequest;
DeletePersonRequest::DeletePersonRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/person/delete");
setMethod(HttpRequest::Method::Post);
}
DeletePersonRequest::~DeletePersonRequest()
{}
@@ -33,7 +36,7 @@ std::string DeletePersonRequest::getRegionId()const
void DeletePersonRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string DeletePersonRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string DeletePersonRequest::getClientInfo()const
void DeletePersonRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteSimilarityImageRequest;
DeleteSimilarityImageRequest::DeleteSimilarityImageRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/similarity/image/delete");
setMethod(HttpRequest::Method::Post);
}
DeleteSimilarityImageRequest::~DeleteSimilarityImageRequest()
{}
@@ -33,6 +36,6 @@ std::string DeleteSimilarityImageRequest::getClientInfo()const
void DeleteSimilarityImageRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteSimilarityLibraryRequest;
DeleteSimilarityLibraryRequest::DeleteSimilarityLibraryRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/similarity/library/delete");
setMethod(HttpRequest::Method::Post);
}
DeleteSimilarityLibraryRequest::~DeleteSimilarityLibraryRequest()
{}
@@ -33,6 +36,6 @@ std::string DeleteSimilarityLibraryRequest::getClientInfo()const
void DeleteSimilarityLibraryRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteVideoDnaGroupRequest;
DeleteVideoDnaGroupRequest::DeleteVideoDnaGroupRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/dna/group/delete");
setMethod(HttpRequest::Method::Post);
}
DeleteVideoDnaGroupRequest::~DeleteVideoDnaGroupRequest()
{}
@@ -33,6 +36,6 @@ std::string DeleteVideoDnaGroupRequest::getClientInfo()const
void DeleteVideoDnaGroupRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DeleteVideoDnaRequest;
DeleteVideoDnaRequest::DeleteVideoDnaRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/dna/delete");
setMethod(HttpRequest::Method::Post);
}
DeleteVideoDnaRequest::~DeleteVideoDnaRequest()
{}
@@ -33,6 +36,6 @@ std::string DeleteVideoDnaRequest::getClientInfo()const
void DeleteVideoDnaRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -59,6 +59,10 @@ void DescribeOssIncrementCheckSettingResult::parse(const std::string &payload)
imageAutoFreeze_.porn = imageAutoFreezeNode["Porn"].asString();
if(!imageAutoFreezeNode["Terrorism"].isNull())
imageAutoFreeze_.terrorism = imageAutoFreezeNode["Terrorism"].asString();
if(!imageAutoFreezeNode["Ad"].isNull())
imageAutoFreeze_.ad = imageAutoFreezeNode["Ad"].asString();
if(!imageAutoFreezeNode["Live"].isNull())
imageAutoFreeze_.live = imageAutoFreezeNode["Live"].asString();
auto allImageSceneList = value["ImageSceneList"]["ImageScene"];
for (const auto &item : allImageSceneList)
imageSceneList_.push_back(item.asString());

View File

@@ -51,6 +51,10 @@ void DescribeUserBizTypesResult::parse(const std::string &payload)
bizTypeListObject.gray = valueBizTypeListitem["Gray"].asString() == "true";
if(!valueBizTypeListitem["Source"].isNull())
bizTypeListObject.source = valueBizTypeListitem["Source"].asString();
if(!valueBizTypeListitem["CiteTemplate"].isNull())
bizTypeListObject.citeTemplate = valueBizTypeListitem["CiteTemplate"].asString() == "true";
if(!valueBizTypeListitem["IndustryInfo"].isNull())
bizTypeListObject.industryInfo = valueBizTypeListitem["IndustryInfo"].asString();
bizTypeList_.push_back(bizTypeListObject);
}
auto allBizTypeListImportNode = value["BizTypeListImport"]["item"];
@@ -65,6 +69,10 @@ void DescribeUserBizTypesResult::parse(const std::string &payload)
bizTypeListImportObject.gray = valueBizTypeListImportitem["Gray"].asString() == "true";
if(!valueBizTypeListImportitem["Source"].isNull())
bizTypeListImportObject.source = valueBizTypeListImportitem["Source"].asString();
if(!valueBizTypeListImportitem["CiteTemplate"].isNull())
bizTypeListImportObject.citeTemplate = valueBizTypeListImportitem["CiteTemplate"].asString() == "true";
if(!valueBizTypeListImportitem["IndustryInfo"].isNull())
bizTypeListImportObject.industryInfo = valueBizTypeListImportitem["IndustryInfo"].asString();
bizTypeListImport_.push_back(bizTypeListImportObject);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::DetectFaceRequest;
DetectFaceRequest::DetectFaceRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/face/detect");
setMethod(HttpRequest::Method::Post);
}
DetectFaceRequest::~DetectFaceRequest()
{}
@@ -33,6 +36,6 @@ std::string DetectFaceRequest::getClientInfo()const
void DetectFaceRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::FileAsyncScanRequest;
FileAsyncScanRequest::FileAsyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/file/asyncscan");
setMethod(HttpRequest::Method::Post);
}
FileAsyncScanRequest::~FileAsyncScanRequest()
{}
@@ -33,6 +36,6 @@ std::string FileAsyncScanRequest::getClientInfo()const
void FileAsyncScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::FileAsyncScanResultsRequest;
FileAsyncScanResultsRequest::FileAsyncScanResultsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/file/results");
setMethod(HttpRequest::Method::Post);
}
FileAsyncScanResultsRequest::~FileAsyncScanResultsRequest()
{}
@@ -33,6 +36,6 @@ std::string FileAsyncScanResultsRequest::getClientInfo()const
void FileAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetAddVideoDnaResultsRequest;
GetAddVideoDnaResultsRequest::GetAddVideoDnaResultsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/dna/add/results");
setMethod(HttpRequest::Method::Post);
}
GetAddVideoDnaResultsRequest::~GetAddVideoDnaResultsRequest()
{}
@@ -33,6 +36,6 @@ std::string GetAddVideoDnaResultsRequest::getClientInfo()const
void GetAddVideoDnaResultsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetFacesRequest;
GetFacesRequest::GetFacesRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/faces");
setMethod(HttpRequest::Method::Post);
}
GetFacesRequest::~GetFacesRequest()
{}
@@ -33,7 +36,7 @@ std::string GetFacesRequest::getRegionId()const
void GetFacesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string GetFacesRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string GetFacesRequest::getClientInfo()const
void GetFacesRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetGroupsRequest;
GetGroupsRequest::GetGroupsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/groups");
setMethod(HttpRequest::Method::Post);
}
GetGroupsRequest::~GetGroupsRequest()
{}
@@ -33,7 +36,7 @@ std::string GetGroupsRequest::getRegionId()const
void GetGroupsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string GetGroupsRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string GetGroupsRequest::getClientInfo()const
void GetGroupsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetPersonRequest;
GetPersonRequest::GetPersonRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/person");
setMethod(HttpRequest::Method::Post);
}
GetPersonRequest::~GetPersonRequest()
{}
@@ -33,7 +36,7 @@ std::string GetPersonRequest::getRegionId()const
void GetPersonRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string GetPersonRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string GetPersonRequest::getClientInfo()const
void GetPersonRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetPersonsRequest;
GetPersonsRequest::GetPersonsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/group/persons");
setMethod(HttpRequest::Method::Post);
}
GetPersonsRequest::~GetPersonsRequest()
{}
@@ -33,7 +36,7 @@ std::string GetPersonsRequest::getRegionId()const
void GetPersonsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string GetPersonsRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string GetPersonsRequest::getClientInfo()const
void GetPersonsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetSimilarityImageRequest;
GetSimilarityImageRequest::GetSimilarityImageRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/similarity/image/get");
setMethod(HttpRequest::Method::Post);
}
GetSimilarityImageRequest::~GetSimilarityImageRequest()
{}
@@ -33,6 +36,6 @@ std::string GetSimilarityImageRequest::getClientInfo()const
void GetSimilarityImageRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::GetSimilarityLibraryRequest;
GetSimilarityLibraryRequest::GetSimilarityLibraryRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/similarity/library/get");
setMethod(HttpRequest::Method::Post);
}
GetSimilarityLibraryRequest::~GetSimilarityLibraryRequest()
{}
@@ -33,6 +36,6 @@ std::string GetSimilarityLibraryRequest::getClientInfo()const
void GetSimilarityLibraryRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageAsyncScanRequest;
ImageAsyncScanRequest::ImageAsyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/image/asyncscan");
setMethod(HttpRequest::Method::Post);
}
ImageAsyncScanRequest::~ImageAsyncScanRequest()
{}
@@ -33,6 +36,6 @@ std::string ImageAsyncScanRequest::getClientInfo()const
void ImageAsyncScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageAsyncScanResultsRequest;
ImageAsyncScanResultsRequest::ImageAsyncScanResultsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/image/results");
setMethod(HttpRequest::Method::Post);
}
ImageAsyncScanResultsRequest::~ImageAsyncScanResultsRequest()
{}
@@ -33,6 +36,6 @@ std::string ImageAsyncScanResultsRequest::getClientInfo()const
void ImageAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageDetectionRequest;
ImageDetectionRequest::ImageDetectionRequest() :
RoaServiceRequest("green", "2016-12-22")
{}
{
setResourcePath("/image/detection");
setMethod(HttpRequest::Method::Post);
}
ImageDetectionRequest::~ImageDetectionRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageResultRequest;
ImageResultRequest::ImageResultRequest() :
RoaServiceRequest("green", "2016-12-22")
{}
{
setResourcePath("/image/result/[taskid]");
setMethod(HttpRequest::Method::Get);
}
ImageResultRequest::~ImageResultRequest()
{}
@@ -33,6 +36,6 @@ std::string ImageResultRequest::getTaskid()const
void ImageResultRequest::setTaskid(const std::string& taskid)
{
taskid_ = taskid;
setCoreParameter("Taskid", taskid);
setParameter("Taskid", taskid);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageResultsRequest;
ImageResultsRequest::ImageResultsRequest() :
RoaServiceRequest("green", "2016-12-22")
{}
{
setResourcePath("/image/results");
setMethod(HttpRequest::Method::Post);
}
ImageResultsRequest::~ImageResultsRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageScanFeedbackRequest;
ImageScanFeedbackRequest::ImageScanFeedbackRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/image/feedback");
setMethod(HttpRequest::Method::Post);
}
ImageScanFeedbackRequest::~ImageScanFeedbackRequest()
{}
@@ -33,6 +36,6 @@ std::string ImageScanFeedbackRequest::getClientInfo()const
void ImageScanFeedbackRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ImageSyncScanRequest;
ImageSyncScanRequest::ImageSyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/image/scan");
setMethod(HttpRequest::Method::Post);
}
ImageSyncScanRequest::~ImageSyncScanRequest()
{}
@@ -33,6 +36,6 @@ std::string ImageSyncScanRequest::getClientInfo()const
void ImageSyncScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ListSimilarityImagesRequest;
ListSimilarityImagesRequest::ListSimilarityImagesRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/similarity/image/list");
setMethod(HttpRequest::Method::Post);
}
ListSimilarityImagesRequest::~ListSimilarityImagesRequest()
{}
@@ -33,6 +36,6 @@ std::string ListSimilarityImagesRequest::getClientInfo()const
void ListSimilarityImagesRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::ListSimilarityLibrariesRequest;
ListSimilarityLibrariesRequest::ListSimilarityLibrariesRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/similarity/library/list");
setMethod(HttpRequest::Method::Post);
}
ListSimilarityLibrariesRequest::~ListSimilarityLibrariesRequest()
{}
@@ -33,6 +36,6 @@ std::string ListSimilarityLibrariesRequest::getClientInfo()const
void ListSimilarityLibrariesRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::SampleFeedbackRequest;
SampleFeedbackRequest::SampleFeedbackRequest() :
RoaServiceRequest("green", "2016-12-22")
{}
{
setResourcePath("/sample/feedback");
setMethod(HttpRequest::Method::Post);
}
SampleFeedbackRequest::~SampleFeedbackRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::SearchPersonRequest;
SearchPersonRequest::SearchPersonRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/search");
setMethod(HttpRequest::Method::Post);
}
SearchPersonRequest::~SearchPersonRequest()
{}
@@ -33,7 +36,7 @@ std::string SearchPersonRequest::getRegionId()const
void SearchPersonRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string SearchPersonRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string SearchPersonRequest::getClientInfo()const
void SearchPersonRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::SetPersonRequest;
SetPersonRequest::SetPersonRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/sface/person/update");
setMethod(HttpRequest::Method::Post);
}
SetPersonRequest::~SetPersonRequest()
{}
@@ -33,7 +36,7 @@ std::string SetPersonRequest::getRegionId()const
void SetPersonRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string SetPersonRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string SetPersonRequest::getClientInfo()const
void SetPersonRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::TextFeedbackRequest;
TextFeedbackRequest::TextFeedbackRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/text/feedback");
setMethod(HttpRequest::Method::Post);
}
TextFeedbackRequest::~TextFeedbackRequest()
{}
@@ -33,6 +36,6 @@ std::string TextFeedbackRequest::getClientInfo()const
void TextFeedbackRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::TextKeywordFilterRequest;
TextKeywordFilterRequest::TextKeywordFilterRequest() :
RoaServiceRequest("green", "2016-12-22")
{}
{
setResourcePath("/text/keyword_filter");
setMethod(HttpRequest::Method::Post);
}
TextKeywordFilterRequest::~TextKeywordFilterRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::TextScanRequest;
TextScanRequest::TextScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/text/scan");
setMethod(HttpRequest::Method::Post);
}
TextScanRequest::~TextScanRequest()
{}
@@ -33,6 +36,6 @@ std::string TextScanRequest::getClientInfo()const
void TextScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

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/green/model/UpdateBizTypeImageLibRequest.h>
using AlibabaCloud::Green::Model::UpdateBizTypeImageLibRequest;
UpdateBizTypeImageLibRequest::UpdateBizTypeImageLibRequest() :
RpcServiceRequest("green", "2017-08-23", "UpdateBizTypeImageLib")
{
setMethod(HttpRequest::Method::Post);
}
UpdateBizTypeImageLibRequest::~UpdateBizTypeImageLibRequest()
{}
std::string UpdateBizTypeImageLibRequest::getScene()const
{
return scene_;
}
void UpdateBizTypeImageLibRequest::setScene(const std::string& scene)
{
scene_ = scene;
setParameter("Scene", scene);
}
std::string UpdateBizTypeImageLibRequest::getSourceIp()const
{
return sourceIp_;
}
void UpdateBizTypeImageLibRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string UpdateBizTypeImageLibRequest::getWhite()const
{
return white_;
}
void UpdateBizTypeImageLibRequest::setWhite(const std::string& white)
{
white_ = white;
setParameter("White", white);
}
std::string UpdateBizTypeImageLibRequest::getReview()const
{
return review_;
}
void UpdateBizTypeImageLibRequest::setReview(const std::string& review)
{
review_ = review;
setParameter("Review", review);
}
std::string UpdateBizTypeImageLibRequest::getBizTypeName()const
{
return bizTypeName_;
}
void UpdateBizTypeImageLibRequest::setBizTypeName(const std::string& bizTypeName)
{
bizTypeName_ = bizTypeName;
setParameter("BizTypeName", bizTypeName);
}
std::string UpdateBizTypeImageLibRequest::getBlack()const
{
return black_;
}
void UpdateBizTypeImageLibRequest::setBlack(const std::string& black)
{
black_ = black;
setParameter("Black", black);
}
std::string UpdateBizTypeImageLibRequest::getResourceType()const
{
return resourceType_;
}
void UpdateBizTypeImageLibRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}

View File

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

View File

@@ -0,0 +1,117 @@
/*
* 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/UpdateBizTypeTextLibRequest.h>
using AlibabaCloud::Green::Model::UpdateBizTypeTextLibRequest;
UpdateBizTypeTextLibRequest::UpdateBizTypeTextLibRequest() :
RpcServiceRequest("green", "2017-08-23", "UpdateBizTypeTextLib")
{
setMethod(HttpRequest::Method::Post);
}
UpdateBizTypeTextLibRequest::~UpdateBizTypeTextLibRequest()
{}
std::string UpdateBizTypeTextLibRequest::getScene()const
{
return scene_;
}
void UpdateBizTypeTextLibRequest::setScene(const std::string& scene)
{
scene_ = scene;
setParameter("Scene", scene);
}
std::string UpdateBizTypeTextLibRequest::getSourceIp()const
{
return sourceIp_;
}
void UpdateBizTypeTextLibRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string UpdateBizTypeTextLibRequest::getWhite()const
{
return white_;
}
void UpdateBizTypeTextLibRequest::setWhite(const std::string& white)
{
white_ = white;
setParameter("White", white);
}
std::string UpdateBizTypeTextLibRequest::getReview()const
{
return review_;
}
void UpdateBizTypeTextLibRequest::setReview(const std::string& review)
{
review_ = review;
setParameter("Review", review);
}
std::string UpdateBizTypeTextLibRequest::getIgnore()const
{
return ignore_;
}
void UpdateBizTypeTextLibRequest::setIgnore(const std::string& ignore)
{
ignore_ = ignore;
setParameter("Ignore", ignore);
}
std::string UpdateBizTypeTextLibRequest::getBizTypeName()const
{
return bizTypeName_;
}
void UpdateBizTypeTextLibRequest::setBizTypeName(const std::string& bizTypeName)
{
bizTypeName_ = bizTypeName;
setParameter("BizTypeName", bizTypeName);
}
std::string UpdateBizTypeTextLibRequest::getBlack()const
{
return black_;
}
void UpdateBizTypeTextLibRequest::setBlack(const std::string& black)
{
black_ = black;
setParameter("Black", black);
}
std::string UpdateBizTypeTextLibRequest::getResourceType()const
{
return resourceType_;
}
void UpdateBizTypeTextLibRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
}

View File

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

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::UploadCredentialsRequest;
UploadCredentialsRequest::UploadCredentialsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/credentials/uploadcredentials");
setMethod(HttpRequest::Method::Post);
}
UploadCredentialsRequest::~UploadCredentialsRequest()
{}
@@ -33,7 +36,7 @@ std::string UploadCredentialsRequest::getRegionId()const
void UploadCredentialsRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string UploadCredentialsRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string UploadCredentialsRequest::getClientInfo()const
void UploadCredentialsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoAsyncScanRequest;
VideoAsyncScanRequest::VideoAsyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/asyncscan");
setMethod(HttpRequest::Method::Post);
}
VideoAsyncScanRequest::~VideoAsyncScanRequest()
{}
@@ -33,6 +36,6 @@ std::string VideoAsyncScanRequest::getClientInfo()const
void VideoAsyncScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoAsyncScanResultsRequest;
VideoAsyncScanResultsRequest::VideoAsyncScanResultsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/results");
setMethod(HttpRequest::Method::Post);
}
VideoAsyncScanResultsRequest::~VideoAsyncScanResultsRequest()
{}
@@ -33,6 +36,6 @@ std::string VideoAsyncScanResultsRequest::getClientInfo()const
void VideoAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoCancelScanRequest;
VideoCancelScanRequest::VideoCancelScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/cancelscan");
setMethod(HttpRequest::Method::Post);
}
VideoCancelScanRequest::~VideoCancelScanRequest()
{}
@@ -33,6 +36,6 @@ std::string VideoCancelScanRequest::getClientInfo()const
void VideoCancelScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoFeedbackRequest;
VideoFeedbackRequest::VideoFeedbackRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/feedback");
setMethod(HttpRequest::Method::Post);
}
VideoFeedbackRequest::~VideoFeedbackRequest()
{}
@@ -33,6 +36,6 @@ std::string VideoFeedbackRequest::getClientInfo()const
void VideoFeedbackRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VideoSyncScanRequest;
VideoSyncScanRequest::VideoSyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/video/syncscan");
setMethod(HttpRequest::Method::Post);
}
VideoSyncScanRequest::~VideoSyncScanRequest()
{}
@@ -33,6 +36,6 @@ std::string VideoSyncScanRequest::getClientInfo()const
void VideoSyncScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceAsyncScanRequest;
VoiceAsyncScanRequest::VoiceAsyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/voice/asyncscan");
setMethod(HttpRequest::Method::Post);
}
VoiceAsyncScanRequest::~VoiceAsyncScanRequest()
{}
@@ -33,6 +36,6 @@ std::string VoiceAsyncScanRequest::getClientInfo()const
void VoiceAsyncScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceAsyncScanResultsRequest;
VoiceAsyncScanResultsRequest::VoiceAsyncScanResultsRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/voice/results");
setMethod(HttpRequest::Method::Post);
}
VoiceAsyncScanResultsRequest::~VoiceAsyncScanResultsRequest()
{}
@@ -33,6 +36,6 @@ std::string VoiceAsyncScanResultsRequest::getClientInfo()const
void VoiceAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceCancelScanRequest;
VoiceCancelScanRequest::VoiceCancelScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/voice/cancelscan");
setMethod(HttpRequest::Method::Post);
}
VoiceCancelScanRequest::~VoiceCancelScanRequest()
{}
@@ -33,6 +36,6 @@ std::string VoiceCancelScanRequest::getClientInfo()const
void VoiceCancelScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityCheckRequest;
VoiceIdentityCheckRequest::VoiceIdentityCheckRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/voice/auth/check");
setMethod(HttpRequest::Method::Post);
}
VoiceIdentityCheckRequest::~VoiceIdentityCheckRequest()
{}
@@ -33,7 +36,7 @@ std::string VoiceIdentityCheckRequest::getRegionId()const
void VoiceIdentityCheckRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string VoiceIdentityCheckRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string VoiceIdentityCheckRequest::getClientInfo()const
void VoiceIdentityCheckRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityRegisterRequest;
VoiceIdentityRegisterRequest::VoiceIdentityRegisterRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/voice/auth/register");
setMethod(HttpRequest::Method::Post);
}
VoiceIdentityRegisterRequest::~VoiceIdentityRegisterRequest()
{}
@@ -33,7 +36,7 @@ std::string VoiceIdentityRegisterRequest::getRegionId()const
void VoiceIdentityRegisterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string VoiceIdentityRegisterRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string VoiceIdentityRegisterRequest::getClientInfo()const
void VoiceIdentityRegisterRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityStartCheckRequest;
VoiceIdentityStartCheckRequest::VoiceIdentityStartCheckRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/voice/auth/start/check");
setMethod(HttpRequest::Method::Post);
}
VoiceIdentityStartCheckRequest::~VoiceIdentityStartCheckRequest()
{}
@@ -33,7 +36,7 @@ std::string VoiceIdentityStartCheckRequest::getRegionId()const
void VoiceIdentityStartCheckRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string VoiceIdentityStartCheckRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string VoiceIdentityStartCheckRequest::getClientInfo()const
void VoiceIdentityStartCheckRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityStartRegisterRequest;
VoiceIdentityStartRegisterRequest::VoiceIdentityStartRegisterRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/voice/auth/start/register");
setMethod(HttpRequest::Method::Post);
}
VoiceIdentityStartRegisterRequest::~VoiceIdentityStartRegisterRequest()
{}
@@ -33,7 +36,7 @@ std::string VoiceIdentityStartRegisterRequest::getRegionId()const
void VoiceIdentityStartRegisterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string VoiceIdentityStartRegisterRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string VoiceIdentityStartRegisterRequest::getClientInfo()const
void VoiceIdentityStartRegisterRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Green::Model::VoiceIdentityUnregisterRequest;
VoiceIdentityUnregisterRequest::VoiceIdentityUnregisterRequest() :
RoaServiceRequest("green", "2018-05-09")
{}
{
setResourcePath("/green/voice/auth/unregister");
setMethod(HttpRequest::Method::Post);
}
VoiceIdentityUnregisterRequest::~VoiceIdentityUnregisterRequest()
{}
@@ -33,7 +36,7 @@ std::string VoiceIdentityUnregisterRequest::getRegionId()const
void VoiceIdentityUnregisterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
setParameter("RegionId", regionId);
}
std::string VoiceIdentityUnregisterRequest::getClientInfo()const
@@ -44,6 +47,6 @@ std::string VoiceIdentityUnregisterRequest::getClientInfo()const
void VoiceIdentityUnregisterRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setCoreParameter("ClientInfo", clientInfo);
setParameter("ClientInfo", clientInfo);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/VoiceSyncScanRequest.h>
using AlibabaCloud::Green::Model::VoiceSyncScanRequest;
VoiceSyncScanRequest::VoiceSyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
{
setResourcePath("/green/voice/syncscan");
setMethod(HttpRequest::Method::Post);
}
VoiceSyncScanRequest::~VoiceSyncScanRequest()
{}
std::string VoiceSyncScanRequest::getRegionId()const
{
return regionId_;
}
void VoiceSyncScanRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string VoiceSyncScanRequest::getClientInfo()const
{
return clientInfo_;
}
void VoiceSyncScanRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setParameter("ClientInfo", clientInfo);
}

View File

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

View File

@@ -43,6 +43,8 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/DeleteVideoSummaryTaskResult.h
include/alibabacloud/vcs/model/GetBodyOptionsRequest.h
include/alibabacloud/vcs/model/GetBodyOptionsResult.h
include/alibabacloud/vcs/model/GetDeviceConfigRequest.h
include/alibabacloud/vcs/model/GetDeviceConfigResult.h
include/alibabacloud/vcs/model/GetDeviceLiveUrlRequest.h
include/alibabacloud/vcs/model/GetDeviceLiveUrlResult.h
include/alibabacloud/vcs/model/GetDeviceVideoUrlRequest.h
@@ -59,6 +61,8 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/GetVideoComposeResultResult.h
include/alibabacloud/vcs/model/GetVideoSummaryTaskResultRequest.h
include/alibabacloud/vcs/model/GetVideoSummaryTaskResultResult.h
include/alibabacloud/vcs/model/InvokeMotorModelRequest.h
include/alibabacloud/vcs/model/InvokeMotorModelResult.h
include/alibabacloud/vcs/model/ListBodyAlgorithmResultsRequest.h
include/alibabacloud/vcs/model/ListBodyAlgorithmResultsResult.h
include/alibabacloud/vcs/model/ListCorpsRequest.h
@@ -79,6 +83,10 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/RecognizeFaceQualityResult.h
include/alibabacloud/vcs/model/RecognizeImageRequest.h
include/alibabacloud/vcs/model/RecognizeImageResult.h
include/alibabacloud/vcs/model/RegisterDeviceRequest.h
include/alibabacloud/vcs/model/RegisterDeviceResult.h
include/alibabacloud/vcs/model/ReportDeviceCapacityRequest.h
include/alibabacloud/vcs/model/ReportDeviceCapacityResult.h
include/alibabacloud/vcs/model/SaveVideoSummaryTaskVideoRequest.h
include/alibabacloud/vcs/model/SaveVideoSummaryTaskVideoResult.h
include/alibabacloud/vcs/model/SearchBodyRequest.h
@@ -87,6 +95,8 @@ set(vcs_public_header_model
include/alibabacloud/vcs/model/SearchFaceResult.h
include/alibabacloud/vcs/model/StopMonitorRequest.h
include/alibabacloud/vcs/model/StopMonitorResult.h
include/alibabacloud/vcs/model/SyncDeviceTimeRequest.h
include/alibabacloud/vcs/model/SyncDeviceTimeResult.h
include/alibabacloud/vcs/model/UpdateCorpRequest.h
include/alibabacloud/vcs/model/UpdateCorpResult.h
include/alibabacloud/vcs/model/UpdateDeviceRequest.h
@@ -120,6 +130,8 @@ set(vcs_src
src/model/DeleteVideoSummaryTaskResult.cc
src/model/GetBodyOptionsRequest.cc
src/model/GetBodyOptionsResult.cc
src/model/GetDeviceConfigRequest.cc
src/model/GetDeviceConfigResult.cc
src/model/GetDeviceLiveUrlRequest.cc
src/model/GetDeviceLiveUrlResult.cc
src/model/GetDeviceVideoUrlRequest.cc
@@ -136,6 +148,8 @@ set(vcs_src
src/model/GetVideoComposeResultResult.cc
src/model/GetVideoSummaryTaskResultRequest.cc
src/model/GetVideoSummaryTaskResultResult.cc
src/model/InvokeMotorModelRequest.cc
src/model/InvokeMotorModelResult.cc
src/model/ListBodyAlgorithmResultsRequest.cc
src/model/ListBodyAlgorithmResultsResult.cc
src/model/ListCorpsRequest.cc
@@ -156,6 +170,10 @@ set(vcs_src
src/model/RecognizeFaceQualityResult.cc
src/model/RecognizeImageRequest.cc
src/model/RecognizeImageResult.cc
src/model/RegisterDeviceRequest.cc
src/model/RegisterDeviceResult.cc
src/model/ReportDeviceCapacityRequest.cc
src/model/ReportDeviceCapacityResult.cc
src/model/SaveVideoSummaryTaskVideoRequest.cc
src/model/SaveVideoSummaryTaskVideoResult.cc
src/model/SearchBodyRequest.cc
@@ -164,6 +182,8 @@ set(vcs_src
src/model/SearchFaceResult.cc
src/model/StopMonitorRequest.cc
src/model/StopMonitorResult.cc
src/model/SyncDeviceTimeRequest.cc
src/model/SyncDeviceTimeResult.cc
src/model/UpdateCorpRequest.cc
src/model/UpdateCorpResult.cc
src/model/UpdateDeviceRequest.cc

View File

@@ -44,6 +44,8 @@
#include "model/DeleteVideoSummaryTaskResult.h"
#include "model/GetBodyOptionsRequest.h"
#include "model/GetBodyOptionsResult.h"
#include "model/GetDeviceConfigRequest.h"
#include "model/GetDeviceConfigResult.h"
#include "model/GetDeviceLiveUrlRequest.h"
#include "model/GetDeviceLiveUrlResult.h"
#include "model/GetDeviceVideoUrlRequest.h"
@@ -60,6 +62,8 @@
#include "model/GetVideoComposeResultResult.h"
#include "model/GetVideoSummaryTaskResultRequest.h"
#include "model/GetVideoSummaryTaskResultResult.h"
#include "model/InvokeMotorModelRequest.h"
#include "model/InvokeMotorModelResult.h"
#include "model/ListBodyAlgorithmResultsRequest.h"
#include "model/ListBodyAlgorithmResultsResult.h"
#include "model/ListCorpsRequest.h"
@@ -80,6 +84,10 @@
#include "model/RecognizeFaceQualityResult.h"
#include "model/RecognizeImageRequest.h"
#include "model/RecognizeImageResult.h"
#include "model/RegisterDeviceRequest.h"
#include "model/RegisterDeviceResult.h"
#include "model/ReportDeviceCapacityRequest.h"
#include "model/ReportDeviceCapacityResult.h"
#include "model/SaveVideoSummaryTaskVideoRequest.h"
#include "model/SaveVideoSummaryTaskVideoResult.h"
#include "model/SearchBodyRequest.h"
@@ -88,6 +96,8 @@
#include "model/SearchFaceResult.h"
#include "model/StopMonitorRequest.h"
#include "model/StopMonitorResult.h"
#include "model/SyncDeviceTimeRequest.h"
#include "model/SyncDeviceTimeResult.h"
#include "model/UpdateCorpRequest.h"
#include "model/UpdateCorpResult.h"
#include "model/UpdateDeviceRequest.h"
@@ -138,6 +148,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetBodyOptionsResult> GetBodyOptionsOutcome;
typedef std::future<GetBodyOptionsOutcome> GetBodyOptionsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetBodyOptionsRequest&, const GetBodyOptionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBodyOptionsAsyncHandler;
typedef Outcome<Error, Model::GetDeviceConfigResult> GetDeviceConfigOutcome;
typedef std::future<GetDeviceConfigOutcome> GetDeviceConfigOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetDeviceConfigRequest&, const GetDeviceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceConfigAsyncHandler;
typedef Outcome<Error, Model::GetDeviceLiveUrlResult> GetDeviceLiveUrlOutcome;
typedef std::future<GetDeviceLiveUrlOutcome> GetDeviceLiveUrlOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetDeviceLiveUrlRequest&, const GetDeviceLiveUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceLiveUrlAsyncHandler;
@@ -162,6 +175,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetVideoSummaryTaskResultResult> GetVideoSummaryTaskResultOutcome;
typedef std::future<GetVideoSummaryTaskResultOutcome> GetVideoSummaryTaskResultOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetVideoSummaryTaskResultRequest&, const GetVideoSummaryTaskResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVideoSummaryTaskResultAsyncHandler;
typedef Outcome<Error, Model::InvokeMotorModelResult> InvokeMotorModelOutcome;
typedef std::future<InvokeMotorModelOutcome> InvokeMotorModelOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::InvokeMotorModelRequest&, const InvokeMotorModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InvokeMotorModelAsyncHandler;
typedef Outcome<Error, Model::ListBodyAlgorithmResultsResult> ListBodyAlgorithmResultsOutcome;
typedef std::future<ListBodyAlgorithmResultsOutcome> ListBodyAlgorithmResultsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ListBodyAlgorithmResultsRequest&, const ListBodyAlgorithmResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBodyAlgorithmResultsAsyncHandler;
@@ -192,6 +208,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::RecognizeImageResult> RecognizeImageOutcome;
typedef std::future<RecognizeImageOutcome> RecognizeImageOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::RecognizeImageRequest&, const RecognizeImageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizeImageAsyncHandler;
typedef Outcome<Error, Model::RegisterDeviceResult> RegisterDeviceOutcome;
typedef std::future<RegisterDeviceOutcome> RegisterDeviceOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::RegisterDeviceRequest&, const RegisterDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RegisterDeviceAsyncHandler;
typedef Outcome<Error, Model::ReportDeviceCapacityResult> ReportDeviceCapacityOutcome;
typedef std::future<ReportDeviceCapacityOutcome> ReportDeviceCapacityOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::ReportDeviceCapacityRequest&, const ReportDeviceCapacityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReportDeviceCapacityAsyncHandler;
typedef Outcome<Error, Model::SaveVideoSummaryTaskVideoResult> SaveVideoSummaryTaskVideoOutcome;
typedef std::future<SaveVideoSummaryTaskVideoOutcome> SaveVideoSummaryTaskVideoOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::SaveVideoSummaryTaskVideoRequest&, const SaveVideoSummaryTaskVideoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveVideoSummaryTaskVideoAsyncHandler;
@@ -204,6 +226,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::StopMonitorResult> StopMonitorOutcome;
typedef std::future<StopMonitorOutcome> StopMonitorOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::StopMonitorRequest&, const StopMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopMonitorAsyncHandler;
typedef Outcome<Error, Model::SyncDeviceTimeResult> SyncDeviceTimeOutcome;
typedef std::future<SyncDeviceTimeOutcome> SyncDeviceTimeOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::SyncDeviceTimeRequest&, const SyncDeviceTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SyncDeviceTimeAsyncHandler;
typedef Outcome<Error, Model::UpdateCorpResult> UpdateCorpOutcome;
typedef std::future<UpdateCorpOutcome> UpdateCorpOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::UpdateCorpRequest&, const UpdateCorpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCorpAsyncHandler;
@@ -254,6 +279,9 @@ namespace AlibabaCloud
GetBodyOptionsOutcome getBodyOptions(const Model::GetBodyOptionsRequest &request)const;
void getBodyOptionsAsync(const Model::GetBodyOptionsRequest& request, const GetBodyOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetBodyOptionsOutcomeCallable getBodyOptionsCallable(const Model::GetBodyOptionsRequest& request) const;
GetDeviceConfigOutcome getDeviceConfig(const Model::GetDeviceConfigRequest &request)const;
void getDeviceConfigAsync(const Model::GetDeviceConfigRequest& request, const GetDeviceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDeviceConfigOutcomeCallable getDeviceConfigCallable(const Model::GetDeviceConfigRequest& request) const;
GetDeviceLiveUrlOutcome getDeviceLiveUrl(const Model::GetDeviceLiveUrlRequest &request)const;
void getDeviceLiveUrlAsync(const Model::GetDeviceLiveUrlRequest& request, const GetDeviceLiveUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetDeviceLiveUrlOutcomeCallable getDeviceLiveUrlCallable(const Model::GetDeviceLiveUrlRequest& request) const;
@@ -278,6 +306,9 @@ namespace AlibabaCloud
GetVideoSummaryTaskResultOutcome getVideoSummaryTaskResult(const Model::GetVideoSummaryTaskResultRequest &request)const;
void getVideoSummaryTaskResultAsync(const Model::GetVideoSummaryTaskResultRequest& request, const GetVideoSummaryTaskResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVideoSummaryTaskResultOutcomeCallable getVideoSummaryTaskResultCallable(const Model::GetVideoSummaryTaskResultRequest& request) const;
InvokeMotorModelOutcome invokeMotorModel(const Model::InvokeMotorModelRequest &request)const;
void invokeMotorModelAsync(const Model::InvokeMotorModelRequest& request, const InvokeMotorModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InvokeMotorModelOutcomeCallable invokeMotorModelCallable(const Model::InvokeMotorModelRequest& request) const;
ListBodyAlgorithmResultsOutcome listBodyAlgorithmResults(const Model::ListBodyAlgorithmResultsRequest &request)const;
void listBodyAlgorithmResultsAsync(const Model::ListBodyAlgorithmResultsRequest& request, const ListBodyAlgorithmResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListBodyAlgorithmResultsOutcomeCallable listBodyAlgorithmResultsCallable(const Model::ListBodyAlgorithmResultsRequest& request) const;
@@ -308,6 +339,12 @@ namespace AlibabaCloud
RecognizeImageOutcome recognizeImage(const Model::RecognizeImageRequest &request)const;
void recognizeImageAsync(const Model::RecognizeImageRequest& request, const RecognizeImageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RecognizeImageOutcomeCallable recognizeImageCallable(const Model::RecognizeImageRequest& request) const;
RegisterDeviceOutcome registerDevice(const Model::RegisterDeviceRequest &request)const;
void registerDeviceAsync(const Model::RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RegisterDeviceOutcomeCallable registerDeviceCallable(const Model::RegisterDeviceRequest& request) const;
ReportDeviceCapacityOutcome reportDeviceCapacity(const Model::ReportDeviceCapacityRequest &request)const;
void reportDeviceCapacityAsync(const Model::ReportDeviceCapacityRequest& request, const ReportDeviceCapacityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ReportDeviceCapacityOutcomeCallable reportDeviceCapacityCallable(const Model::ReportDeviceCapacityRequest& request) const;
SaveVideoSummaryTaskVideoOutcome saveVideoSummaryTaskVideo(const Model::SaveVideoSummaryTaskVideoRequest &request)const;
void saveVideoSummaryTaskVideoAsync(const Model::SaveVideoSummaryTaskVideoRequest& request, const SaveVideoSummaryTaskVideoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SaveVideoSummaryTaskVideoOutcomeCallable saveVideoSummaryTaskVideoCallable(const Model::SaveVideoSummaryTaskVideoRequest& request) const;
@@ -320,6 +357,9 @@ namespace AlibabaCloud
StopMonitorOutcome stopMonitor(const Model::StopMonitorRequest &request)const;
void stopMonitorAsync(const Model::StopMonitorRequest& request, const StopMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
StopMonitorOutcomeCallable stopMonitorCallable(const Model::StopMonitorRequest& request) const;
SyncDeviceTimeOutcome syncDeviceTime(const Model::SyncDeviceTimeRequest &request)const;
void syncDeviceTimeAsync(const Model::SyncDeviceTimeRequest& request, const SyncDeviceTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SyncDeviceTimeOutcomeCallable syncDeviceTimeCallable(const Model::SyncDeviceTimeRequest& request) const;
UpdateCorpOutcome updateCorp(const Model::UpdateCorpRequest &request)const;
void updateCorpAsync(const Model::UpdateCorpRequest& request, const UpdateCorpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateCorpOutcomeCallable updateCorpCallable(const Model::UpdateCorpRequest& 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_VCS_MODEL_GETDEVICECONFIGREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_GETDEVICECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT GetDeviceConfigRequest : public RpcServiceRequest
{
public:
GetDeviceConfigRequest();
~GetDeviceConfigRequest();
std::string getDeviceTimeStamp()const;
void setDeviceTimeStamp(const std::string& deviceTimeStamp);
std::string getDeviceSn()const;
void setDeviceSn(const std::string& deviceSn);
private:
std::string deviceTimeStamp_;
std::string deviceSn_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_GETDEVICECONFIGREQUEST_H_

View File

@@ -0,0 +1,93 @@
/*
* 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_VCS_MODEL_GETDEVICECONFIGRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_GETDEVICECONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT GetDeviceConfigResult : public ServiceResult
{
public:
struct OSDListItem
{
std::string text;
std::string leftTopY;
std::string leftTopX;
};
GetDeviceConfigResult();
explicit GetDeviceConfigResult(const std::string &payload);
~GetDeviceConfigResult();
std::string getFrameRate()const;
std::string getEncodeFormat()const;
std::string getMessage()const;
std::string getLatitude()const;
std::string getCode()const;
std::string getLongitude()const;
std::vector<OSDListItem> getOSDList()const;
std::string getOSDTimeY()const;
std::string getOSDTimeEnable()const;
std::string getDeviceAddress()const;
std::string getOSDTimeX()const;
int getGovLength()const;
std::string getRetryInterval()const;
std::string getAudioFormat()const;
std::string getBitRate()const;
bool getAudioEnable()const;
std::string getDeviceName()const;
std::string getOSDTimeType()const;
std::string getResolution()const;
protected:
void parse(const std::string &payload);
private:
std::string frameRate_;
std::string encodeFormat_;
std::string message_;
std::string latitude_;
std::string code_;
std::string longitude_;
std::vector<OSDListItem> oSDList_;
std::string oSDTimeY_;
std::string oSDTimeEnable_;
std::string deviceAddress_;
std::string oSDTimeX_;
int govLength_;
std::string retryInterval_;
std::string audioFormat_;
std::string bitRate_;
bool audioEnable_;
std::string deviceName_;
std::string oSDTimeType_;
std::string resolution_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_GETDEVICECONFIGRESULT_H_

View File

@@ -39,6 +39,7 @@ namespace AlibabaCloud
std::string leftUpX;
std::string leftUpY;
std::string score;
std::string targetPicUrl;
std::string rightBottomX;
std::string rightBottomY;
std::string gbId;

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_VCS_MODEL_INVOKEMOTORMODELREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_INVOKEMOTORMODELREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT InvokeMotorModelRequest : public RpcServiceRequest
{
public:
InvokeMotorModelRequest();
~InvokeMotorModelRequest();
std::string getPicPath()const;
void setPicPath(const std::string& picPath);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getPicUrl()const;
void setPicUrl(const std::string& picUrl);
std::string getPicId()const;
void setPicId(const std::string& picId);
private:
std::string picPath_;
std::string corpId_;
std::string picUrl_;
std::string picId_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_INVOKEMOTORMODELREQUEST_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_VCS_MODEL_INVOKEMOTORMODELRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_INVOKEMOTORMODELRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT InvokeMotorModelResult : public ServiceResult
{
public:
struct Data
{
std::string structList;
};
InvokeMotorModelResult();
explicit InvokeMotorModelResult(const std::string &payload);
~InvokeMotorModelResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_INVOKEMOTORMODELRESULT_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_VCS_MODEL_REGISTERDEVICEREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_REGISTERDEVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT RegisterDeviceRequest : public RpcServiceRequest
{
public:
RegisterDeviceRequest();
~RegisterDeviceRequest();
std::string getDeviceTimeStamp()const;
void setDeviceTimeStamp(const std::string& deviceTimeStamp);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
std::string getServerId()const;
void setServerId(const std::string& serverId);
std::string getDeviceSerialNumber()const;
void setDeviceSerialNumber(const std::string& deviceSerialNumber);
private:
std::string deviceTimeStamp_;
std::string deviceId_;
std::string serverId_;
std::string deviceSerialNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_REGISTERDEVICEREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_VCS_MODEL_REGISTERDEVICERESULT_H_
#define ALIBABACLOUD_VCS_MODEL_REGISTERDEVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT RegisterDeviceResult : public ServiceResult
{
public:
RegisterDeviceResult();
explicit RegisterDeviceResult(const std::string &payload);
~RegisterDeviceResult();
std::string getMessage()const;
std::string getRetryInterval()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string retryInterval_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_REGISTERDEVICERESULT_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_VCS_MODEL_REPORTDEVICECAPACITYREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_REPORTDEVICECAPACITYREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ReportDeviceCapacityRequest : public RpcServiceRequest
{
public:
struct StreamCapacities
{
std::string bitrateRange;
std::string maxStream;
std::string encodeFormat;
std::string maxFrameRate;
std::string resolution;
};
public:
ReportDeviceCapacityRequest();
~ReportDeviceCapacityRequest();
std::vector<StreamCapacities> getStreamCapacities()const;
void setStreamCapacities(const std::vector<StreamCapacities>& streamCapacities);
std::string getLatitude()const;
void setLatitude(const std::string& latitude);
std::string getPresetNum()const;
void setPresetNum(const std::string& presetNum);
std::string getDeviceSn()const;
void setDeviceSn(const std::string& deviceSn);
std::string getAudioFormat()const;
void setAudioFormat(const std::string& audioFormat);
std::string getPTZCapacity()const;
void setPTZCapacity(const std::string& pTZCapacity);
std::string getLongitude()const;
void setLongitude(const std::string& longitude);
private:
std::vector<StreamCapacities> streamCapacities_;
std::string latitude_;
std::string presetNum_;
std::string deviceSn_;
std::string audioFormat_;
std::string pTZCapacity_;
std::string longitude_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_REPORTDEVICECAPACITYREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_VCS_MODEL_REPORTDEVICECAPACITYRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_REPORTDEVICECAPACITYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT ReportDeviceCapacityResult : public ServiceResult
{
public:
ReportDeviceCapacityResult();
explicit ReportDeviceCapacityResult(const std::string &payload);
~ReportDeviceCapacityResult();
std::string getMessage()const;
std::string getRetryInterval()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
std::string retryInterval_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_REPORTDEVICECAPACITYRESULT_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_VCS_MODEL_SYNCDEVICETIMEREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_SYNCDEVICETIMEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT SyncDeviceTimeRequest : public RpcServiceRequest
{
public:
SyncDeviceTimeRequest();
~SyncDeviceTimeRequest();
std::string getDeviceTimeStamp()const;
void setDeviceTimeStamp(const std::string& deviceTimeStamp);
std::string getDeviceSn()const;
void setDeviceSn(const std::string& deviceSn);
private:
std::string deviceTimeStamp_;
std::string deviceSn_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_SYNCDEVICETIMEREQUEST_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_VCS_MODEL_SYNCDEVICETIMERESULT_H_
#define ALIBABACLOUD_VCS_MODEL_SYNCDEVICETIMERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT SyncDeviceTimeResult : public ServiceResult
{
public:
SyncDeviceTimeResult();
explicit SyncDeviceTimeResult(const std::string &payload);
~SyncDeviceTimeResult();
std::string getSyncInterval()const;
std::string getMessage()const;
std::string getNTPServer()const;
std::string getRetryInterval()const;
std::string getCode()const;
std::string getTimeStamp()const;
protected:
void parse(const std::string &payload);
private:
std::string syncInterval_;
std::string message_;
std::string nTPServer_;
std::string retryInterval_;
std::string code_;
std::string timeStamp_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_SYNCDEVICETIMERESULT_H_

View File

@@ -447,6 +447,42 @@ VcsClient::GetBodyOptionsOutcomeCallable VcsClient::getBodyOptionsCallable(const
return task->get_future();
}
VcsClient::GetDeviceConfigOutcome VcsClient::getDeviceConfig(const GetDeviceConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDeviceConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDeviceConfigOutcome(GetDeviceConfigResult(outcome.result()));
else
return GetDeviceConfigOutcome(outcome.error());
}
void VcsClient::getDeviceConfigAsync(const GetDeviceConfigRequest& request, const GetDeviceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDeviceConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::GetDeviceConfigOutcomeCallable VcsClient::getDeviceConfigCallable(const GetDeviceConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDeviceConfigOutcome()>>(
[this, request]()
{
return this->getDeviceConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::GetDeviceLiveUrlOutcome VcsClient::getDeviceLiveUrl(const GetDeviceLiveUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -735,6 +771,42 @@ VcsClient::GetVideoSummaryTaskResultOutcomeCallable VcsClient::getVideoSummaryTa
return task->get_future();
}
VcsClient::InvokeMotorModelOutcome VcsClient::invokeMotorModel(const InvokeMotorModelRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InvokeMotorModelOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InvokeMotorModelOutcome(InvokeMotorModelResult(outcome.result()));
else
return InvokeMotorModelOutcome(outcome.error());
}
void VcsClient::invokeMotorModelAsync(const InvokeMotorModelRequest& request, const InvokeMotorModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, invokeMotorModel(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::InvokeMotorModelOutcomeCallable VcsClient::invokeMotorModelCallable(const InvokeMotorModelRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InvokeMotorModelOutcome()>>(
[this, request]()
{
return this->invokeMotorModel(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::ListBodyAlgorithmResultsOutcome VcsClient::listBodyAlgorithmResults(const ListBodyAlgorithmResultsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1095,6 +1167,78 @@ VcsClient::RecognizeImageOutcomeCallable VcsClient::recognizeImageCallable(const
return task->get_future();
}
VcsClient::RegisterDeviceOutcome VcsClient::registerDevice(const RegisterDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return RegisterDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return RegisterDeviceOutcome(RegisterDeviceResult(outcome.result()));
else
return RegisterDeviceOutcome(outcome.error());
}
void VcsClient::registerDeviceAsync(const RegisterDeviceRequest& request, const RegisterDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, registerDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::RegisterDeviceOutcomeCallable VcsClient::registerDeviceCallable(const RegisterDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<RegisterDeviceOutcome()>>(
[this, request]()
{
return this->registerDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::ReportDeviceCapacityOutcome VcsClient::reportDeviceCapacity(const ReportDeviceCapacityRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ReportDeviceCapacityOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ReportDeviceCapacityOutcome(ReportDeviceCapacityResult(outcome.result()));
else
return ReportDeviceCapacityOutcome(outcome.error());
}
void VcsClient::reportDeviceCapacityAsync(const ReportDeviceCapacityRequest& request, const ReportDeviceCapacityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, reportDeviceCapacity(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::ReportDeviceCapacityOutcomeCallable VcsClient::reportDeviceCapacityCallable(const ReportDeviceCapacityRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ReportDeviceCapacityOutcome()>>(
[this, request]()
{
return this->reportDeviceCapacity(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::SaveVideoSummaryTaskVideoOutcome VcsClient::saveVideoSummaryTaskVideo(const SaveVideoSummaryTaskVideoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1239,6 +1383,42 @@ VcsClient::StopMonitorOutcomeCallable VcsClient::stopMonitorCallable(const StopM
return task->get_future();
}
VcsClient::SyncDeviceTimeOutcome VcsClient::syncDeviceTime(const SyncDeviceTimeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SyncDeviceTimeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SyncDeviceTimeOutcome(SyncDeviceTimeResult(outcome.result()));
else
return SyncDeviceTimeOutcome(outcome.error());
}
void VcsClient::syncDeviceTimeAsync(const SyncDeviceTimeRequest& request, const SyncDeviceTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, syncDeviceTime(request), context);
};
asyncExecute(new Runnable(fn));
}
VcsClient::SyncDeviceTimeOutcomeCallable VcsClient::syncDeviceTimeCallable(const SyncDeviceTimeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SyncDeviceTimeOutcome()>>(
[this, request]()
{
return this->syncDeviceTime(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VcsClient::UpdateCorpOutcome VcsClient::updateCorp(const UpdateCorpRequest &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/vcs/model/GetDeviceConfigRequest.h>
using AlibabaCloud::Vcs::Model::GetDeviceConfigRequest;
GetDeviceConfigRequest::GetDeviceConfigRequest() :
RpcServiceRequest("vcs", "2020-05-15", "GetDeviceConfig")
{
setMethod(HttpRequest::Method::Post);
}
GetDeviceConfigRequest::~GetDeviceConfigRequest()
{}
std::string GetDeviceConfigRequest::getDeviceTimeStamp()const
{
return deviceTimeStamp_;
}
void GetDeviceConfigRequest::setDeviceTimeStamp(const std::string& deviceTimeStamp)
{
deviceTimeStamp_ = deviceTimeStamp;
setBodyParameter("DeviceTimeStamp", deviceTimeStamp);
}
std::string GetDeviceConfigRequest::getDeviceSn()const
{
return deviceSn_;
}
void GetDeviceConfigRequest::setDeviceSn(const std::string& deviceSn)
{
deviceSn_ = deviceSn;
setBodyParameter("DeviceSn", deviceSn);
}

View File

@@ -0,0 +1,187 @@
/*
* 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/vcs/model/GetDeviceConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
GetDeviceConfigResult::GetDeviceConfigResult() :
ServiceResult()
{}
GetDeviceConfigResult::GetDeviceConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDeviceConfigResult::~GetDeviceConfigResult()
{}
void GetDeviceConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOSDListNode = value["OSDList"]["OSDListItem"];
for (auto valueOSDListOSDListItem : allOSDListNode)
{
OSDListItem oSDListObject;
if(!valueOSDListOSDListItem["Text"].isNull())
oSDListObject.text = valueOSDListOSDListItem["Text"].asString();
if(!valueOSDListOSDListItem["LeftTopX"].isNull())
oSDListObject.leftTopX = valueOSDListOSDListItem["LeftTopX"].asString();
if(!valueOSDListOSDListItem["LeftTopY"].isNull())
oSDListObject.leftTopY = valueOSDListOSDListItem["LeftTopY"].asString();
oSDList_.push_back(oSDListObject);
}
if(!value["AudioEnable"].isNull())
audioEnable_ = value["AudioEnable"].asString() == "true";
if(!value["AudioFormat"].isNull())
audioFormat_ = value["AudioFormat"].asString();
if(!value["BitRate"].isNull())
bitRate_ = value["BitRate"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["DeviceAddress"].isNull())
deviceAddress_ = value["DeviceAddress"].asString();
if(!value["DeviceName"].isNull())
deviceName_ = value["DeviceName"].asString();
if(!value["EncodeFormat"].isNull())
encodeFormat_ = value["EncodeFormat"].asString();
if(!value["FrameRate"].isNull())
frameRate_ = value["FrameRate"].asString();
if(!value["GovLength"].isNull())
govLength_ = std::stoi(value["GovLength"].asString());
if(!value["Latitude"].isNull())
latitude_ = value["Latitude"].asString();
if(!value["Longitude"].isNull())
longitude_ = value["Longitude"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["OSDTimeEnable"].isNull())
oSDTimeEnable_ = value["OSDTimeEnable"].asString();
if(!value["OSDTimeType"].isNull())
oSDTimeType_ = value["OSDTimeType"].asString();
if(!value["OSDTimeX"].isNull())
oSDTimeX_ = value["OSDTimeX"].asString();
if(!value["OSDTimeY"].isNull())
oSDTimeY_ = value["OSDTimeY"].asString();
if(!value["Resolution"].isNull())
resolution_ = value["Resolution"].asString();
if(!value["RetryInterval"].isNull())
retryInterval_ = value["RetryInterval"].asString();
}
std::string GetDeviceConfigResult::getFrameRate()const
{
return frameRate_;
}
std::string GetDeviceConfigResult::getEncodeFormat()const
{
return encodeFormat_;
}
std::string GetDeviceConfigResult::getMessage()const
{
return message_;
}
std::string GetDeviceConfigResult::getLatitude()const
{
return latitude_;
}
std::string GetDeviceConfigResult::getCode()const
{
return code_;
}
std::string GetDeviceConfigResult::getLongitude()const
{
return longitude_;
}
std::vector<GetDeviceConfigResult::OSDListItem> GetDeviceConfigResult::getOSDList()const
{
return oSDList_;
}
std::string GetDeviceConfigResult::getOSDTimeY()const
{
return oSDTimeY_;
}
std::string GetDeviceConfigResult::getOSDTimeEnable()const
{
return oSDTimeEnable_;
}
std::string GetDeviceConfigResult::getDeviceAddress()const
{
return deviceAddress_;
}
std::string GetDeviceConfigResult::getOSDTimeX()const
{
return oSDTimeX_;
}
int GetDeviceConfigResult::getGovLength()const
{
return govLength_;
}
std::string GetDeviceConfigResult::getRetryInterval()const
{
return retryInterval_;
}
std::string GetDeviceConfigResult::getAudioFormat()const
{
return audioFormat_;
}
std::string GetDeviceConfigResult::getBitRate()const
{
return bitRate_;
}
bool GetDeviceConfigResult::getAudioEnable()const
{
return audioEnable_;
}
std::string GetDeviceConfigResult::getDeviceName()const
{
return deviceName_;
}
std::string GetDeviceConfigResult::getOSDTimeType()const
{
return oSDTimeType_;
}
std::string GetDeviceConfigResult::getResolution()const
{
return resolution_;
}

View File

@@ -64,6 +64,8 @@ void GetMonitorResultResult::parse(const std::string &payload)
recordsItemObject.shotTime = dataNodeRecordsRecordsItem["ShotTime"].asString();
if(!dataNodeRecordsRecordsItem["MonitorPicUrl"].isNull())
recordsItemObject.monitorPicUrl = dataNodeRecordsRecordsItem["MonitorPicUrl"].asString();
if(!dataNodeRecordsRecordsItem["TargetPicUrl"].isNull())
recordsItemObject.targetPicUrl = dataNodeRecordsRecordsItem["TargetPicUrl"].asString();
data_.records.push_back(recordsItemObject);
}
if(!value["Code"].isNull())

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/vcs/model/InvokeMotorModelRequest.h>
using AlibabaCloud::Vcs::Model::InvokeMotorModelRequest;
InvokeMotorModelRequest::InvokeMotorModelRequest() :
RpcServiceRequest("vcs", "2020-05-15", "InvokeMotorModel")
{
setMethod(HttpRequest::Method::Post);
}
InvokeMotorModelRequest::~InvokeMotorModelRequest()
{}
std::string InvokeMotorModelRequest::getPicPath()const
{
return picPath_;
}
void InvokeMotorModelRequest::setPicPath(const std::string& picPath)
{
picPath_ = picPath;
setBodyParameter("PicPath", picPath);
}
std::string InvokeMotorModelRequest::getCorpId()const
{
return corpId_;
}
void InvokeMotorModelRequest::setCorpId(const std::string& corpId)
{
corpId_ = corpId;
setBodyParameter("CorpId", corpId);
}
std::string InvokeMotorModelRequest::getPicUrl()const
{
return picUrl_;
}
void InvokeMotorModelRequest::setPicUrl(const std::string& picUrl)
{
picUrl_ = picUrl;
setBodyParameter("PicUrl", picUrl);
}
std::string InvokeMotorModelRequest::getPicId()const
{
return picId_;
}
void InvokeMotorModelRequest::setPicId(const std::string& picId)
{
picId_ = picId;
setBodyParameter("PicId", picId);
}

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/vcs/model/InvokeMotorModelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
InvokeMotorModelResult::InvokeMotorModelResult() :
ServiceResult()
{}
InvokeMotorModelResult::InvokeMotorModelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InvokeMotorModelResult::~InvokeMotorModelResult()
{}
void InvokeMotorModelResult::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["StructList"].isNull())
data_.structList = dataNode["StructList"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string InvokeMotorModelResult::getMessage()const
{
return message_;
}
InvokeMotorModelResult::Data InvokeMotorModelResult::getData()const
{
return data_;
}
std::string InvokeMotorModelResult::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/vcs/model/RegisterDeviceRequest.h>
using AlibabaCloud::Vcs::Model::RegisterDeviceRequest;
RegisterDeviceRequest::RegisterDeviceRequest() :
RpcServiceRequest("vcs", "2020-05-15", "RegisterDevice")
{
setMethod(HttpRequest::Method::Post);
}
RegisterDeviceRequest::~RegisterDeviceRequest()
{}
std::string RegisterDeviceRequest::getDeviceTimeStamp()const
{
return deviceTimeStamp_;
}
void RegisterDeviceRequest::setDeviceTimeStamp(const std::string& deviceTimeStamp)
{
deviceTimeStamp_ = deviceTimeStamp;
setBodyParameter("DeviceTimeStamp", deviceTimeStamp);
}
std::string RegisterDeviceRequest::getDeviceId()const
{
return deviceId_;
}
void RegisterDeviceRequest::setDeviceId(const std::string& deviceId)
{
deviceId_ = deviceId;
setBodyParameter("DeviceId", deviceId);
}
std::string RegisterDeviceRequest::getServerId()const
{
return serverId_;
}
void RegisterDeviceRequest::setServerId(const std::string& serverId)
{
serverId_ = serverId;
setBodyParameter("ServerId", serverId);
}
std::string RegisterDeviceRequest::getDeviceSerialNumber()const
{
return deviceSerialNumber_;
}
void RegisterDeviceRequest::setDeviceSerialNumber(const std::string& deviceSerialNumber)
{
deviceSerialNumber_ = deviceSerialNumber;
setBodyParameter("DeviceSerialNumber", deviceSerialNumber);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/vcs/model/RegisterDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
RegisterDeviceResult::RegisterDeviceResult() :
ServiceResult()
{}
RegisterDeviceResult::RegisterDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RegisterDeviceResult::~RegisterDeviceResult()
{}
void RegisterDeviceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["RetryInterval"].isNull())
retryInterval_ = value["RetryInterval"].asString();
}
std::string RegisterDeviceResult::getMessage()const
{
return message_;
}
std::string RegisterDeviceResult::getRetryInterval()const
{
return retryInterval_;
}
std::string RegisterDeviceResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,114 @@
/*
* 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/vcs/model/ReportDeviceCapacityRequest.h>
using AlibabaCloud::Vcs::Model::ReportDeviceCapacityRequest;
ReportDeviceCapacityRequest::ReportDeviceCapacityRequest() :
RpcServiceRequest("vcs", "2020-05-15", "ReportDeviceCapacity")
{
setMethod(HttpRequest::Method::Post);
}
ReportDeviceCapacityRequest::~ReportDeviceCapacityRequest()
{}
std::vector<ReportDeviceCapacityRequest::StreamCapacities> ReportDeviceCapacityRequest::getStreamCapacities()const
{
return streamCapacities_;
}
void ReportDeviceCapacityRequest::setStreamCapacities(const std::vector<StreamCapacities>& streamCapacities)
{
streamCapacities_ = streamCapacities;
for(int dep1 = 0; dep1!= streamCapacities.size(); dep1++) {
auto streamCapacitiesObj = streamCapacities.at(dep1);
std::string streamCapacitiesObjStr = "StreamCapacities." + std::to_string(dep1 + 1);
setParameter(streamCapacitiesObjStr + ".BitrateRange", streamCapacitiesObj.bitrateRange);
setParameter(streamCapacitiesObjStr + ".MaxStream", streamCapacitiesObj.maxStream);
setParameter(streamCapacitiesObjStr + ".EncodeFormat", streamCapacitiesObj.encodeFormat);
setParameter(streamCapacitiesObjStr + ".MaxFrameRate", streamCapacitiesObj.maxFrameRate);
setParameter(streamCapacitiesObjStr + ".Resolution", streamCapacitiesObj.resolution);
}
}
std::string ReportDeviceCapacityRequest::getLatitude()const
{
return latitude_;
}
void ReportDeviceCapacityRequest::setLatitude(const std::string& latitude)
{
latitude_ = latitude;
setBodyParameter("Latitude", latitude);
}
std::string ReportDeviceCapacityRequest::getPresetNum()const
{
return presetNum_;
}
void ReportDeviceCapacityRequest::setPresetNum(const std::string& presetNum)
{
presetNum_ = presetNum;
setBodyParameter("PresetNum", presetNum);
}
std::string ReportDeviceCapacityRequest::getDeviceSn()const
{
return deviceSn_;
}
void ReportDeviceCapacityRequest::setDeviceSn(const std::string& deviceSn)
{
deviceSn_ = deviceSn;
setBodyParameter("DeviceSn", deviceSn);
}
std::string ReportDeviceCapacityRequest::getAudioFormat()const
{
return audioFormat_;
}
void ReportDeviceCapacityRequest::setAudioFormat(const std::string& audioFormat)
{
audioFormat_ = audioFormat;
setBodyParameter("AudioFormat", audioFormat);
}
std::string ReportDeviceCapacityRequest::getPTZCapacity()const
{
return pTZCapacity_;
}
void ReportDeviceCapacityRequest::setPTZCapacity(const std::string& pTZCapacity)
{
pTZCapacity_ = pTZCapacity;
setBodyParameter("PTZCapacity", pTZCapacity);
}
std::string ReportDeviceCapacityRequest::getLongitude()const
{
return longitude_;
}
void ReportDeviceCapacityRequest::setLongitude(const std::string& longitude)
{
longitude_ = longitude;
setBodyParameter("Longitude", longitude);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/vcs/model/ReportDeviceCapacityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vcs;
using namespace AlibabaCloud::Vcs::Model;
ReportDeviceCapacityResult::ReportDeviceCapacityResult() :
ServiceResult()
{}
ReportDeviceCapacityResult::ReportDeviceCapacityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ReportDeviceCapacityResult::~ReportDeviceCapacityResult()
{}
void ReportDeviceCapacityResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["RetryInterval"].isNull())
retryInterval_ = value["RetryInterval"].asString();
}
std::string ReportDeviceCapacityResult::getMessage()const
{
return message_;
}
std::string ReportDeviceCapacityResult::getRetryInterval()const
{
return retryInterval_;
}
std::string ReportDeviceCapacityResult::getCode()const
{
return code_;
}

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/vcs/model/SyncDeviceTimeRequest.h>
using AlibabaCloud::Vcs::Model::SyncDeviceTimeRequest;
SyncDeviceTimeRequest::SyncDeviceTimeRequest() :
RpcServiceRequest("vcs", "2020-05-15", "SyncDeviceTime")
{
setMethod(HttpRequest::Method::Post);
}
SyncDeviceTimeRequest::~SyncDeviceTimeRequest()
{}
std::string SyncDeviceTimeRequest::getDeviceTimeStamp()const
{
return deviceTimeStamp_;
}
void SyncDeviceTimeRequest::setDeviceTimeStamp(const std::string& deviceTimeStamp)
{
deviceTimeStamp_ = deviceTimeStamp;
setBodyParameter("DeviceTimeStamp", deviceTimeStamp);
}
std::string SyncDeviceTimeRequest::getDeviceSn()const
{
return deviceSn_;
}
void SyncDeviceTimeRequest::setDeviceSn(const std::string& deviceSn)
{
deviceSn_ = deviceSn;
setBodyParameter("DeviceSn", deviceSn);
}

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