Fix Some API Response Define.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
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.
|
||||
|
||||
|
||||
@@ -93,12 +93,8 @@ set(green_public_header_model
|
||||
include/alibabacloud/green/model/DescribeAuditRangeResult.h
|
||||
include/alibabacloud/green/model/DescribeAuditSettingRequest.h
|
||||
include/alibabacloud/green/model/DescribeAuditSettingResult.h
|
||||
include/alibabacloud/green/model/DescribeBizTypeImageLibRequest.h
|
||||
include/alibabacloud/green/model/DescribeBizTypeImageLibResult.h
|
||||
include/alibabacloud/green/model/DescribeBizTypeSettingRequest.h
|
||||
include/alibabacloud/green/model/DescribeBizTypeSettingResult.h
|
||||
include/alibabacloud/green/model/DescribeBizTypeTextLibRequest.h
|
||||
include/alibabacloud/green/model/DescribeBizTypeTextLibResult.h
|
||||
include/alibabacloud/green/model/DescribeBizTypesRequest.h
|
||||
include/alibabacloud/green/model/DescribeBizTypesResult.h
|
||||
include/alibabacloud/green/model/DescribeCustomOcrTemplateRequest.h
|
||||
@@ -388,12 +384,8 @@ set(green_src
|
||||
src/model/DescribeAuditRangeResult.cc
|
||||
src/model/DescribeAuditSettingRequest.cc
|
||||
src/model/DescribeAuditSettingResult.cc
|
||||
src/model/DescribeBizTypeImageLibRequest.cc
|
||||
src/model/DescribeBizTypeImageLibResult.cc
|
||||
src/model/DescribeBizTypeSettingRequest.cc
|
||||
src/model/DescribeBizTypeSettingResult.cc
|
||||
src/model/DescribeBizTypeTextLibRequest.cc
|
||||
src/model/DescribeBizTypeTextLibResult.cc
|
||||
src/model/DescribeBizTypesRequest.cc
|
||||
src/model/DescribeBizTypesResult.cc
|
||||
src/model/DescribeCustomOcrTemplateRequest.cc
|
||||
|
||||
@@ -94,12 +94,8 @@
|
||||
#include "model/DescribeAuditRangeResult.h"
|
||||
#include "model/DescribeAuditSettingRequest.h"
|
||||
#include "model/DescribeAuditSettingResult.h"
|
||||
#include "model/DescribeBizTypeImageLibRequest.h"
|
||||
#include "model/DescribeBizTypeImageLibResult.h"
|
||||
#include "model/DescribeBizTypeSettingRequest.h"
|
||||
#include "model/DescribeBizTypeSettingResult.h"
|
||||
#include "model/DescribeBizTypeTextLibRequest.h"
|
||||
#include "model/DescribeBizTypeTextLibResult.h"
|
||||
#include "model/DescribeBizTypesRequest.h"
|
||||
#include "model/DescribeBizTypesResult.h"
|
||||
#include "model/DescribeCustomOcrTemplateRequest.h"
|
||||
@@ -431,15 +427,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeAuditSettingResult> DescribeAuditSettingOutcome;
|
||||
typedef std::future<DescribeAuditSettingOutcome> DescribeAuditSettingOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::DescribeAuditSettingRequest&, const DescribeAuditSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAuditSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBizTypeImageLibResult> DescribeBizTypeImageLibOutcome;
|
||||
typedef std::future<DescribeBizTypeImageLibOutcome> DescribeBizTypeImageLibOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::DescribeBizTypeImageLibRequest&, const DescribeBizTypeImageLibOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBizTypeImageLibAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBizTypeSettingResult> DescribeBizTypeSettingOutcome;
|
||||
typedef std::future<DescribeBizTypeSettingOutcome> DescribeBizTypeSettingOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::DescribeBizTypeSettingRequest&, const DescribeBizTypeSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBizTypeSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBizTypeTextLibResult> DescribeBizTypeTextLibOutcome;
|
||||
typedef std::future<DescribeBizTypeTextLibOutcome> DescribeBizTypeTextLibOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::DescribeBizTypeTextLibRequest&, const DescribeBizTypeTextLibOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBizTypeTextLibAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeBizTypesResult> DescribeBizTypesOutcome;
|
||||
typedef std::future<DescribeBizTypesOutcome> DescribeBizTypesOutcomeCallable;
|
||||
typedef std::function<void(const GreenClient*, const Model::DescribeBizTypesRequest&, const DescribeBizTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeBizTypesAsyncHandler;
|
||||
@@ -874,15 +864,9 @@ namespace AlibabaCloud
|
||||
DescribeAuditSettingOutcome describeAuditSetting(const Model::DescribeAuditSettingRequest &request)const;
|
||||
void describeAuditSettingAsync(const Model::DescribeAuditSettingRequest& request, const DescribeAuditSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAuditSettingOutcomeCallable describeAuditSettingCallable(const Model::DescribeAuditSettingRequest& request) const;
|
||||
DescribeBizTypeImageLibOutcome describeBizTypeImageLib(const Model::DescribeBizTypeImageLibRequest &request)const;
|
||||
void describeBizTypeImageLibAsync(const Model::DescribeBizTypeImageLibRequest& request, const DescribeBizTypeImageLibAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBizTypeImageLibOutcomeCallable describeBizTypeImageLibCallable(const Model::DescribeBizTypeImageLibRequest& request) const;
|
||||
DescribeBizTypeSettingOutcome describeBizTypeSetting(const Model::DescribeBizTypeSettingRequest &request)const;
|
||||
void describeBizTypeSettingAsync(const Model::DescribeBizTypeSettingRequest& request, const DescribeBizTypeSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBizTypeSettingOutcomeCallable describeBizTypeSettingCallable(const Model::DescribeBizTypeSettingRequest& request) const;
|
||||
DescribeBizTypeTextLibOutcome describeBizTypeTextLib(const Model::DescribeBizTypeTextLibRequest &request)const;
|
||||
void describeBizTypeTextLibAsync(const Model::DescribeBizTypeTextLibRequest& request, const DescribeBizTypeTextLibAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBizTypeTextLibOutcomeCallable describeBizTypeTextLibCallable(const Model::DescribeBizTypeTextLibRequest& request) const;
|
||||
DescribeBizTypesOutcome describeBizTypes(const Model::DescribeBizTypesRequest &request)const;
|
||||
void describeBizTypesAsync(const Model::DescribeBizTypesRequest& request, const DescribeBizTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeBizTypesOutcomeCallable describeBizTypesCallable(const Model::DescribeBizTypesRequest& request) const;
|
||||
|
||||
@@ -1,57 +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_DESCRIBEBIZTYPEIMAGELIBREQUEST_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBREQUEST_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 DescribeBizTypeImageLibRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBizTypeImageLibRequest();
|
||||
~DescribeBizTypeImageLibRequest();
|
||||
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getBizTypeName()const;
|
||||
void setBizTypeName(const std::string& bizTypeName);
|
||||
|
||||
private:
|
||||
std::string resourceType_;
|
||||
std::string scene_;
|
||||
std::string sourceIp_;
|
||||
std::string bizTypeName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBREQUEST_H_
|
||||
@@ -1,95 +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_DESCRIBEBIZTYPEIMAGELIBRESULT_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBRESULT_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 DescribeBizTypeImageLibResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Black
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<Item> all;
|
||||
std::vector<Item> selected;
|
||||
};
|
||||
struct Review
|
||||
{
|
||||
struct Item3
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
struct Item
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<Item3> selected1;
|
||||
std::vector<Item> all2;
|
||||
};
|
||||
struct White
|
||||
{
|
||||
struct Item6
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
struct Item
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<Item6> selected4;
|
||||
std::vector<Item> all5;
|
||||
};
|
||||
|
||||
|
||||
DescribeBizTypeImageLibResult();
|
||||
explicit DescribeBizTypeImageLibResult(const std::string &payload);
|
||||
~DescribeBizTypeImageLibResult();
|
||||
White getWhite()const;
|
||||
Black getBlack()const;
|
||||
Review getReview()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
White white_;
|
||||
Black black_;
|
||||
Review review_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPEIMAGELIBRESULT_H_
|
||||
@@ -1,57 +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_DESCRIBEBIZTYPETEXTLIBREQUEST_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBREQUEST_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 DescribeBizTypeTextLibRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeBizTypeTextLibRequest();
|
||||
~DescribeBizTypeTextLibRequest();
|
||||
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getBizTypeName()const;
|
||||
void setBizTypeName(const std::string& bizTypeName);
|
||||
|
||||
private:
|
||||
std::string resourceType_;
|
||||
std::string scene_;
|
||||
std::string sourceIp_;
|
||||
std::string bizTypeName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBREQUEST_H_
|
||||
@@ -1,112 +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_DESCRIBEBIZTYPETEXTLIBRESULT_H_
|
||||
#define ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBRESULT_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 DescribeBizTypeTextLibResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Black
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<Item> all;
|
||||
std::vector<Item> selected;
|
||||
};
|
||||
struct Review
|
||||
{
|
||||
struct Item3
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
struct Item
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<Item3> selected1;
|
||||
std::vector<Item> all2;
|
||||
};
|
||||
struct Ignore
|
||||
{
|
||||
struct Item6
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
struct Item
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<Item6> selected4;
|
||||
std::vector<Item> all5;
|
||||
};
|
||||
struct White
|
||||
{
|
||||
struct Item9
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
struct Item
|
||||
{
|
||||
std::string code;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<Item9> selected7;
|
||||
std::vector<Item> all8;
|
||||
};
|
||||
|
||||
|
||||
DescribeBizTypeTextLibResult();
|
||||
explicit DescribeBizTypeTextLibResult(const std::string &payload);
|
||||
~DescribeBizTypeTextLibResult();
|
||||
Ignore getIgnore()const;
|
||||
White getWhite()const;
|
||||
Black getBlack()const;
|
||||
Review getReview()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Ignore ignore_;
|
||||
White white_;
|
||||
Black black_;
|
||||
Review review_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_GREEN_MODEL_DESCRIBEBIZTYPETEXTLIBRESULT_H_
|
||||
@@ -1347,42 +1347,6 @@ GreenClient::DescribeAuditSettingOutcomeCallable GreenClient::describeAuditSetti
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::DescribeBizTypeImageLibOutcome GreenClient::describeBizTypeImageLib(const DescribeBizTypeImageLibRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBizTypeImageLibOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBizTypeImageLibOutcome(DescribeBizTypeImageLibResult(outcome.result()));
|
||||
else
|
||||
return DescribeBizTypeImageLibOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void GreenClient::describeBizTypeImageLibAsync(const DescribeBizTypeImageLibRequest& request, const DescribeBizTypeImageLibAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBizTypeImageLib(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
GreenClient::DescribeBizTypeImageLibOutcomeCallable GreenClient::describeBizTypeImageLibCallable(const DescribeBizTypeImageLibRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBizTypeImageLibOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBizTypeImageLib(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::DescribeBizTypeSettingOutcome GreenClient::describeBizTypeSetting(const DescribeBizTypeSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,42 +1383,6 @@ GreenClient::DescribeBizTypeSettingOutcomeCallable GreenClient::describeBizTypeS
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::DescribeBizTypeTextLibOutcome GreenClient::describeBizTypeTextLib(const DescribeBizTypeTextLibRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBizTypeTextLibOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBizTypeTextLibOutcome(DescribeBizTypeTextLibResult(outcome.result()));
|
||||
else
|
||||
return DescribeBizTypeTextLibOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void GreenClient::describeBizTypeTextLibAsync(const DescribeBizTypeTextLibRequest& request, const DescribeBizTypeTextLibAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBizTypeTextLib(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
GreenClient::DescribeBizTypeTextLibOutcomeCallable GreenClient::describeBizTypeTextLibCallable(const DescribeBizTypeTextLibRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBizTypeTextLibOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBizTypeTextLib(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
GreenClient::DescribeBizTypesOutcome GreenClient::describeBizTypes(const DescribeBizTypesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,73 +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/DescribeBizTypeImageLibRequest.h>
|
||||
|
||||
using AlibabaCloud::Green::Model::DescribeBizTypeImageLibRequest;
|
||||
|
||||
DescribeBizTypeImageLibRequest::DescribeBizTypeImageLibRequest() :
|
||||
RpcServiceRequest("green", "2017-08-23", "DescribeBizTypeImageLib")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBizTypeImageLibRequest::~DescribeBizTypeImageLibRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBizTypeImageLibRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeBizTypeImageLibRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string DescribeBizTypeImageLibRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
}
|
||||
|
||||
void DescribeBizTypeImageLibRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string DescribeBizTypeImageLibRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeBizTypeImageLibRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeBizTypeImageLibRequest::getBizTypeName()const
|
||||
{
|
||||
return bizTypeName_;
|
||||
}
|
||||
|
||||
void DescribeBizTypeImageLibRequest::setBizTypeName(const std::string& bizTypeName)
|
||||
{
|
||||
bizTypeName_ = bizTypeName;
|
||||
setParameter("BizTypeName", bizTypeName);
|
||||
}
|
||||
|
||||
@@ -1,122 +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/DescribeBizTypeImageLibResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Green;
|
||||
using namespace AlibabaCloud::Green::Model;
|
||||
|
||||
DescribeBizTypeImageLibResult::DescribeBizTypeImageLibResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBizTypeImageLibResult::DescribeBizTypeImageLibResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBizTypeImageLibResult::~DescribeBizTypeImageLibResult()
|
||||
{}
|
||||
|
||||
void DescribeBizTypeImageLibResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto blackNode = value["Black"];
|
||||
auto allSelectedNode = blackNode["Selected"]["item"];
|
||||
for (auto blackNodeSelecteditem : allSelectedNode)
|
||||
{
|
||||
Black::Item itemObject;
|
||||
if(!blackNodeSelecteditem["Name"].isNull())
|
||||
itemObject.name = blackNodeSelecteditem["Name"].asString();
|
||||
if(!blackNodeSelecteditem["Code"].isNull())
|
||||
itemObject.code = blackNodeSelecteditem["Code"].asString();
|
||||
black_.selected.push_back(itemObject);
|
||||
}
|
||||
auto allAllNode = blackNode["All"]["item"];
|
||||
for (auto blackNodeAllitem : allAllNode)
|
||||
{
|
||||
Black::Item itemObject;
|
||||
if(!blackNodeAllitem["Name"].isNull())
|
||||
itemObject.name = blackNodeAllitem["Name"].asString();
|
||||
if(!blackNodeAllitem["Code"].isNull())
|
||||
itemObject.code = blackNodeAllitem["Code"].asString();
|
||||
black_.all.push_back(itemObject);
|
||||
}
|
||||
auto reviewNode = value["Review"];
|
||||
auto allSelected1Node = reviewNode["Selected"]["item"];
|
||||
for (auto reviewNodeSelecteditem : allSelected1Node)
|
||||
{
|
||||
Review::Item3 item3Object;
|
||||
if(!reviewNodeSelecteditem["Name"].isNull())
|
||||
item3Object.name = reviewNodeSelecteditem["Name"].asString();
|
||||
if(!reviewNodeSelecteditem["Code"].isNull())
|
||||
item3Object.code = reviewNodeSelecteditem["Code"].asString();
|
||||
review_.selected1.push_back(item3Object);
|
||||
}
|
||||
auto allAll2Node = reviewNode["All"]["item"];
|
||||
for (auto reviewNodeAllitem : allAll2Node)
|
||||
{
|
||||
Review::Item itemObject;
|
||||
if(!reviewNodeAllitem["Name"].isNull())
|
||||
itemObject.name = reviewNodeAllitem["Name"].asString();
|
||||
if(!reviewNodeAllitem["Code"].isNull())
|
||||
itemObject.code = reviewNodeAllitem["Code"].asString();
|
||||
review_.all2.push_back(itemObject);
|
||||
}
|
||||
auto whiteNode = value["White"];
|
||||
auto allSelected4Node = whiteNode["Selected"]["item"];
|
||||
for (auto whiteNodeSelecteditem : allSelected4Node)
|
||||
{
|
||||
White::Item6 item6Object;
|
||||
if(!whiteNodeSelecteditem["Name"].isNull())
|
||||
item6Object.name = whiteNodeSelecteditem["Name"].asString();
|
||||
if(!whiteNodeSelecteditem["Code"].isNull())
|
||||
item6Object.code = whiteNodeSelecteditem["Code"].asString();
|
||||
white_.selected4.push_back(item6Object);
|
||||
}
|
||||
auto allAll5Node = whiteNode["All"]["item"];
|
||||
for (auto whiteNodeAllitem : allAll5Node)
|
||||
{
|
||||
White::Item itemObject;
|
||||
if(!whiteNodeAllitem["Name"].isNull())
|
||||
itemObject.name = whiteNodeAllitem["Name"].asString();
|
||||
if(!whiteNodeAllitem["Code"].isNull())
|
||||
itemObject.code = whiteNodeAllitem["Code"].asString();
|
||||
white_.all5.push_back(itemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeBizTypeImageLibResult::White DescribeBizTypeImageLibResult::getWhite()const
|
||||
{
|
||||
return white_;
|
||||
}
|
||||
|
||||
DescribeBizTypeImageLibResult::Black DescribeBizTypeImageLibResult::getBlack()const
|
||||
{
|
||||
return black_;
|
||||
}
|
||||
|
||||
DescribeBizTypeImageLibResult::Review DescribeBizTypeImageLibResult::getReview()const
|
||||
{
|
||||
return review_;
|
||||
}
|
||||
|
||||
@@ -1,73 +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/DescribeBizTypeTextLibRequest.h>
|
||||
|
||||
using AlibabaCloud::Green::Model::DescribeBizTypeTextLibRequest;
|
||||
|
||||
DescribeBizTypeTextLibRequest::DescribeBizTypeTextLibRequest() :
|
||||
RpcServiceRequest("green", "2017-08-23", "DescribeBizTypeTextLib")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBizTypeTextLibRequest::~DescribeBizTypeTextLibRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBizTypeTextLibRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void DescribeBizTypeTextLibRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string DescribeBizTypeTextLibRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
}
|
||||
|
||||
void DescribeBizTypeTextLibRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string DescribeBizTypeTextLibRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeBizTypeTextLibRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DescribeBizTypeTextLibRequest::getBizTypeName()const
|
||||
{
|
||||
return bizTypeName_;
|
||||
}
|
||||
|
||||
void DescribeBizTypeTextLibRequest::setBizTypeName(const std::string& bizTypeName)
|
||||
{
|
||||
bizTypeName_ = bizTypeName;
|
||||
setParameter("BizTypeName", bizTypeName);
|
||||
}
|
||||
|
||||
@@ -1,148 +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/DescribeBizTypeTextLibResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Green;
|
||||
using namespace AlibabaCloud::Green::Model;
|
||||
|
||||
DescribeBizTypeTextLibResult::DescribeBizTypeTextLibResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBizTypeTextLibResult::DescribeBizTypeTextLibResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBizTypeTextLibResult::~DescribeBizTypeTextLibResult()
|
||||
{}
|
||||
|
||||
void DescribeBizTypeTextLibResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto blackNode = value["Black"];
|
||||
auto allSelectedNode = blackNode["Selected"]["item"];
|
||||
for (auto blackNodeSelecteditem : allSelectedNode)
|
||||
{
|
||||
Black::Item itemObject;
|
||||
if(!blackNodeSelecteditem["Name"].isNull())
|
||||
itemObject.name = blackNodeSelecteditem["Name"].asString();
|
||||
if(!blackNodeSelecteditem["Code"].isNull())
|
||||
itemObject.code = blackNodeSelecteditem["Code"].asString();
|
||||
black_.selected.push_back(itemObject);
|
||||
}
|
||||
auto allAllNode = blackNode["All"]["item"];
|
||||
for (auto blackNodeAllitem : allAllNode)
|
||||
{
|
||||
Black::Item itemObject;
|
||||
if(!blackNodeAllitem["Name"].isNull())
|
||||
itemObject.name = blackNodeAllitem["Name"].asString();
|
||||
if(!blackNodeAllitem["Code"].isNull())
|
||||
itemObject.code = blackNodeAllitem["Code"].asString();
|
||||
black_.all.push_back(itemObject);
|
||||
}
|
||||
auto reviewNode = value["Review"];
|
||||
auto allSelected1Node = reviewNode["Selected"]["item"];
|
||||
for (auto reviewNodeSelecteditem : allSelected1Node)
|
||||
{
|
||||
Review::Item3 item3Object;
|
||||
if(!reviewNodeSelecteditem["Name"].isNull())
|
||||
item3Object.name = reviewNodeSelecteditem["Name"].asString();
|
||||
if(!reviewNodeSelecteditem["Code"].isNull())
|
||||
item3Object.code = reviewNodeSelecteditem["Code"].asString();
|
||||
review_.selected1.push_back(item3Object);
|
||||
}
|
||||
auto allAll2Node = reviewNode["All"]["item"];
|
||||
for (auto reviewNodeAllitem : allAll2Node)
|
||||
{
|
||||
Review::Item itemObject;
|
||||
if(!reviewNodeAllitem["Name"].isNull())
|
||||
itemObject.name = reviewNodeAllitem["Name"].asString();
|
||||
if(!reviewNodeAllitem["Code"].isNull())
|
||||
itemObject.code = reviewNodeAllitem["Code"].asString();
|
||||
review_.all2.push_back(itemObject);
|
||||
}
|
||||
auto ignoreNode = value["Ignore"];
|
||||
auto allSelected4Node = ignoreNode["Selected"]["item"];
|
||||
for (auto ignoreNodeSelecteditem : allSelected4Node)
|
||||
{
|
||||
Ignore::Item6 item6Object;
|
||||
if(!ignoreNodeSelecteditem["Name"].isNull())
|
||||
item6Object.name = ignoreNodeSelecteditem["Name"].asString();
|
||||
if(!ignoreNodeSelecteditem["Code"].isNull())
|
||||
item6Object.code = ignoreNodeSelecteditem["Code"].asString();
|
||||
ignore_.selected4.push_back(item6Object);
|
||||
}
|
||||
auto allAll5Node = ignoreNode["All"]["item"];
|
||||
for (auto ignoreNodeAllitem : allAll5Node)
|
||||
{
|
||||
Ignore::Item itemObject;
|
||||
if(!ignoreNodeAllitem["Name"].isNull())
|
||||
itemObject.name = ignoreNodeAllitem["Name"].asString();
|
||||
if(!ignoreNodeAllitem["Code"].isNull())
|
||||
itemObject.code = ignoreNodeAllitem["Code"].asString();
|
||||
ignore_.all5.push_back(itemObject);
|
||||
}
|
||||
auto whiteNode = value["White"];
|
||||
auto allSelected7Node = whiteNode["Selected"]["item"];
|
||||
for (auto whiteNodeSelecteditem : allSelected7Node)
|
||||
{
|
||||
White::Item9 item9Object;
|
||||
if(!whiteNodeSelecteditem["Name"].isNull())
|
||||
item9Object.name = whiteNodeSelecteditem["Name"].asString();
|
||||
if(!whiteNodeSelecteditem["Code"].isNull())
|
||||
item9Object.code = whiteNodeSelecteditem["Code"].asString();
|
||||
white_.selected7.push_back(item9Object);
|
||||
}
|
||||
auto allAll8Node = whiteNode["All"]["item"];
|
||||
for (auto whiteNodeAllitem : allAll8Node)
|
||||
{
|
||||
White::Item itemObject;
|
||||
if(!whiteNodeAllitem["Name"].isNull())
|
||||
itemObject.name = whiteNodeAllitem["Name"].asString();
|
||||
if(!whiteNodeAllitem["Code"].isNull())
|
||||
itemObject.code = whiteNodeAllitem["Code"].asString();
|
||||
white_.all8.push_back(itemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeBizTypeTextLibResult::Ignore DescribeBizTypeTextLibResult::getIgnore()const
|
||||
{
|
||||
return ignore_;
|
||||
}
|
||||
|
||||
DescribeBizTypeTextLibResult::White DescribeBizTypeTextLibResult::getWhite()const
|
||||
{
|
||||
return white_;
|
||||
}
|
||||
|
||||
DescribeBizTypeTextLibResult::Black DescribeBizTypeTextLibResult::getBlack()const
|
||||
{
|
||||
return black_;
|
||||
}
|
||||
|
||||
DescribeBizTypeTextLibResult::Review DescribeBizTypeTextLibResult::getReview()const
|
||||
{
|
||||
return review_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user