Delete MultiMedia Post Scan API.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-04-14 Version: 1.36.680
|
||||
- Delete MultiMedia Post Scan API.
|
||||
|
||||
2021-04-14 Version: 1.36.679
|
||||
- Download url add fixed domain.
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ set(green_public_header_model
|
||||
include/alibabacloud/green/model/AddVideoDnaGroupResult.h
|
||||
include/alibabacloud/green/model/CreatCustomOcrTemplateRequest.h
|
||||
include/alibabacloud/green/model/CreatCustomOcrTemplateResult.h
|
||||
include/alibabacloud/green/model/CreateAuditCallbackRequest.h
|
||||
include/alibabacloud/green/model/CreateAuditCallbackResult.h
|
||||
include/alibabacloud/green/model/CreateBizTypeRequest.h
|
||||
include/alibabacloud/green/model/CreateBizTypeResult.h
|
||||
include/alibabacloud/green/model/CreateCdiBagRequest.h
|
||||
@@ -85,6 +87,8 @@ set(green_public_header_model
|
||||
include/alibabacloud/green/model/DescribeAppInfoResult.h
|
||||
include/alibabacloud/green/model/DescribeAuditCallbackRequest.h
|
||||
include/alibabacloud/green/model/DescribeAuditCallbackResult.h
|
||||
include/alibabacloud/green/model/DescribeAuditCallbackListRequest.h
|
||||
include/alibabacloud/green/model/DescribeAuditCallbackListResult.h
|
||||
include/alibabacloud/green/model/DescribeAuditContentRequest.h
|
||||
include/alibabacloud/green/model/DescribeAuditContentResult.h
|
||||
include/alibabacloud/green/model/DescribeAuditContentItemRequest.h
|
||||
@@ -227,10 +231,6 @@ set(green_public_header_model
|
||||
include/alibabacloud/green/model/MarkOssResultResult.h
|
||||
include/alibabacloud/green/model/MarkWebsiteScanResultRequest.h
|
||||
include/alibabacloud/green/model/MarkWebsiteScanResultResult.h
|
||||
include/alibabacloud/green/model/PostAsyncScanRequest.h
|
||||
include/alibabacloud/green/model/PostAsyncScanResult.h
|
||||
include/alibabacloud/green/model/PostAsyncScanResultsRequest.h
|
||||
include/alibabacloud/green/model/PostAsyncScanResultsResult.h
|
||||
include/alibabacloud/green/model/RefundCdiBagRequest.h
|
||||
include/alibabacloud/green/model/RefundCdiBagResult.h
|
||||
include/alibabacloud/green/model/RefundCdiBaseBagRequest.h
|
||||
@@ -376,6 +376,8 @@ set(green_src
|
||||
src/model/AddVideoDnaGroupResult.cc
|
||||
src/model/CreatCustomOcrTemplateRequest.cc
|
||||
src/model/CreatCustomOcrTemplateResult.cc
|
||||
src/model/CreateAuditCallbackRequest.cc
|
||||
src/model/CreateAuditCallbackResult.cc
|
||||
src/model/CreateBizTypeRequest.cc
|
||||
src/model/CreateBizTypeResult.cc
|
||||
src/model/CreateCdiBagRequest.cc
|
||||
@@ -424,6 +426,8 @@ set(green_src
|
||||
src/model/DescribeAppInfoResult.cc
|
||||
src/model/DescribeAuditCallbackRequest.cc
|
||||
src/model/DescribeAuditCallbackResult.cc
|
||||
src/model/DescribeAuditCallbackListRequest.cc
|
||||
src/model/DescribeAuditCallbackListResult.cc
|
||||
src/model/DescribeAuditContentRequest.cc
|
||||
src/model/DescribeAuditContentResult.cc
|
||||
src/model/DescribeAuditContentItemRequest.cc
|
||||
@@ -566,10 +570,6 @@ set(green_src
|
||||
src/model/MarkOssResultResult.cc
|
||||
src/model/MarkWebsiteScanResultRequest.cc
|
||||
src/model/MarkWebsiteScanResultResult.cc
|
||||
src/model/PostAsyncScanRequest.cc
|
||||
src/model/PostAsyncScanResult.cc
|
||||
src/model/PostAsyncScanResultsRequest.cc
|
||||
src/model/PostAsyncScanResultsResult.cc
|
||||
src/model/RefundCdiBagRequest.cc
|
||||
src/model/RefundCdiBagResult.cc
|
||||
src/model/RefundCdiBaseBagRequest.cc
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
#include "model/AddVideoDnaGroupResult.h"
|
||||
#include "model/CreatCustomOcrTemplateRequest.h"
|
||||
#include "model/CreatCustomOcrTemplateResult.h"
|
||||
#include "model/CreateAuditCallbackRequest.h"
|
||||
#include "model/CreateAuditCallbackResult.h"
|
||||
#include "model/CreateBizTypeRequest.h"
|
||||
#include "model/CreateBizTypeResult.h"
|
||||
#include "model/CreateCdiBagRequest.h"
|
||||
@@ -86,6 +88,8 @@
|
||||
#include "model/DescribeAppInfoResult.h"
|
||||
#include "model/DescribeAuditCallbackRequest.h"
|
||||
#include "model/DescribeAuditCallbackResult.h"
|
||||
#include "model/DescribeAuditCallbackListRequest.h"
|
||||
#include "model/DescribeAuditCallbackListResult.h"
|
||||
#include "model/DescribeAuditContentRequest.h"
|
||||
#include "model/DescribeAuditContentResult.h"
|
||||
#include "model/DescribeAuditContentItemRequest.h"
|
||||
@@ -228,10 +232,6 @@
|
||||
#include "model/MarkOssResultResult.h"
|
||||
#include "model/MarkWebsiteScanResultRequest.h"
|
||||
#include "model/MarkWebsiteScanResultResult.h"
|
||||
#include "model/PostAsyncScanRequest.h"
|
||||
#include "model/PostAsyncScanResult.h"
|
||||
#include "model/PostAsyncScanResultsRequest.h"
|
||||
#include "model/PostAsyncScanResultsResult.h"
|
||||
#include "model/RefundCdiBagRequest.h"
|
||||
#include "model/RefundCdiBagResult.h"
|
||||
#include "model/RefundCdiBaseBagRequest.h"
|
||||
@@ -391,6 +391,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreatCustomOcrTemplateResult> CreatCustomOcrTemplateOutcome;
|
||||
typedef std::future<CreatCustomOcrTemplateOutcome> CreatCustomOcrTemplateOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::CreatCustomOcrTemplateRequest&, const CreatCustomOcrTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreatCustomOcrTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAuditCallbackResult> CreateAuditCallbackOutcome;
|
||||
typedef std::future<CreateAuditCallbackOutcome> CreateAuditCallbackOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::CreateAuditCallbackRequest&, const CreateAuditCallbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuditCallbackAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBizTypeResult> CreateBizTypeOutcome;
|
||||
typedef std::future<CreateBizTypeOutcome> CreateBizTypeOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::CreateBizTypeRequest&, const CreateBizTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBizTypeAsyncHandler;
|
||||
@@ -463,6 +466,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeAuditCallbackResult> DescribeAuditCallbackOutcome;
|
||||
typedef std::future<DescribeAuditCallbackOutcome> DescribeAuditCallbackOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::DescribeAuditCallbackRequest&, const DescribeAuditCallbackOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditCallbackAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuditCallbackListResult> DescribeAuditCallbackListOutcome;
|
||||
typedef std::future<DescribeAuditCallbackListOutcome> DescribeAuditCallbackListOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::DescribeAuditCallbackListRequest&, const DescribeAuditCallbackListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditCallbackListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAuditContentResult> DescribeAuditContentOutcome;
|
||||
typedef std::future<DescribeAuditContentOutcome> DescribeAuditContentOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::DescribeAuditContentRequest&, const DescribeAuditContentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditContentAsyncHandler;
|
||||
@@ -676,12 +682,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::MarkWebsiteScanResultResult> MarkWebsiteScanResultOutcome;
|
||||
typedef std::future<MarkWebsiteScanResultOutcome> MarkWebsiteScanResultOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::MarkWebsiteScanResultRequest&, const MarkWebsiteScanResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> MarkWebsiteScanResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::PostAsyncScanResult> PostAsyncScanOutcome;
|
||||
typedef std::future<PostAsyncScanOutcome> PostAsyncScanOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::PostAsyncScanRequest&, const PostAsyncScanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PostAsyncScanAsyncHandler;
|
||||
typedef Outcome<Error, Model::PostAsyncScanResultsResult> PostAsyncScanResultsOutcome;
|
||||
typedef std::future<PostAsyncScanResultsOutcome> PostAsyncScanResultsOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::PostAsyncScanResultsRequest&, const PostAsyncScanResultsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PostAsyncScanResultsAsyncHandler;
|
||||
typedef Outcome<Error, Model::RefundCdiBagResult> RefundCdiBagOutcome;
|
||||
typedef std::future<RefundCdiBagOutcome> RefundCdiBagOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::RefundCdiBagRequest&, const RefundCdiBagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefundCdiBagAsyncHandler;
|
||||
@@ -900,6 +900,9 @@ namespace AlibabaCloud
|
||||
CreatCustomOcrTemplateOutcome creatCustomOcrTemplate(const Model::CreatCustomOcrTemplateRequest &request)const;
|
||||
void creatCustomOcrTemplateAsync(const Model::CreatCustomOcrTemplateRequest& request, const CreatCustomOcrTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreatCustomOcrTemplateOutcomeCallable creatCustomOcrTemplateCallable(const Model::CreatCustomOcrTemplateRequest& request) const;
|
||||
CreateAuditCallbackOutcome createAuditCallback(const Model::CreateAuditCallbackRequest &request)const;
|
||||
void createAuditCallbackAsync(const Model::CreateAuditCallbackRequest& request, const CreateAuditCallbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuditCallbackOutcomeCallable createAuditCallbackCallable(const Model::CreateAuditCallbackRequest& request) const;
|
||||
CreateBizTypeOutcome createBizType(const Model::CreateBizTypeRequest &request)const;
|
||||
void createBizTypeAsync(const Model::CreateBizTypeRequest& request, const CreateBizTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBizTypeOutcomeCallable createBizTypeCallable(const Model::CreateBizTypeRequest& request) const;
|
||||
@@ -972,6 +975,9 @@ namespace AlibabaCloud
|
||||
DescribeAuditCallbackOutcome describeAuditCallback(const Model::DescribeAuditCallbackRequest &request)const;
|
||||
void describeAuditCallbackAsync(const Model::DescribeAuditCallbackRequest& request, const DescribeAuditCallbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditCallbackOutcomeCallable describeAuditCallbackCallable(const Model::DescribeAuditCallbackRequest& request) const;
|
||||
DescribeAuditCallbackListOutcome describeAuditCallbackList(const Model::DescribeAuditCallbackListRequest &request)const;
|
||||
void describeAuditCallbackListAsync(const Model::DescribeAuditCallbackListRequest& request, const DescribeAuditCallbackListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditCallbackListOutcomeCallable describeAuditCallbackListCallable(const Model::DescribeAuditCallbackListRequest& request) const;
|
||||
DescribeAuditContentOutcome describeAuditContent(const Model::DescribeAuditContentRequest &request)const;
|
||||
void describeAuditContentAsync(const Model::DescribeAuditContentRequest& request, const DescribeAuditContentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditContentOutcomeCallable describeAuditContentCallable(const Model::DescribeAuditContentRequest& request) const;
|
||||
@@ -1185,12 +1191,6 @@ namespace AlibabaCloud
|
||||
MarkWebsiteScanResultOutcome markWebsiteScanResult(const Model::MarkWebsiteScanResultRequest &request)const;
|
||||
void markWebsiteScanResultAsync(const Model::MarkWebsiteScanResultRequest& request, const MarkWebsiteScanResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
MarkWebsiteScanResultOutcomeCallable markWebsiteScanResultCallable(const Model::MarkWebsiteScanResultRequest& request) const;
|
||||
PostAsyncScanOutcome postAsyncScan(const Model::PostAsyncScanRequest &request)const;
|
||||
void postAsyncScanAsync(const Model::PostAsyncScanRequest& request, const PostAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PostAsyncScanOutcomeCallable postAsyncScanCallable(const Model::PostAsyncScanRequest& request) const;
|
||||
PostAsyncScanResultsOutcome postAsyncScanResults(const Model::PostAsyncScanResultsRequest &request)const;
|
||||
void postAsyncScanResultsAsync(const Model::PostAsyncScanResultsRequest& request, const PostAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PostAsyncScanResultsOutcomeCallable postAsyncScanResultsCallable(const Model::PostAsyncScanResultsRequest& request) const;
|
||||
RefundCdiBagOutcome refundCdiBag(const Model::RefundCdiBagRequest &request)const;
|
||||
void refundCdiBagAsync(const Model::RefundCdiBagRequest& request, const RefundCdiBagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RefundCdiBagOutcomeCallable refundCdiBagCallable(const Model::RefundCdiBagRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_CREATEAUDITCALLBACKREQUEST_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKREQUEST_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 CreateAuditCallbackRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAuditCallbackRequest();
|
||||
~CreateAuditCallbackRequest();
|
||||
|
||||
std::string getCallbackTypes()const;
|
||||
void setCallbackTypes(const std::string& callbackTypes);
|
||||
std::string getCallbackSuggestions()const;
|
||||
void setCallbackSuggestions(const std::string& callbackSuggestions);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getCryptType()const;
|
||||
void setCryptType(const std::string& cryptType);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string callbackTypes_;
|
||||
std::string callbackSuggestions_;
|
||||
std::string url_;
|
||||
std::string cryptType_;
|
||||
std::string sourceIp_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_CREATEAUDITCALLBACKRESULT_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKRESULT_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 CreateAuditCallbackResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAuditCallbackResult();
|
||||
explicit CreateAuditCallbackResult(const std::string &payload);
|
||||
~CreateAuditCallbackResult();
|
||||
std::string getCryptType()const;
|
||||
std::string getModifiedTime()const;
|
||||
std::string getSeed()const;
|
||||
std::string getCreateTime()const;
|
||||
std::vector<std::string> getCallbackTypes()const;
|
||||
long getId()const;
|
||||
std::vector<std::string> getCallbackSuggestions()const;
|
||||
std::string getUrl()const;
|
||||
std::string getName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string cryptType_;
|
||||
std::string modifiedTime_;
|
||||
std::string seed_;
|
||||
std::string createTime_;
|
||||
std::vector<std::string> callbackTypes_;
|
||||
long id_;
|
||||
std::vector<std::string> callbackSuggestions_;
|
||||
std::string url_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_CREATEAUDITCALLBACKRESULT_H_
|
||||
@@ -14,12 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANREQUEST_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/green/GreenExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -28,21 +28,21 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_GREEN_EXPORT PostAsyncScanRequest : public RoaServiceRequest
|
||||
class ALIBABACLOUD_GREEN_EXPORT DescribeAuditCallbackListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PostAsyncScanRequest();
|
||||
~PostAsyncScanRequest();
|
||||
DescribeAuditCallbackListRequest();
|
||||
~DescribeAuditCallbackListRequest();
|
||||
|
||||
std::string getClientInfo()const;
|
||||
void setClientInfo(const std::string& clientInfo);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
|
||||
private:
|
||||
std::string clientInfo_;
|
||||
std::string sourceIp_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULT_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULT_H_
|
||||
#ifndef ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTRESULT_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,21 +29,37 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_GREEN_EXPORT PostAsyncScanResult : public ServiceResult
|
||||
class ALIBABACLOUD_GREEN_EXPORT DescribeAuditCallbackListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Callback
|
||||
{
|
||||
std::string cryptType;
|
||||
std::string modifiedTime;
|
||||
std::string seed;
|
||||
std::string createTime;
|
||||
std::vector<std::string> callbackTypes;
|
||||
long id;
|
||||
std::string url;
|
||||
std::vector<std::string> callbackSuggestions;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
PostAsyncScanResult();
|
||||
explicit PostAsyncScanResult(const std::string &payload);
|
||||
~PostAsyncScanResult();
|
||||
DescribeAuditCallbackListResult();
|
||||
explicit DescribeAuditCallbackListResult(const std::string &payload);
|
||||
~DescribeAuditCallbackListResult();
|
||||
int getTotalCount()const;
|
||||
std::vector<Callback> getCallbackList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
std::vector<Callback> callbackList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULT_H_
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEAUDITCALLBACKLISTRESULT_H_
|
||||
@@ -1,48 +0,0 @@
|
||||
/*
|
||||
* 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_POSTASYNCSCANRESULTSREQUEST_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULTSREQUEST_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 PostAsyncScanResultsRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PostAsyncScanResultsRequest();
|
||||
~PostAsyncScanResultsRequest();
|
||||
|
||||
std::string getClientInfo()const;
|
||||
void setClientInfo(const std::string& clientInfo);
|
||||
|
||||
private:
|
||||
std::string clientInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULTSREQUEST_H_
|
||||
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* 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_POSTASYNCSCANRESULTSRESULT_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULTSRESULT_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 PostAsyncScanResultsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PostAsyncScanResultsResult();
|
||||
explicit PostAsyncScanResultsResult(const std::string &payload);
|
||||
~PostAsyncScanResultsResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_POSTASYNCSCANRESULTSRESULT_H_
|
||||
@@ -339,6 +339,42 @@ GreenClient::CreatCustomOcrTemplateOutcomeCallable GreenClient::creatCustomOcrTe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::CreateAuditCallbackOutcome GreenClient::createAuditCallback(const CreateAuditCallbackRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAuditCallbackOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAuditCallbackOutcome(CreateAuditCallbackResult(outcome.result()));
|
||||
else
|
||||
return CreateAuditCallbackOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void GreenClient::createAuditCallbackAsync(const CreateAuditCallbackRequest& request, const CreateAuditCallbackAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAuditCallback(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
GreenClient::CreateAuditCallbackOutcomeCallable GreenClient::createAuditCallbackCallable(const CreateAuditCallbackRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAuditCallbackOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAuditCallback(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::CreateBizTypeOutcome GreenClient::createBizType(const CreateBizTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1203,6 +1239,42 @@ GreenClient::DescribeAuditCallbackOutcomeCallable GreenClient::describeAuditCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::DescribeAuditCallbackListOutcome GreenClient::describeAuditCallbackList(const DescribeAuditCallbackListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAuditCallbackListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAuditCallbackListOutcome(DescribeAuditCallbackListResult(outcome.result()));
|
||||
else
|
||||
return DescribeAuditCallbackListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void GreenClient::describeAuditCallbackListAsync(const DescribeAuditCallbackListRequest& request, const DescribeAuditCallbackListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAuditCallbackList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
GreenClient::DescribeAuditCallbackListOutcomeCallable GreenClient::describeAuditCallbackListCallable(const DescribeAuditCallbackListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAuditCallbackListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAuditCallbackList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::DescribeAuditContentOutcome GreenClient::describeAuditContent(const DescribeAuditContentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3759,78 +3831,6 @@ GreenClient::MarkWebsiteScanResultOutcomeCallable GreenClient::markWebsiteScanRe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::PostAsyncScanOutcome GreenClient::postAsyncScan(const PostAsyncScanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PostAsyncScanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PostAsyncScanOutcome(PostAsyncScanResult(outcome.result()));
|
||||
else
|
||||
return PostAsyncScanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void GreenClient::postAsyncScanAsync(const PostAsyncScanRequest& request, const PostAsyncScanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, postAsyncScan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
GreenClient::PostAsyncScanOutcomeCallable GreenClient::postAsyncScanCallable(const PostAsyncScanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PostAsyncScanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->postAsyncScan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::PostAsyncScanResultsOutcome GreenClient::postAsyncScanResults(const PostAsyncScanResultsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PostAsyncScanResultsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PostAsyncScanResultsOutcome(PostAsyncScanResultsResult(outcome.result()));
|
||||
else
|
||||
return PostAsyncScanResultsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void GreenClient::postAsyncScanResultsAsync(const PostAsyncScanResultsRequest& request, const PostAsyncScanResultsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, postAsyncScanResults(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
GreenClient::PostAsyncScanResultsOutcomeCallable GreenClient::postAsyncScanResultsCallable(const PostAsyncScanResultsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PostAsyncScanResultsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->postAsyncScanResults(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::RefundCdiBagOutcome GreenClient::refundCdiBag(const RefundCdiBagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
95
green/src/model/CreateAuditCallbackRequest.cc
Normal file
95
green/src/model/CreateAuditCallbackRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/CreateAuditCallbackRequest.h>
|
||||
|
||||
using AlibabaCloud::Green::Model::CreateAuditCallbackRequest;
|
||||
|
||||
CreateAuditCallbackRequest::CreateAuditCallbackRequest() :
|
||||
RpcServiceRequest("green", "2017-08-23", "CreateAuditCallback")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAuditCallbackRequest::~CreateAuditCallbackRequest()
|
||||
{}
|
||||
|
||||
std::string CreateAuditCallbackRequest::getCallbackTypes()const
|
||||
{
|
||||
return callbackTypes_;
|
||||
}
|
||||
|
||||
void CreateAuditCallbackRequest::setCallbackTypes(const std::string& callbackTypes)
|
||||
{
|
||||
callbackTypes_ = callbackTypes;
|
||||
setParameter("CallbackTypes", callbackTypes);
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackRequest::getCallbackSuggestions()const
|
||||
{
|
||||
return callbackSuggestions_;
|
||||
}
|
||||
|
||||
void CreateAuditCallbackRequest::setCallbackSuggestions(const std::string& callbackSuggestions)
|
||||
{
|
||||
callbackSuggestions_ = callbackSuggestions;
|
||||
setParameter("CallbackSuggestions", callbackSuggestions);
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void CreateAuditCallbackRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackRequest::getCryptType()const
|
||||
{
|
||||
return cryptType_;
|
||||
}
|
||||
|
||||
void CreateAuditCallbackRequest::setCryptType(const std::string& cryptType)
|
||||
{
|
||||
cryptType_ = cryptType;
|
||||
setParameter("CryptType", cryptType);
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateAuditCallbackRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateAuditCallbackRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
109
green/src/model/CreateAuditCallbackResult.cc
Normal file
109
green/src/model/CreateAuditCallbackResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/CreateAuditCallbackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Green;
|
||||
using namespace AlibabaCloud::Green::Model;
|
||||
|
||||
CreateAuditCallbackResult::CreateAuditCallbackResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAuditCallbackResult::CreateAuditCallbackResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAuditCallbackResult::~CreateAuditCallbackResult()
|
||||
{}
|
||||
|
||||
void CreateAuditCallbackResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCallbackTypes = value["CallbackTypes"]["CallbackType"];
|
||||
for (const auto &item : allCallbackTypes)
|
||||
callbackTypes_.push_back(item.asString());
|
||||
auto allCallbackSuggestions = value["CallbackSuggestions"]["CallbackSuggestion"];
|
||||
for (const auto &item : allCallbackSuggestions)
|
||||
callbackSuggestions_.push_back(item.asString());
|
||||
if(!value["Id"].isNull())
|
||||
id_ = std::stol(value["Id"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
name_ = value["Name"].asString();
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
if(!value["Seed"].isNull())
|
||||
seed_ = value["Seed"].asString();
|
||||
if(!value["CryptType"].isNull())
|
||||
cryptType_ = value["CryptType"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
modifiedTime_ = value["ModifiedTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackResult::getCryptType()const
|
||||
{
|
||||
return cryptType_;
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackResult::getModifiedTime()const
|
||||
{
|
||||
return modifiedTime_;
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackResult::getSeed()const
|
||||
{
|
||||
return seed_;
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateAuditCallbackResult::getCallbackTypes()const
|
||||
{
|
||||
return callbackTypes_;
|
||||
}
|
||||
|
||||
long CreateAuditCallbackResult::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateAuditCallbackResult::getCallbackSuggestions()const
|
||||
{
|
||||
return callbackSuggestions_;
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
std::string CreateAuditCallbackResult::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
@@ -14,28 +14,27 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/green/model/PostAsyncScanResultsRequest.h>
|
||||
#include <alibabacloud/green/model/DescribeAuditCallbackListRequest.h>
|
||||
|
||||
using AlibabaCloud::Green::Model::PostAsyncScanResultsRequest;
|
||||
using AlibabaCloud::Green::Model::DescribeAuditCallbackListRequest;
|
||||
|
||||
PostAsyncScanResultsRequest::PostAsyncScanResultsRequest() :
|
||||
RoaServiceRequest("green", "2018-05-09")
|
||||
DescribeAuditCallbackListRequest::DescribeAuditCallbackListRequest() :
|
||||
RpcServiceRequest("green", "2017-08-23", "DescribeAuditCallbackList")
|
||||
{
|
||||
setResourcePath("/green/post/results");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PostAsyncScanResultsRequest::~PostAsyncScanResultsRequest()
|
||||
DescribeAuditCallbackListRequest::~DescribeAuditCallbackListRequest()
|
||||
{}
|
||||
|
||||
std::string PostAsyncScanResultsRequest::getClientInfo()const
|
||||
std::string DescribeAuditCallbackListRequest::getSourceIp()const
|
||||
{
|
||||
return clientInfo_;
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void PostAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
|
||||
void DescribeAuditCallbackListRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
clientInfo_ = clientInfo;
|
||||
setParameter("ClientInfo", clientInfo);
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
82
green/src/model/DescribeAuditCallbackListResult.cc
Normal file
82
green/src/model/DescribeAuditCallbackListResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/DescribeAuditCallbackListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Green;
|
||||
using namespace AlibabaCloud::Green::Model;
|
||||
|
||||
DescribeAuditCallbackListResult::DescribeAuditCallbackListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAuditCallbackListResult::DescribeAuditCallbackListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAuditCallbackListResult::~DescribeAuditCallbackListResult()
|
||||
{}
|
||||
|
||||
void DescribeAuditCallbackListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCallbackListNode = value["CallbackList"]["Callback"];
|
||||
for (auto valueCallbackListCallback : allCallbackListNode)
|
||||
{
|
||||
Callback callbackListObject;
|
||||
if(!valueCallbackListCallback["Id"].isNull())
|
||||
callbackListObject.id = std::stol(valueCallbackListCallback["Id"].asString());
|
||||
if(!valueCallbackListCallback["Name"].isNull())
|
||||
callbackListObject.name = valueCallbackListCallback["Name"].asString();
|
||||
if(!valueCallbackListCallback["Url"].isNull())
|
||||
callbackListObject.url = valueCallbackListCallback["Url"].asString();
|
||||
if(!valueCallbackListCallback["Seed"].isNull())
|
||||
callbackListObject.seed = valueCallbackListCallback["Seed"].asString();
|
||||
if(!valueCallbackListCallback["CryptType"].isNull())
|
||||
callbackListObject.cryptType = valueCallbackListCallback["CryptType"].asString();
|
||||
if(!valueCallbackListCallback["CreateTime"].isNull())
|
||||
callbackListObject.createTime = valueCallbackListCallback["CreateTime"].asString();
|
||||
if(!valueCallbackListCallback["ModifiedTime"].isNull())
|
||||
callbackListObject.modifiedTime = valueCallbackListCallback["ModifiedTime"].asString();
|
||||
auto allCallbackTypes = value["CallbackTypes"]["CallbackType"];
|
||||
for (auto value : allCallbackTypes)
|
||||
callbackListObject.callbackTypes.push_back(value.asString());
|
||||
auto allCallbackSuggestions = value["CallbackSuggestions"]["CallbackSuggestion"];
|
||||
for (auto value : allCallbackSuggestions)
|
||||
callbackListObject.callbackSuggestions.push_back(value.asString());
|
||||
callbackList_.push_back(callbackListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeAuditCallbackListResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAuditCallbackListResult::Callback> DescribeAuditCallbackListResult::getCallbackList()const
|
||||
{
|
||||
return callbackList_;
|
||||
}
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
/*
|
||||
* 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/PostAsyncScanRequest.h>
|
||||
|
||||
using AlibabaCloud::Green::Model::PostAsyncScanRequest;
|
||||
|
||||
PostAsyncScanRequest::PostAsyncScanRequest() :
|
||||
RoaServiceRequest("green", "2018-05-09")
|
||||
{
|
||||
setResourcePath("/green/post/asyncscan");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PostAsyncScanRequest::~PostAsyncScanRequest()
|
||||
{}
|
||||
|
||||
std::string PostAsyncScanRequest::getClientInfo()const
|
||||
{
|
||||
return clientInfo_;
|
||||
}
|
||||
|
||||
void PostAsyncScanRequest::setClientInfo(const std::string& clientInfo)
|
||||
{
|
||||
clientInfo_ = clientInfo;
|
||||
setParameter("ClientInfo", clientInfo);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/PostAsyncScanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Green;
|
||||
using namespace AlibabaCloud::Green::Model;
|
||||
|
||||
PostAsyncScanResult::PostAsyncScanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PostAsyncScanResult::PostAsyncScanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PostAsyncScanResult::~PostAsyncScanResult()
|
||||
{}
|
||||
|
||||
void PostAsyncScanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* 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/PostAsyncScanResultsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Green;
|
||||
using namespace AlibabaCloud::Green::Model;
|
||||
|
||||
PostAsyncScanResultsResult::PostAsyncScanResultsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PostAsyncScanResultsResult::PostAsyncScanResultsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PostAsyncScanResultsResult::~PostAsyncScanResultsResult()
|
||||
{}
|
||||
|
||||
void PostAsyncScanResultsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user