Delete MultiMedia Post Scan API.

This commit is contained in:
sdk-team
2021-04-14 08:55:31 +00:00
parent 8a1b4cb025
commit f9eb4e30b8
18 changed files with 559 additions and 351 deletions

View 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);
}

View 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_;
}

View File

@@ -14,28 +14,27 @@
* limitations under the License.
*/
#include <alibabacloud/green/model/PostAsyncScanRequest.h>
#include <alibabacloud/green/model/DescribeAuditCallbackListRequest.h>
using AlibabaCloud::Green::Model::PostAsyncScanRequest;
using AlibabaCloud::Green::Model::DescribeAuditCallbackListRequest;
PostAsyncScanRequest::PostAsyncScanRequest() :
RoaServiceRequest("green", "2018-05-09")
DescribeAuditCallbackListRequest::DescribeAuditCallbackListRequest() :
RpcServiceRequest("green", "2017-08-23", "DescribeAuditCallbackList")
{
setResourcePath("/green/post/asyncscan");
setMethod(HttpRequest::Method::Post);
}
PostAsyncScanRequest::~PostAsyncScanRequest()
DescribeAuditCallbackListRequest::~DescribeAuditCallbackListRequest()
{}
std::string PostAsyncScanRequest::getClientInfo()const
std::string DescribeAuditCallbackListRequest::getSourceIp()const
{
return clientInfo_;
return sourceIp_;
}
void PostAsyncScanRequest::setClientInfo(const std::string& clientInfo)
void DescribeAuditCallbackListRequest::setSourceIp(const std::string& sourceIp)
{
clientInfo_ = clientInfo;
setParameter("ClientInfo", clientInfo);
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View 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_;
}

View File

@@ -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());
}

View File

@@ -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/PostAsyncScanResultsRequest.h>
using AlibabaCloud::Green::Model::PostAsyncScanResultsRequest;
PostAsyncScanResultsRequest::PostAsyncScanResultsRequest() :
RoaServiceRequest("green", "2018-05-09")
{
setResourcePath("/green/post/results");
setMethod(HttpRequest::Method::Post);
}
PostAsyncScanResultsRequest::~PostAsyncScanResultsRequest()
{}
std::string PostAsyncScanResultsRequest::getClientInfo()const
{
return clientInfo_;
}
void PostAsyncScanResultsRequest::setClientInfo(const std::string& clientInfo)
{
clientInfo_ = clientInfo;
setParameter("ClientInfo", clientInfo);
}

View File

@@ -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());
}