Compare commits
20 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2123976cc2 | ||
|
|
7097cf0d88 | ||
|
|
dd1d0e5359 | ||
|
|
3823d5045a | ||
|
|
80e095a3fc | ||
|
|
c12d0267d7 | ||
|
|
d69766bdfd | ||
|
|
7ac1c23a9f | ||
|
|
088c3010cd | ||
|
|
5c7994cbcb | ||
|
|
3fc73ce0c4 | ||
|
|
aa99d784f0 | ||
|
|
f82391b140 | ||
|
|
c920c94335 | ||
|
|
d7f985a33b | ||
|
|
7db054750e | ||
|
|
73412a8d8d | ||
|
|
51f047d6f3 | ||
|
|
2d5bf1dbd8 | ||
|
|
a60cd6a5ae |
63
CHANGELOG
63
CHANGELOG
@@ -1,3 +1,66 @@
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2018-12-12 for `vs`.
|
||||
|
||||
2020-09-22 Version: patch
|
||||
- Generated 2016-11-01 for `live`.
|
||||
|
||||
2020-09-21 Version: patch
|
||||
- Interface add column wordCount.
|
||||
|
||||
2020-09-21 Version: patch
|
||||
- Add search object.
|
||||
|
||||
2020-09-20 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-20 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-19 Version: patch
|
||||
- Support query user tenant list and current active tenant.
|
||||
- Support query table meta information via table GUID.
|
||||
|
||||
2020-09-18 Version: patch
|
||||
- Update DetectLungNodule, DetectSpineMRI, DetectKneeXRay, DetectCovid19Cad.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Add Api DetectIPCPedestrianOptimized.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Add Api DetectIPCPedestrianOptimized.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- GetTitleIntelligence add interface.
|
||||
|
||||
2020-09-17 Version: patch
|
||||
- Fix endpoint.
|
||||
|
||||
2020-09-16 Version: patch
|
||||
- Add Content.
|
||||
|
||||
2020-09-15 Version: patch
|
||||
- Add describe devices to return device status.
|
||||
|
||||
2020-09-14 Version: patch
|
||||
- Support corp name search.
|
||||
|
||||
2020-09-14 Version: patch
|
||||
- Support corp name search.
|
||||
|
||||
2020-09-11 Version: patch
|
||||
- Support execute database script via open api.
|
||||
|
||||
2020-09-10 Version: patch
|
||||
- Add DisableBackupLog.
|
||||
- Add EnableBackupLog.
|
||||
- Add ReleaseBackupPlan.
|
||||
- Add ModifyStorageStrategy.
|
||||
- Modify ModifyBackupStrategy.
|
||||
- Modify ModifyBackupSetDownloadRules.
|
||||
|
||||
2020-09-10 Version: patch
|
||||
- Update HasRenewChangeOrder type to Boolean in DescribeInstances.
|
||||
|
||||
2020-09-09 Version: patch
|
||||
- Add support cn-beijing service region.
|
||||
- Add ai video cover interface,include submit and query.
|
||||
|
||||
@@ -35,6 +35,8 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/GetTitleDiagnoseResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleGenerateResult.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceRequest.h
|
||||
include/alibabacloud/alimt/model/GetTitleIntelligenceResult.h
|
||||
include/alibabacloud/alimt/model/TranslateRequest.h
|
||||
include/alibabacloud/alimt/model/TranslateResult.h
|
||||
include/alibabacloud/alimt/model/TranslateCertificateRequest.h
|
||||
@@ -60,6 +62,8 @@ set(alimt_src
|
||||
src/model/GetTitleDiagnoseResult.cc
|
||||
src/model/GetTitleGenerateRequest.cc
|
||||
src/model/GetTitleGenerateResult.cc
|
||||
src/model/GetTitleIntelligenceRequest.cc
|
||||
src/model/GetTitleIntelligenceResult.cc
|
||||
src/model/TranslateRequest.cc
|
||||
src/model/TranslateResult.cc
|
||||
src/model/TranslateCertificateRequest.cc
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
#include "model/GetTitleDiagnoseResult.h"
|
||||
#include "model/GetTitleGenerateRequest.h"
|
||||
#include "model/GetTitleGenerateResult.h"
|
||||
#include "model/GetTitleIntelligenceRequest.h"
|
||||
#include "model/GetTitleIntelligenceResult.h"
|
||||
#include "model/TranslateRequest.h"
|
||||
#include "model/TranslateResult.h"
|
||||
#include "model/TranslateCertificateRequest.h"
|
||||
@@ -74,6 +76,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetTitleGenerateResult> GetTitleGenerateOutcome;
|
||||
typedef std::future<GetTitleGenerateOutcome> GetTitleGenerateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleGenerateRequest&, const GetTitleGenerateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleGenerateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTitleIntelligenceResult> GetTitleIntelligenceOutcome;
|
||||
typedef std::future<GetTitleIntelligenceOutcome> GetTitleIntelligenceOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetTitleIntelligenceRequest&, const GetTitleIntelligenceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTitleIntelligenceAsyncHandler;
|
||||
typedef Outcome<Error, Model::TranslateResult> TranslateOutcome;
|
||||
typedef std::future<TranslateOutcome> TranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::TranslateRequest&, const TranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TranslateAsyncHandler;
|
||||
@@ -112,6 +117,9 @@ namespace AlibabaCloud
|
||||
GetTitleGenerateOutcome getTitleGenerate(const Model::GetTitleGenerateRequest &request)const;
|
||||
void getTitleGenerateAsync(const Model::GetTitleGenerateRequest& request, const GetTitleGenerateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleGenerateOutcomeCallable getTitleGenerateCallable(const Model::GetTitleGenerateRequest& request) const;
|
||||
GetTitleIntelligenceOutcome getTitleIntelligence(const Model::GetTitleIntelligenceRequest &request)const;
|
||||
void getTitleIntelligenceAsync(const Model::GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTitleIntelligenceOutcomeCallable getTitleIntelligenceCallable(const Model::GetTitleIntelligenceRequest& request) const;
|
||||
TranslateOutcome translate(const Model::TranslateRequest &request)const;
|
||||
void translateAsync(const Model::TranslateRequest& request, const TranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TranslateOutcomeCallable translateCallable(const Model::TranslateRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTitleIntelligenceRequest();
|
||||
~GetTitleIntelligenceRequest();
|
||||
|
||||
long getCatLevelThreeId()const;
|
||||
void setCatLevelThreeId(long catLevelThreeId);
|
||||
long getCatLevelTwoId()const;
|
||||
void setCatLevelTwoId(long catLevelTwoId);
|
||||
std::string getKeywords()const;
|
||||
void setKeywords(const std::string& keywords);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getExtra()const;
|
||||
void setExtra(const std::string& extra);
|
||||
|
||||
private:
|
||||
long catLevelThreeId_;
|
||||
long catLevelTwoId_;
|
||||
std::string keywords_;
|
||||
std::string platform_;
|
||||
std::string extra_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCEREQUEST_H_
|
||||
@@ -14,42 +14,46 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUERESULT_H_
|
||||
#define ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/industry-brain/Industry_brainExport.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Industry_brain
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_INDUSTRY_BRAIN_EXPORT GetPointSampleValueResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetTitleIntelligenceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string titles;
|
||||
};
|
||||
|
||||
|
||||
GetPointSampleValueResult();
|
||||
explicit GetPointSampleValueResult(const std::string &payload);
|
||||
~GetPointSampleValueResult();
|
||||
GetTitleIntelligenceResult();
|
||||
explicit GetTitleIntelligenceResult(const std::string &payload);
|
||||
~GetTitleIntelligenceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
Data getData()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
Data data_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETTITLEINTELLIGENCERESULT_H_
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string wordCount;
|
||||
std::string translated;
|
||||
};
|
||||
|
||||
|
||||
@@ -303,6 +303,42 @@ AlimtClient::GetTitleGenerateOutcomeCallable AlimtClient::getTitleGenerateCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleIntelligenceOutcome AlimtClient::getTitleIntelligence(const GetTitleIntelligenceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTitleIntelligenceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTitleIntelligenceOutcome(GetTitleIntelligenceResult(outcome.result()));
|
||||
else
|
||||
return GetTitleIntelligenceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getTitleIntelligenceAsync(const GetTitleIntelligenceRequest& request, const GetTitleIntelligenceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTitleIntelligence(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetTitleIntelligenceOutcomeCallable AlimtClient::getTitleIntelligenceCallable(const GetTitleIntelligenceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTitleIntelligenceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTitleIntelligence(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::TranslateOutcome AlimtClient::translate(const TranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
84
alimt/src/model/GetTitleIntelligenceRequest.cc
Normal file
84
alimt/src/model/GetTitleIntelligenceRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* 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/alimt/model/GetTitleIntelligenceRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetTitleIntelligenceRequest;
|
||||
|
||||
GetTitleIntelligenceRequest::GetTitleIntelligenceRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetTitleIntelligence")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTitleIntelligenceRequest::~GetTitleIntelligenceRequest()
|
||||
{}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelThreeId()const
|
||||
{
|
||||
return catLevelThreeId_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setCatLevelThreeId(long catLevelThreeId)
|
||||
{
|
||||
catLevelThreeId_ = catLevelThreeId;
|
||||
setBodyParameter("CatLevelThreeId", std::to_string(catLevelThreeId));
|
||||
}
|
||||
|
||||
long GetTitleIntelligenceRequest::getCatLevelTwoId()const
|
||||
{
|
||||
return catLevelTwoId_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setCatLevelTwoId(long catLevelTwoId)
|
||||
{
|
||||
catLevelTwoId_ = catLevelTwoId;
|
||||
setBodyParameter("CatLevelTwoId", std::to_string(catLevelTwoId));
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getKeywords()const
|
||||
{
|
||||
return keywords_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setKeywords(const std::string& keywords)
|
||||
{
|
||||
keywords_ = keywords;
|
||||
setBodyParameter("Keywords", keywords);
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getPlatform()const
|
||||
{
|
||||
return platform_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setPlatform(const std::string& platform)
|
||||
{
|
||||
platform_ = platform;
|
||||
setBodyParameter("Platform", platform);
|
||||
}
|
||||
|
||||
std::string GetTitleIntelligenceRequest::getExtra()const
|
||||
{
|
||||
return extra_;
|
||||
}
|
||||
|
||||
void GetTitleIntelligenceRequest::setExtra(const std::string& extra)
|
||||
{
|
||||
extra_ = extra;
|
||||
setBodyParameter("Extra", extra);
|
||||
}
|
||||
|
||||
@@ -14,51 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/industry-brain/model/GetPointReckoningValueResult.h>
|
||||
#include <alibabacloud/alimt/model/GetTitleIntelligenceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Industry_brain;
|
||||
using namespace AlibabaCloud::Industry_brain::Model;
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetPointReckoningValueResult::GetPointReckoningValueResult() :
|
||||
GetTitleIntelligenceResult::GetTitleIntelligenceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetPointReckoningValueResult::GetPointReckoningValueResult(const std::string &payload) :
|
||||
GetTitleIntelligenceResult::GetTitleIntelligenceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetPointReckoningValueResult::~GetPointReckoningValueResult()
|
||||
GetTitleIntelligenceResult::~GetTitleIntelligenceResult()
|
||||
{}
|
||||
|
||||
void GetPointReckoningValueResult::parse(const std::string &payload)
|
||||
void GetTitleIntelligenceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Titles"].isNull())
|
||||
data_.titles = dataNode["Titles"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetPointReckoningValueResult::getMessage()const
|
||||
std::string GetTitleIntelligenceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetPointReckoningValueResult::getData()const
|
||||
GetTitleIntelligenceResult::Data GetTitleIntelligenceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetPointReckoningValueResult::getCode()const
|
||||
int GetTitleIntelligenceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
@@ -42,6 +42,8 @@ void TranslateECommerceResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -42,6 +42,8 @@ void TranslateGeneralResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -42,6 +42,8 @@ void TranslateResult::parse(const std::string &payload)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Translated"].isNull())
|
||||
data_.translated = dataNode["Translated"].asString();
|
||||
if(!dataNode["WordCount"].isNull())
|
||||
data_.wordCount = dataNode["WordCount"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -23,6 +23,7 @@ RpcServiceRequest::RpcServiceRequest(const std::string &product,
|
||||
const std::string &action)
|
||||
: ServiceRequest(product, version) {
|
||||
setActionName(action);
|
||||
setHeader(std::string("x-acs-action"), action);
|
||||
}
|
||||
|
||||
RpcServiceRequest::~RpcServiceRequest() {}
|
||||
|
||||
@@ -25,7 +25,9 @@ ServiceRequest::ServiceRequest(const std::string &product,
|
||||
: content_(nullptr), contentSize_(0), params_(), product_(product),
|
||||
resourcePath_("/"), version_(version), scheme_("https"),
|
||||
connectTimeout_(kInvalidTimeout), readTimeout_(kInvalidTimeout),
|
||||
method_(HttpRequest::Method::Get) {}
|
||||
method_(HttpRequest::Method::Get) {
|
||||
setHeader(std::string("x-acs-version"), version);
|
||||
}
|
||||
|
||||
ServiceRequest::ServiceRequest(const ServiceRequest &other)
|
||||
: content_(nullptr), contentSize_(other.contentSize_),
|
||||
|
||||
@@ -57,6 +57,10 @@ set(dbs_public_header_model
|
||||
include/alibabacloud/dbs/model/DescribeRestoreRangeInfoResult.h
|
||||
include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeRestoreTaskListResult.h
|
||||
include/alibabacloud/dbs/model/DisableBackupLogRequest.h
|
||||
include/alibabacloud/dbs/model/DisableBackupLogResult.h
|
||||
include/alibabacloud/dbs/model/EnableBackupLogRequest.h
|
||||
include/alibabacloud/dbs/model/EnableBackupLogResult.h
|
||||
include/alibabacloud/dbs/model/GetDBListFromAgentRequest.h
|
||||
include/alibabacloud/dbs/model/GetDBListFromAgentResult.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupObjectsRequest.h
|
||||
@@ -69,6 +73,10 @@ set(dbs_public_header_model
|
||||
include/alibabacloud/dbs/model/ModifyBackupSourceEndpointResult.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupStrategyRequest.h
|
||||
include/alibabacloud/dbs/model/ModifyBackupStrategyResult.h
|
||||
include/alibabacloud/dbs/model/ModifyStorageStrategyRequest.h
|
||||
include/alibabacloud/dbs/model/ModifyStorageStrategyResult.h
|
||||
include/alibabacloud/dbs/model/ReleaseBackupPlanRequest.h
|
||||
include/alibabacloud/dbs/model/ReleaseBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/RenewBackupPlanRequest.h
|
||||
include/alibabacloud/dbs/model/RenewBackupPlanResult.h
|
||||
include/alibabacloud/dbs/model/StartBackupPlanRequest.h
|
||||
@@ -120,6 +128,10 @@ set(dbs_src
|
||||
src/model/DescribeRestoreRangeInfoResult.cc
|
||||
src/model/DescribeRestoreTaskListRequest.cc
|
||||
src/model/DescribeRestoreTaskListResult.cc
|
||||
src/model/DisableBackupLogRequest.cc
|
||||
src/model/DisableBackupLogResult.cc
|
||||
src/model/EnableBackupLogRequest.cc
|
||||
src/model/EnableBackupLogResult.cc
|
||||
src/model/GetDBListFromAgentRequest.cc
|
||||
src/model/GetDBListFromAgentResult.cc
|
||||
src/model/ModifyBackupObjectsRequest.cc
|
||||
@@ -132,6 +144,10 @@ set(dbs_src
|
||||
src/model/ModifyBackupSourceEndpointResult.cc
|
||||
src/model/ModifyBackupStrategyRequest.cc
|
||||
src/model/ModifyBackupStrategyResult.cc
|
||||
src/model/ModifyStorageStrategyRequest.cc
|
||||
src/model/ModifyStorageStrategyResult.cc
|
||||
src/model/ReleaseBackupPlanRequest.cc
|
||||
src/model/ReleaseBackupPlanResult.cc
|
||||
src/model/RenewBackupPlanRequest.cc
|
||||
src/model/RenewBackupPlanResult.cc
|
||||
src/model/StartBackupPlanRequest.cc
|
||||
|
||||
@@ -58,6 +58,10 @@
|
||||
#include "model/DescribeRestoreRangeInfoResult.h"
|
||||
#include "model/DescribeRestoreTaskListRequest.h"
|
||||
#include "model/DescribeRestoreTaskListResult.h"
|
||||
#include "model/DisableBackupLogRequest.h"
|
||||
#include "model/DisableBackupLogResult.h"
|
||||
#include "model/EnableBackupLogRequest.h"
|
||||
#include "model/EnableBackupLogResult.h"
|
||||
#include "model/GetDBListFromAgentRequest.h"
|
||||
#include "model/GetDBListFromAgentResult.h"
|
||||
#include "model/ModifyBackupObjectsRequest.h"
|
||||
@@ -70,6 +74,10 @@
|
||||
#include "model/ModifyBackupSourceEndpointResult.h"
|
||||
#include "model/ModifyBackupStrategyRequest.h"
|
||||
#include "model/ModifyBackupStrategyResult.h"
|
||||
#include "model/ModifyStorageStrategyRequest.h"
|
||||
#include "model/ModifyStorageStrategyResult.h"
|
||||
#include "model/ReleaseBackupPlanRequest.h"
|
||||
#include "model/ReleaseBackupPlanResult.h"
|
||||
#include "model/RenewBackupPlanRequest.h"
|
||||
#include "model/RenewBackupPlanResult.h"
|
||||
#include "model/StartBackupPlanRequest.h"
|
||||
@@ -145,6 +153,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRestoreTaskListResult> DescribeRestoreTaskListOutcome;
|
||||
typedef std::future<DescribeRestoreTaskListOutcome> DescribeRestoreTaskListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeRestoreTaskListRequest&, const DescribeRestoreTaskListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreTaskListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableBackupLogResult> DisableBackupLogOutcome;
|
||||
typedef std::future<DisableBackupLogOutcome> DisableBackupLogOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DisableBackupLogRequest&, const DisableBackupLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableBackupLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableBackupLogResult> EnableBackupLogOutcome;
|
||||
typedef std::future<EnableBackupLogOutcome> EnableBackupLogOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::EnableBackupLogRequest&, const EnableBackupLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableBackupLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDBListFromAgentResult> GetDBListFromAgentOutcome;
|
||||
typedef std::future<GetDBListFromAgentOutcome> GetDBListFromAgentOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::GetDBListFromAgentRequest&, const GetDBListFromAgentOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBListFromAgentAsyncHandler;
|
||||
@@ -163,6 +177,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyBackupStrategyResult> ModifyBackupStrategyOutcome;
|
||||
typedef std::future<ModifyBackupStrategyOutcome> ModifyBackupStrategyOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::ModifyBackupStrategyRequest&, const ModifyBackupStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyBackupStrategyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyStorageStrategyResult> ModifyStorageStrategyOutcome;
|
||||
typedef std::future<ModifyStorageStrategyOutcome> ModifyStorageStrategyOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::ModifyStorageStrategyRequest&, const ModifyStorageStrategyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyStorageStrategyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ReleaseBackupPlanResult> ReleaseBackupPlanOutcome;
|
||||
typedef std::future<ReleaseBackupPlanOutcome> ReleaseBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::ReleaseBackupPlanRequest&, const ReleaseBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseBackupPlanAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewBackupPlanResult> RenewBackupPlanOutcome;
|
||||
typedef std::future<RenewBackupPlanOutcome> RenewBackupPlanOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::RenewBackupPlanRequest&, const RenewBackupPlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewBackupPlanAsyncHandler;
|
||||
@@ -240,6 +260,12 @@ namespace AlibabaCloud
|
||||
DescribeRestoreTaskListOutcome describeRestoreTaskList(const Model::DescribeRestoreTaskListRequest &request)const;
|
||||
void describeRestoreTaskListAsync(const Model::DescribeRestoreTaskListRequest& request, const DescribeRestoreTaskListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreTaskListOutcomeCallable describeRestoreTaskListCallable(const Model::DescribeRestoreTaskListRequest& request) const;
|
||||
DisableBackupLogOutcome disableBackupLog(const Model::DisableBackupLogRequest &request)const;
|
||||
void disableBackupLogAsync(const Model::DisableBackupLogRequest& request, const DisableBackupLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableBackupLogOutcomeCallable disableBackupLogCallable(const Model::DisableBackupLogRequest& request) const;
|
||||
EnableBackupLogOutcome enableBackupLog(const Model::EnableBackupLogRequest &request)const;
|
||||
void enableBackupLogAsync(const Model::EnableBackupLogRequest& request, const EnableBackupLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableBackupLogOutcomeCallable enableBackupLogCallable(const Model::EnableBackupLogRequest& request) const;
|
||||
GetDBListFromAgentOutcome getDBListFromAgent(const Model::GetDBListFromAgentRequest &request)const;
|
||||
void getDBListFromAgentAsync(const Model::GetDBListFromAgentRequest& request, const GetDBListFromAgentAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDBListFromAgentOutcomeCallable getDBListFromAgentCallable(const Model::GetDBListFromAgentRequest& request) const;
|
||||
@@ -258,6 +284,12 @@ namespace AlibabaCloud
|
||||
ModifyBackupStrategyOutcome modifyBackupStrategy(const Model::ModifyBackupStrategyRequest &request)const;
|
||||
void modifyBackupStrategyAsync(const Model::ModifyBackupStrategyRequest& request, const ModifyBackupStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyBackupStrategyOutcomeCallable modifyBackupStrategyCallable(const Model::ModifyBackupStrategyRequest& request) const;
|
||||
ModifyStorageStrategyOutcome modifyStorageStrategy(const Model::ModifyStorageStrategyRequest &request)const;
|
||||
void modifyStorageStrategyAsync(const Model::ModifyStorageStrategyRequest& request, const ModifyStorageStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyStorageStrategyOutcomeCallable modifyStorageStrategyCallable(const Model::ModifyStorageStrategyRequest& request) const;
|
||||
ReleaseBackupPlanOutcome releaseBackupPlan(const Model::ReleaseBackupPlanRequest &request)const;
|
||||
void releaseBackupPlanAsync(const Model::ReleaseBackupPlanRequest& request, const ReleaseBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ReleaseBackupPlanOutcomeCallable releaseBackupPlanCallable(const Model::ReleaseBackupPlanRequest& request) const;
|
||||
RenewBackupPlanOutcome renewBackupPlan(const Model::RenewBackupPlanRequest &request)const;
|
||||
void renewBackupPlanAsync(const Model::RenewBackupPlanRequest& request, const RenewBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewBackupPlanOutcomeCallable renewBackupPlanCallable(const Model::RenewBackupPlanRequest& request) const;
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace AlibabaCloud
|
||||
std::string sourceEndpointIpPort;
|
||||
std::string storageMethod;
|
||||
long endTime;
|
||||
std::string backupSetJobId;
|
||||
long backupSize;
|
||||
long startTime;
|
||||
long backupSetExpiredTime;
|
||||
|
||||
54
dbs/include/alibabacloud/dbs/model/DisableBackupLogRequest.h
Normal file
54
dbs/include/alibabacloud/dbs/model/DisableBackupLogRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DisableBackupLogRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DisableBackupLogRequest();
|
||||
~DisableBackupLogRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGREQUEST_H_
|
||||
61
dbs/include/alibabacloud/dbs/model/DisableBackupLogResult.h
Normal file
61
dbs/include/alibabacloud/dbs/model/DisableBackupLogResult.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DisableBackupLogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DisableBackupLogResult();
|
||||
explicit DisableBackupLogResult(const std::string &payload);
|
||||
~DisableBackupLogResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
bool getNeedPrecheck()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
bool needPrecheck_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DISABLEBACKUPLOGRESULT_H_
|
||||
54
dbs/include/alibabacloud/dbs/model/EnableBackupLogRequest.h
Normal file
54
dbs/include/alibabacloud/dbs/model/EnableBackupLogRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT EnableBackupLogRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnableBackupLogRequest();
|
||||
~EnableBackupLogRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGREQUEST_H_
|
||||
61
dbs/include/alibabacloud/dbs/model/EnableBackupLogResult.h
Normal file
61
dbs/include/alibabacloud/dbs/model/EnableBackupLogResult.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT EnableBackupLogResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableBackupLogResult();
|
||||
explicit EnableBackupLogResult(const std::string &payload);
|
||||
~EnableBackupLogResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
bool getNeedPrecheck()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
bool needPrecheck_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_ENABLEBACKUPLOGRESULT_H_
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setOpenAutoDownload(bool openAutoDownload);
|
||||
std::string getIncrementDataFormat()const;
|
||||
void setIncrementDataFormat(const std::string& incrementDataFormat);
|
||||
std::string getBackupSetDownloadTargetTypeLocation()const;
|
||||
void setBackupSetDownloadTargetTypeLocation(const std::string& backupSetDownloadTargetTypeLocation);
|
||||
std::string getBackupSetDownloadDir()const;
|
||||
void setBackupSetDownloadDir(const std::string& backupSetDownloadDir);
|
||||
|
||||
@@ -63,6 +65,7 @@ namespace AlibabaCloud
|
||||
std::string ownerId_;
|
||||
bool openAutoDownload_;
|
||||
std::string incrementDataFormat_;
|
||||
std::string backupSetDownloadTargetTypeLocation_;
|
||||
std::string backupSetDownloadDir_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
ModifyBackupStrategyRequest();
|
||||
~ModifyBackupStrategyRequest();
|
||||
|
||||
int getBackupLogIntervalSeconds()const;
|
||||
void setBackupLogIntervalSeconds(int backupLogIntervalSeconds);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
@@ -49,6 +51,7 @@ namespace AlibabaCloud
|
||||
void setBackupStrategyType(const std::string& backupStrategyType);
|
||||
|
||||
private:
|
||||
int backupLogIntervalSeconds_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
|
||||
@@ -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_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT ModifyStorageStrategyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyStorageStrategyRequest();
|
||||
~ModifyStorageStrategyRequest();
|
||||
|
||||
int getDuplicationArchivePeriod()const;
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
int getBackupRetentionPeriod()const;
|
||||
void setBackupRetentionPeriod(int backupRetentionPeriod);
|
||||
int getDuplicationInfrequentAccessPeriod()const;
|
||||
void setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod);
|
||||
|
||||
private:
|
||||
int duplicationArchivePeriod_;
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
int backupRetentionPeriod_;
|
||||
int duplicationInfrequentAccessPeriod_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT ModifyStorageStrategyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyStorageStrategyResult();
|
||||
explicit ModifyStorageStrategyResult(const std::string &payload);
|
||||
~ModifyStorageStrategyResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
bool getNeedPrecheck()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
bool needPrecheck_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_MODIFYSTORAGESTRATEGYRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT ReleaseBackupPlanRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ReleaseBackupPlanRequest();
|
||||
~ReleaseBackupPlanRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANREQUEST_H_
|
||||
59
dbs/include/alibabacloud/dbs/model/ReleaseBackupPlanResult.h
Normal file
59
dbs/include/alibabacloud/dbs/model/ReleaseBackupPlanResult.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT ReleaseBackupPlanResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ReleaseBackupPlanResult();
|
||||
explicit ReleaseBackupPlanResult(const std::string &payload);
|
||||
~ReleaseBackupPlanResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::string getBackupPlanId()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::string backupPlanId_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_RELEASEBACKUPPLANRESULT_H_
|
||||
@@ -699,6 +699,78 @@ DbsClient::DescribeRestoreTaskListOutcomeCallable DbsClient::describeRestoreTask
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DisableBackupLogOutcome DbsClient::disableBackupLog(const DisableBackupLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableBackupLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableBackupLogOutcome(DisableBackupLogResult(outcome.result()));
|
||||
else
|
||||
return DisableBackupLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::disableBackupLogAsync(const DisableBackupLogRequest& request, const DisableBackupLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableBackupLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DisableBackupLogOutcomeCallable DbsClient::disableBackupLogCallable(const DisableBackupLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableBackupLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableBackupLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::EnableBackupLogOutcome DbsClient::enableBackupLog(const EnableBackupLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableBackupLogOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableBackupLogOutcome(EnableBackupLogResult(outcome.result()));
|
||||
else
|
||||
return EnableBackupLogOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::enableBackupLogAsync(const EnableBackupLogRequest& request, const EnableBackupLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableBackupLog(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::EnableBackupLogOutcomeCallable DbsClient::enableBackupLogCallable(const EnableBackupLogRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableBackupLogOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableBackupLog(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::GetDBListFromAgentOutcome DbsClient::getDBListFromAgent(const GetDBListFromAgentRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -915,6 +987,78 @@ DbsClient::ModifyBackupStrategyOutcomeCallable DbsClient::modifyBackupStrategyCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::ModifyStorageStrategyOutcome DbsClient::modifyStorageStrategy(const ModifyStorageStrategyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyStorageStrategyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyStorageStrategyOutcome(ModifyStorageStrategyResult(outcome.result()));
|
||||
else
|
||||
return ModifyStorageStrategyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::modifyStorageStrategyAsync(const ModifyStorageStrategyRequest& request, const ModifyStorageStrategyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyStorageStrategy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::ModifyStorageStrategyOutcomeCallable DbsClient::modifyStorageStrategyCallable(const ModifyStorageStrategyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyStorageStrategyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyStorageStrategy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::ReleaseBackupPlanOutcome DbsClient::releaseBackupPlan(const ReleaseBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ReleaseBackupPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ReleaseBackupPlanOutcome(ReleaseBackupPlanResult(outcome.result()));
|
||||
else
|
||||
return ReleaseBackupPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::releaseBackupPlanAsync(const ReleaseBackupPlanRequest& request, const ReleaseBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, releaseBackupPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::ReleaseBackupPlanOutcomeCallable DbsClient::releaseBackupPlanCallable(const ReleaseBackupPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ReleaseBackupPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->releaseBackupPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::RenewBackupPlanOutcome DbsClient::renewBackupPlan(const RenewBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -45,6 +45,8 @@ void DescribeIncrementBackupListResult::parse(const std::string &payload)
|
||||
IncrementBackupFile itemsObject;
|
||||
if(!valueItemsIncrementBackupFile["BackupSetId"].isNull())
|
||||
itemsObject.backupSetId = valueItemsIncrementBackupFile["BackupSetId"].asString();
|
||||
if(!valueItemsIncrementBackupFile["BackupSetJobId"].isNull())
|
||||
itemsObject.backupSetJobId = valueItemsIncrementBackupFile["BackupSetJobId"].asString();
|
||||
if(!valueItemsIncrementBackupFile["SourceEndpointIpPort"].isNull())
|
||||
itemsObject.sourceEndpointIpPort = valueItemsIncrementBackupFile["SourceEndpointIpPort"].asString();
|
||||
if(!valueItemsIncrementBackupFile["StartTime"].isNull())
|
||||
|
||||
62
dbs/src/model/DisableBackupLogRequest.cc
Normal file
62
dbs/src/model/DisableBackupLogRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/dbs/model/DisableBackupLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DisableBackupLogRequest;
|
||||
|
||||
DisableBackupLogRequest::DisableBackupLogRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DisableBackupLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableBackupLogRequest::~DisableBackupLogRequest()
|
||||
{}
|
||||
|
||||
std::string DisableBackupLogRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DisableBackupLogRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DisableBackupLogRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void DisableBackupLogRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string DisableBackupLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DisableBackupLogRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
86
dbs/src/model/DisableBackupLogResult.cc
Normal file
86
dbs/src/model/DisableBackupLogResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/dbs/model/DisableBackupLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
DisableBackupLogResult::DisableBackupLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableBackupLogResult::DisableBackupLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableBackupLogResult::~DisableBackupLogResult()
|
||||
{}
|
||||
|
||||
void DisableBackupLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
if(!value["NeedPrecheck"].isNull())
|
||||
needPrecheck_ = value["NeedPrecheck"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int DisableBackupLogResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DisableBackupLogResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
bool DisableBackupLogResult::getNeedPrecheck()const
|
||||
{
|
||||
return needPrecheck_;
|
||||
}
|
||||
|
||||
std::string DisableBackupLogResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DisableBackupLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DisableBackupLogResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
62
dbs/src/model/EnableBackupLogRequest.cc
Normal file
62
dbs/src/model/EnableBackupLogRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/dbs/model/EnableBackupLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::EnableBackupLogRequest;
|
||||
|
||||
EnableBackupLogRequest::EnableBackupLogRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "EnableBackupLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableBackupLogRequest::~EnableBackupLogRequest()
|
||||
{}
|
||||
|
||||
std::string EnableBackupLogRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void EnableBackupLogRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string EnableBackupLogRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void EnableBackupLogRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string EnableBackupLogRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void EnableBackupLogRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
86
dbs/src/model/EnableBackupLogResult.cc
Normal file
86
dbs/src/model/EnableBackupLogResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/dbs/model/EnableBackupLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
EnableBackupLogResult::EnableBackupLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableBackupLogResult::EnableBackupLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableBackupLogResult::~EnableBackupLogResult()
|
||||
{}
|
||||
|
||||
void EnableBackupLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
if(!value["NeedPrecheck"].isNull())
|
||||
needPrecheck_ = value["NeedPrecheck"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int EnableBackupLogResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string EnableBackupLogResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
bool EnableBackupLogResult::getNeedPrecheck()const
|
||||
{
|
||||
return needPrecheck_;
|
||||
}
|
||||
|
||||
std::string EnableBackupLogResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool EnableBackupLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string EnableBackupLogResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -115,6 +115,17 @@ void ModifyBackupSetDownloadRulesRequest::setIncrementDataFormat(const std::stri
|
||||
setParameter("IncrementDataFormat", incrementDataFormat);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadTargetTypeLocation()const
|
||||
{
|
||||
return backupSetDownloadTargetTypeLocation_;
|
||||
}
|
||||
|
||||
void ModifyBackupSetDownloadRulesRequest::setBackupSetDownloadTargetTypeLocation(const std::string& backupSetDownloadTargetTypeLocation)
|
||||
{
|
||||
backupSetDownloadTargetTypeLocation_ = backupSetDownloadTargetTypeLocation;
|
||||
setParameter("BackupSetDownloadTargetTypeLocation", backupSetDownloadTargetTypeLocation);
|
||||
}
|
||||
|
||||
std::string ModifyBackupSetDownloadRulesRequest::getBackupSetDownloadDir()const
|
||||
{
|
||||
return backupSetDownloadDir_;
|
||||
|
||||
@@ -27,6 +27,17 @@ ModifyBackupStrategyRequest::ModifyBackupStrategyRequest() :
|
||||
ModifyBackupStrategyRequest::~ModifyBackupStrategyRequest()
|
||||
{}
|
||||
|
||||
int ModifyBackupStrategyRequest::getBackupLogIntervalSeconds()const
|
||||
{
|
||||
return backupLogIntervalSeconds_;
|
||||
}
|
||||
|
||||
void ModifyBackupStrategyRequest::setBackupLogIntervalSeconds(int backupLogIntervalSeconds)
|
||||
{
|
||||
backupLogIntervalSeconds_ = backupLogIntervalSeconds;
|
||||
setParameter("BackupLogIntervalSeconds", std::to_string(backupLogIntervalSeconds));
|
||||
}
|
||||
|
||||
std::string ModifyBackupStrategyRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
|
||||
95
dbs/src/model/ModifyStorageStrategyRequest.cc
Normal file
95
dbs/src/model/ModifyStorageStrategyRequest.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/dbs/model/ModifyStorageStrategyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::ModifyStorageStrategyRequest;
|
||||
|
||||
ModifyStorageStrategyRequest::ModifyStorageStrategyRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "ModifyStorageStrategy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyStorageStrategyRequest::~ModifyStorageStrategyRequest()
|
||||
{}
|
||||
|
||||
int ModifyStorageStrategyRequest::getDuplicationArchivePeriod()const
|
||||
{
|
||||
return duplicationArchivePeriod_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setDuplicationArchivePeriod(int duplicationArchivePeriod)
|
||||
{
|
||||
duplicationArchivePeriod_ = duplicationArchivePeriod;
|
||||
setParameter("DuplicationArchivePeriod", std::to_string(duplicationArchivePeriod));
|
||||
}
|
||||
|
||||
std::string ModifyStorageStrategyRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyStorageStrategyRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string ModifyStorageStrategyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
int ModifyStorageStrategyRequest::getBackupRetentionPeriod()const
|
||||
{
|
||||
return backupRetentionPeriod_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setBackupRetentionPeriod(int backupRetentionPeriod)
|
||||
{
|
||||
backupRetentionPeriod_ = backupRetentionPeriod;
|
||||
setParameter("BackupRetentionPeriod", std::to_string(backupRetentionPeriod));
|
||||
}
|
||||
|
||||
int ModifyStorageStrategyRequest::getDuplicationInfrequentAccessPeriod()const
|
||||
{
|
||||
return duplicationInfrequentAccessPeriod_;
|
||||
}
|
||||
|
||||
void ModifyStorageStrategyRequest::setDuplicationInfrequentAccessPeriod(int duplicationInfrequentAccessPeriod)
|
||||
{
|
||||
duplicationInfrequentAccessPeriod_ = duplicationInfrequentAccessPeriod;
|
||||
setParameter("DuplicationInfrequentAccessPeriod", std::to_string(duplicationInfrequentAccessPeriod));
|
||||
}
|
||||
|
||||
86
dbs/src/model/ModifyStorageStrategyResult.cc
Normal file
86
dbs/src/model/ModifyStorageStrategyResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* 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/dbs/model/ModifyStorageStrategyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
ModifyStorageStrategyResult::ModifyStorageStrategyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyStorageStrategyResult::ModifyStorageStrategyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyStorageStrategyResult::~ModifyStorageStrategyResult()
|
||||
{}
|
||||
|
||||
void ModifyStorageStrategyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
if(!value["NeedPrecheck"].isNull())
|
||||
needPrecheck_ = value["NeedPrecheck"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
int ModifyStorageStrategyResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ModifyStorageStrategyResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
bool ModifyStorageStrategyResult::getNeedPrecheck()const
|
||||
{
|
||||
return needPrecheck_;
|
||||
}
|
||||
|
||||
std::string ModifyStorageStrategyResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool ModifyStorageStrategyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ModifyStorageStrategyResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
62
dbs/src/model/ReleaseBackupPlanRequest.cc
Normal file
62
dbs/src/model/ReleaseBackupPlanRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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/dbs/model/ReleaseBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::ReleaseBackupPlanRequest;
|
||||
|
||||
ReleaseBackupPlanRequest::ReleaseBackupPlanRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "ReleaseBackupPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ReleaseBackupPlanRequest::~ReleaseBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string ReleaseBackupPlanRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ReleaseBackupPlanRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ReleaseBackupPlanRequest::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
void ReleaseBackupPlanRequest::setBackupPlanId(const std::string& backupPlanId)
|
||||
{
|
||||
backupPlanId_ = backupPlanId;
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string ReleaseBackupPlanRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ReleaseBackupPlanRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
79
dbs/src/model/ReleaseBackupPlanResult.cc
Normal file
79
dbs/src/model/ReleaseBackupPlanResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* 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/dbs/model/ReleaseBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
ReleaseBackupPlanResult::ReleaseBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReleaseBackupPlanResult::ReleaseBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReleaseBackupPlanResult::~ReleaseBackupPlanResult()
|
||||
{}
|
||||
|
||||
void ReleaseBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["BackupPlanId"].isNull())
|
||||
backupPlanId_ = value["BackupPlanId"].asString();
|
||||
|
||||
}
|
||||
|
||||
int ReleaseBackupPlanResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string ReleaseBackupPlanResult::getBackupPlanId()const
|
||||
{
|
||||
return backupPlanId_;
|
||||
}
|
||||
|
||||
std::string ReleaseBackupPlanResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool ReleaseBackupPlanResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ReleaseBackupPlanResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ set(dms-enterprise_public_header
|
||||
set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ApproveOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ApproveOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CheckFinishMissionRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CheckFinishMissionResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CloseOrderRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/CloseOrderResult.h
|
||||
include/alibabacloud/dms-enterprise/model/CreateOrderRequest.h
|
||||
@@ -41,6 +43,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteDataCorrectResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteDataExportResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteScriptRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ExecuteScriptResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetApprovalDetailResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h
|
||||
@@ -57,12 +61,20 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/GetInstanceResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetLogicDatabaseResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetMetaTableColumnResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetOpLogRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetOpLogResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetOrderBaseInfoResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetTableDBTopologyResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetUserRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetUserResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GetUserActiveTenantRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GetUserActiveTenantResult.h
|
||||
include/alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/GrantUserPermissionResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListColumnsRequest.h
|
||||
@@ -89,6 +101,8 @@ set(dms-enterprise_public_header_model
|
||||
include/alibabacloud/dms-enterprise/model/ListTablesResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUserPermissionsRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUserPermissionsResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUserTenantsRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUserTenantsResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUsersRequest.h
|
||||
include/alibabacloud/dms-enterprise/model/ListUsersResult.h
|
||||
include/alibabacloud/dms-enterprise/model/ListWorkFlowNodesRequest.h
|
||||
@@ -122,6 +136,8 @@ set(dms-enterprise_src
|
||||
src/Dms-enterpriseClient.cc
|
||||
src/model/ApproveOrderRequest.cc
|
||||
src/model/ApproveOrderResult.cc
|
||||
src/model/CheckFinishMissionRequest.cc
|
||||
src/model/CheckFinishMissionResult.cc
|
||||
src/model/CloseOrderRequest.cc
|
||||
src/model/CloseOrderResult.cc
|
||||
src/model/CreateOrderRequest.cc
|
||||
@@ -140,6 +156,8 @@ set(dms-enterprise_src
|
||||
src/model/ExecuteDataCorrectResult.cc
|
||||
src/model/ExecuteDataExportRequest.cc
|
||||
src/model/ExecuteDataExportResult.cc
|
||||
src/model/ExecuteScriptRequest.cc
|
||||
src/model/ExecuteScriptResult.cc
|
||||
src/model/GetApprovalDetailRequest.cc
|
||||
src/model/GetApprovalDetailResult.cc
|
||||
src/model/GetDataCorrectBackupFilesRequest.cc
|
||||
@@ -156,12 +174,20 @@ set(dms-enterprise_src
|
||||
src/model/GetInstanceResult.cc
|
||||
src/model/GetLogicDatabaseRequest.cc
|
||||
src/model/GetLogicDatabaseResult.cc
|
||||
src/model/GetMetaTableColumnRequest.cc
|
||||
src/model/GetMetaTableColumnResult.cc
|
||||
src/model/GetMetaTableDetailInfoRequest.cc
|
||||
src/model/GetMetaTableDetailInfoResult.cc
|
||||
src/model/GetOpLogRequest.cc
|
||||
src/model/GetOpLogResult.cc
|
||||
src/model/GetOrderBaseInfoRequest.cc
|
||||
src/model/GetOrderBaseInfoResult.cc
|
||||
src/model/GetTableDBTopologyRequest.cc
|
||||
src/model/GetTableDBTopologyResult.cc
|
||||
src/model/GetUserRequest.cc
|
||||
src/model/GetUserResult.cc
|
||||
src/model/GetUserActiveTenantRequest.cc
|
||||
src/model/GetUserActiveTenantResult.cc
|
||||
src/model/GrantUserPermissionRequest.cc
|
||||
src/model/GrantUserPermissionResult.cc
|
||||
src/model/ListColumnsRequest.cc
|
||||
@@ -188,6 +214,8 @@ set(dms-enterprise_src
|
||||
src/model/ListTablesResult.cc
|
||||
src/model/ListUserPermissionsRequest.cc
|
||||
src/model/ListUserPermissionsResult.cc
|
||||
src/model/ListUserTenantsRequest.cc
|
||||
src/model/ListUserTenantsResult.cc
|
||||
src/model/ListUsersRequest.cc
|
||||
src/model/ListUsersResult.cc
|
||||
src/model/ListWorkFlowNodesRequest.cc
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include "Dms_enterpriseExport.h"
|
||||
#include "model/ApproveOrderRequest.h"
|
||||
#include "model/ApproveOrderResult.h"
|
||||
#include "model/CheckFinishMissionRequest.h"
|
||||
#include "model/CheckFinishMissionResult.h"
|
||||
#include "model/CloseOrderRequest.h"
|
||||
#include "model/CloseOrderResult.h"
|
||||
#include "model/CreateOrderRequest.h"
|
||||
@@ -42,6 +44,8 @@
|
||||
#include "model/ExecuteDataCorrectResult.h"
|
||||
#include "model/ExecuteDataExportRequest.h"
|
||||
#include "model/ExecuteDataExportResult.h"
|
||||
#include "model/ExecuteScriptRequest.h"
|
||||
#include "model/ExecuteScriptResult.h"
|
||||
#include "model/GetApprovalDetailRequest.h"
|
||||
#include "model/GetApprovalDetailResult.h"
|
||||
#include "model/GetDataCorrectBackupFilesRequest.h"
|
||||
@@ -58,12 +62,20 @@
|
||||
#include "model/GetInstanceResult.h"
|
||||
#include "model/GetLogicDatabaseRequest.h"
|
||||
#include "model/GetLogicDatabaseResult.h"
|
||||
#include "model/GetMetaTableColumnRequest.h"
|
||||
#include "model/GetMetaTableColumnResult.h"
|
||||
#include "model/GetMetaTableDetailInfoRequest.h"
|
||||
#include "model/GetMetaTableDetailInfoResult.h"
|
||||
#include "model/GetOpLogRequest.h"
|
||||
#include "model/GetOpLogResult.h"
|
||||
#include "model/GetOrderBaseInfoRequest.h"
|
||||
#include "model/GetOrderBaseInfoResult.h"
|
||||
#include "model/GetTableDBTopologyRequest.h"
|
||||
#include "model/GetTableDBTopologyResult.h"
|
||||
#include "model/GetUserRequest.h"
|
||||
#include "model/GetUserResult.h"
|
||||
#include "model/GetUserActiveTenantRequest.h"
|
||||
#include "model/GetUserActiveTenantResult.h"
|
||||
#include "model/GrantUserPermissionRequest.h"
|
||||
#include "model/GrantUserPermissionResult.h"
|
||||
#include "model/ListColumnsRequest.h"
|
||||
@@ -90,6 +102,8 @@
|
||||
#include "model/ListTablesResult.h"
|
||||
#include "model/ListUserPermissionsRequest.h"
|
||||
#include "model/ListUserPermissionsResult.h"
|
||||
#include "model/ListUserTenantsRequest.h"
|
||||
#include "model/ListUserTenantsResult.h"
|
||||
#include "model/ListUsersRequest.h"
|
||||
#include "model/ListUsersResult.h"
|
||||
#include "model/ListWorkFlowNodesRequest.h"
|
||||
@@ -130,6 +144,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ApproveOrderResult> ApproveOrderOutcome;
|
||||
typedef std::future<ApproveOrderOutcome> ApproveOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ApproveOrderRequest&, const ApproveOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApproveOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CheckFinishMissionResult> CheckFinishMissionOutcome;
|
||||
typedef std::future<CheckFinishMissionOutcome> CheckFinishMissionOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CheckFinishMissionRequest&, const CheckFinishMissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckFinishMissionAsyncHandler;
|
||||
typedef Outcome<Error, Model::CloseOrderResult> CloseOrderOutcome;
|
||||
typedef std::future<CloseOrderOutcome> CloseOrderOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::CloseOrderRequest&, const CloseOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseOrderAsyncHandler;
|
||||
@@ -157,6 +174,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ExecuteDataExportResult> ExecuteDataExportOutcome;
|
||||
typedef std::future<ExecuteDataExportOutcome> ExecuteDataExportOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ExecuteDataExportRequest&, const ExecuteDataExportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteDataExportAsyncHandler;
|
||||
typedef Outcome<Error, Model::ExecuteScriptResult> ExecuteScriptOutcome;
|
||||
typedef std::future<ExecuteScriptOutcome> ExecuteScriptOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ExecuteScriptRequest&, const ExecuteScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteScriptAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetApprovalDetailResult> GetApprovalDetailOutcome;
|
||||
typedef std::future<GetApprovalDetailOutcome> GetApprovalDetailOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetApprovalDetailRequest&, const GetApprovalDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetApprovalDetailAsyncHandler;
|
||||
@@ -181,15 +201,27 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetLogicDatabaseResult> GetLogicDatabaseOutcome;
|
||||
typedef std::future<GetLogicDatabaseOutcome> GetLogicDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetLogicDatabaseRequest&, const GetLogicDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLogicDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMetaTableColumnResult> GetMetaTableColumnOutcome;
|
||||
typedef std::future<GetMetaTableColumnOutcome> GetMetaTableColumnOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetMetaTableColumnRequest&, const GetMetaTableColumnOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMetaTableColumnAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMetaTableDetailInfoResult> GetMetaTableDetailInfoOutcome;
|
||||
typedef std::future<GetMetaTableDetailInfoOutcome> GetMetaTableDetailInfoOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetMetaTableDetailInfoRequest&, const GetMetaTableDetailInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMetaTableDetailInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetOpLogResult> GetOpLogOutcome;
|
||||
typedef std::future<GetOpLogOutcome> GetOpLogOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetOpLogRequest&, const GetOpLogOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOpLogAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetOrderBaseInfoResult> GetOrderBaseInfoOutcome;
|
||||
typedef std::future<GetOrderBaseInfoOutcome> GetOrderBaseInfoOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetOrderBaseInfoRequest&, const GetOrderBaseInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOrderBaseInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetTableDBTopologyResult> GetTableDBTopologyOutcome;
|
||||
typedef std::future<GetTableDBTopologyOutcome> GetTableDBTopologyOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetTableDBTopologyRequest&, const GetTableDBTopologyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetTableDBTopologyAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserResult> GetUserOutcome;
|
||||
typedef std::future<GetUserOutcome> GetUserOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetUserRequest&, const GetUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserActiveTenantResult> GetUserActiveTenantOutcome;
|
||||
typedef std::future<GetUserActiveTenantOutcome> GetUserActiveTenantOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GetUserActiveTenantRequest&, const GetUserActiveTenantOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserActiveTenantAsyncHandler;
|
||||
typedef Outcome<Error, Model::GrantUserPermissionResult> GrantUserPermissionOutcome;
|
||||
typedef std::future<GrantUserPermissionOutcome> GrantUserPermissionOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::GrantUserPermissionRequest&, const GrantUserPermissionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GrantUserPermissionAsyncHandler;
|
||||
@@ -229,6 +261,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListUserPermissionsResult> ListUserPermissionsOutcome;
|
||||
typedef std::future<ListUserPermissionsOutcome> ListUserPermissionsOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListUserPermissionsRequest&, const ListUserPermissionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserPermissionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUserTenantsResult> ListUserTenantsOutcome;
|
||||
typedef std::future<ListUserTenantsOutcome> ListUserTenantsOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListUserTenantsRequest&, const ListUserTenantsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserTenantsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUsersResult> ListUsersOutcome;
|
||||
typedef std::future<ListUsersOutcome> ListUsersOutcomeCallable;
|
||||
typedef std::function<void(const Dms_enterpriseClient*, const Model::ListUsersRequest&, const ListUsersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUsersAsyncHandler;
|
||||
@@ -279,6 +314,9 @@ namespace AlibabaCloud
|
||||
ApproveOrderOutcome approveOrder(const Model::ApproveOrderRequest &request)const;
|
||||
void approveOrderAsync(const Model::ApproveOrderRequest& request, const ApproveOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApproveOrderOutcomeCallable approveOrderCallable(const Model::ApproveOrderRequest& request) const;
|
||||
CheckFinishMissionOutcome checkFinishMission(const Model::CheckFinishMissionRequest &request)const;
|
||||
void checkFinishMissionAsync(const Model::CheckFinishMissionRequest& request, const CheckFinishMissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckFinishMissionOutcomeCallable checkFinishMissionCallable(const Model::CheckFinishMissionRequest& request) const;
|
||||
CloseOrderOutcome closeOrder(const Model::CloseOrderRequest &request)const;
|
||||
void closeOrderAsync(const Model::CloseOrderRequest& request, const CloseOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseOrderOutcomeCallable closeOrderCallable(const Model::CloseOrderRequest& request) const;
|
||||
@@ -306,6 +344,9 @@ namespace AlibabaCloud
|
||||
ExecuteDataExportOutcome executeDataExport(const Model::ExecuteDataExportRequest &request)const;
|
||||
void executeDataExportAsync(const Model::ExecuteDataExportRequest& request, const ExecuteDataExportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExecuteDataExportOutcomeCallable executeDataExportCallable(const Model::ExecuteDataExportRequest& request) const;
|
||||
ExecuteScriptOutcome executeScript(const Model::ExecuteScriptRequest &request)const;
|
||||
void executeScriptAsync(const Model::ExecuteScriptRequest& request, const ExecuteScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ExecuteScriptOutcomeCallable executeScriptCallable(const Model::ExecuteScriptRequest& request) const;
|
||||
GetApprovalDetailOutcome getApprovalDetail(const Model::GetApprovalDetailRequest &request)const;
|
||||
void getApprovalDetailAsync(const Model::GetApprovalDetailRequest& request, const GetApprovalDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetApprovalDetailOutcomeCallable getApprovalDetailCallable(const Model::GetApprovalDetailRequest& request) const;
|
||||
@@ -330,15 +371,27 @@ namespace AlibabaCloud
|
||||
GetLogicDatabaseOutcome getLogicDatabase(const Model::GetLogicDatabaseRequest &request)const;
|
||||
void getLogicDatabaseAsync(const Model::GetLogicDatabaseRequest& request, const GetLogicDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetLogicDatabaseOutcomeCallable getLogicDatabaseCallable(const Model::GetLogicDatabaseRequest& request) const;
|
||||
GetMetaTableColumnOutcome getMetaTableColumn(const Model::GetMetaTableColumnRequest &request)const;
|
||||
void getMetaTableColumnAsync(const Model::GetMetaTableColumnRequest& request, const GetMetaTableColumnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMetaTableColumnOutcomeCallable getMetaTableColumnCallable(const Model::GetMetaTableColumnRequest& request) const;
|
||||
GetMetaTableDetailInfoOutcome getMetaTableDetailInfo(const Model::GetMetaTableDetailInfoRequest &request)const;
|
||||
void getMetaTableDetailInfoAsync(const Model::GetMetaTableDetailInfoRequest& request, const GetMetaTableDetailInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMetaTableDetailInfoOutcomeCallable getMetaTableDetailInfoCallable(const Model::GetMetaTableDetailInfoRequest& request) const;
|
||||
GetOpLogOutcome getOpLog(const Model::GetOpLogRequest &request)const;
|
||||
void getOpLogAsync(const Model::GetOpLogRequest& request, const GetOpLogAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetOpLogOutcomeCallable getOpLogCallable(const Model::GetOpLogRequest& request) const;
|
||||
GetOrderBaseInfoOutcome getOrderBaseInfo(const Model::GetOrderBaseInfoRequest &request)const;
|
||||
void getOrderBaseInfoAsync(const Model::GetOrderBaseInfoRequest& request, const GetOrderBaseInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetOrderBaseInfoOutcomeCallable getOrderBaseInfoCallable(const Model::GetOrderBaseInfoRequest& request) const;
|
||||
GetTableDBTopologyOutcome getTableDBTopology(const Model::GetTableDBTopologyRequest &request)const;
|
||||
void getTableDBTopologyAsync(const Model::GetTableDBTopologyRequest& request, const GetTableDBTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetTableDBTopologyOutcomeCallable getTableDBTopologyCallable(const Model::GetTableDBTopologyRequest& request) const;
|
||||
GetUserOutcome getUser(const Model::GetUserRequest &request)const;
|
||||
void getUserAsync(const Model::GetUserRequest& request, const GetUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserOutcomeCallable getUserCallable(const Model::GetUserRequest& request) const;
|
||||
GetUserActiveTenantOutcome getUserActiveTenant(const Model::GetUserActiveTenantRequest &request)const;
|
||||
void getUserActiveTenantAsync(const Model::GetUserActiveTenantRequest& request, const GetUserActiveTenantAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetUserActiveTenantOutcomeCallable getUserActiveTenantCallable(const Model::GetUserActiveTenantRequest& request) const;
|
||||
GrantUserPermissionOutcome grantUserPermission(const Model::GrantUserPermissionRequest &request)const;
|
||||
void grantUserPermissionAsync(const Model::GrantUserPermissionRequest& request, const GrantUserPermissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GrantUserPermissionOutcomeCallable grantUserPermissionCallable(const Model::GrantUserPermissionRequest& request) const;
|
||||
@@ -378,6 +431,9 @@ namespace AlibabaCloud
|
||||
ListUserPermissionsOutcome listUserPermissions(const Model::ListUserPermissionsRequest &request)const;
|
||||
void listUserPermissionsAsync(const Model::ListUserPermissionsRequest& request, const ListUserPermissionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUserPermissionsOutcomeCallable listUserPermissionsCallable(const Model::ListUserPermissionsRequest& request) const;
|
||||
ListUserTenantsOutcome listUserTenants(const Model::ListUserTenantsRequest &request)const;
|
||||
void listUserTenantsAsync(const Model::ListUserTenantsRequest& request, const ListUserTenantsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUserTenantsOutcomeCallable listUserTenantsCallable(const Model::ListUserTenantsRequest& request) const;
|
||||
ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const;
|
||||
void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CheckFinishMissionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CheckFinishMissionRequest();
|
||||
~CheckFinishMissionRequest();
|
||||
|
||||
std::string getMissionType()const;
|
||||
void setMissionType(const std::string& missionType);
|
||||
|
||||
private:
|
||||
std::string missionType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT CheckFinishMissionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CheckFinishMissionResult();
|
||||
explicit CheckFinishMissionResult(const std::string &payload);
|
||||
~CheckFinishMissionResult();
|
||||
bool getHasFinish()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool hasFinish_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_CHECKFINISHMISSIONRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteScriptRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ExecuteScriptRequest();
|
||||
~ExecuteScriptRequest();
|
||||
|
||||
int getDbId()const;
|
||||
void setDbId(int dbId);
|
||||
bool getLogic()const;
|
||||
void setLogic(bool logic);
|
||||
std::string getScript()const;
|
||||
void setScript(const std::string& script);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
|
||||
private:
|
||||
int dbId_;
|
||||
bool logic_;
|
||||
std::string script_;
|
||||
long tid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ExecuteScriptResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::vector<std::string> columnNames;
|
||||
std::string message;
|
||||
long rowCount;
|
||||
bool success;
|
||||
std::vector<std::string> rows;
|
||||
};
|
||||
|
||||
|
||||
ExecuteScriptResult();
|
||||
explicit ExecuteScriptResult(const std::string &payload);
|
||||
~ExecuteScriptResult();
|
||||
std::vector<Result> getResults()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Result> results_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_EXECUTESCRIPTRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableColumnRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMetaTableColumnRequest();
|
||||
~GetMetaTableColumnRequest();
|
||||
|
||||
std::string getTableGuid()const;
|
||||
void setTableGuid(const std::string& tableGuid);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
|
||||
private:
|
||||
std::string tableGuid_;
|
||||
long tid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNREQUEST_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableColumnResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Column
|
||||
{
|
||||
std::string columnId;
|
||||
std::string columnName;
|
||||
std::string columnType;
|
||||
std::string description;
|
||||
int position;
|
||||
bool autoIncrement;
|
||||
std::string securityLevel;
|
||||
int dataLength;
|
||||
int dataScale;
|
||||
std::string primaryKey;
|
||||
int dataPrecision;
|
||||
bool nullable;
|
||||
};
|
||||
|
||||
|
||||
GetMetaTableColumnResult();
|
||||
explicit GetMetaTableColumnResult(const std::string &payload);
|
||||
~GetMetaTableColumnResult();
|
||||
std::vector<Column> getColumnList()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Column> columnList_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLECOLUMNRESULT_H_
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUEREQUEST_H_
|
||||
#define ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/industry-brain/Industry_brainExport.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Industry_brain
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_INDUSTRY_BRAIN_EXPORT GetPointReckoningValueRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableDetailInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPointReckoningValueRequest();
|
||||
~GetPointReckoningValueRequest();
|
||||
GetMetaTableDetailInfoRequest();
|
||||
~GetMetaTableDetailInfoRequest();
|
||||
|
||||
std::string getTimeType()const;
|
||||
void setTimeType(const std::string& timeType);
|
||||
std::string getTemplateId()const;
|
||||
void setTemplateId(const std::string& templateId);
|
||||
std::string getTableGuid()const;
|
||||
void setTableGuid(const std::string& tableGuid);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
|
||||
private:
|
||||
std::string timeType_;
|
||||
std::string templateId_;
|
||||
std::string tableGuid_;
|
||||
long tid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTRECKONINGVALUEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFOREQUEST_H_
|
||||
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* 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_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFORESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetMetaTableDetailInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DetailInfo
|
||||
{
|
||||
struct Column
|
||||
{
|
||||
std::string columnId;
|
||||
std::string columnName;
|
||||
std::string description;
|
||||
std::string columnType;
|
||||
std::string position;
|
||||
bool autoIncrement;
|
||||
int dataLength;
|
||||
int dataScale;
|
||||
int dataPrecision;
|
||||
bool nullable;
|
||||
};
|
||||
struct Index
|
||||
{
|
||||
std::string indexName;
|
||||
std::string indexId;
|
||||
std::vector<std::string> indexColumns;
|
||||
bool unique;
|
||||
std::string indexType;
|
||||
};
|
||||
std::vector<Column> columnList;
|
||||
std::vector<Index> indexList;
|
||||
};
|
||||
|
||||
|
||||
GetMetaTableDetailInfoResult();
|
||||
explicit GetMetaTableDetailInfoResult(const std::string &payload);
|
||||
~GetMetaTableDetailInfoResult();
|
||||
DetailInfo getDetailInfo()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DetailInfo detailInfo_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETMETATABLEDETAILINFORESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetTableDBTopologyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetTableDBTopologyRequest();
|
||||
~GetTableDBTopologyRequest();
|
||||
|
||||
std::string getTableGuid()const;
|
||||
void setTableGuid(const std::string& tableGuid);
|
||||
long getTid()const;
|
||||
void setTid(long tid);
|
||||
|
||||
private:
|
||||
std::string tableGuid_;
|
||||
long tid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYREQUEST_H_
|
||||
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetTableDBTopologyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DBTopology
|
||||
{
|
||||
struct DataSource
|
||||
{
|
||||
struct Database
|
||||
{
|
||||
struct Table
|
||||
{
|
||||
std::string tableId;
|
||||
std::string tableName;
|
||||
std::string tableType;
|
||||
};
|
||||
std::string dbId;
|
||||
std::string dbName;
|
||||
std::vector<Database::Table> tableList;
|
||||
std::string envType;
|
||||
std::string dbType;
|
||||
};
|
||||
std::vector<DataSource::Database> databaseList;
|
||||
int port;
|
||||
std::string host;
|
||||
std::string dbType;
|
||||
std::string sid;
|
||||
};
|
||||
std::string tableName;
|
||||
std::string tableGuid;
|
||||
std::vector<DataSource> dataSourceList;
|
||||
};
|
||||
|
||||
|
||||
GetTableDBTopologyResult();
|
||||
explicit GetTableDBTopologyResult(const std::string &payload);
|
||||
~GetTableDBTopologyResult();
|
||||
DBTopology getDBTopology()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
DBTopology dBTopology_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETTABLEDBTOPOLOGYRESULT_H_
|
||||
@@ -14,38 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUEREQUEST_H_
|
||||
#define ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/industry-brain/Industry_brainExport.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Industry_brain
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_INDUSTRY_BRAIN_EXPORT GetPointSampleValueRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserActiveTenantRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPointSampleValueRequest();
|
||||
~GetPointSampleValueRequest();
|
||||
GetUserActiveTenantRequest();
|
||||
~GetUserActiveTenantRequest();
|
||||
|
||||
std::string getTimeType()const;
|
||||
void setTimeType(const std::string& timeType);
|
||||
std::string getTemplateId()const;
|
||||
void setTemplateId(const std::string& templateId);
|
||||
|
||||
private:
|
||||
std::string timeType_;
|
||||
std::string templateId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_INDUSTRY_BRAIN_MODEL_GETPOINTSAMPLEVALUEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTREQUEST_H_
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT GetUserActiveTenantResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Tenant
|
||||
{
|
||||
std::string status;
|
||||
std::string tenantName;
|
||||
long tid;
|
||||
};
|
||||
|
||||
|
||||
GetUserActiveTenantResult();
|
||||
explicit GetUserActiveTenantResult(const std::string &payload);
|
||||
~GetUserActiveTenantResult();
|
||||
Tenant getTenant()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Tenant tenant_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_GETUSERACTIVETENANTRESULT_H_
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getSearchName()const;
|
||||
void setSearchName(const std::string& searchName);
|
||||
bool getReturnGuid()const;
|
||||
void setReturnGuid(bool returnGuid);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getDatabaseId()const;
|
||||
@@ -48,6 +50,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string searchName_;
|
||||
bool returnGuid_;
|
||||
int pageSize_;
|
||||
std::string databaseId_;
|
||||
long tid_;
|
||||
|
||||
@@ -36,11 +36,13 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string tableId;
|
||||
std::string tableName;
|
||||
std::string tableGuid;
|
||||
std::string tableExpr;
|
||||
std::string tableCount;
|
||||
std::string databaseId;
|
||||
std::vector<std::string> ownerNameList;
|
||||
bool logic;
|
||||
std::string schemaName;
|
||||
std::vector<std::string> ownerIdList;
|
||||
};
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getSearchName()const;
|
||||
void setSearchName(const std::string& searchName);
|
||||
bool getReturnGuid()const;
|
||||
void setReturnGuid(bool returnGuid);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getDatabaseId()const;
|
||||
@@ -48,6 +50,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string searchName_;
|
||||
bool returnGuid_;
|
||||
int pageSize_;
|
||||
std::string databaseId_;
|
||||
long tid_;
|
||||
|
||||
@@ -35,13 +35,15 @@ namespace AlibabaCloud
|
||||
struct Table
|
||||
{
|
||||
std::string tableId;
|
||||
std::string tableName;
|
||||
std::string tableType;
|
||||
std::string tableSchemaName;
|
||||
std::string description;
|
||||
std::string databaseId;
|
||||
std::string encoding;
|
||||
std::vector<std::string> ownerNameList;
|
||||
long numRows;
|
||||
std::string tableName;
|
||||
std::string tableGuid;
|
||||
std::string tableSchemaName;
|
||||
std::vector<std::string> ownerNameList;
|
||||
long storeCapacity;
|
||||
std::string engine;
|
||||
std::vector<std::string> ownerIdList;
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserTenantsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListUserTenantsRequest();
|
||||
~ListUserTenantsRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSREQUEST_H_
|
||||
@@ -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_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSRESULT_H_
|
||||
#define ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dms-enterprise/Dms_enterpriseExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dms_enterprise
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DMS_ENTERPRISE_EXPORT ListUserTenantsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Tenant
|
||||
{
|
||||
std::string status;
|
||||
std::string tenantName;
|
||||
long tid;
|
||||
};
|
||||
|
||||
|
||||
ListUserTenantsResult();
|
||||
explicit ListUserTenantsResult(const std::string &payload);
|
||||
~ListUserTenantsResult();
|
||||
std::vector<Tenant> getTenantList()const;
|
||||
std::string getErrorCode()const;
|
||||
std::string getErrorMessage()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Tenant> tenantList_;
|
||||
std::string errorCode_;
|
||||
std::string errorMessage_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DMS_ENTERPRISE_MODEL_LISTUSERTENANTSRESULT_H_
|
||||
@@ -75,6 +75,8 @@ namespace AlibabaCloud
|
||||
void setVpcId(const std::string& vpcId);
|
||||
long getDbaUid()const;
|
||||
void setDbaUid(long dbaUid);
|
||||
bool getSkipTest()const;
|
||||
void setSkipTest(bool skipTest);
|
||||
std::string getSafeRule()const;
|
||||
void setSafeRule(const std::string& safeRule);
|
||||
|
||||
@@ -99,6 +101,7 @@ namespace AlibabaCloud
|
||||
int port_;
|
||||
std::string vpcId_;
|
||||
long dbaUid_;
|
||||
bool skipTest_;
|
||||
std::string safeRule_;
|
||||
|
||||
};
|
||||
|
||||
@@ -35,12 +35,8 @@ namespace AlibabaCloud
|
||||
SearchTableRequest();
|
||||
~SearchTableRequest();
|
||||
|
||||
std::string getSearchTarget()const;
|
||||
void setSearchTarget(const std::string& searchTarget);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getEnvType()const;
|
||||
void setEnvType(const std::string& envType);
|
||||
bool getReturnGuid()const;
|
||||
void setReturnGuid(bool returnGuid);
|
||||
std::string getSearchKey()const;
|
||||
void setSearchKey(const std::string& searchKey);
|
||||
std::string getSearchRange()const;
|
||||
@@ -49,15 +45,25 @@ namespace AlibabaCloud
|
||||
void setTid(long tid);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getSearchTarget()const;
|
||||
void setSearchTarget(const std::string& searchTarget);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getEnvType()const;
|
||||
void setEnvType(const std::string& envType);
|
||||
std::string getDbType()const;
|
||||
void setDbType(const std::string& dbType);
|
||||
|
||||
private:
|
||||
std::string searchTarget_;
|
||||
int pageSize_;
|
||||
std::string envType_;
|
||||
bool returnGuid_;
|
||||
std::string searchKey_;
|
||||
std::string searchRange_;
|
||||
long tid_;
|
||||
int pageNumber_;
|
||||
std::string searchTarget_;
|
||||
int pageSize_;
|
||||
std::string envType_;
|
||||
std::string dbType_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,15 +35,19 @@ namespace AlibabaCloud
|
||||
struct SearchTable
|
||||
{
|
||||
std::string tableId;
|
||||
std::string tableName;
|
||||
std::string tableSchemaName;
|
||||
std::string description;
|
||||
std::string databaseId;
|
||||
std::string encoding;
|
||||
std::string dBSearchName;
|
||||
std::string envType;
|
||||
std::string dbType;
|
||||
std::string tableName;
|
||||
std::string tableGuid;
|
||||
std::string tableSchemaName;
|
||||
std::string dbName;
|
||||
std::vector<std::string> ownerNameList;
|
||||
bool logic;
|
||||
std::string dBSearchName;
|
||||
std::string engine;
|
||||
std::string envType;
|
||||
std::vector<std::string> ownerIdList;
|
||||
};
|
||||
|
||||
|
||||
@@ -77,6 +77,8 @@ namespace AlibabaCloud
|
||||
void setPort(int port);
|
||||
std::string getVpcId()const;
|
||||
void setVpcId(const std::string& vpcId);
|
||||
bool getSkipTest()const;
|
||||
void setSkipTest(bool skipTest);
|
||||
|
||||
private:
|
||||
std::string safeRuleId_;
|
||||
@@ -100,6 +102,7 @@ namespace AlibabaCloud
|
||||
std::string instanceId_;
|
||||
int port_;
|
||||
std::string vpcId_;
|
||||
bool skipTest_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -87,6 +87,42 @@ Dms_enterpriseClient::ApproveOrderOutcomeCallable Dms_enterpriseClient::approveO
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CheckFinishMissionOutcome Dms_enterpriseClient::checkFinishMission(const CheckFinishMissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckFinishMissionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckFinishMissionOutcome(CheckFinishMissionResult(outcome.result()));
|
||||
else
|
||||
return CheckFinishMissionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::checkFinishMissionAsync(const CheckFinishMissionRequest& request, const CheckFinishMissionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkFinishMission(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CheckFinishMissionOutcomeCallable Dms_enterpriseClient::checkFinishMissionCallable(const CheckFinishMissionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckFinishMissionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkFinishMission(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CloseOrderOutcome Dms_enterpriseClient::closeOrder(const CloseOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +447,42 @@ Dms_enterpriseClient::ExecuteDataExportOutcomeCallable Dms_enterpriseClient::exe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ExecuteScriptOutcome Dms_enterpriseClient::executeScript(const ExecuteScriptRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ExecuteScriptOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ExecuteScriptOutcome(ExecuteScriptResult(outcome.result()));
|
||||
else
|
||||
return ExecuteScriptOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::executeScriptAsync(const ExecuteScriptRequest& request, const ExecuteScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, executeScript(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ExecuteScriptOutcomeCallable Dms_enterpriseClient::executeScriptCallable(const ExecuteScriptRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ExecuteScriptOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->executeScript(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetApprovalDetailOutcome Dms_enterpriseClient::getApprovalDetail(const GetApprovalDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +771,78 @@ Dms_enterpriseClient::GetLogicDatabaseOutcomeCallable Dms_enterpriseClient::getL
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetMetaTableColumnOutcome Dms_enterpriseClient::getMetaTableColumn(const GetMetaTableColumnRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMetaTableColumnOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMetaTableColumnOutcome(GetMetaTableColumnResult(outcome.result()));
|
||||
else
|
||||
return GetMetaTableColumnOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getMetaTableColumnAsync(const GetMetaTableColumnRequest& request, const GetMetaTableColumnAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMetaTableColumn(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetMetaTableColumnOutcomeCallable Dms_enterpriseClient::getMetaTableColumnCallable(const GetMetaTableColumnRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMetaTableColumnOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMetaTableColumn(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetMetaTableDetailInfoOutcome Dms_enterpriseClient::getMetaTableDetailInfo(const GetMetaTableDetailInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMetaTableDetailInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMetaTableDetailInfoOutcome(GetMetaTableDetailInfoResult(outcome.result()));
|
||||
else
|
||||
return GetMetaTableDetailInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getMetaTableDetailInfoAsync(const GetMetaTableDetailInfoRequest& request, const GetMetaTableDetailInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMetaTableDetailInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetMetaTableDetailInfoOutcomeCallable Dms_enterpriseClient::getMetaTableDetailInfoCallable(const GetMetaTableDetailInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMetaTableDetailInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMetaTableDetailInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetOpLogOutcome Dms_enterpriseClient::getOpLog(const GetOpLogRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -771,6 +915,42 @@ Dms_enterpriseClient::GetOrderBaseInfoOutcomeCallable Dms_enterpriseClient::getO
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetTableDBTopologyOutcome Dms_enterpriseClient::getTableDBTopology(const GetTableDBTopologyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetTableDBTopologyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetTableDBTopologyOutcome(GetTableDBTopologyResult(outcome.result()));
|
||||
else
|
||||
return GetTableDBTopologyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getTableDBTopologyAsync(const GetTableDBTopologyRequest& request, const GetTableDBTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getTableDBTopology(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetTableDBTopologyOutcomeCallable Dms_enterpriseClient::getTableDBTopologyCallable(const GetTableDBTopologyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetTableDBTopologyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getTableDBTopology(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetUserOutcome Dms_enterpriseClient::getUser(const GetUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -807,6 +987,42 @@ Dms_enterpriseClient::GetUserOutcomeCallable Dms_enterpriseClient::getUserCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetUserActiveTenantOutcome Dms_enterpriseClient::getUserActiveTenant(const GetUserActiveTenantRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetUserActiveTenantOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetUserActiveTenantOutcome(GetUserActiveTenantResult(outcome.result()));
|
||||
else
|
||||
return GetUserActiveTenantOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getUserActiveTenantAsync(const GetUserActiveTenantRequest& request, const GetUserActiveTenantAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getUserActiveTenant(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetUserActiveTenantOutcomeCallable Dms_enterpriseClient::getUserActiveTenantCallable(const GetUserActiveTenantRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetUserActiveTenantOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getUserActiveTenant(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GrantUserPermissionOutcome Dms_enterpriseClient::grantUserPermission(const GrantUserPermissionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1275,6 +1491,42 @@ Dms_enterpriseClient::ListUserPermissionsOutcomeCallable Dms_enterpriseClient::l
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListUserTenantsOutcome Dms_enterpriseClient::listUserTenants(const ListUserTenantsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListUserTenantsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListUserTenantsOutcome(ListUserTenantsResult(outcome.result()));
|
||||
else
|
||||
return ListUserTenantsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::listUserTenantsAsync(const ListUserTenantsRequest& request, const ListUserTenantsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listUserTenants(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListUserTenantsOutcomeCallable Dms_enterpriseClient::listUserTenantsCallable(const ListUserTenantsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListUserTenantsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listUserTenants(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListUsersOutcome Dms_enterpriseClient::listUsers(const ListUsersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
40
dms-enterprise/src/model/CheckFinishMissionRequest.cc
Normal file
40
dms-enterprise/src/model/CheckFinishMissionRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CheckFinishMissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CheckFinishMissionRequest;
|
||||
|
||||
CheckFinishMissionRequest::CheckFinishMissionRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CheckFinishMission")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
CheckFinishMissionRequest::~CheckFinishMissionRequest()
|
||||
{}
|
||||
|
||||
std::string CheckFinishMissionRequest::getMissionType()const
|
||||
{
|
||||
return missionType_;
|
||||
}
|
||||
|
||||
void CheckFinishMissionRequest::setMissionType(const std::string& missionType)
|
||||
{
|
||||
missionType_ = missionType;
|
||||
setParameter("MissionType", missionType);
|
||||
}
|
||||
|
||||
72
dms-enterprise/src/model/CheckFinishMissionResult.cc
Normal file
72
dms-enterprise/src/model/CheckFinishMissionResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CheckFinishMissionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
CheckFinishMissionResult::CheckFinishMissionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckFinishMissionResult::CheckFinishMissionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckFinishMissionResult::~CheckFinishMissionResult()
|
||||
{}
|
||||
|
||||
void CheckFinishMissionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["HasFinish"].isNull())
|
||||
hasFinish_ = value["HasFinish"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckFinishMissionResult::getHasFinish()const
|
||||
{
|
||||
return hasFinish_;
|
||||
}
|
||||
|
||||
std::string CheckFinishMissionResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CheckFinishMissionResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CheckFinishMissionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/ExecuteScriptRequest.cc
Normal file
73
dms-enterprise/src/model/ExecuteScriptRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ExecuteScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteScriptRequest;
|
||||
|
||||
ExecuteScriptRequest::ExecuteScriptRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteScript")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExecuteScriptRequest::~ExecuteScriptRequest()
|
||||
{}
|
||||
|
||||
int ExecuteScriptRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setDbId(int dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
bool ExecuteScriptRequest::getLogic()const
|
||||
{
|
||||
return logic_;
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setLogic(bool logic)
|
||||
{
|
||||
logic_ = logic;
|
||||
setParameter("Logic", logic ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ExecuteScriptRequest::getScript()const
|
||||
{
|
||||
return script_;
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setScript(const std::string& script)
|
||||
{
|
||||
script_ = script;
|
||||
setParameter("Script", script);
|
||||
}
|
||||
|
||||
long ExecuteScriptRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
}
|
||||
|
||||
88
dms-enterprise/src/model/ExecuteScriptResult.cc
Normal file
88
dms-enterprise/src/model/ExecuteScriptResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/ExecuteScriptResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
ExecuteScriptResult::ExecuteScriptResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExecuteScriptResult::ExecuteScriptResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExecuteScriptResult::~ExecuteScriptResult()
|
||||
{}
|
||||
|
||||
void ExecuteScriptResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultsNode = value["Results"]["Result"];
|
||||
for (auto valueResultsResult : allResultsNode)
|
||||
{
|
||||
Result resultsObject;
|
||||
if(!valueResultsResult["RowCount"].isNull())
|
||||
resultsObject.rowCount = std::stol(valueResultsResult["RowCount"].asString());
|
||||
if(!valueResultsResult["Success"].isNull())
|
||||
resultsObject.success = valueResultsResult["Success"].asString() == "true";
|
||||
if(!valueResultsResult["Message"].isNull())
|
||||
resultsObject.message = valueResultsResult["Message"].asString();
|
||||
auto allColumnNames = value["ColumnNames"]["ColumnNames"];
|
||||
for (auto value : allColumnNames)
|
||||
resultsObject.columnNames.push_back(value.asString());
|
||||
auto allRows = value["Rows"]["Rows"];
|
||||
for (auto value : allRows)
|
||||
resultsObject.rows.push_back(value.asString());
|
||||
results_.push_back(resultsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ExecuteScriptResult::Result> ExecuteScriptResult::getResults()const
|
||||
{
|
||||
return results_;
|
||||
}
|
||||
|
||||
std::string ExecuteScriptResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ExecuteScriptResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ExecuteScriptResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
dms-enterprise/src/model/GetMetaTableColumnRequest.cc
Normal file
51
dms-enterprise/src/model/GetMetaTableColumnRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetMetaTableColumnRequest;
|
||||
|
||||
GetMetaTableColumnRequest::GetMetaTableColumnRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableColumn")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMetaTableColumnRequest::~GetMetaTableColumnRequest()
|
||||
{}
|
||||
|
||||
std::string GetMetaTableColumnRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
void GetMetaTableColumnRequest::setTableGuid(const std::string& tableGuid)
|
||||
{
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter("TableGuid", tableGuid);
|
||||
}
|
||||
|
||||
long GetMetaTableColumnRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetMetaTableColumnRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
}
|
||||
|
||||
100
dms-enterprise/src/model/GetMetaTableColumnResult.cc
Normal file
100
dms-enterprise/src/model/GetMetaTableColumnResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetMetaTableColumnResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetMetaTableColumnResult::GetMetaTableColumnResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMetaTableColumnResult::GetMetaTableColumnResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMetaTableColumnResult::~GetMetaTableColumnResult()
|
||||
{}
|
||||
|
||||
void GetMetaTableColumnResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allColumnListNode = value["ColumnList"]["Column"];
|
||||
for (auto valueColumnListColumn : allColumnListNode)
|
||||
{
|
||||
Column columnListObject;
|
||||
if(!valueColumnListColumn["ColumnId"].isNull())
|
||||
columnListObject.columnId = valueColumnListColumn["ColumnId"].asString();
|
||||
if(!valueColumnListColumn["ColumnName"].isNull())
|
||||
columnListObject.columnName = valueColumnListColumn["ColumnName"].asString();
|
||||
if(!valueColumnListColumn["ColumnType"].isNull())
|
||||
columnListObject.columnType = valueColumnListColumn["ColumnType"].asString();
|
||||
if(!valueColumnListColumn["DataLength"].isNull())
|
||||
columnListObject.dataLength = std::stoi(valueColumnListColumn["DataLength"].asString());
|
||||
if(!valueColumnListColumn["Description"].isNull())
|
||||
columnListObject.description = valueColumnListColumn["Description"].asString();
|
||||
if(!valueColumnListColumn["Position"].isNull())
|
||||
columnListObject.position = std::stoi(valueColumnListColumn["Position"].asString());
|
||||
if(!valueColumnListColumn["AutoIncrement"].isNull())
|
||||
columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true";
|
||||
if(!valueColumnListColumn["Nullable"].isNull())
|
||||
columnListObject.nullable = valueColumnListColumn["Nullable"].asString() == "true";
|
||||
if(!valueColumnListColumn["SecurityLevel"].isNull())
|
||||
columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString();
|
||||
if(!valueColumnListColumn["PrimaryKey"].isNull())
|
||||
columnListObject.primaryKey = valueColumnListColumn["PrimaryKey"].asString();
|
||||
if(!valueColumnListColumn["DataScale"].isNull())
|
||||
columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString());
|
||||
if(!valueColumnListColumn["DataPrecision"].isNull())
|
||||
columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString());
|
||||
columnList_.push_back(columnListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetMetaTableColumnResult::Column> GetMetaTableColumnResult::getColumnList()const
|
||||
{
|
||||
return columnList_;
|
||||
}
|
||||
|
||||
std::string GetMetaTableColumnResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMetaTableColumnResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMetaTableColumnResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
dms-enterprise/src/model/GetMetaTableDetailInfoRequest.cc
Normal file
51
dms-enterprise/src/model/GetMetaTableDetailInfoRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetMetaTableDetailInfoRequest;
|
||||
|
||||
GetMetaTableDetailInfoRequest::GetMetaTableDetailInfoRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableDetailInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMetaTableDetailInfoRequest::~GetMetaTableDetailInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetMetaTableDetailInfoRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
void GetMetaTableDetailInfoRequest::setTableGuid(const std::string& tableGuid)
|
||||
{
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter("TableGuid", tableGuid);
|
||||
}
|
||||
|
||||
long GetMetaTableDetailInfoRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetMetaTableDetailInfoRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
}
|
||||
|
||||
114
dms-enterprise/src/model/GetMetaTableDetailInfoResult.cc
Normal file
114
dms-enterprise/src/model/GetMetaTableDetailInfoResult.cc
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetMetaTableDetailInfoResult::GetMetaTableDetailInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMetaTableDetailInfoResult::GetMetaTableDetailInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMetaTableDetailInfoResult::~GetMetaTableDetailInfoResult()
|
||||
{}
|
||||
|
||||
void GetMetaTableDetailInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto detailInfoNode = value["DetailInfo"];
|
||||
auto allColumnListNode = detailInfoNode["ColumnList"]["Column"];
|
||||
for (auto detailInfoNodeColumnListColumn : allColumnListNode)
|
||||
{
|
||||
DetailInfo::Column columnObject;
|
||||
if(!detailInfoNodeColumnListColumn["Description"].isNull())
|
||||
columnObject.description = detailInfoNodeColumnListColumn["Description"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["ColumnType"].isNull())
|
||||
columnObject.columnType = detailInfoNodeColumnListColumn["ColumnType"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["Position"].isNull())
|
||||
columnObject.position = detailInfoNodeColumnListColumn["Position"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["DataLength"].isNull())
|
||||
columnObject.dataLength = std::stoi(detailInfoNodeColumnListColumn["DataLength"].asString());
|
||||
if(!detailInfoNodeColumnListColumn["Nullable"].isNull())
|
||||
columnObject.nullable = detailInfoNodeColumnListColumn["Nullable"].asString() == "true";
|
||||
if(!detailInfoNodeColumnListColumn["ColumnName"].isNull())
|
||||
columnObject.columnName = detailInfoNodeColumnListColumn["ColumnName"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["AutoIncrement"].isNull())
|
||||
columnObject.autoIncrement = detailInfoNodeColumnListColumn["AutoIncrement"].asString() == "true";
|
||||
if(!detailInfoNodeColumnListColumn["DataPrecision"].isNull())
|
||||
columnObject.dataPrecision = std::stoi(detailInfoNodeColumnListColumn["DataPrecision"].asString());
|
||||
if(!detailInfoNodeColumnListColumn["DataScale"].isNull())
|
||||
columnObject.dataScale = std::stoi(detailInfoNodeColumnListColumn["DataScale"].asString());
|
||||
if(!detailInfoNodeColumnListColumn["ColumnId"].isNull())
|
||||
columnObject.columnId = detailInfoNodeColumnListColumn["ColumnId"].asString();
|
||||
detailInfo_.columnList.push_back(columnObject);
|
||||
}
|
||||
auto allIndexListNode = detailInfoNode["IndexList"]["Index"];
|
||||
for (auto detailInfoNodeIndexListIndex : allIndexListNode)
|
||||
{
|
||||
DetailInfo::Index indexObject;
|
||||
if(!detailInfoNodeIndexListIndex["IndexName"].isNull())
|
||||
indexObject.indexName = detailInfoNodeIndexListIndex["IndexName"].asString();
|
||||
if(!detailInfoNodeIndexListIndex["IndexType"].isNull())
|
||||
indexObject.indexType = detailInfoNodeIndexListIndex["IndexType"].asString();
|
||||
if(!detailInfoNodeIndexListIndex["Unique"].isNull())
|
||||
indexObject.unique = detailInfoNodeIndexListIndex["Unique"].asString() == "true";
|
||||
if(!detailInfoNodeIndexListIndex["IndexId"].isNull())
|
||||
indexObject.indexId = detailInfoNodeIndexListIndex["IndexId"].asString();
|
||||
auto allIndexColumns = value["IndexColumns"]["ColumnNames"];
|
||||
for (auto value : allIndexColumns)
|
||||
indexObject.indexColumns.push_back(value.asString());
|
||||
detailInfo_.indexList.push_back(indexObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetMetaTableDetailInfoResult::DetailInfo GetMetaTableDetailInfoResult::getDetailInfo()const
|
||||
{
|
||||
return detailInfo_;
|
||||
}
|
||||
|
||||
std::string GetMetaTableDetailInfoResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetMetaTableDetailInfoResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetMetaTableDetailInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
dms-enterprise/src/model/GetTableDBTopologyRequest.cc
Normal file
51
dms-enterprise/src/model/GetTableDBTopologyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetTableDBTopologyRequest;
|
||||
|
||||
GetTableDBTopologyRequest::GetTableDBTopologyRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableDBTopology")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTableDBTopologyRequest::~GetTableDBTopologyRequest()
|
||||
{}
|
||||
|
||||
std::string GetTableDBTopologyRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
void GetTableDBTopologyRequest::setTableGuid(const std::string& tableGuid)
|
||||
{
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter("TableGuid", tableGuid);
|
||||
}
|
||||
|
||||
long GetTableDBTopologyRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetTableDBTopologyRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
}
|
||||
|
||||
115
dms-enterprise/src/model/GetTableDBTopologyResult.cc
Normal file
115
dms-enterprise/src/model/GetTableDBTopologyResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetTableDBTopologyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetTableDBTopologyResult::GetTableDBTopologyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTableDBTopologyResult::GetTableDBTopologyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTableDBTopologyResult::~GetTableDBTopologyResult()
|
||||
{}
|
||||
|
||||
void GetTableDBTopologyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dBTopologyNode = value["DBTopology"];
|
||||
if(!dBTopologyNode["TableName"].isNull())
|
||||
dBTopology_.tableName = dBTopologyNode["TableName"].asString();
|
||||
if(!dBTopologyNode["TableGuid"].isNull())
|
||||
dBTopology_.tableGuid = dBTopologyNode["TableGuid"].asString();
|
||||
auto allDataSourceListNode = dBTopologyNode["DataSourceList"]["DataSource"];
|
||||
for (auto dBTopologyNodeDataSourceListDataSource : allDataSourceListNode)
|
||||
{
|
||||
DBTopology::DataSource dataSourceObject;
|
||||
if(!dBTopologyNodeDataSourceListDataSource["Host"].isNull())
|
||||
dataSourceObject.host = dBTopologyNodeDataSourceListDataSource["Host"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSource["Port"].isNull())
|
||||
dataSourceObject.port = std::stoi(dBTopologyNodeDataSourceListDataSource["Port"].asString());
|
||||
if(!dBTopologyNodeDataSourceListDataSource["DbType"].isNull())
|
||||
dataSourceObject.dbType = dBTopologyNodeDataSourceListDataSource["DbType"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull())
|
||||
dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString();
|
||||
auto allDatabaseListNode = allDataSourceListNode["DatabaseList"]["Database"];
|
||||
for (auto allDataSourceListNodeDatabaseListDatabase : allDatabaseListNode)
|
||||
{
|
||||
DBTopology::DataSource::Database databaseListObject;
|
||||
if(!allDataSourceListNodeDatabaseListDatabase["DbName"].isNull())
|
||||
databaseListObject.dbName = allDataSourceListNodeDatabaseListDatabase["DbName"].asString();
|
||||
if(!allDataSourceListNodeDatabaseListDatabase["DbId"].isNull())
|
||||
databaseListObject.dbId = allDataSourceListNodeDatabaseListDatabase["DbId"].asString();
|
||||
if(!allDataSourceListNodeDatabaseListDatabase["EnvType"].isNull())
|
||||
databaseListObject.envType = allDataSourceListNodeDatabaseListDatabase["EnvType"].asString();
|
||||
if(!allDataSourceListNodeDatabaseListDatabase["DbType"].isNull())
|
||||
databaseListObject.dbType = allDataSourceListNodeDatabaseListDatabase["DbType"].asString();
|
||||
auto allTableListNode = allDatabaseListNode["TableList"]["Table"];
|
||||
for (auto allDatabaseListNodeTableListTable : allTableListNode)
|
||||
{
|
||||
DBTopology::DataSource::Database::Table tableListObject;
|
||||
if(!allDatabaseListNodeTableListTable["TableName"].isNull())
|
||||
tableListObject.tableName = allDatabaseListNodeTableListTable["TableName"].asString();
|
||||
if(!allDatabaseListNodeTableListTable["TableId"].isNull())
|
||||
tableListObject.tableId = allDatabaseListNodeTableListTable["TableId"].asString();
|
||||
if(!allDatabaseListNodeTableListTable["TableType"].isNull())
|
||||
tableListObject.tableType = allDatabaseListNodeTableListTable["TableType"].asString();
|
||||
databaseListObject.tableList.push_back(tableListObject);
|
||||
}
|
||||
dataSourceObject.databaseList.push_back(databaseListObject);
|
||||
}
|
||||
dBTopology_.dataSourceList.push_back(dataSourceObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetTableDBTopologyResult::DBTopology GetTableDBTopologyResult::getDBTopology()const
|
||||
{
|
||||
return dBTopology_;
|
||||
}
|
||||
|
||||
std::string GetTableDBTopologyResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetTableDBTopologyResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetTableDBTopologyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
29
dms-enterprise/src/model/GetUserActiveTenantRequest.cc
Normal file
29
dms-enterprise/src/model/GetUserActiveTenantRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetUserActiveTenantRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetUserActiveTenantRequest;
|
||||
|
||||
GetUserActiveTenantRequest::GetUserActiveTenantRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserActiveTenant")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserActiveTenantRequest::~GetUserActiveTenantRequest()
|
||||
{}
|
||||
|
||||
77
dms-enterprise/src/model/GetUserActiveTenantResult.cc
Normal file
77
dms-enterprise/src/model/GetUserActiveTenantResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetUserActiveTenantResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetUserActiveTenantResult::GetUserActiveTenantResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetUserActiveTenantResult::GetUserActiveTenantResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetUserActiveTenantResult::~GetUserActiveTenantResult()
|
||||
{}
|
||||
|
||||
void GetUserActiveTenantResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto tenantNode = value["Tenant"];
|
||||
if(!tenantNode["Tid"].isNull())
|
||||
tenant_.tid = std::stol(tenantNode["Tid"].asString());
|
||||
if(!tenantNode["TenantName"].isNull())
|
||||
tenant_.tenantName = tenantNode["TenantName"].asString();
|
||||
if(!tenantNode["Status"].isNull())
|
||||
tenant_.status = tenantNode["Status"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetUserActiveTenantResult::Tenant GetUserActiveTenantResult::getTenant()const
|
||||
{
|
||||
return tenant_;
|
||||
}
|
||||
|
||||
std::string GetUserActiveTenantResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetUserActiveTenantResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetUserActiveTenantResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void ListLogicTablesRequest::setSearchName(const std::string& searchName)
|
||||
setParameter("SearchName", searchName);
|
||||
}
|
||||
|
||||
bool ListLogicTablesRequest::getReturnGuid()const
|
||||
{
|
||||
return returnGuid_;
|
||||
}
|
||||
|
||||
void ListLogicTablesRequest::setReturnGuid(bool returnGuid)
|
||||
{
|
||||
returnGuid_ = returnGuid;
|
||||
setParameter("ReturnGuid", returnGuid ? "true" : "false");
|
||||
}
|
||||
|
||||
int ListLogicTablesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
@@ -55,6 +55,10 @@ void ListLogicTablesResult::parse(const std::string &payload)
|
||||
logicTableListObject.tableExpr = valueLogicTableListLogicTable["TableExpr"].asString();
|
||||
if(!valueLogicTableListLogicTable["TableCount"].isNull())
|
||||
logicTableListObject.tableCount = valueLogicTableListLogicTable["TableCount"].asString();
|
||||
if(!valueLogicTableListLogicTable["TableGuid"].isNull())
|
||||
logicTableListObject.tableGuid = valueLogicTableListLogicTable["TableGuid"].asString();
|
||||
if(!valueLogicTableListLogicTable["SchemaName"].isNull())
|
||||
logicTableListObject.schemaName = valueLogicTableListLogicTable["SchemaName"].asString();
|
||||
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
logicTableListObject.ownerIdList.push_back(value.asString());
|
||||
|
||||
@@ -38,6 +38,17 @@ void ListTablesRequest::setSearchName(const std::string& searchName)
|
||||
setParameter("SearchName", searchName);
|
||||
}
|
||||
|
||||
bool ListTablesRequest::getReturnGuid()const
|
||||
{
|
||||
return returnGuid_;
|
||||
}
|
||||
|
||||
void ListTablesRequest::setReturnGuid(bool returnGuid)
|
||||
{
|
||||
returnGuid_ = returnGuid;
|
||||
setParameter("ReturnGuid", returnGuid ? "true" : "false");
|
||||
}
|
||||
|
||||
int ListTablesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
@@ -61,6 +61,10 @@ void ListTablesResult::parse(const std::string &payload)
|
||||
tableListObject.numRows = std::stol(valueTableListTable["NumRows"].asString());
|
||||
if(!valueTableListTable["StoreCapacity"].isNull())
|
||||
tableListObject.storeCapacity = std::stol(valueTableListTable["StoreCapacity"].asString());
|
||||
if(!valueTableListTable["TableGuid"].isNull())
|
||||
tableListObject.tableGuid = valueTableListTable["TableGuid"].asString();
|
||||
if(!valueTableListTable["Description"].isNull())
|
||||
tableListObject.description = valueTableListTable["Description"].asString();
|
||||
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
tableListObject.ownerIdList.push_back(value.asString());
|
||||
|
||||
29
dms-enterprise/src/model/ListUserTenantsRequest.cc
Normal file
29
dms-enterprise/src/model/ListUserTenantsRequest.cc
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/ListUserTenantsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListUserTenantsRequest;
|
||||
|
||||
ListUserTenantsRequest::ListUserTenantsRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListUserTenants")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListUserTenantsRequest::~ListUserTenantsRequest()
|
||||
{}
|
||||
|
||||
82
dms-enterprise/src/model/ListUserTenantsResult.cc
Normal file
82
dms-enterprise/src/model/ListUserTenantsResult.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/dms-enterprise/model/ListUserTenantsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
ListUserTenantsResult::ListUserTenantsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListUserTenantsResult::ListUserTenantsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListUserTenantsResult::~ListUserTenantsResult()
|
||||
{}
|
||||
|
||||
void ListUserTenantsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTenantListNode = value["TenantList"]["Tenant"];
|
||||
for (auto valueTenantListTenant : allTenantListNode)
|
||||
{
|
||||
Tenant tenantListObject;
|
||||
if(!valueTenantListTenant["Tid"].isNull())
|
||||
tenantListObject.tid = std::stol(valueTenantListTenant["Tid"].asString());
|
||||
if(!valueTenantListTenant["TenantName"].isNull())
|
||||
tenantListObject.tenantName = valueTenantListTenant["TenantName"].asString();
|
||||
if(!valueTenantListTenant["Status"].isNull())
|
||||
tenantListObject.status = valueTenantListTenant["Status"].asString();
|
||||
tenantList_.push_back(tenantListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListUserTenantsResult::Tenant> ListUserTenantsResult::getTenantList()const
|
||||
{
|
||||
return tenantList_;
|
||||
}
|
||||
|
||||
std::string ListUserTenantsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListUserTenantsResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool ListUserTenantsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -247,6 +247,17 @@ void RegisterInstanceRequest::setDbaUid(long dbaUid)
|
||||
setParameter("DbaUid", std::to_string(dbaUid));
|
||||
}
|
||||
|
||||
bool RegisterInstanceRequest::getSkipTest()const
|
||||
{
|
||||
return skipTest_;
|
||||
}
|
||||
|
||||
void RegisterInstanceRequest::setSkipTest(bool skipTest)
|
||||
{
|
||||
skipTest_ = skipTest;
|
||||
setParameter("SkipTest", skipTest ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string RegisterInstanceRequest::getSafeRule()const
|
||||
{
|
||||
return safeRule_;
|
||||
|
||||
@@ -27,37 +27,15 @@ SearchTableRequest::SearchTableRequest() :
|
||||
SearchTableRequest::~SearchTableRequest()
|
||||
{}
|
||||
|
||||
std::string SearchTableRequest::getSearchTarget()const
|
||||
bool SearchTableRequest::getReturnGuid()const
|
||||
{
|
||||
return searchTarget_;
|
||||
return returnGuid_;
|
||||
}
|
||||
|
||||
void SearchTableRequest::setSearchTarget(const std::string& searchTarget)
|
||||
void SearchTableRequest::setReturnGuid(bool returnGuid)
|
||||
{
|
||||
searchTarget_ = searchTarget;
|
||||
setParameter("SearchTarget", searchTarget);
|
||||
}
|
||||
|
||||
int SearchTableRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchTableRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchTableRequest::getEnvType()const
|
||||
{
|
||||
return envType_;
|
||||
}
|
||||
|
||||
void SearchTableRequest::setEnvType(const std::string& envType)
|
||||
{
|
||||
envType_ = envType;
|
||||
setParameter("EnvType", envType);
|
||||
returnGuid_ = returnGuid;
|
||||
setParameter("ReturnGuid", returnGuid ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SearchTableRequest::getSearchKey()const
|
||||
@@ -104,3 +82,47 @@ void SearchTableRequest::setPageNumber(int pageNumber)
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string SearchTableRequest::getSearchTarget()const
|
||||
{
|
||||
return searchTarget_;
|
||||
}
|
||||
|
||||
void SearchTableRequest::setSearchTarget(const std::string& searchTarget)
|
||||
{
|
||||
searchTarget_ = searchTarget;
|
||||
setParameter("SearchTarget", searchTarget);
|
||||
}
|
||||
|
||||
int SearchTableRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchTableRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string SearchTableRequest::getEnvType()const
|
||||
{
|
||||
return envType_;
|
||||
}
|
||||
|
||||
void SearchTableRequest::setEnvType(const std::string& envType)
|
||||
{
|
||||
envType_ = envType;
|
||||
setParameter("EnvType", envType);
|
||||
}
|
||||
|
||||
std::string SearchTableRequest::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
void SearchTableRequest::setDbType(const std::string& dbType)
|
||||
{
|
||||
dbType_ = dbType;
|
||||
setParameter("DbType", dbType);
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,14 @@ void SearchTableResult::parse(const std::string &payload)
|
||||
searchTableListObject.envType = valueSearchTableListSearchTable["EnvType"].asString();
|
||||
if(!valueSearchTableListSearchTable["DBSearchName"].isNull())
|
||||
searchTableListObject.dBSearchName = valueSearchTableListSearchTable["DBSearchName"].asString();
|
||||
if(!valueSearchTableListSearchTable["DbType"].isNull())
|
||||
searchTableListObject.dbType = valueSearchTableListSearchTable["DbType"].asString();
|
||||
if(!valueSearchTableListSearchTable["Description"].isNull())
|
||||
searchTableListObject.description = valueSearchTableListSearchTable["Description"].asString();
|
||||
if(!valueSearchTableListSearchTable["DbName"].isNull())
|
||||
searchTableListObject.dbName = valueSearchTableListSearchTable["DbName"].asString();
|
||||
if(!valueSearchTableListSearchTable["TableGuid"].isNull())
|
||||
searchTableListObject.tableGuid = valueSearchTableListSearchTable["TableGuid"].asString();
|
||||
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
searchTableListObject.ownerIdList.push_back(value.asString());
|
||||
|
||||
@@ -258,3 +258,14 @@ void UpdateInstanceRequest::setVpcId(const std::string& vpcId)
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
bool UpdateInstanceRequest::getSkipTest()const
|
||||
{
|
||||
return skipTest_;
|
||||
}
|
||||
|
||||
void UpdateInstanceRequest::setSkipTest(bool skipTest)
|
||||
{
|
||||
skipTest_ = skipTest;
|
||||
setParameter("SkipTest", skipTest ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/DetectFaceResult.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianRequest.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianResult.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h
|
||||
include/alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h
|
||||
include/alibabacloud/facebody/model/DetectLivingFaceRequest.h
|
||||
include/alibabacloud/facebody/model/DetectLivingFaceResult.h
|
||||
include/alibabacloud/facebody/model/DetectMaskRequest.h
|
||||
@@ -126,6 +128,8 @@ set(facebody_src
|
||||
src/model/DetectFaceResult.cc
|
||||
src/model/DetectIPCPedestrianRequest.cc
|
||||
src/model/DetectIPCPedestrianResult.cc
|
||||
src/model/DetectIPCPedestrianOptimizedRequest.cc
|
||||
src/model/DetectIPCPedestrianOptimizedResult.cc
|
||||
src/model/DetectLivingFaceRequest.cc
|
||||
src/model/DetectLivingFaceResult.cc
|
||||
src/model/DetectMaskRequest.cc
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
#include "model/DetectFaceResult.h"
|
||||
#include "model/DetectIPCPedestrianRequest.h"
|
||||
#include "model/DetectIPCPedestrianResult.h"
|
||||
#include "model/DetectIPCPedestrianOptimizedRequest.h"
|
||||
#include "model/DetectIPCPedestrianOptimizedResult.h"
|
||||
#include "model/DetectLivingFaceRequest.h"
|
||||
#include "model/DetectLivingFaceResult.h"
|
||||
#include "model/DetectMaskRequest.h"
|
||||
@@ -147,6 +149,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DetectIPCPedestrianResult> DetectIPCPedestrianOutcome;
|
||||
typedef std::future<DetectIPCPedestrianOutcome> DetectIPCPedestrianOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianRequest&, const DetectIPCPedestrianOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectIPCPedestrianOptimizedResult> DetectIPCPedestrianOptimizedOutcome;
|
||||
typedef std::future<DetectIPCPedestrianOptimizedOutcome> DetectIPCPedestrianOptimizedOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectIPCPedestrianOptimizedRequest&, const DetectIPCPedestrianOptimizedOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectIPCPedestrianOptimizedAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectLivingFaceResult> DetectLivingFaceOutcome;
|
||||
typedef std::future<DetectLivingFaceOutcome> DetectLivingFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DetectLivingFaceRequest&, const DetectLivingFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectLivingFaceAsyncHandler;
|
||||
@@ -263,6 +268,9 @@ namespace AlibabaCloud
|
||||
DetectIPCPedestrianOutcome detectIPCPedestrian(const Model::DetectIPCPedestrianRequest &request)const;
|
||||
void detectIPCPedestrianAsync(const Model::DetectIPCPedestrianRequest& request, const DetectIPCPedestrianAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectIPCPedestrianOutcomeCallable detectIPCPedestrianCallable(const Model::DetectIPCPedestrianRequest& request) const;
|
||||
DetectIPCPedestrianOptimizedOutcome detectIPCPedestrianOptimized(const Model::DetectIPCPedestrianOptimizedRequest &request)const;
|
||||
void detectIPCPedestrianOptimizedAsync(const Model::DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectIPCPedestrianOptimizedOutcomeCallable detectIPCPedestrianOptimizedCallable(const Model::DetectIPCPedestrianOptimizedRequest& request) const;
|
||||
DetectLivingFaceOutcome detectLivingFace(const Model::DetectLivingFaceRequest &request)const;
|
||||
void detectLivingFaceAsync(const Model::DetectLivingFaceRequest& request, const DetectLivingFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectLivingFaceOutcomeCallable detectLivingFaceCallable(const Model::DetectLivingFaceRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectIPCPedestrianOptimizedRequest();
|
||||
~DetectIPCPedestrianOptimizedRequest();
|
||||
|
||||
std::string getImageData()const;
|
||||
void setImageData(const std::string& imageData);
|
||||
long getWidth()const;
|
||||
void setWidth(long width);
|
||||
long getHeight()const;
|
||||
void setHeight(long height);
|
||||
|
||||
private:
|
||||
std::string imageData_;
|
||||
long width_;
|
||||
long height_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDREQUEST_H_
|
||||
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DetectIPCPedestrianOptimizedResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct ImageInfoListItem
|
||||
{
|
||||
struct Element
|
||||
{
|
||||
float score;
|
||||
std::vector<std::string> boxes;
|
||||
};
|
||||
std::vector<ImageInfoListItem::Element> elements;
|
||||
};
|
||||
std::vector<ImageInfoListItem> imageInfoList;
|
||||
};
|
||||
|
||||
|
||||
DetectIPCPedestrianOptimizedResult();
|
||||
explicit DetectIPCPedestrianOptimizedResult(const std::string &payload);
|
||||
~DetectIPCPedestrianOptimizedResult();
|
||||
Data getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DETECTIPCPEDESTRIANOPTIMIZEDRESULT_H_
|
||||
@@ -31,21 +31,21 @@ FacebodyClient::FacebodyClient(const Credentials &credentials, const ClientConfi
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FacebodyClient::FacebodyClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "facebody");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
FacebodyClient::~FacebodyClient()
|
||||
@@ -555,6 +555,42 @@ FacebodyClient::DetectIPCPedestrianOutcomeCallable FacebodyClient::detectIPCPede
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DetectIPCPedestrianOptimizedOutcome FacebodyClient::detectIPCPedestrianOptimized(const DetectIPCPedestrianOptimizedRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectIPCPedestrianOptimizedOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectIPCPedestrianOptimizedOutcome(DetectIPCPedestrianOptimizedResult(outcome.result()));
|
||||
else
|
||||
return DetectIPCPedestrianOptimizedOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::detectIPCPedestrianOptimizedAsync(const DetectIPCPedestrianOptimizedRequest& request, const DetectIPCPedestrianOptimizedAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectIPCPedestrianOptimized(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::DetectIPCPedestrianOptimizedOutcomeCallable FacebodyClient::detectIPCPedestrianOptimizedCallable(const DetectIPCPedestrianOptimizedRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectIPCPedestrianOptimizedOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectIPCPedestrianOptimized(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DetectLivingFaceOutcome FacebodyClient::detectLivingFace(const DetectLivingFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
63
facebody/src/model/DetectIPCPedestrianOptimizedRequest.cc
Normal file
63
facebody/src/model/DetectIPCPedestrianOptimizedRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/DetectIPCPedestrianOptimizedRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::DetectIPCPedestrianOptimizedRequest;
|
||||
|
||||
DetectIPCPedestrianOptimizedRequest::DetectIPCPedestrianOptimizedRequest() :
|
||||
RoaServiceRequest("facebody", "2020-09-10")
|
||||
{
|
||||
setResourcePath("/viapi/k8s/facebody/detect-ipc-pedestrian-optimized");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DetectIPCPedestrianOptimizedRequest::~DetectIPCPedestrianOptimizedRequest()
|
||||
{}
|
||||
|
||||
std::string DetectIPCPedestrianOptimizedRequest::getImageData()const
|
||||
{
|
||||
return imageData_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianOptimizedRequest::setImageData(const std::string& imageData)
|
||||
{
|
||||
imageData_ = imageData;
|
||||
setBodyParameter("ImageData", imageData);
|
||||
}
|
||||
|
||||
long DetectIPCPedestrianOptimizedRequest::getWidth()const
|
||||
{
|
||||
return width_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianOptimizedRequest::setWidth(long width)
|
||||
{
|
||||
width_ = width;
|
||||
setBodyParameter("Width", std::to_string(width));
|
||||
}
|
||||
|
||||
long DetectIPCPedestrianOptimizedRequest::getHeight()const
|
||||
{
|
||||
return height_;
|
||||
}
|
||||
|
||||
void DetectIPCPedestrianOptimizedRequest::setHeight(long height)
|
||||
{
|
||||
height_ = height;
|
||||
setBodyParameter("Height", std::to_string(height));
|
||||
}
|
||||
|
||||
67
facebody/src/model/DetectIPCPedestrianOptimizedResult.cc
Normal file
67
facebody/src/model/DetectIPCPedestrianOptimizedResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/DetectIPCPedestrianOptimizedResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DetectIPCPedestrianOptimizedResult::DetectIPCPedestrianOptimizedResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DetectIPCPedestrianOptimizedResult::~DetectIPCPedestrianOptimizedResult()
|
||||
{}
|
||||
|
||||
void DetectIPCPedestrianOptimizedResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allImageInfoListNode = dataNode["ImageInfoList"]["imageInfoListItem"];
|
||||
for (auto dataNodeImageInfoListimageInfoListItem : allImageInfoListNode)
|
||||
{
|
||||
Data::ImageInfoListItem imageInfoListItemObject;
|
||||
auto allElementsNode = allImageInfoListNode["Elements"]["Element"];
|
||||
for (auto allImageInfoListNodeElementsElement : allElementsNode)
|
||||
{
|
||||
Data::ImageInfoListItem::Element elementsObject;
|
||||
if(!allImageInfoListNodeElementsElement["Score"].isNull())
|
||||
elementsObject.score = std::stof(allImageInfoListNodeElementsElement["Score"].asString());
|
||||
auto allBoxes = value["Boxes"]["Box"];
|
||||
for (auto value : allBoxes)
|
||||
elementsObject.boxes.push_back(value.asString());
|
||||
imageInfoListItemObject.elements.push_back(elementsObject);
|
||||
}
|
||||
data_.imageInfoList.push_back(imageInfoListItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DetectIPCPedestrianOptimizedResult::Data DetectIPCPedestrianOptimizedResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -40,14 +40,23 @@ namespace AlibabaCloud
|
||||
DetectCovid19CadRequest();
|
||||
~DetectCovid19CadRequest();
|
||||
|
||||
std::string getDataFormat()const;
|
||||
void setDataFormat(const std::string& dataFormat);
|
||||
std::vector<URLList> getURLList()const;
|
||||
void setURLList(const std::vector<URLList>& uRLList);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
bool getAsync()const;
|
||||
void setAsync(bool async);
|
||||
std::string getOrgName()const;
|
||||
void setOrgName(const std::string& orgName);
|
||||
|
||||
private:
|
||||
std::string dataFormat_;
|
||||
std::vector<URLList> uRLList_;
|
||||
std::string orgId_;
|
||||
bool async_;
|
||||
std::string orgName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,10 +39,16 @@ namespace AlibabaCloud
|
||||
void setDataFormat(const std::string& dataFormat);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
std::string getOrgName()const;
|
||||
void setOrgName(const std::string& orgName);
|
||||
|
||||
private:
|
||||
std::string dataFormat_;
|
||||
std::string url_;
|
||||
std::string orgId_;
|
||||
std::string orgName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,14 +40,23 @@ namespace AlibabaCloud
|
||||
DetectLungNoduleRequest();
|
||||
~DetectLungNoduleRequest();
|
||||
|
||||
std::string getDataFormat()const;
|
||||
void setDataFormat(const std::string& dataFormat);
|
||||
std::vector<URLList> getURLList()const;
|
||||
void setURLList(const std::vector<URLList>& uRLList);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
bool getAsync()const;
|
||||
void setAsync(bool async);
|
||||
std::string getOrgName()const;
|
||||
void setOrgName(const std::string& orgName);
|
||||
|
||||
private:
|
||||
std::string dataFormat_;
|
||||
std::vector<URLList> uRLList_;
|
||||
std::string orgId_;
|
||||
bool async_;
|
||||
std::string orgName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,7 +38,10 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct Element
|
||||
{
|
||||
float imageZ;
|
||||
float imageY;
|
||||
std::string lobe;
|
||||
float imageX;
|
||||
std::string category;
|
||||
float confidence;
|
||||
std::string lung;
|
||||
@@ -47,6 +50,8 @@ namespace AlibabaCloud
|
||||
float z;
|
||||
float diameter;
|
||||
};
|
||||
std::vector<std::string> origin;
|
||||
std::vector<std::string> spacing;
|
||||
std::vector<Serie::Element> elements;
|
||||
std::string seriesInstanceUid;
|
||||
};
|
||||
|
||||
@@ -40,11 +40,20 @@ namespace AlibabaCloud
|
||||
DetectSpineMRIRequest();
|
||||
~DetectSpineMRIRequest();
|
||||
|
||||
std::string getDataFormat()const;
|
||||
void setDataFormat(const std::string& dataFormat);
|
||||
std::vector<URLList> getURLList()const;
|
||||
void setURLList(const std::vector<URLList>& uRLList);
|
||||
std::string getOrgId()const;
|
||||
void setOrgId(const std::string& orgId);
|
||||
std::string getOrgName()const;
|
||||
void setOrgName(const std::string& orgName);
|
||||
|
||||
private:
|
||||
std::string dataFormat_;
|
||||
std::vector<URLList> uRLList_;
|
||||
std::string orgId_;
|
||||
std::string orgName_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user