Compare commits
6 Commits
Privatelin
...
alimt-patc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
caf80426a4 | ||
|
|
9b90cedcbb | ||
|
|
99cbb7279f | ||
|
|
9c94805a97 | ||
|
|
198969d4d9 | ||
|
|
eaa6b3cb18 |
18
CHANGELOG
18
CHANGELOG
@@ -1,3 +1,21 @@
|
||||
2021-01-27 Version: patch
|
||||
- Add New BatchTranslate API.
|
||||
|
||||
2021-01-27 Version: patch
|
||||
- Add New BatchTranslate API.
|
||||
|
||||
2021-01-27 Version: patch
|
||||
- DetectFaceAttributes Add Score.
|
||||
|
||||
2021-01-26 Version: patch
|
||||
- Support ModifyDBClusterPrimaryZone timer task.
|
||||
|
||||
2021-01-25 Version: patch
|
||||
- Regenerate SDK to override list implement.
|
||||
|
||||
2021-01-25 Version: patch
|
||||
- Update Open API.
|
||||
|
||||
2021-01-21 Version: patch
|
||||
- Modify some field types.
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ set(alimt_public_header_model
|
||||
include/alibabacloud/alimt/model/CreateDocTranslateTaskResult.h
|
||||
include/alibabacloud/alimt/model/CreateImageTranslateTaskRequest.h
|
||||
include/alibabacloud/alimt/model/CreateImageTranslateTaskResult.h
|
||||
include/alibabacloud/alimt/model/GetBatchTranslateRequest.h
|
||||
include/alibabacloud/alimt/model/GetBatchTranslateResult.h
|
||||
include/alibabacloud/alimt/model/GetDetectLanguageRequest.h
|
||||
include/alibabacloud/alimt/model/GetDetectLanguageResult.h
|
||||
include/alibabacloud/alimt/model/GetDocTranslateTaskRequest.h
|
||||
@@ -58,6 +60,8 @@ set(alimt_src
|
||||
src/model/CreateDocTranslateTaskResult.cc
|
||||
src/model/CreateImageTranslateTaskRequest.cc
|
||||
src/model/CreateImageTranslateTaskResult.cc
|
||||
src/model/GetBatchTranslateRequest.cc
|
||||
src/model/GetBatchTranslateResult.cc
|
||||
src/model/GetDetectLanguageRequest.cc
|
||||
src/model/GetDetectLanguageResult.cc
|
||||
src/model/GetDocTranslateTaskRequest.cc
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include "model/CreateDocTranslateTaskResult.h"
|
||||
#include "model/CreateImageTranslateTaskRequest.h"
|
||||
#include "model/CreateImageTranslateTaskResult.h"
|
||||
#include "model/GetBatchTranslateRequest.h"
|
||||
#include "model/GetBatchTranslateResult.h"
|
||||
#include "model/GetDetectLanguageRequest.h"
|
||||
#include "model/GetDetectLanguageResult.h"
|
||||
#include "model/GetDocTranslateTaskRequest.h"
|
||||
@@ -67,6 +69,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateImageTranslateTaskResult> CreateImageTranslateTaskOutcome;
|
||||
typedef std::future<CreateImageTranslateTaskOutcome> CreateImageTranslateTaskOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::CreateImageTranslateTaskRequest&, const CreateImageTranslateTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateImageTranslateTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetBatchTranslateResult> GetBatchTranslateOutcome;
|
||||
typedef std::future<GetBatchTranslateOutcome> GetBatchTranslateOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetBatchTranslateRequest&, const GetBatchTranslateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBatchTranslateAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDetectLanguageResult> GetDetectLanguageOutcome;
|
||||
typedef std::future<GetDetectLanguageOutcome> GetDetectLanguageOutcomeCallable;
|
||||
typedef std::function<void(const AlimtClient*, const Model::GetDetectLanguageRequest&, const GetDetectLanguageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDetectLanguageAsyncHandler;
|
||||
@@ -117,6 +122,9 @@ namespace AlibabaCloud
|
||||
CreateImageTranslateTaskOutcome createImageTranslateTask(const Model::CreateImageTranslateTaskRequest &request)const;
|
||||
void createImageTranslateTaskAsync(const Model::CreateImageTranslateTaskRequest& request, const CreateImageTranslateTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateImageTranslateTaskOutcomeCallable createImageTranslateTaskCallable(const Model::CreateImageTranslateTaskRequest& request) const;
|
||||
GetBatchTranslateOutcome getBatchTranslate(const Model::GetBatchTranslateRequest &request)const;
|
||||
void getBatchTranslateAsync(const Model::GetBatchTranslateRequest& request, const GetBatchTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetBatchTranslateOutcomeCallable getBatchTranslateCallable(const Model::GetBatchTranslateRequest& request) const;
|
||||
GetDetectLanguageOutcome getDetectLanguage(const Model::GetDetectLanguageRequest &request)const;
|
||||
void getDetectLanguageAsync(const Model::GetDetectLanguageRequest& request, const GetDetectLanguageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDetectLanguageOutcomeCallable getDetectLanguageCallable(const Model::GetDetectLanguageRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_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 GetBatchTranslateRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetBatchTranslateRequest();
|
||||
~GetBatchTranslateRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getFormatType()const;
|
||||
void setFormatType(const std::string& formatType);
|
||||
std::string getApiType()const;
|
||||
void setApiType(const std::string& apiType);
|
||||
std::string getScene()const;
|
||||
void setScene(const std::string& scene);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string sourceText_;
|
||||
std::string formatType_;
|
||||
std::string apiType_;
|
||||
std::string scene_;
|
||||
std::string targetLanguage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATEREQUEST_H_
|
||||
@@ -14,36 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATERESULT_H_
|
||||
#define ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/alimt/AlimtExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Alimt
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DeleteDedicatedHostAccountResult : public ServiceResult
|
||||
class ALIBABACLOUD_ALIMT_EXPORT GetBatchTranslateResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDedicatedHostAccountResult();
|
||||
explicit DeleteDedicatedHostAccountResult(const std::string &payload);
|
||||
~DeleteDedicatedHostAccountResult();
|
||||
GetBatchTranslateResult();
|
||||
explicit GetBatchTranslateResult(const std::string &payload);
|
||||
~GetBatchTranslateResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<std::string> getTranslatedList()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<std::string> translatedList_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_ALIMT_MODEL_GETBATCHTRANSLATERESULT_H_
|
||||
@@ -123,6 +123,42 @@ AlimtClient::CreateImageTranslateTaskOutcomeCallable AlimtClient::createImageTra
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetBatchTranslateOutcome AlimtClient::getBatchTranslate(const GetBatchTranslateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetBatchTranslateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetBatchTranslateOutcome(GetBatchTranslateResult(outcome.result()));
|
||||
else
|
||||
return GetBatchTranslateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AlimtClient::getBatchTranslateAsync(const GetBatchTranslateRequest& request, const GetBatchTranslateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getBatchTranslate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AlimtClient::GetBatchTranslateOutcomeCallable AlimtClient::getBatchTranslateCallable(const GetBatchTranslateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetBatchTranslateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getBatchTranslate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AlimtClient::GetDetectLanguageOutcome AlimtClient::getDetectLanguage(const GetDetectLanguageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
95
alimt/src/model/GetBatchTranslateRequest.cc
Normal file
95
alimt/src/model/GetBatchTranslateRequest.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/alimt/model/GetBatchTranslateRequest.h>
|
||||
|
||||
using AlibabaCloud::Alimt::Model::GetBatchTranslateRequest;
|
||||
|
||||
GetBatchTranslateRequest::GetBatchTranslateRequest() :
|
||||
RpcServiceRequest("alimt", "2018-10-12", "GetBatchTranslate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetBatchTranslateRequest::~GetBatchTranslateRequest()
|
||||
{}
|
||||
|
||||
std::string GetBatchTranslateRequest::getSourceLanguage()const
|
||||
{
|
||||
return sourceLanguage_;
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setSourceLanguage(const std::string& sourceLanguage)
|
||||
{
|
||||
sourceLanguage_ = sourceLanguage;
|
||||
setBodyParameter("SourceLanguage", sourceLanguage);
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getSourceText()const
|
||||
{
|
||||
return sourceText_;
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setSourceText(const std::string& sourceText)
|
||||
{
|
||||
sourceText_ = sourceText;
|
||||
setBodyParameter("SourceText", sourceText);
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getFormatType()const
|
||||
{
|
||||
return formatType_;
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setFormatType(const std::string& formatType)
|
||||
{
|
||||
formatType_ = formatType;
|
||||
setBodyParameter("FormatType", formatType);
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getApiType()const
|
||||
{
|
||||
return apiType_;
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setApiType(const std::string& apiType)
|
||||
{
|
||||
apiType_ = apiType;
|
||||
setBodyParameter("ApiType", apiType);
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getScene()const
|
||||
{
|
||||
return scene_;
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setScene(const std::string& scene)
|
||||
{
|
||||
scene_ = scene;
|
||||
setBodyParameter("Scene", scene);
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateRequest::getTargetLanguage()const
|
||||
{
|
||||
return targetLanguage_;
|
||||
}
|
||||
|
||||
void GetBatchTranslateRequest::setTargetLanguage(const std::string& targetLanguage)
|
||||
{
|
||||
targetLanguage_ = targetLanguage;
|
||||
setBodyParameter("TargetLanguage", targetLanguage);
|
||||
}
|
||||
|
||||
66
alimt/src/model/GetBatchTranslateResult.cc
Normal file
66
alimt/src/model/GetBatchTranslateResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/alimt/model/GetBatchTranslateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Alimt;
|
||||
using namespace AlibabaCloud::Alimt::Model;
|
||||
|
||||
GetBatchTranslateResult::GetBatchTranslateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBatchTranslateResult::GetBatchTranslateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBatchTranslateResult::~GetBatchTranslateResult()
|
||||
{}
|
||||
|
||||
void GetBatchTranslateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTranslatedList = value["TranslatedList"]["Translated"];
|
||||
for (const auto &item : allTranslatedList)
|
||||
translatedList_.push_back(item.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetBatchTranslateResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<std::string> GetBatchTranslateResult::getTranslatedList()const
|
||||
{
|
||||
return translatedList_;
|
||||
}
|
||||
|
||||
int GetBatchTranslateResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/CompareFacesResult.h
|
||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/ContrastSmartVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/ContrastSmartVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateFaceConfigRequest.h
|
||||
@@ -37,6 +39,10 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeAppInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeAppInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
||||
@@ -73,6 +79,8 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyTokenResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyUsageRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||
include/alibabacloud/cloudauth/model/ElementSmartVerifyRequest.h
|
||||
@@ -118,6 +126,8 @@ set(cloudauth_src
|
||||
src/model/CompareFacesResult.cc
|
||||
src/model/ContrastFaceVerifyRequest.cc
|
||||
src/model/ContrastFaceVerifyResult.cc
|
||||
src/model/ContrastSmartVerifyRequest.cc
|
||||
src/model/ContrastSmartVerifyResult.cc
|
||||
src/model/CreateAuthKeyRequest.cc
|
||||
src/model/CreateAuthKeyResult.cc
|
||||
src/model/CreateFaceConfigRequest.cc
|
||||
@@ -128,6 +138,10 @@ set(cloudauth_src
|
||||
src/model/CreateVerifySDKResult.cc
|
||||
src/model/CreateVerifySettingRequest.cc
|
||||
src/model/CreateVerifySettingResult.cc
|
||||
src/model/CreateWhitelistRequest.cc
|
||||
src/model/CreateWhitelistResult.cc
|
||||
src/model/DeleteWhitelistRequest.cc
|
||||
src/model/DeleteWhitelistResult.cc
|
||||
src/model/DescribeAppInfoRequest.cc
|
||||
src/model/DescribeAppInfoResult.cc
|
||||
src/model/DescribeDeviceInfoRequest.cc
|
||||
@@ -164,6 +178,8 @@ set(cloudauth_src
|
||||
src/model/DescribeVerifyTokenResult.cc
|
||||
src/model/DescribeVerifyUsageRequest.cc
|
||||
src/model/DescribeVerifyUsageResult.cc
|
||||
src/model/DescribeWhitelistRequest.cc
|
||||
src/model/DescribeWhitelistResult.cc
|
||||
src/model/DetectFaceAttributesRequest.cc
|
||||
src/model/DetectFaceAttributesResult.cc
|
||||
src/model/ElementSmartVerifyRequest.cc
|
||||
|
||||
@@ -28,6 +28,8 @@
|
||||
#include "model/CompareFacesResult.h"
|
||||
#include "model/ContrastFaceVerifyRequest.h"
|
||||
#include "model/ContrastFaceVerifyResult.h"
|
||||
#include "model/ContrastSmartVerifyRequest.h"
|
||||
#include "model/ContrastSmartVerifyResult.h"
|
||||
#include "model/CreateAuthKeyRequest.h"
|
||||
#include "model/CreateAuthKeyResult.h"
|
||||
#include "model/CreateFaceConfigRequest.h"
|
||||
@@ -38,6 +40,10 @@
|
||||
#include "model/CreateVerifySDKResult.h"
|
||||
#include "model/CreateVerifySettingRequest.h"
|
||||
#include "model/CreateVerifySettingResult.h"
|
||||
#include "model/CreateWhitelistRequest.h"
|
||||
#include "model/CreateWhitelistResult.h"
|
||||
#include "model/DeleteWhitelistRequest.h"
|
||||
#include "model/DeleteWhitelistResult.h"
|
||||
#include "model/DescribeAppInfoRequest.h"
|
||||
#include "model/DescribeAppInfoResult.h"
|
||||
#include "model/DescribeDeviceInfoRequest.h"
|
||||
@@ -74,6 +80,8 @@
|
||||
#include "model/DescribeVerifyTokenResult.h"
|
||||
#include "model/DescribeVerifyUsageRequest.h"
|
||||
#include "model/DescribeVerifyUsageResult.h"
|
||||
#include "model/DescribeWhitelistRequest.h"
|
||||
#include "model/DescribeWhitelistResult.h"
|
||||
#include "model/DetectFaceAttributesRequest.h"
|
||||
#include "model/DetectFaceAttributesResult.h"
|
||||
#include "model/ElementSmartVerifyRequest.h"
|
||||
@@ -128,6 +136,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ContrastFaceVerifyResult> ContrastFaceVerifyOutcome;
|
||||
typedef std::future<ContrastFaceVerifyOutcome> ContrastFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ContrastFaceVerifyRequest&, const ContrastFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ContrastFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ContrastSmartVerifyResult> ContrastSmartVerifyOutcome;
|
||||
typedef std::future<ContrastSmartVerifyOutcome> ContrastSmartVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ContrastSmartVerifyRequest&, const ContrastSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ContrastSmartVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
||||
@@ -143,6 +154,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateVerifySettingResult> CreateVerifySettingOutcome;
|
||||
typedef std::future<CreateVerifySettingOutcome> CreateVerifySettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySettingRequest&, const CreateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateWhitelistResult> CreateWhitelistOutcome;
|
||||
typedef std::future<CreateWhitelistOutcome> CreateWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateWhitelistRequest&, const CreateWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteWhitelistResult> DeleteWhitelistOutcome;
|
||||
typedef std::future<DeleteWhitelistOutcome> DeleteWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DeleteWhitelistRequest&, const DeleteWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAppInfoResult> DescribeAppInfoOutcome;
|
||||
typedef std::future<DescribeAppInfoOutcome> DescribeAppInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeAppInfoRequest&, const DescribeAppInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAppInfoAsyncHandler;
|
||||
@@ -197,6 +214,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeVerifyUsageResult> DescribeVerifyUsageOutcome;
|
||||
typedef std::future<DescribeVerifyUsageOutcome> DescribeVerifyUsageOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyUsageRequest&, const DescribeVerifyUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyUsageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeWhitelistResult> DescribeWhitelistOutcome;
|
||||
typedef std::future<DescribeWhitelistOutcome> DescribeWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeWhitelistRequest&, const DescribeWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
||||
@@ -265,6 +285,9 @@ namespace AlibabaCloud
|
||||
ContrastFaceVerifyOutcome contrastFaceVerify(const Model::ContrastFaceVerifyRequest &request)const;
|
||||
void contrastFaceVerifyAsync(const Model::ContrastFaceVerifyRequest& request, const ContrastFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ContrastFaceVerifyOutcomeCallable contrastFaceVerifyCallable(const Model::ContrastFaceVerifyRequest& request) const;
|
||||
ContrastSmartVerifyOutcome contrastSmartVerify(const Model::ContrastSmartVerifyRequest &request)const;
|
||||
void contrastSmartVerifyAsync(const Model::ContrastSmartVerifyRequest& request, const ContrastSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ContrastSmartVerifyOutcomeCallable contrastSmartVerifyCallable(const Model::ContrastSmartVerifyRequest& request) const;
|
||||
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
||||
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
||||
@@ -280,6 +303,12 @@ namespace AlibabaCloud
|
||||
CreateVerifySettingOutcome createVerifySetting(const Model::CreateVerifySettingRequest &request)const;
|
||||
void createVerifySettingAsync(const Model::CreateVerifySettingRequest& request, const CreateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVerifySettingOutcomeCallable createVerifySettingCallable(const Model::CreateVerifySettingRequest& request) const;
|
||||
CreateWhitelistOutcome createWhitelist(const Model::CreateWhitelistRequest &request)const;
|
||||
void createWhitelistAsync(const Model::CreateWhitelistRequest& request, const CreateWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateWhitelistOutcomeCallable createWhitelistCallable(const Model::CreateWhitelistRequest& request) const;
|
||||
DeleteWhitelistOutcome deleteWhitelist(const Model::DeleteWhitelistRequest &request)const;
|
||||
void deleteWhitelistAsync(const Model::DeleteWhitelistRequest& request, const DeleteWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteWhitelistOutcomeCallable deleteWhitelistCallable(const Model::DeleteWhitelistRequest& request) const;
|
||||
DescribeAppInfoOutcome describeAppInfo(const Model::DescribeAppInfoRequest &request)const;
|
||||
void describeAppInfoAsync(const Model::DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAppInfoOutcomeCallable describeAppInfoCallable(const Model::DescribeAppInfoRequest& request) const;
|
||||
@@ -334,6 +363,9 @@ namespace AlibabaCloud
|
||||
DescribeVerifyUsageOutcome describeVerifyUsage(const Model::DescribeVerifyUsageRequest &request)const;
|
||||
void describeVerifyUsageAsync(const Model::DescribeVerifyUsageRequest& request, const DescribeVerifyUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifyUsageOutcomeCallable describeVerifyUsageCallable(const Model::DescribeVerifyUsageRequest& request) const;
|
||||
DescribeWhitelistOutcome describeWhitelist(const Model::DescribeWhitelistRequest &request)const;
|
||||
void describeWhitelistAsync(const Model::DescribeWhitelistRequest& request, const DescribeWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWhitelistOutcomeCallable describeWhitelistCallable(const Model::DescribeWhitelistRequest& request) const;
|
||||
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
||||
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ContrastSmartVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ContrastSmartVerifyRequest();
|
||||
~ContrastSmartVerifyRequest();
|
||||
|
||||
std::string getFacePicFile()const;
|
||||
void setFacePicFile(const std::string& facePicFile);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getFacePicString()const;
|
||||
void setFacePicString(const std::string& facePicString);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getFacePicUrl()const;
|
||||
void setFacePicUrl(const std::string& facePicUrl);
|
||||
std::string getCertType()const;
|
||||
void setCertType(const std::string& certType);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
std::string facePicFile_;
|
||||
std::string ip_;
|
||||
std::string certName_;
|
||||
std::string facePicString_;
|
||||
std::string mobile_;
|
||||
std::string userId_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string facePicUrl_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYREQUEST_H_
|
||||
@@ -14,43 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEDEDICATEDHOSTZONESRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEDEDICATEDHOSTZONESRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeAvailableDedicatedHostZonesResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ContrastSmartVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DedicatedHostZones
|
||||
struct ResultObject
|
||||
{
|
||||
std::string description;
|
||||
std::string zoneId;
|
||||
std::string passed;
|
||||
std::string certifyId;
|
||||
std::string subCode;
|
||||
std::string verifyInfo;
|
||||
std::string riskInfo;
|
||||
};
|
||||
|
||||
|
||||
DescribeAvailableDedicatedHostZonesResult();
|
||||
explicit DescribeAvailableDedicatedHostZonesResult(const std::string &payload);
|
||||
~DescribeAvailableDedicatedHostZonesResult();
|
||||
std::vector<DedicatedHostZones> getZones()const;
|
||||
ContrastSmartVerifyResult();
|
||||
explicit ContrastSmartVerifyResult(const std::string &payload);
|
||||
~ContrastSmartVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DedicatedHostZones> zones_;
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEDEDICATEDHOSTZONESRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYRESULT_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_CLOUDAUTH_MODEL_CREATEWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateWhitelistRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateWhitelistRequest();
|
||||
~CreateWhitelistRequest();
|
||||
|
||||
std::string getValidDay()const;
|
||||
void setValidDay(const std::string& validDay);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getIdCardNum()const;
|
||||
void setIdCardNum(const std::string& idCardNum);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string validDay_;
|
||||
std::string bizType_;
|
||||
std::string idCardNum_;
|
||||
std::string sourceIp_;
|
||||
std::string bizId_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DROPDEDICATEDHOSTUSERRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DROPDEDICATEDHOSTUSERRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DropDedicatedHostUserResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateWhitelistResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DropDedicatedHostUserResult();
|
||||
explicit DropDedicatedHostUserResult(const std::string &payload);
|
||||
~DropDedicatedHostUserResult();
|
||||
CreateWhitelistResult();
|
||||
explicit CreateWhitelistResult(const std::string &payload);
|
||||
~CreateWhitelistResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DROPDEDICATEDHOSTUSERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTRESULT_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_CLOUDAUTH_MODEL_DELETEWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DeleteWhitelistRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteWhitelistRequest();
|
||||
~DeleteWhitelistRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getIds()const;
|
||||
void setIds(const std::string& ids);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string ids_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreateDedicatedHostUserResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DeleteWhitelistResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDedicatedHostUserResult();
|
||||
explicit CreateDedicatedHostUserResult(const std::string &payload);
|
||||
~CreateDedicatedHostUserResult();
|
||||
DeleteWhitelistResult();
|
||||
explicit DeleteWhitelistResult(const std::string &payload);
|
||||
~DeleteWhitelistResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTRESULT_H_
|
||||
@@ -35,14 +35,17 @@ namespace AlibabaCloud
|
||||
DescribeFaceVerifyRequest();
|
||||
~DescribeFaceVerifyRequest();
|
||||
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getPictureReturnType()const;
|
||||
void setPictureReturnType(const std::string& pictureReturnType);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
long sceneId_;
|
||||
std::string certifyId_;
|
||||
std::string pictureReturnType_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,14 +35,17 @@ namespace AlibabaCloud
|
||||
DescribeSmartVerifyRequest();
|
||||
~DescribeSmartVerifyRequest();
|
||||
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getPictureReturnType()const;
|
||||
void setPictureReturnType(const std::string& pictureReturnType);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
long sceneId_;
|
||||
std::string certifyId_;
|
||||
std::string pictureReturnType_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeWhitelistRequest();
|
||||
~DescribeWhitelistRequest();
|
||||
|
||||
std::string getValidEndDate()const;
|
||||
void setValidEndDate(const std::string& validEndDate);
|
||||
std::string getValid()const;
|
||||
void setValid(const std::string& valid);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getIdCardNum()const;
|
||||
void setIdCardNum(const std::string& idCardNum);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getValidStartDate()const;
|
||||
void setValidStartDate(const std::string& validStartDate);
|
||||
|
||||
private:
|
||||
std::string validEndDate_;
|
||||
std::string valid_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
int currentPage_;
|
||||
std::string bizType_;
|
||||
std::string idCardNum_;
|
||||
std::string bizId_;
|
||||
std::string validStartDate_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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_CLOUDAUTH_MODEL_DESCRIBEWHITELISTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Item
|
||||
{
|
||||
long startDate;
|
||||
long uid;
|
||||
long gmtCreate;
|
||||
int valid;
|
||||
long gmtModified;
|
||||
std::string bizType;
|
||||
long id;
|
||||
long endDate;
|
||||
std::string bizId;
|
||||
std::string idCardNum;
|
||||
};
|
||||
|
||||
|
||||
DescribeWhitelistResult();
|
||||
explicit DescribeWhitelistResult(const std::string &payload);
|
||||
~DescribeWhitelistResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
std::vector<Item> getItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
std::vector<Item> items_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTRESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setCertifyData(const std::string& certifyData);
|
||||
std::string getAppVersion()const;
|
||||
void setAppVersion(const std::string& appVersion);
|
||||
std::string getDeviceToken()const;
|
||||
void setDeviceToken(const std::string& deviceToken);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
|
||||
@@ -48,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string extInfo_;
|
||||
std::string certifyData_;
|
||||
std::string appVersion_;
|
||||
std::string deviceToken_;
|
||||
std::string certifyId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -159,6 +159,42 @@ CloudauthClient::ContrastFaceVerifyOutcomeCallable CloudauthClient::contrastFace
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ContrastSmartVerifyOutcome CloudauthClient::contrastSmartVerify(const ContrastSmartVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ContrastSmartVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ContrastSmartVerifyOutcome(ContrastSmartVerifyResult(outcome.result()));
|
||||
else
|
||||
return ContrastSmartVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::contrastSmartVerifyAsync(const ContrastSmartVerifyRequest& request, const ContrastSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, contrastSmartVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ContrastSmartVerifyOutcomeCallable CloudauthClient::contrastSmartVerifyCallable(const ContrastSmartVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ContrastSmartVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->contrastSmartVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +375,78 @@ CloudauthClient::CreateVerifySettingOutcomeCallable CloudauthClient::createVerif
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateWhitelistOutcome CloudauthClient::createWhitelist(const CreateWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateWhitelistOutcome(CreateWhitelistResult(outcome.result()));
|
||||
else
|
||||
return CreateWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createWhitelistAsync(const CreateWhitelistRequest& request, const CreateWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateWhitelistOutcomeCallable CloudauthClient::createWhitelistCallable(const CreateWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistOutcome CloudauthClient::deleteWhitelist(const DeleteWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteWhitelistOutcome(DeleteWhitelistResult(outcome.result()));
|
||||
else
|
||||
return DeleteWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::deleteWhitelistAsync(const DeleteWhitelistRequest& request, const DeleteWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistOutcomeCallable CloudauthClient::deleteWhitelistCallable(const DeleteWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeAppInfoOutcome CloudauthClient::describeAppInfo(const DescribeAppInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,6 +1095,42 @@ CloudauthClient::DescribeVerifyUsageOutcomeCallable CloudauthClient::describeVer
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeWhitelistOutcome CloudauthClient::describeWhitelist(const DescribeWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWhitelistOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWhitelistOutcome(DescribeWhitelistResult(outcome.result()));
|
||||
else
|
||||
return DescribeWhitelistOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeWhitelistAsync(const DescribeWhitelistRequest& request, const DescribeWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWhitelist(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeWhitelistOutcomeCallable CloudauthClient::describeWhitelistCallable(const DescribeWhitelistRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWhitelistOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWhitelist(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
161
cloudauth/src/model/ContrastSmartVerifyRequest.cc
Normal file
161
cloudauth/src/model/ContrastSmartVerifyRequest.cc
Normal file
@@ -0,0 +1,161 @@
|
||||
/*
|
||||
* 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/cloudauth/model/ContrastSmartVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ContrastSmartVerifyRequest;
|
||||
|
||||
ContrastSmartVerifyRequest::ContrastSmartVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-06-18", "ContrastSmartVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ContrastSmartVerifyRequest::~ContrastSmartVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getFacePicFile()const
|
||||
{
|
||||
return facePicFile_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setFacePicFile(const std::string& facePicFile)
|
||||
{
|
||||
facePicFile_ = facePicFile;
|
||||
setBodyParameter("FacePicFile", facePicFile);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getFacePicString()const
|
||||
{
|
||||
return facePicString_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setFacePicString(const std::string& facePicString)
|
||||
{
|
||||
facePicString_ = facePicString;
|
||||
setBodyParameter("FacePicString", facePicString);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getFacePicUrl()const
|
||||
{
|
||||
return facePicUrl_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setFacePicUrl(const std::string& facePicUrl)
|
||||
{
|
||||
facePicUrl_ = facePicUrl;
|
||||
setBodyParameter("FacePicUrl", facePicUrl);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getCertType()const
|
||||
{
|
||||
return certType_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setBodyParameter("CertType", certType);
|
||||
}
|
||||
|
||||
long ContrastSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
74
cloudauth/src/model/ContrastSmartVerifyResult.cc
Normal file
74
cloudauth/src/model/ContrastSmartVerifyResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* 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/cloudauth/model/ContrastSmartVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
ContrastSmartVerifyResult::ContrastSmartVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ContrastSmartVerifyResult::ContrastSmartVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ContrastSmartVerifyResult::~ContrastSmartVerifyResult()
|
||||
{}
|
||||
|
||||
void ContrastSmartVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["VerifyInfo"].isNull())
|
||||
resultObject_.verifyInfo = resultObjectNode["VerifyInfo"].asString();
|
||||
if(!resultObjectNode["RiskInfo"].isNull())
|
||||
resultObject_.riskInfo = resultObjectNode["RiskInfo"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
ContrastSmartVerifyResult::ResultObject ContrastSmartVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
95
cloudauth/src/model/CreateWhitelistRequest.cc
Normal file
95
cloudauth/src/model/CreateWhitelistRequest.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/cloudauth/model/CreateWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateWhitelistRequest;
|
||||
|
||||
CreateWhitelistRequest::CreateWhitelistRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateWhitelist")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWhitelistRequest::~CreateWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWhitelistRequest::getValidDay()const
|
||||
{
|
||||
return validDay_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setValidDay(const std::string& validDay)
|
||||
{
|
||||
validDay_ = validDay;
|
||||
setParameter("ValidDay", validDay);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getIdCardNum()const
|
||||
{
|
||||
return idCardNum_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setIdCardNum(const std::string& idCardNum)
|
||||
{
|
||||
idCardNum_ = idCardNum;
|
||||
setParameter("IdCardNum", idCardNum);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateWhitelistRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DropDedicatedHostUserResult.h>
|
||||
#include <alibabacloud/cloudauth/model/CreateWhitelistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DropDedicatedHostUserResult::DropDedicatedHostUserResult() :
|
||||
CreateWhitelistResult::CreateWhitelistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DropDedicatedHostUserResult::DropDedicatedHostUserResult(const std::string &payload) :
|
||||
CreateWhitelistResult::CreateWhitelistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DropDedicatedHostUserResult::~DropDedicatedHostUserResult()
|
||||
CreateWhitelistResult::~CreateWhitelistResult()
|
||||
{}
|
||||
|
||||
void DropDedicatedHostUserResult::parse(const std::string &payload)
|
||||
void CreateWhitelistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
62
cloudauth/src/model/DeleteWhitelistRequest.cc
Normal file
62
cloudauth/src/model/DeleteWhitelistRequest.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/cloudauth/model/DeleteWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DeleteWhitelistRequest;
|
||||
|
||||
DeleteWhitelistRequest::DeleteWhitelistRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DeleteWhitelist")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteWhitelistRequest::~DeleteWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteWhitelistRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistRequest::getIds()const
|
||||
{
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistRequest::setIds(const std::string& ids)
|
||||
{
|
||||
ids_ = ids;
|
||||
setParameter("Ids", ids);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDedicatedHostUserResult.h>
|
||||
#include <alibabacloud/cloudauth/model/DeleteWhitelistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
ModifyDedicatedHostUserResult::ModifyDedicatedHostUserResult() :
|
||||
DeleteWhitelistResult::DeleteWhitelistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDedicatedHostUserResult::ModifyDedicatedHostUserResult(const std::string &payload) :
|
||||
DeleteWhitelistResult::DeleteWhitelistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDedicatedHostUserResult::~ModifyDedicatedHostUserResult()
|
||||
DeleteWhitelistResult::~DeleteWhitelistResult()
|
||||
{}
|
||||
|
||||
void ModifyDedicatedHostUserResult::parse(const std::string &payload)
|
||||
void DeleteWhitelistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -27,17 +27,6 @@ DescribeFaceVerifyRequest::DescribeFaceVerifyRequest() :
|
||||
DescribeFaceVerifyRequest::~DescribeFaceVerifyRequest()
|
||||
{}
|
||||
|
||||
long DescribeFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string DescribeFaceVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
@@ -49,3 +38,25 @@ void DescribeFaceVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
setParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string DescribeFaceVerifyRequest::getPictureReturnType()const
|
||||
{
|
||||
return pictureReturnType_;
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setPictureReturnType(const std::string& pictureReturnType)
|
||||
{
|
||||
pictureReturnType_ = pictureReturnType;
|
||||
setParameter("PictureReturnType", pictureReturnType);
|
||||
}
|
||||
|
||||
long DescribeFaceVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
|
||||
@@ -27,17 +27,6 @@ DescribeSmartVerifyRequest::DescribeSmartVerifyRequest() :
|
||||
DescribeSmartVerifyRequest::~DescribeSmartVerifyRequest()
|
||||
{}
|
||||
|
||||
long DescribeSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string DescribeSmartVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
@@ -49,3 +38,25 @@ void DescribeSmartVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
setBodyParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string DescribeSmartVerifyRequest::getPictureReturnType()const
|
||||
{
|
||||
return pictureReturnType_;
|
||||
}
|
||||
|
||||
void DescribeSmartVerifyRequest::setPictureReturnType(const std::string& pictureReturnType)
|
||||
{
|
||||
pictureReturnType_ = pictureReturnType;
|
||||
setBodyParameter("PictureReturnType", pictureReturnType);
|
||||
}
|
||||
|
||||
long DescribeSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
|
||||
139
cloudauth/src/model/DescribeWhitelistRequest.cc
Normal file
139
cloudauth/src/model/DescribeWhitelistRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* 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/cloudauth/model/DescribeWhitelistRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeWhitelistRequest;
|
||||
|
||||
DescribeWhitelistRequest::DescribeWhitelistRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeWhitelist")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeWhitelistRequest::~DescribeWhitelistRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeWhitelistRequest::getValidEndDate()const
|
||||
{
|
||||
return validEndDate_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setValidEndDate(const std::string& validEndDate)
|
||||
{
|
||||
validEndDate_ = validEndDate;
|
||||
setParameter("ValidEndDate", validEndDate);
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistRequest::getValid()const
|
||||
{
|
||||
return valid_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setValid(const std::string& valid)
|
||||
{
|
||||
valid_ = valid;
|
||||
setParameter("Valid", valid);
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeWhitelistRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeWhitelistRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistRequest::getIdCardNum()const
|
||||
{
|
||||
return idCardNum_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setIdCardNum(const std::string& idCardNum)
|
||||
{
|
||||
idCardNum_ = idCardNum;
|
||||
setParameter("IdCardNum", idCardNum);
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistRequest::getValidStartDate()const
|
||||
{
|
||||
return validStartDate_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistRequest::setValidStartDate(const std::string& validStartDate)
|
||||
{
|
||||
validStartDate_ = validStartDate;
|
||||
setParameter("ValidStartDate", validStartDate);
|
||||
}
|
||||
|
||||
96
cloudauth/src/model/DescribeWhitelistResult.cc
Normal file
96
cloudauth/src/model/DescribeWhitelistResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/cloudauth/model/DescribeWhitelistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeWhitelistResult::DescribeWhitelistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeWhitelistResult::DescribeWhitelistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeWhitelistResult::~DescribeWhitelistResult()
|
||||
{}
|
||||
|
||||
void DescribeWhitelistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Item"];
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsItem["Id"].asString());
|
||||
if(!valueItemsItem["Uid"].isNull())
|
||||
itemsObject.uid = std::stol(valueItemsItem["Uid"].asString());
|
||||
if(!valueItemsItem["BizType"].isNull())
|
||||
itemsObject.bizType = valueItemsItem["BizType"].asString();
|
||||
if(!valueItemsItem["StartDate"].isNull())
|
||||
itemsObject.startDate = std::stol(valueItemsItem["StartDate"].asString());
|
||||
if(!valueItemsItem["EndDate"].isNull())
|
||||
itemsObject.endDate = std::stol(valueItemsItem["EndDate"].asString());
|
||||
if(!valueItemsItem["IdCardNum"].isNull())
|
||||
itemsObject.idCardNum = valueItemsItem["IdCardNum"].asString();
|
||||
if(!valueItemsItem["BizId"].isNull())
|
||||
itemsObject.bizId = valueItemsItem["BizId"].asString();
|
||||
if(!valueItemsItem["Valid"].isNull())
|
||||
itemsObject.valid = std::stoi(valueItemsItem["Valid"].asString());
|
||||
if(!valueItemsItem["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = std::stol(valueItemsItem["GmtCreate"].asString());
|
||||
if(!valueItemsItem["GmtModified"].isNull())
|
||||
itemsObject.gmtModified = std::stol(valueItemsItem["GmtModified"].asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeWhitelistResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeWhitelistResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeWhitelistResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeWhitelistResult::Item> DescribeWhitelistResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,17 @@ void VerifyDeviceRequest::setAppVersion(const std::string& appVersion)
|
||||
setParameter("AppVersion", appVersion);
|
||||
}
|
||||
|
||||
std::string VerifyDeviceRequest::getDeviceToken()const
|
||||
{
|
||||
return deviceToken_;
|
||||
}
|
||||
|
||||
void VerifyDeviceRequest::setDeviceToken(const std::string& deviceToken)
|
||||
{
|
||||
deviceToken_ = deviceToken;
|
||||
setBodyParameter("DeviceToken", deviceToken);
|
||||
}
|
||||
|
||||
std::string VerifyDeviceRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
|
||||
@@ -143,6 +143,8 @@ namespace AlibabaCloud
|
||||
void setEnableVmOsConfig(bool enableVmOsConfig);
|
||||
std::vector<NetworkInterface> getNetworkInterface()const;
|
||||
void setNetworkInterface(const std::vector<NetworkInterface>& networkInterface);
|
||||
std::string getDeploymentSetId()const;
|
||||
void setDeploymentSetId(const std::string& deploymentSetId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -205,6 +207,7 @@ namespace AlibabaCloud
|
||||
std::string instanceChargeType_;
|
||||
bool enableVmOsConfig_;
|
||||
std::vector<NetworkInterface> networkInterface_;
|
||||
std::string deploymentSetId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string systemDiskDiskName_;
|
||||
|
||||
@@ -136,6 +136,8 @@ namespace AlibabaCloud
|
||||
void setEnableVmOsConfig(bool enableVmOsConfig);
|
||||
std::vector<NetworkInterface> getNetworkInterface()const;
|
||||
void setNetworkInterface(const std::vector<NetworkInterface>& networkInterface);
|
||||
std::string getDeploymentSetId()const;
|
||||
void setDeploymentSetId(const std::string& deploymentSetId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -197,6 +199,7 @@ namespace AlibabaCloud
|
||||
std::string instanceChargeType_;
|
||||
bool enableVmOsConfig_;
|
||||
std::vector<NetworkInterface> networkInterface_;
|
||||
std::string deploymentSetId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
std::string systemDiskDiskName_;
|
||||
|
||||
@@ -42,6 +42,12 @@ namespace AlibabaCloud
|
||||
int availableDisk;
|
||||
std::string dataDiskCategory;
|
||||
};
|
||||
struct AvailableInstanceType
|
||||
{
|
||||
int availableInstanceCapacity;
|
||||
std::string instanceType;
|
||||
};
|
||||
std::vector<AvailableInstanceType> availableInstanceTypes;
|
||||
int totalMemory;
|
||||
int availableMemory;
|
||||
int availableVcpus;
|
||||
|
||||
@@ -59,6 +59,8 @@ namespace AlibabaCloud
|
||||
void setDedicatedHostType(const std::string& dedicatedHostType);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getNeedHostDetail()const;
|
||||
void setNeedHostDetail(const std::string& needHostDetail);
|
||||
std::string getDedicatedHostName()const;
|
||||
void setDedicatedHostName(const std::string& dedicatedHostName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -82,6 +84,7 @@ namespace AlibabaCloud
|
||||
int pageSize_;
|
||||
std::string dedicatedHostType_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string needHostDetail_;
|
||||
std::string dedicatedHostName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -51,6 +51,10 @@ namespace AlibabaCloud
|
||||
int udpTimeout;
|
||||
int slbUdpTimeout;
|
||||
};
|
||||
struct HostDetailInfo
|
||||
{
|
||||
std::string serialNumber;
|
||||
};
|
||||
struct Instance
|
||||
{
|
||||
std::string instanceId;
|
||||
@@ -79,6 +83,7 @@ namespace AlibabaCloud
|
||||
float cpuOverCommitRatio;
|
||||
std::string saleCycle;
|
||||
std::vector<DedicatedHost::Tag> tags;
|
||||
HostDetailInfo hostDetailInfo;
|
||||
std::string status;
|
||||
std::string zoneId;
|
||||
std::string autoPlacement;
|
||||
|
||||
@@ -94,6 +94,7 @@ namespace AlibabaCloud
|
||||
std::string systemDiskCategory;
|
||||
std::string internetChargeType;
|
||||
std::string instanceName;
|
||||
std::string deploymentSetId;
|
||||
bool systemDiskDeleteWithInstance;
|
||||
int internetMaxBandwidthOut;
|
||||
bool enableVmOsConfig;
|
||||
|
||||
@@ -30,6 +30,15 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT ModifyAutoProvisioningGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct LaunchTemplateConfig
|
||||
{
|
||||
std::string instanceType;
|
||||
double maxPrice;
|
||||
std::string vSwitchId;
|
||||
double weightedCapacity;
|
||||
int priority;
|
||||
};
|
||||
|
||||
public:
|
||||
ModifyAutoProvisioningGroupRequest();
|
||||
@@ -45,6 +54,8 @@ namespace AlibabaCloud
|
||||
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
|
||||
std::string getExcessCapacityTerminationPolicy()const;
|
||||
void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy);
|
||||
std::vector<LaunchTemplateConfig> getLaunchTemplateConfig()const;
|
||||
void setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -70,6 +81,7 @@ namespace AlibabaCloud
|
||||
std::string regionId_;
|
||||
std::string defaultTargetCapacityType_;
|
||||
std::string excessCapacityTerminationPolicy_;
|
||||
std::vector<LaunchTemplateConfig> launchTemplateConfig_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -466,6 +466,17 @@ void CreateLaunchTemplateRequest::setNetworkInterface(const std::vector<NetworkI
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateRequest::setDeploymentSetId(const std::string& deploymentSetId)
|
||||
{
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter("DeploymentSetId", deploymentSetId);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -450,6 +450,17 @@ void CreateLaunchTemplateVersionRequest::setNetworkInterface(const std::vector<N
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getDeploymentSetId()const
|
||||
{
|
||||
return deploymentSetId_;
|
||||
}
|
||||
|
||||
void CreateLaunchTemplateVersionRequest::setDeploymentSetId(const std::string& deploymentSetId)
|
||||
{
|
||||
deploymentSetId_ = deploymentSetId;
|
||||
setParameter("DeploymentSetId", deploymentSetId);
|
||||
}
|
||||
|
||||
std::string CreateLaunchTemplateVersionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -86,6 +86,16 @@ void DescribeDedicatedHostClustersResult::parse(const std::string &payload)
|
||||
localStorageCapacityObject.dataDiskCategory = dedicatedHostClusterCapacityNodeLocalStorageCapacitiesLocalStorageCapacity["DataDiskCategory"].asString();
|
||||
dedicatedHostClustersObject.dedicatedHostClusterCapacity.localStorageCapacities.push_back(localStorageCapacityObject);
|
||||
}
|
||||
auto allAvailableInstanceTypesNode = dedicatedHostClusterCapacityNode["AvailableInstanceTypes"]["AvailableInstanceType"];
|
||||
for (auto dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType : allAvailableInstanceTypesNode)
|
||||
{
|
||||
DedicatedHostCluster::DedicatedHostClusterCapacity::AvailableInstanceType availableInstanceTypeObject;
|
||||
if(!dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType["InstanceType"].isNull())
|
||||
availableInstanceTypeObject.instanceType = dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType["InstanceType"].asString();
|
||||
if(!dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType["AvailableInstanceCapacity"].isNull())
|
||||
availableInstanceTypeObject.availableInstanceCapacity = std::stoi(dedicatedHostClusterCapacityNodeAvailableInstanceTypesAvailableInstanceType["AvailableInstanceCapacity"].asString());
|
||||
dedicatedHostClustersObject.dedicatedHostClusterCapacity.availableInstanceTypes.push_back(availableInstanceTypeObject);
|
||||
}
|
||||
auto allDedicatedHostIds = value["DedicatedHostIds"]["DedicatedHostId"];
|
||||
for (auto value : allDedicatedHostIds)
|
||||
dedicatedHostClustersObject.dedicatedHostIds.push_back(value.asString());
|
||||
|
||||
@@ -131,6 +131,17 @@ void DescribeDedicatedHostsRequest::setTag(const std::vector<Tag>& tag)
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostsRequest::getNeedHostDetail()const
|
||||
{
|
||||
return needHostDetail_;
|
||||
}
|
||||
|
||||
void DescribeDedicatedHostsRequest::setNeedHostDetail(const std::string& needHostDetail)
|
||||
{
|
||||
needHostDetail_ = needHostDetail;
|
||||
setParameter("NeedHostDetail", needHostDetail);
|
||||
}
|
||||
|
||||
std::string DescribeDedicatedHostsRequest::getDedicatedHostName()const
|
||||
{
|
||||
return dedicatedHostName_;
|
||||
|
||||
@@ -139,6 +139,9 @@ void DescribeDedicatedHostsResult::parse(const std::string &payload)
|
||||
dedicatedHostsObject.networkAttributes.slbUdpTimeout = std::stoi(networkAttributesNode["SlbUdpTimeout"].asString());
|
||||
if(!networkAttributesNode["UdpTimeout"].isNull())
|
||||
dedicatedHostsObject.networkAttributes.udpTimeout = std::stoi(networkAttributesNode["UdpTimeout"].asString());
|
||||
auto hostDetailInfoNode = value["HostDetailInfo"];
|
||||
if(!hostDetailInfoNode["SerialNumber"].isNull())
|
||||
dedicatedHostsObject.hostDetailInfo.serialNumber = hostDetailInfoNode["SerialNumber"].asString();
|
||||
auto allSupportedInstanceTypeFamilies = value["SupportedInstanceTypeFamilies"]["SupportedInstanceTypeFamily"];
|
||||
for (auto value : allSupportedInstanceTypeFamilies)
|
||||
dedicatedHostsObject.supportedInstanceTypeFamilies.push_back(value.asString());
|
||||
|
||||
@@ -132,6 +132,8 @@ void DescribeLaunchTemplateVersionsResult::parse(const std::string &payload)
|
||||
launchTemplateVersionSetsObject.launchTemplateData.securityEnhancementStrategy = launchTemplateDataNode["SecurityEnhancementStrategy"].asString();
|
||||
if(!launchTemplateDataNode["PrivateIpAddress"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.privateIpAddress = launchTemplateDataNode["PrivateIpAddress"].asString();
|
||||
if(!launchTemplateDataNode["DeploymentSetId"].isNull())
|
||||
launchTemplateVersionSetsObject.launchTemplateData.deploymentSetId = launchTemplateDataNode["DeploymentSetId"].asString();
|
||||
auto allDataDisksNode = launchTemplateDataNode["DataDisks"]["DataDisk"];
|
||||
for (auto launchTemplateDataNodeDataDisksDataDisk : allDataDisksNode)
|
||||
{
|
||||
|
||||
@@ -82,6 +82,25 @@ void ModifyAutoProvisioningGroupRequest::setExcessCapacityTerminationPolicy(cons
|
||||
setParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy);
|
||||
}
|
||||
|
||||
std::vector<ModifyAutoProvisioningGroupRequest::LaunchTemplateConfig> ModifyAutoProvisioningGroupRequest::getLaunchTemplateConfig()const
|
||||
{
|
||||
return launchTemplateConfig_;
|
||||
}
|
||||
|
||||
void ModifyAutoProvisioningGroupRequest::setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig)
|
||||
{
|
||||
launchTemplateConfig_ = launchTemplateConfig;
|
||||
for(int dep1 = 0; dep1!= launchTemplateConfig.size(); dep1++) {
|
||||
auto launchTemplateConfigObj = launchTemplateConfig.at(dep1);
|
||||
std::string launchTemplateConfigObjStr = "LaunchTemplateConfig." + std::to_string(dep1 + 1);
|
||||
setParameter(launchTemplateConfigObjStr + ".InstanceType", launchTemplateConfigObj.instanceType);
|
||||
setParameter(launchTemplateConfigObjStr + ".MaxPrice", std::to_string(launchTemplateConfigObj.maxPrice));
|
||||
setParameter(launchTemplateConfigObjStr + ".VSwitchId", launchTemplateConfigObj.vSwitchId);
|
||||
setParameter(launchTemplateConfigObjStr + ".WeightedCapacity", std::to_string(launchTemplateConfigObj.weightedCapacity));
|
||||
setParameter(launchTemplateConfigObjStr + ".Priority", std::to_string(launchTemplateConfigObj.priority));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ModifyAutoProvisioningGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -125,10 +125,18 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/DescribePendingMaintenanceActionsResult.h
|
||||
include/alibabacloud/polardb/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h
|
||||
include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h
|
||||
include/alibabacloud/polardb/model/DescribeSQLExplorerVersionRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeSQLExplorerVersionResult.h
|
||||
include/alibabacloud/polardb/model/DescribeScheduleTasksRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeScheduleTasksResult.h
|
||||
include/alibabacloud/polardb/model/DescribeSlowLogRecordsRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h
|
||||
include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeSqlLogTrialStatusResult.h
|
||||
include/alibabacloud/polardb/model/DescribeTasksRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeTasksResult.h
|
||||
include/alibabacloud/polardb/model/FailoverDBClusterRequest.h
|
||||
@@ -190,7 +198,9 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/polardb/model/UntagResourcesResult.h
|
||||
include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionRequest.h
|
||||
include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h )
|
||||
include/alibabacloud/polardb/model/UpgradeDBClusterMinorVersionResult.h
|
||||
include/alibabacloud/polardb/model/UpgradeDBClusterVersionRequest.h
|
||||
include/alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h )
|
||||
|
||||
set(polardb_src
|
||||
src/PolardbClient.cc
|
||||
@@ -298,10 +308,18 @@ set(polardb_src
|
||||
src/model/DescribePendingMaintenanceActionsResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeSQLExplorerPolicyRequest.cc
|
||||
src/model/DescribeSQLExplorerPolicyResult.cc
|
||||
src/model/DescribeSQLExplorerRetentionRequest.cc
|
||||
src/model/DescribeSQLExplorerRetentionResult.cc
|
||||
src/model/DescribeSQLExplorerVersionRequest.cc
|
||||
src/model/DescribeSQLExplorerVersionResult.cc
|
||||
src/model/DescribeScheduleTasksRequest.cc
|
||||
src/model/DescribeScheduleTasksResult.cc
|
||||
src/model/DescribeSlowLogRecordsRequest.cc
|
||||
src/model/DescribeSlowLogRecordsResult.cc
|
||||
src/model/DescribeSqlLogTrialStatusRequest.cc
|
||||
src/model/DescribeSqlLogTrialStatusResult.cc
|
||||
src/model/DescribeTasksRequest.cc
|
||||
src/model/DescribeTasksResult.cc
|
||||
src/model/FailoverDBClusterRequest.cc
|
||||
@@ -363,7 +381,9 @@ set(polardb_src
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc
|
||||
src/model/UpgradeDBClusterMinorVersionRequest.cc
|
||||
src/model/UpgradeDBClusterMinorVersionResult.cc )
|
||||
src/model/UpgradeDBClusterMinorVersionResult.cc
|
||||
src/model/UpgradeDBClusterVersionRequest.cc
|
||||
src/model/UpgradeDBClusterVersionResult.cc )
|
||||
|
||||
add_library(polardb ${LIB_TYPE}
|
||||
${polardb_public_header}
|
||||
|
||||
@@ -126,10 +126,18 @@
|
||||
#include "model/DescribePendingMaintenanceActionsResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeSQLExplorerPolicyRequest.h"
|
||||
#include "model/DescribeSQLExplorerPolicyResult.h"
|
||||
#include "model/DescribeSQLExplorerRetentionRequest.h"
|
||||
#include "model/DescribeSQLExplorerRetentionResult.h"
|
||||
#include "model/DescribeSQLExplorerVersionRequest.h"
|
||||
#include "model/DescribeSQLExplorerVersionResult.h"
|
||||
#include "model/DescribeScheduleTasksRequest.h"
|
||||
#include "model/DescribeScheduleTasksResult.h"
|
||||
#include "model/DescribeSlowLogRecordsRequest.h"
|
||||
#include "model/DescribeSlowLogRecordsResult.h"
|
||||
#include "model/DescribeSqlLogTrialStatusRequest.h"
|
||||
#include "model/DescribeSqlLogTrialStatusResult.h"
|
||||
#include "model/DescribeTasksRequest.h"
|
||||
#include "model/DescribeTasksResult.h"
|
||||
#include "model/FailoverDBClusterRequest.h"
|
||||
@@ -192,6 +200,8 @@
|
||||
#include "model/UntagResourcesResult.h"
|
||||
#include "model/UpgradeDBClusterMinorVersionRequest.h"
|
||||
#include "model/UpgradeDBClusterMinorVersionResult.h"
|
||||
#include "model/UpgradeDBClusterVersionRequest.h"
|
||||
#include "model/UpgradeDBClusterVersionResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -357,12 +367,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLExplorerPolicyResult> DescribeSQLExplorerPolicyOutcome;
|
||||
typedef std::future<DescribeSQLExplorerPolicyOutcome> DescribeSQLExplorerPolicyOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeSQLExplorerPolicyRequest&, const DescribeSQLExplorerPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLExplorerPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLExplorerRetentionResult> DescribeSQLExplorerRetentionOutcome;
|
||||
typedef std::future<DescribeSQLExplorerRetentionOutcome> DescribeSQLExplorerRetentionOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeSQLExplorerRetentionRequest&, const DescribeSQLExplorerRetentionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLExplorerRetentionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSQLExplorerVersionResult> DescribeSQLExplorerVersionOutcome;
|
||||
typedef std::future<DescribeSQLExplorerVersionOutcome> DescribeSQLExplorerVersionOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeSQLExplorerVersionRequest&, const DescribeSQLExplorerVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSQLExplorerVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeScheduleTasksResult> DescribeScheduleTasksOutcome;
|
||||
typedef std::future<DescribeScheduleTasksOutcome> DescribeScheduleTasksOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeScheduleTasksRequest&, const DescribeScheduleTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeScheduleTasksAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSlowLogRecordsResult> DescribeSlowLogRecordsOutcome;
|
||||
typedef std::future<DescribeSlowLogRecordsOutcome> DescribeSlowLogRecordsOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeSlowLogRecordsRequest&, const DescribeSlowLogRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSqlLogTrialStatusResult> DescribeSqlLogTrialStatusOutcome;
|
||||
typedef std::future<DescribeSqlLogTrialStatusOutcome> DescribeSqlLogTrialStatusOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeSqlLogTrialStatusRequest&, const DescribeSqlLogTrialStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSqlLogTrialStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeTasksResult> DescribeTasksOutcome;
|
||||
typedef std::future<DescribeTasksOutcome> DescribeTasksOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeTasksRequest&, const DescribeTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTasksAsyncHandler;
|
||||
@@ -456,6 +478,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpgradeDBClusterMinorVersionResult> UpgradeDBClusterMinorVersionOutcome;
|
||||
typedef std::future<UpgradeDBClusterMinorVersionOutcome> UpgradeDBClusterMinorVersionOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::UpgradeDBClusterMinorVersionRequest&, const UpgradeDBClusterMinorVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeDBClusterMinorVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeDBClusterVersionResult> UpgradeDBClusterVersionOutcome;
|
||||
typedef std::future<UpgradeDBClusterVersionOutcome> UpgradeDBClusterVersionOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::UpgradeDBClusterVersionRequest&, const UpgradeDBClusterVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeDBClusterVersionAsyncHandler;
|
||||
|
||||
PolardbClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
PolardbClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -617,12 +642,24 @@ namespace AlibabaCloud
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
DescribeSQLExplorerPolicyOutcome describeSQLExplorerPolicy(const Model::DescribeSQLExplorerPolicyRequest &request)const;
|
||||
void describeSQLExplorerPolicyAsync(const Model::DescribeSQLExplorerPolicyRequest& request, const DescribeSQLExplorerPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLExplorerPolicyOutcomeCallable describeSQLExplorerPolicyCallable(const Model::DescribeSQLExplorerPolicyRequest& request) const;
|
||||
DescribeSQLExplorerRetentionOutcome describeSQLExplorerRetention(const Model::DescribeSQLExplorerRetentionRequest &request)const;
|
||||
void describeSQLExplorerRetentionAsync(const Model::DescribeSQLExplorerRetentionRequest& request, const DescribeSQLExplorerRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLExplorerRetentionOutcomeCallable describeSQLExplorerRetentionCallable(const Model::DescribeSQLExplorerRetentionRequest& request) const;
|
||||
DescribeSQLExplorerVersionOutcome describeSQLExplorerVersion(const Model::DescribeSQLExplorerVersionRequest &request)const;
|
||||
void describeSQLExplorerVersionAsync(const Model::DescribeSQLExplorerVersionRequest& request, const DescribeSQLExplorerVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSQLExplorerVersionOutcomeCallable describeSQLExplorerVersionCallable(const Model::DescribeSQLExplorerVersionRequest& request) const;
|
||||
DescribeScheduleTasksOutcome describeScheduleTasks(const Model::DescribeScheduleTasksRequest &request)const;
|
||||
void describeScheduleTasksAsync(const Model::DescribeScheduleTasksRequest& request, const DescribeScheduleTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeScheduleTasksOutcomeCallable describeScheduleTasksCallable(const Model::DescribeScheduleTasksRequest& request) const;
|
||||
DescribeSlowLogRecordsOutcome describeSlowLogRecords(const Model::DescribeSlowLogRecordsRequest &request)const;
|
||||
void describeSlowLogRecordsAsync(const Model::DescribeSlowLogRecordsRequest& request, const DescribeSlowLogRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSlowLogRecordsOutcomeCallable describeSlowLogRecordsCallable(const Model::DescribeSlowLogRecordsRequest& request) const;
|
||||
DescribeSqlLogTrialStatusOutcome describeSqlLogTrialStatus(const Model::DescribeSqlLogTrialStatusRequest &request)const;
|
||||
void describeSqlLogTrialStatusAsync(const Model::DescribeSqlLogTrialStatusRequest& request, const DescribeSqlLogTrialStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSqlLogTrialStatusOutcomeCallable describeSqlLogTrialStatusCallable(const Model::DescribeSqlLogTrialStatusRequest& request) const;
|
||||
DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const;
|
||||
void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const;
|
||||
@@ -716,6 +753,9 @@ namespace AlibabaCloud
|
||||
UpgradeDBClusterMinorVersionOutcome upgradeDBClusterMinorVersion(const Model::UpgradeDBClusterMinorVersionRequest &request)const;
|
||||
void upgradeDBClusterMinorVersionAsync(const Model::UpgradeDBClusterMinorVersionRequest& request, const UpgradeDBClusterMinorVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeDBClusterMinorVersionOutcomeCallable upgradeDBClusterMinorVersionCallable(const Model::UpgradeDBClusterMinorVersionRequest& request) const;
|
||||
UpgradeDBClusterVersionOutcome upgradeDBClusterVersion(const Model::UpgradeDBClusterVersionRequest &request)const;
|
||||
void upgradeDBClusterVersionAsync(const Model::UpgradeDBClusterVersionRequest& request, const UpgradeDBClusterVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeDBClusterVersionOutcomeCallable upgradeDBClusterVersionCallable(const Model::UpgradeDBClusterVersionRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -59,6 +59,8 @@ namespace AlibabaCloud
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getSecurityIPList()const;
|
||||
void setSecurityIPList(const std::string& securityIPList);
|
||||
std::string getDBMinorVersion()const;
|
||||
void setDBMinorVersion(const std::string& dBMinorVersion);
|
||||
bool getAutoRenew()const;
|
||||
void setAutoRenew(bool autoRenew);
|
||||
std::string getZoneId()const;
|
||||
@@ -109,6 +111,7 @@ namespace AlibabaCloud
|
||||
long ownerId_;
|
||||
std::string vSwitchId_;
|
||||
std::string securityIPList_;
|
||||
std::string dBMinorVersion_;
|
||||
bool autoRenew_;
|
||||
std::string zoneId_;
|
||||
bool tDEStatus_;
|
||||
|
||||
@@ -77,6 +77,7 @@ namespace AlibabaCloud
|
||||
std::string getPayType()const;
|
||||
std::string getLockMode()const;
|
||||
long getStorageUsed()const;
|
||||
std::string getDBVersionStatus()const;
|
||||
std::string getCreationTime()const;
|
||||
std::string getRegionId()const;
|
||||
long getSQLSize()const;
|
||||
@@ -108,6 +109,7 @@ namespace AlibabaCloud
|
||||
std::string payType_;
|
||||
std::string lockMode_;
|
||||
long storageUsed_;
|
||||
std::string dBVersionStatus_;
|
||||
std::string creationTime_;
|
||||
std::string regionId_;
|
||||
long sQLSize_;
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string accessKeyId_;
|
||||
std::string securityToken_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
|
||||
@@ -14,47 +14,50 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEDEDICATEDHOSTZONESREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEDEDICATEDHOSTZONESREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeAvailableDedicatedHostZonesRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerPolicyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAvailableDedicatedHostZonesRequest();
|
||||
~DescribeAvailableDedicatedHostZonesRequest();
|
||||
DescribeSQLExplorerPolicyRequest();
|
||||
~DescribeSQLExplorerPolicyRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DESCRIBEAVAILABLEDEDICATEDHOSTZONESREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYREQUEST_H_
|
||||
@@ -14,36 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTACCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTACCOUNTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreateDedicatedHostAccountResult : public ServiceResult
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerPolicyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDedicatedHostAccountResult();
|
||||
explicit CreateDedicatedHostAccountResult(const std::string &payload);
|
||||
~CreateDedicatedHostAccountResult();
|
||||
DescribeSQLExplorerPolicyResult();
|
||||
explicit DescribeSQLExplorerPolicyResult(const std::string &payload);
|
||||
~DescribeSQLExplorerPolicyResult();
|
||||
std::string getSQLCollectorStatus()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sQLCollectorStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTACCOUNTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERPOLICYRESULT_H_
|
||||
@@ -14,56 +14,56 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTACCOUNTREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreateDedicatedHostAccountRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerRetentionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDedicatedHostAccountRequest();
|
||||
~CreateDedicatedHostAccountRequest();
|
||||
DescribeSQLExplorerRetentionRequest();
|
||||
~DescribeSQLExplorerRetentionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getAccountName()const;
|
||||
void setAccountName(const std::string& accountName);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDedicatedHostId()const;
|
||||
void setDedicatedHostId(const std::string& dedicatedHostId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccountPassword()const;
|
||||
void setAccountPassword(const std::string& accountPassword);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountName_;
|
||||
std::string securityToken_;
|
||||
std::string regionId_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dedicatedHostId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string accountPassword_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTACCOUNTREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerRetentionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeSQLExplorerRetentionResult();
|
||||
explicit DescribeSQLExplorerRetentionResult(const std::string &payload);
|
||||
~DescribeSQLExplorerRetentionResult();
|
||||
std::string getConfigValue()const;
|
||||
int getDBInstanceID()const;
|
||||
std::string getDBInstanceName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string configValue_;
|
||||
int dBInstanceID_;
|
||||
std::string dBInstanceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERRETENTIONRESULT_H_
|
||||
@@ -14,50 +14,53 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTGROUPREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DeleteDedicatedHostGroupRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerVersionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDedicatedHostGroupRequest();
|
||||
~DeleteDedicatedHostGroupRequest();
|
||||
DescribeSQLExplorerVersionRequest();
|
||||
~DescribeSQLExplorerVersionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDedicatedHostGroupId()const;
|
||||
void setDedicatedHostGroupId(const std::string& dedicatedHostGroupId);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string dedicatedHostGroupId_;
|
||||
std::string securityToken_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTGROUPREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONREQUEST_H_
|
||||
@@ -14,38 +14,42 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTGROUPRESULT_H_
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreateDedicatedHostGroupResult : public ServiceResult
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSQLExplorerVersionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDedicatedHostGroupResult();
|
||||
explicit CreateDedicatedHostGroupResult(const std::string &payload);
|
||||
~CreateDedicatedHostGroupResult();
|
||||
std::string getDedicatedHostGroupId()const;
|
||||
DescribeSQLExplorerVersionResult();
|
||||
explicit DescribeSQLExplorerVersionResult(const std::string &payload);
|
||||
~DescribeSQLExplorerVersionResult();
|
||||
std::string getConfigValue()const;
|
||||
int getDBInstanceID()const;
|
||||
std::string getDBInstanceName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dedicatedHostGroupId_;
|
||||
std::string configValue_;
|
||||
int dBInstanceID_;
|
||||
std::string dBInstanceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTGROUPRESULT_H_
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLEXPLORERVERSIONRESULT_H_
|
||||
@@ -37,10 +37,14 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
@@ -49,17 +53,22 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getTaskAction()const;
|
||||
void setTaskAction(const std::string& taskAction);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string taskAction_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
|
||||
@@ -32,26 +32,27 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeScheduleTasksResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Items
|
||||
struct Data
|
||||
{
|
||||
int maxRetryTime;
|
||||
std::string status;
|
||||
std::string action;
|
||||
std::string args;
|
||||
long plannedTime;
|
||||
std::string taskId;
|
||||
std::string productCode;
|
||||
long gmtModified;
|
||||
std::string dBClusterId;
|
||||
long plannedStartTime;
|
||||
std::string mutex;
|
||||
std::string orderId;
|
||||
std::string response;
|
||||
long gmtCreate;
|
||||
int type;
|
||||
std::string region;
|
||||
int retryTime;
|
||||
long plannedEndTime;
|
||||
struct TimerInfosItem
|
||||
{
|
||||
std::string status;
|
||||
long gmtCreate;
|
||||
std::string action;
|
||||
std::string taskId;
|
||||
std::string plannedTime;
|
||||
std::string plannedStartTime;
|
||||
std::string dBClusterId;
|
||||
long gmtModified;
|
||||
std::string region;
|
||||
std::string orderId;
|
||||
std::string plannedEndTime;
|
||||
int aliUid;
|
||||
};
|
||||
std::vector<TimerInfosItem> timerInfos;
|
||||
int totalRecordCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
};
|
||||
|
||||
|
||||
@@ -59,8 +60,7 @@ namespace AlibabaCloud
|
||||
explicit DescribeScheduleTasksResult(const std::string &payload);
|
||||
~DescribeScheduleTasksResult();
|
||||
std::string getMessage()const;
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<Items> getData()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
@@ -68,8 +68,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int httpStatusCode_;
|
||||
std::vector<Items> data_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
|
||||
@@ -14,53 +14,53 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DROPDEDICATEDHOSTUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DROPDEDICATEDHOSTUSERREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DropDedicatedHostUserRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSqlLogTrialStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DropDedicatedHostUserRequest();
|
||||
~DropDedicatedHostUserRequest();
|
||||
DescribeSqlLogTrialStatusRequest();
|
||||
~DescribeSqlLogTrialStatusRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getDedicatedHostName()const;
|
||||
void setDedicatedHostName(const std::string& dedicatedHostName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getUserName()const;
|
||||
void setUserName(const std::string& userName);
|
||||
std::string getSecurityToken()const;
|
||||
void setSecurityToken(const std::string& securityToken);
|
||||
std::string getDBInstanceId()const;
|
||||
void setDBInstanceId(const std::string& dBInstanceId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string dedicatedHostName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string userName_;
|
||||
std::string securityToken_;
|
||||
std::string dBInstanceId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DROPDEDICATEDHOSTUSERREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSREQUEST_H_
|
||||
@@ -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_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeSqlLogTrialStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeSqlLogTrialStatusResult();
|
||||
explicit DescribeSqlLogTrialStatusResult(const std::string &payload);
|
||||
~DescribeSqlLogTrialStatusResult();
|
||||
std::string getEverTrialed()const;
|
||||
std::string getOpenTrial()const;
|
||||
std::string getRemainDays()const;
|
||||
std::string getUsedDays()const;
|
||||
std::string getDBInstanceName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string everTrialed_;
|
||||
std::string openTrial_;
|
||||
std::string remainDays_;
|
||||
std::string usedDays_;
|
||||
std::string dBInstanceName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESQLLOGTRIALSTATUSRESULT_H_
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPlannedEndTime()const;
|
||||
void setPlannedEndTime(const std::string& plannedEndTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -49,18 +51,25 @@ namespace AlibabaCloud
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getVSwitchId()const;
|
||||
void setVSwitchId(const std::string& vSwitchId);
|
||||
std::string getPlannedStartTime()const;
|
||||
void setPlannedStartTime(const std::string& plannedStartTime);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
bool getFromTimeService()const;
|
||||
void setFromTimeService(bool fromTimeService);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string plannedEndTime_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string vSwitchId_;
|
||||
std::string plannedStartTime_;
|
||||
std::string zoneId_;
|
||||
bool fromTimeService_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,8 +41,6 @@ namespace AlibabaCloud
|
||||
void setPlannedEndTime(const std::string& plannedEndTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getSwitchTimeMode()const;
|
||||
void setSwitchTimeMode(const std::string& switchTimeMode);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
@@ -60,7 +58,6 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string plannedEndTime_;
|
||||
std::string accessKeyId_;
|
||||
std::string switchTimeMode_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
|
||||
@@ -14,56 +14,59 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreateDedicatedHostUserRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterVersionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDedicatedHostUserRequest();
|
||||
~CreateDedicatedHostUserRequest();
|
||||
UpgradeDBClusterVersionRequest();
|
||||
~UpgradeDBClusterVersionRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPlannedEndTime()const;
|
||||
void setPlannedEndTime(const std::string& plannedEndTime);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getUserPassword()const;
|
||||
void setUserPassword(const std::string& userPassword);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDedicatedHostName()const;
|
||||
void setDedicatedHostName(const std::string& dedicatedHostName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDBClusterId()const;
|
||||
void setDBClusterId(const std::string& dBClusterId);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getUserName()const;
|
||||
void setUserName(const std::string& userName);
|
||||
std::string getPlannedStartTime()const;
|
||||
void setPlannedStartTime(const std::string& plannedStartTime);
|
||||
bool getFromTimeService()const;
|
||||
void setFromTimeService(bool fromTimeService);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string plannedEndTime_;
|
||||
std::string accessKeyId_;
|
||||
std::string userPassword_;
|
||||
std::string regionId_;
|
||||
std::string dedicatedHostName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string userName_;
|
||||
std::string plannedStartTime_;
|
||||
bool fromTimeService_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTUSERREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONREQUEST_H_
|
||||
@@ -14,29 +14,29 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERRESULT_H_
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ModifyDedicatedHostUserResult : public ServiceResult
|
||||
class ALIBABACLOUD_POLARDB_EXPORT UpgradeDBClusterVersionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDedicatedHostUserResult();
|
||||
explicit ModifyDedicatedHostUserResult(const std::string &payload);
|
||||
~ModifyDedicatedHostUserResult();
|
||||
UpgradeDBClusterVersionResult();
|
||||
explicit UpgradeDBClusterVersionResult(const std::string &payload);
|
||||
~UpgradeDBClusterVersionResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -46,4 +46,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERRESULT_H_
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_UPGRADEDBCLUSTERVERSIONRESULT_H_
|
||||
@@ -1923,6 +1923,114 @@ PolardbClient::DescribeRegionsOutcomeCallable PolardbClient::describeRegionsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSQLExplorerPolicyOutcome PolardbClient::describeSQLExplorerPolicy(const DescribeSQLExplorerPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLExplorerPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLExplorerPolicyOutcome(DescribeSQLExplorerPolicyResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLExplorerPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeSQLExplorerPolicyAsync(const DescribeSQLExplorerPolicyRequest& request, const DescribeSQLExplorerPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLExplorerPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSQLExplorerPolicyOutcomeCallable PolardbClient::describeSQLExplorerPolicyCallable(const DescribeSQLExplorerPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLExplorerPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLExplorerPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSQLExplorerRetentionOutcome PolardbClient::describeSQLExplorerRetention(const DescribeSQLExplorerRetentionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLExplorerRetentionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLExplorerRetentionOutcome(DescribeSQLExplorerRetentionResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLExplorerRetentionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeSQLExplorerRetentionAsync(const DescribeSQLExplorerRetentionRequest& request, const DescribeSQLExplorerRetentionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLExplorerRetention(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSQLExplorerRetentionOutcomeCallable PolardbClient::describeSQLExplorerRetentionCallable(const DescribeSQLExplorerRetentionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLExplorerRetentionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLExplorerRetention(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSQLExplorerVersionOutcome PolardbClient::describeSQLExplorerVersion(const DescribeSQLExplorerVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSQLExplorerVersionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSQLExplorerVersionOutcome(DescribeSQLExplorerVersionResult(outcome.result()));
|
||||
else
|
||||
return DescribeSQLExplorerVersionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeSQLExplorerVersionAsync(const DescribeSQLExplorerVersionRequest& request, const DescribeSQLExplorerVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSQLExplorerVersion(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSQLExplorerVersionOutcomeCallable PolardbClient::describeSQLExplorerVersionCallable(const DescribeSQLExplorerVersionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSQLExplorerVersionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSQLExplorerVersion(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeScheduleTasksOutcome PolardbClient::describeScheduleTasks(const DescribeScheduleTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1995,6 +2103,42 @@ PolardbClient::DescribeSlowLogRecordsOutcomeCallable PolardbClient::describeSlow
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSqlLogTrialStatusOutcome PolardbClient::describeSqlLogTrialStatus(const DescribeSqlLogTrialStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSqlLogTrialStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSqlLogTrialStatusOutcome(DescribeSqlLogTrialStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeSqlLogTrialStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeSqlLogTrialStatusAsync(const DescribeSqlLogTrialStatusRequest& request, const DescribeSqlLogTrialStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSqlLogTrialStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSqlLogTrialStatusOutcomeCallable PolardbClient::describeSqlLogTrialStatusCallable(const DescribeSqlLogTrialStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSqlLogTrialStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSqlLogTrialStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeTasksOutcome PolardbClient::describeTasks(const DescribeTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3111,3 +3255,39 @@ PolardbClient::UpgradeDBClusterMinorVersionOutcomeCallable PolardbClient::upgrad
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::UpgradeDBClusterVersionOutcome PolardbClient::upgradeDBClusterVersion(const UpgradeDBClusterVersionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpgradeDBClusterVersionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpgradeDBClusterVersionOutcome(UpgradeDBClusterVersionResult(outcome.result()));
|
||||
else
|
||||
return UpgradeDBClusterVersionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::upgradeDBClusterVersionAsync(const UpgradeDBClusterVersionRequest& request, const UpgradeDBClusterVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, upgradeDBClusterVersion(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::UpgradeDBClusterVersionOutcomeCallable PolardbClient::upgradeDBClusterVersionCallable(const UpgradeDBClusterVersionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpgradeDBClusterVersionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->upgradeDBClusterVersion(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -159,6 +159,17 @@ void CreateDBClusterRequest::setSecurityIPList(const std::string& securityIPList
|
||||
setParameter("SecurityIPList", securityIPList);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getDBMinorVersion()const
|
||||
{
|
||||
return dBMinorVersion_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setDBMinorVersion(const std::string& dBMinorVersion)
|
||||
{
|
||||
dBMinorVersion_ = dBMinorVersion;
|
||||
setParameter("DBMinorVersion", dBMinorVersion);
|
||||
}
|
||||
|
||||
bool CreateDBClusterRequest::getAutoRenew()const
|
||||
{
|
||||
return autoRenew_;
|
||||
|
||||
@@ -123,6 +123,8 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
|
||||
dataLevel1BackupChainSize_ = std::stol(value["DataLevel1BackupChainSize"].asString());
|
||||
if(!value["Category"].isNull())
|
||||
category_ = value["Category"].asString();
|
||||
if(!value["DBVersionStatus"].isNull())
|
||||
dBVersionStatus_ = value["DBVersionStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -241,6 +243,11 @@ long DescribeDBClusterAttributeResult::getStorageUsed()const
|
||||
return storageUsed_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAttributeResult::getDBVersionStatus()const
|
||||
{
|
||||
return dBVersionStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAttributeResult::getCreationTime()const
|
||||
{
|
||||
return creationTime_;
|
||||
|
||||
@@ -71,6 +71,17 @@ void DescribeGlobalDatabaseNetworksRequest::setResourceOwnerAccount(const std::s
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeGlobalDatabaseNetworksRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeGlobalDatabaseNetworksRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeGlobalDatabaseNetworksRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
|
||||
@@ -43,38 +43,38 @@ void DescribeGlobalDatabaseNetworksResult::parse(const std::string &payload)
|
||||
for (auto valueItemsGlobalDatabaseNetwork : allItemsNode)
|
||||
{
|
||||
GlobalDatabaseNetwork itemsObject;
|
||||
if(!valueItemsGlobalDatabaseNetwork["GDNId"].isNull())
|
||||
itemsObject.gDNId = valueItemsGlobalDatabaseNetwork["GDNId"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetwork["GDNStatus"].isNull())
|
||||
itemsObject.gDNStatus = valueItemsGlobalDatabaseNetwork["GDNStatus"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetwork["DBVersion"].isNull())
|
||||
itemsObject.dBVersion = valueItemsGlobalDatabaseNetwork["DBVersion"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetwork["GDNId"].isNull())
|
||||
itemsObject.gDNId = valueItemsGlobalDatabaseNetwork["GDNId"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetwork["CreateTime"].isNull())
|
||||
itemsObject.createTime = valueItemsGlobalDatabaseNetwork["CreateTime"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetwork["GDNDescription"].isNull())
|
||||
itemsObject.gDNDescription = valueItemsGlobalDatabaseNetwork["GDNDescription"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetwork["DBType"].isNull())
|
||||
itemsObject.dBType = valueItemsGlobalDatabaseNetwork["DBType"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetwork["DBVersion"].isNull())
|
||||
itemsObject.dBVersion = valueItemsGlobalDatabaseNetwork["DBVersion"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetwork["CreateTime"].isNull())
|
||||
itemsObject.createTime = valueItemsGlobalDatabaseNetwork["CreateTime"].asString();
|
||||
auto allDBClustersNode = valueItemsGlobalDatabaseNetwork["DBClusters"]["DBCluster"];
|
||||
for (auto valueItemsGlobalDatabaseNetworkDBClustersDBCluster : allDBClustersNode)
|
||||
{
|
||||
GlobalDatabaseNetwork::DBCluster dBClustersObject;
|
||||
if(!valueItemsGlobalDatabaseNetworkDBClustersDBCluster["Role"].isNull())
|
||||
dBClustersObject.role = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["Role"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetworkDBClustersDBCluster["DBClusterId"].isNull())
|
||||
dBClustersObject.dBClusterId = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["DBClusterId"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetworkDBClustersDBCluster["RegionId"].isNull())
|
||||
dBClustersObject.regionId = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["RegionId"].asString();
|
||||
if(!valueItemsGlobalDatabaseNetworkDBClustersDBCluster["Role"].isNull())
|
||||
dBClustersObject.role = valueItemsGlobalDatabaseNetworkDBClustersDBCluster["Role"].asString();
|
||||
itemsObject.dBClusters.push_back(dBClustersObject);
|
||||
}
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["TotalRecordCount"].isNull())
|
||||
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
|
||||
if(!value["PageRecordCount"].isNull())
|
||||
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
95
polardb/src/model/DescribeSQLExplorerPolicyRequest.cc
Normal file
95
polardb/src/model/DescribeSQLExplorerPolicyRequest.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/polardb/model/DescribeSQLExplorerPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeSQLExplorerPolicyRequest;
|
||||
|
||||
DescribeSQLExplorerPolicyRequest::DescribeSQLExplorerPolicyRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLExplorerPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerPolicyRequest::~DescribeSQLExplorerPolicyRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLExplorerPolicyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerPolicyRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLExplorerPolicyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerPolicyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -14,38 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDedicatedHostGroupResult.h>
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
CreateDedicatedHostGroupResult::CreateDedicatedHostGroupResult() :
|
||||
DescribeSQLExplorerPolicyResult::DescribeSQLExplorerPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDedicatedHostGroupResult::CreateDedicatedHostGroupResult(const std::string &payload) :
|
||||
DescribeSQLExplorerPolicyResult::DescribeSQLExplorerPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDedicatedHostGroupResult::~CreateDedicatedHostGroupResult()
|
||||
DescribeSQLExplorerPolicyResult::~DescribeSQLExplorerPolicyResult()
|
||||
{}
|
||||
|
||||
void CreateDedicatedHostGroupResult::parse(const std::string &payload)
|
||||
void DescribeSQLExplorerPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DedicatedHostGroupId"].isNull())
|
||||
dedicatedHostGroupId_ = value["DedicatedHostGroupId"].asString();
|
||||
if(!value["SQLCollectorStatus"].isNull())
|
||||
sQLCollectorStatus_ = value["SQLCollectorStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupResult::getDedicatedHostGroupId()const
|
||||
std::string DescribeSQLExplorerPolicyResult::getSQLCollectorStatus()const
|
||||
{
|
||||
return dedicatedHostGroupId_;
|
||||
return sQLCollectorStatus_;
|
||||
}
|
||||
|
||||
117
polardb/src/model/DescribeSQLExplorerRetentionRequest.cc
Normal file
117
polardb/src/model/DescribeSQLExplorerRetentionRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerRetentionRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeSQLExplorerRetentionRequest;
|
||||
|
||||
DescribeSQLExplorerRetentionRequest::DescribeSQLExplorerRetentionRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLExplorerRetention")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerRetentionRequest::~DescribeSQLExplorerRetentionRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLExplorerRetentionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLExplorerRetentionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerRetentionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
65
polardb/src/model/DescribeSQLExplorerRetentionResult.cc
Normal file
65
polardb/src/model/DescribeSQLExplorerRetentionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerRetentionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeSQLExplorerRetentionResult::DescribeSQLExplorerRetentionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLExplorerRetentionResult::DescribeSQLExplorerRetentionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerRetentionResult::~DescribeSQLExplorerRetentionResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLExplorerRetentionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ConfigValue"].isNull())
|
||||
configValue_ = value["ConfigValue"].asString();
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionResult::getConfigValue()const
|
||||
{
|
||||
return configValue_;
|
||||
}
|
||||
|
||||
int DescribeSQLExplorerRetentionResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerRetentionResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
106
polardb/src/model/DescribeSQLExplorerVersionRequest.cc
Normal file
106
polardb/src/model/DescribeSQLExplorerVersionRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeSQLExplorerVersionRequest;
|
||||
|
||||
DescribeSQLExplorerVersionRequest::DescribeSQLExplorerVersionRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSQLExplorerVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerVersionRequest::~DescribeSQLExplorerVersionRequest()
|
||||
{}
|
||||
|
||||
long DescribeSQLExplorerVersionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerVersionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerVersionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerVersionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerVersionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerVersionRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerVersionRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerVersionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerVersionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerVersionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSQLExplorerVersionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSQLExplorerVersionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
65
polardb/src/model/DescribeSQLExplorerVersionResult.cc
Normal file
65
polardb/src/model/DescribeSQLExplorerVersionResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSQLExplorerVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeSQLExplorerVersionResult::DescribeSQLExplorerVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSQLExplorerVersionResult::DescribeSQLExplorerVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSQLExplorerVersionResult::~DescribeSQLExplorerVersionResult()
|
||||
{}
|
||||
|
||||
void DescribeSQLExplorerVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ConfigValue"].isNull())
|
||||
configValue_ = value["ConfigValue"].asString();
|
||||
if(!value["DBInstanceID"].isNull())
|
||||
dBInstanceID_ = std::stoi(value["DBInstanceID"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerVersionResult::getConfigValue()const
|
||||
{
|
||||
return configValue_;
|
||||
}
|
||||
|
||||
int DescribeSQLExplorerVersionResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
}
|
||||
|
||||
std::string DescribeSQLExplorerVersionResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void DescribeScheduleTasksRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeScheduleTasksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -60,6 +71,17 @@ void DescribeScheduleTasksRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeScheduleTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
@@ -104,6 +126,17 @@ void DescribeScheduleTasksRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getTaskAction()const
|
||||
{
|
||||
return taskAction_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setTaskAction(const std::string& taskAction)
|
||||
{
|
||||
taskAction_ = taskAction;
|
||||
setParameter("TaskAction", taskAction);
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
|
||||
@@ -39,54 +39,47 @@ void DescribeScheduleTasksResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["items"];
|
||||
for (auto valueDataitems : allDataNode)
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TotalRecordCount"].isNull())
|
||||
data_.totalRecordCount = std::stoi(dataNode["TotalRecordCount"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allTimerInfosNode = dataNode["TimerInfos"]["timerInfosItem"];
|
||||
for (auto dataNodeTimerInfostimerInfosItem : allTimerInfosNode)
|
||||
{
|
||||
Items dataObject;
|
||||
if(!valueDataitems["Action"].isNull())
|
||||
dataObject.action = valueDataitems["Action"].asString();
|
||||
if(!valueDataitems["Args"].isNull())
|
||||
dataObject.args = valueDataitems["Args"].asString();
|
||||
if(!valueDataitems["GmtCreate"].isNull())
|
||||
dataObject.gmtCreate = std::stol(valueDataitems["GmtCreate"].asString());
|
||||
if(!valueDataitems["GmtModified"].isNull())
|
||||
dataObject.gmtModified = std::stol(valueDataitems["GmtModified"].asString());
|
||||
if(!valueDataitems["DBClusterId"].isNull())
|
||||
dataObject.dBClusterId = valueDataitems["DBClusterId"].asString();
|
||||
if(!valueDataitems["MaxRetryTime"].isNull())
|
||||
dataObject.maxRetryTime = std::stoi(valueDataitems["MaxRetryTime"].asString());
|
||||
if(!valueDataitems["Mutex"].isNull())
|
||||
dataObject.mutex = valueDataitems["Mutex"].asString();
|
||||
if(!valueDataitems["OrderId"].isNull())
|
||||
dataObject.orderId = valueDataitems["OrderId"].asString();
|
||||
if(!valueDataitems["PlannedEndTime"].isNull())
|
||||
dataObject.plannedEndTime = std::stol(valueDataitems["PlannedEndTime"].asString());
|
||||
if(!valueDataitems["PlannedStartTime"].isNull())
|
||||
dataObject.plannedStartTime = std::stol(valueDataitems["PlannedStartTime"].asString());
|
||||
if(!valueDataitems["PlannedTime"].isNull())
|
||||
dataObject.plannedTime = std::stol(valueDataitems["PlannedTime"].asString());
|
||||
if(!valueDataitems["ProductCode"].isNull())
|
||||
dataObject.productCode = valueDataitems["ProductCode"].asString();
|
||||
if(!valueDataitems["Region"].isNull())
|
||||
dataObject.region = valueDataitems["Region"].asString();
|
||||
if(!valueDataitems["Response"].isNull())
|
||||
dataObject.response = valueDataitems["Response"].asString();
|
||||
if(!valueDataitems["RetryTime"].isNull())
|
||||
dataObject.retryTime = std::stoi(valueDataitems["RetryTime"].asString());
|
||||
if(!valueDataitems["Status"].isNull())
|
||||
dataObject.status = valueDataitems["Status"].asString();
|
||||
if(!valueDataitems["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataitems["TaskId"].asString();
|
||||
if(!valueDataitems["Type"].isNull())
|
||||
dataObject.type = std::stoi(valueDataitems["Type"].asString());
|
||||
data_.push_back(dataObject);
|
||||
Data::TimerInfosItem timerInfosItemObject;
|
||||
if(!dataNodeTimerInfostimerInfosItem["Status"].isNull())
|
||||
timerInfosItemObject.status = dataNodeTimerInfostimerInfosItem["Status"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["GmtCreate"].isNull())
|
||||
timerInfosItemObject.gmtCreate = std::stol(dataNodeTimerInfostimerInfosItem["GmtCreate"].asString());
|
||||
if(!dataNodeTimerInfostimerInfosItem["Action"].isNull())
|
||||
timerInfosItemObject.action = dataNodeTimerInfostimerInfosItem["Action"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["TaskId"].isNull())
|
||||
timerInfosItemObject.taskId = dataNodeTimerInfostimerInfosItem["TaskId"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["PlannedTime"].isNull())
|
||||
timerInfosItemObject.plannedTime = dataNodeTimerInfostimerInfosItem["PlannedTime"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["PlannedStartTime"].isNull())
|
||||
timerInfosItemObject.plannedStartTime = dataNodeTimerInfostimerInfosItem["PlannedStartTime"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["DBClusterId"].isNull())
|
||||
timerInfosItemObject.dBClusterId = dataNodeTimerInfostimerInfosItem["DBClusterId"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["GmtModified"].isNull())
|
||||
timerInfosItemObject.gmtModified = std::stol(dataNodeTimerInfostimerInfosItem["GmtModified"].asString());
|
||||
if(!dataNodeTimerInfostimerInfosItem["Region"].isNull())
|
||||
timerInfosItemObject.region = dataNodeTimerInfostimerInfosItem["Region"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["OrderId"].isNull())
|
||||
timerInfosItemObject.orderId = dataNodeTimerInfostimerInfosItem["OrderId"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["PlannedEndTime"].isNull())
|
||||
timerInfosItemObject.plannedEndTime = dataNodeTimerInfostimerInfosItem["PlannedEndTime"].asString();
|
||||
if(!dataNodeTimerInfostimerInfosItem["AliUid"].isNull())
|
||||
timerInfosItemObject.aliUid = std::stoi(dataNodeTimerInfostimerInfosItem["AliUid"].asString());
|
||||
data_.timerInfos.push_back(timerInfosItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
@@ -97,12 +90,7 @@ std::string DescribeScheduleTasksResult::getMessage()const
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeScheduleTasksResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScheduleTasksResult::Items> DescribeScheduleTasksResult::getData()const
|
||||
DescribeScheduleTasksResult::Data DescribeScheduleTasksResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
106
polardb/src/model/DescribeSqlLogTrialStatusRequest.cc
Normal file
106
polardb/src/model/DescribeSqlLogTrialStatusRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeSqlLogTrialStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeSqlLogTrialStatusRequest;
|
||||
|
||||
DescribeSqlLogTrialStatusRequest::DescribeSqlLogTrialStatusRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeSqlLogTrialStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSqlLogTrialStatusRequest::~DescribeSqlLogTrialStatusRequest()
|
||||
{}
|
||||
|
||||
long DescribeSqlLogTrialStatusRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSqlLogTrialStatusRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeSqlLogTrialStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeSqlLogTrialStatusRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeSqlLogTrialStatusRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSqlLogTrialStatusRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeSqlLogTrialStatusRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeSqlLogTrialStatusRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSqlLogTrialStatusRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
79
polardb/src/model/DescribeSqlLogTrialStatusResult.cc
Normal file
79
polardb/src/model/DescribeSqlLogTrialStatusResult.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/polardb/model/DescribeSqlLogTrialStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeSqlLogTrialStatusResult::DescribeSqlLogTrialStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSqlLogTrialStatusResult::DescribeSqlLogTrialStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSqlLogTrialStatusResult::~DescribeSqlLogTrialStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeSqlLogTrialStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["EverTrialed"].isNull())
|
||||
everTrialed_ = value["EverTrialed"].asString();
|
||||
if(!value["OpenTrial"].isNull())
|
||||
openTrial_ = value["OpenTrial"].asString();
|
||||
if(!value["RemainDays"].isNull())
|
||||
remainDays_ = value["RemainDays"].asString();
|
||||
if(!value["UsedDays"].isNull())
|
||||
usedDays_ = value["UsedDays"].asString();
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusResult::getEverTrialed()const
|
||||
{
|
||||
return everTrialed_;
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusResult::getOpenTrial()const
|
||||
{
|
||||
return openTrial_;
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusResult::getRemainDays()const
|
||||
{
|
||||
return remainDays_;
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusResult::getUsedDays()const
|
||||
{
|
||||
return usedDays_;
|
||||
}
|
||||
|
||||
std::string DescribeSqlLogTrialStatusResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void ModifyDBClusterPrimaryZoneRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterPrimaryZoneRequest::getPlannedEndTime()const
|
||||
{
|
||||
return plannedEndTime_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterPrimaryZoneRequest::setPlannedEndTime(const std::string& plannedEndTime)
|
||||
{
|
||||
plannedEndTime_ = plannedEndTime;
|
||||
setParameter("PlannedEndTime", plannedEndTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterPrimaryZoneRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -104,6 +115,17 @@ void ModifyDBClusterPrimaryZoneRequest::setVSwitchId(const std::string& vSwitchI
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterPrimaryZoneRequest::getPlannedStartTime()const
|
||||
{
|
||||
return plannedStartTime_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterPrimaryZoneRequest::setPlannedStartTime(const std::string& plannedStartTime)
|
||||
{
|
||||
plannedStartTime_ = plannedStartTime;
|
||||
setParameter("PlannedStartTime", plannedStartTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterPrimaryZoneRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
@@ -115,3 +137,14 @@ void ModifyDBClusterPrimaryZoneRequest::setZoneId(const std::string& zoneId)
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
bool ModifyDBClusterPrimaryZoneRequest::getFromTimeService()const
|
||||
{
|
||||
return fromTimeService_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterPrimaryZoneRequest::setFromTimeService(bool fromTimeService)
|
||||
{
|
||||
fromTimeService_ = fromTimeService;
|
||||
setParameter("FromTimeService", fromTimeService ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -60,17 +60,6 @@ void UpgradeDBClusterMinorVersionRequest::setAccessKeyId(const std::string& acce
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterMinorVersionRequest::getSwitchTimeMode()const
|
||||
{
|
||||
return switchTimeMode_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterMinorVersionRequest::setSwitchTimeMode(const std::string& switchTimeMode)
|
||||
{
|
||||
switchTimeMode_ = switchTimeMode;
|
||||
setParameter("SwitchTimeMode", switchTimeMode);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterMinorVersionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
128
polardb/src/model/UpgradeDBClusterVersionRequest.cc
Normal file
128
polardb/src/model/UpgradeDBClusterVersionRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/polardb/model/UpgradeDBClusterVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::UpgradeDBClusterVersionRequest;
|
||||
|
||||
UpgradeDBClusterVersionRequest::UpgradeDBClusterVersionRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "UpgradeDBClusterVersion")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpgradeDBClusterVersionRequest::~UpgradeDBClusterVersionRequest()
|
||||
{}
|
||||
|
||||
long UpgradeDBClusterVersionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterVersionRequest::getPlannedEndTime()const
|
||||
{
|
||||
return plannedEndTime_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setPlannedEndTime(const std::string& plannedEndTime)
|
||||
{
|
||||
plannedEndTime_ = plannedEndTime;
|
||||
setParameter("PlannedEndTime", plannedEndTime);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterVersionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterVersionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterVersionRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterVersionRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long UpgradeDBClusterVersionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterVersionRequest::getPlannedStartTime()const
|
||||
{
|
||||
return plannedStartTime_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setPlannedStartTime(const std::string& plannedStartTime)
|
||||
{
|
||||
plannedStartTime_ = plannedStartTime;
|
||||
setParameter("PlannedStartTime", plannedStartTime);
|
||||
}
|
||||
|
||||
bool UpgradeDBClusterVersionRequest::getFromTimeService()const
|
||||
{
|
||||
return fromTimeService_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterVersionRequest::setFromTimeService(bool fromTimeService)
|
||||
{
|
||||
fromTimeService_ = fromTimeService;
|
||||
setParameter("FromTimeService", fromTimeService ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDedicatedHostUserResult.h>
|
||||
#include <alibabacloud/polardb/model/UpgradeDBClusterVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
CreateDedicatedHostUserResult::CreateDedicatedHostUserResult() :
|
||||
UpgradeDBClusterVersionResult::UpgradeDBClusterVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDedicatedHostUserResult::CreateDedicatedHostUserResult(const std::string &payload) :
|
||||
UpgradeDBClusterVersionResult::UpgradeDBClusterVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDedicatedHostUserResult::~CreateDedicatedHostUserResult()
|
||||
UpgradeDBClusterVersionResult::~UpgradeDBClusterVersionResult()
|
||||
{}
|
||||
|
||||
void CreateDedicatedHostUserResult::parse(const std::string &payload)
|
||||
void UpgradeDBClusterVersionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -65,12 +65,6 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/CreateDdrInstanceResult.h
|
||||
include/alibabacloud/rds/model/CreateDedicatedHostRequest.h
|
||||
include/alibabacloud/rds/model/CreateDedicatedHostResult.h
|
||||
include/alibabacloud/rds/model/CreateDedicatedHostAccountRequest.h
|
||||
include/alibabacloud/rds/model/CreateDedicatedHostAccountResult.h
|
||||
include/alibabacloud/rds/model/CreateDedicatedHostGroupRequest.h
|
||||
include/alibabacloud/rds/model/CreateDedicatedHostGroupResult.h
|
||||
include/alibabacloud/rds/model/CreateDedicatedHostUserRequest.h
|
||||
include/alibabacloud/rds/model/CreateDedicatedHostUserResult.h
|
||||
include/alibabacloud/rds/model/CreateDiagnosticReportRequest.h
|
||||
include/alibabacloud/rds/model/CreateDiagnosticReportResult.h
|
||||
include/alibabacloud/rds/model/CreateHostAccountRequest.h
|
||||
@@ -99,10 +93,6 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DeleteDBProxyEndpointAddressResult.h
|
||||
include/alibabacloud/rds/model/DeleteDatabaseRequest.h
|
||||
include/alibabacloud/rds/model/DeleteDatabaseResult.h
|
||||
include/alibabacloud/rds/model/DeleteDedicatedHostAccountRequest.h
|
||||
include/alibabacloud/rds/model/DeleteDedicatedHostAccountResult.h
|
||||
include/alibabacloud/rds/model/DeleteDedicatedHostGroupRequest.h
|
||||
include/alibabacloud/rds/model/DeleteDedicatedHostGroupResult.h
|
||||
include/alibabacloud/rds/model/DeleteHostAccountRequest.h
|
||||
include/alibabacloud/rds/model/DeleteHostAccountResult.h
|
||||
include/alibabacloud/rds/model/DeleteParameterGroupRequest.h
|
||||
@@ -119,8 +109,6 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DescribeAvailableCrossRegionResult.h
|
||||
include/alibabacloud/rds/model/DescribeAvailableDedicatedHostClassesRequest.h
|
||||
include/alibabacloud/rds/model/DescribeAvailableDedicatedHostClassesResult.h
|
||||
include/alibabacloud/rds/model/DescribeAvailableDedicatedHostZonesRequest.h
|
||||
include/alibabacloud/rds/model/DescribeAvailableDedicatedHostZonesResult.h
|
||||
include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeRequest.h
|
||||
include/alibabacloud/rds/model/DescribeAvailableRecoveryTimeResult.h
|
||||
include/alibabacloud/rds/model/DescribeAvailableResourceRequest.h
|
||||
@@ -283,10 +271,6 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/DescribeTasksResult.h
|
||||
include/alibabacloud/rds/model/DestroyDBInstanceRequest.h
|
||||
include/alibabacloud/rds/model/DestroyDBInstanceResult.h
|
||||
include/alibabacloud/rds/model/DropDedicatedHostUserRequest.h
|
||||
include/alibabacloud/rds/model/DropDedicatedHostUserResult.h
|
||||
include/alibabacloud/rds/model/EvaluateDedicatedHostInstanceResourceRequest.h
|
||||
include/alibabacloud/rds/model/EvaluateDedicatedHostInstanceResourceResult.h
|
||||
include/alibabacloud/rds/model/GetDBInstanceTopologyRequest.h
|
||||
include/alibabacloud/rds/model/GetDBInstanceTopologyResult.h
|
||||
include/alibabacloud/rds/model/GetDbProxyInstanceSslRequest.h
|
||||
@@ -369,8 +353,6 @@ set(rds_public_header_model
|
||||
include/alibabacloud/rds/model/ModifyDedicatedHostAttributeResult.h
|
||||
include/alibabacloud/rds/model/ModifyDedicatedHostGroupAttributeRequest.h
|
||||
include/alibabacloud/rds/model/ModifyDedicatedHostGroupAttributeResult.h
|
||||
include/alibabacloud/rds/model/ModifyDedicatedHostUserRequest.h
|
||||
include/alibabacloud/rds/model/ModifyDedicatedHostUserResult.h
|
||||
include/alibabacloud/rds/model/ModifyHASwitchConfigRequest.h
|
||||
include/alibabacloud/rds/model/ModifyHASwitchConfigResult.h
|
||||
include/alibabacloud/rds/model/ModifyInstanceAutoRenewalAttributeRequest.h
|
||||
@@ -510,12 +492,6 @@ set(rds_src
|
||||
src/model/CreateDdrInstanceResult.cc
|
||||
src/model/CreateDedicatedHostRequest.cc
|
||||
src/model/CreateDedicatedHostResult.cc
|
||||
src/model/CreateDedicatedHostAccountRequest.cc
|
||||
src/model/CreateDedicatedHostAccountResult.cc
|
||||
src/model/CreateDedicatedHostGroupRequest.cc
|
||||
src/model/CreateDedicatedHostGroupResult.cc
|
||||
src/model/CreateDedicatedHostUserRequest.cc
|
||||
src/model/CreateDedicatedHostUserResult.cc
|
||||
src/model/CreateDiagnosticReportRequest.cc
|
||||
src/model/CreateDiagnosticReportResult.cc
|
||||
src/model/CreateHostAccountRequest.cc
|
||||
@@ -544,10 +520,6 @@ set(rds_src
|
||||
src/model/DeleteDBProxyEndpointAddressResult.cc
|
||||
src/model/DeleteDatabaseRequest.cc
|
||||
src/model/DeleteDatabaseResult.cc
|
||||
src/model/DeleteDedicatedHostAccountRequest.cc
|
||||
src/model/DeleteDedicatedHostAccountResult.cc
|
||||
src/model/DeleteDedicatedHostGroupRequest.cc
|
||||
src/model/DeleteDedicatedHostGroupResult.cc
|
||||
src/model/DeleteHostAccountRequest.cc
|
||||
src/model/DeleteHostAccountResult.cc
|
||||
src/model/DeleteParameterGroupRequest.cc
|
||||
@@ -564,8 +536,6 @@ set(rds_src
|
||||
src/model/DescribeAvailableCrossRegionResult.cc
|
||||
src/model/DescribeAvailableDedicatedHostClassesRequest.cc
|
||||
src/model/DescribeAvailableDedicatedHostClassesResult.cc
|
||||
src/model/DescribeAvailableDedicatedHostZonesRequest.cc
|
||||
src/model/DescribeAvailableDedicatedHostZonesResult.cc
|
||||
src/model/DescribeAvailableRecoveryTimeRequest.cc
|
||||
src/model/DescribeAvailableRecoveryTimeResult.cc
|
||||
src/model/DescribeAvailableResourceRequest.cc
|
||||
@@ -728,10 +698,6 @@ set(rds_src
|
||||
src/model/DescribeTasksResult.cc
|
||||
src/model/DestroyDBInstanceRequest.cc
|
||||
src/model/DestroyDBInstanceResult.cc
|
||||
src/model/DropDedicatedHostUserRequest.cc
|
||||
src/model/DropDedicatedHostUserResult.cc
|
||||
src/model/EvaluateDedicatedHostInstanceResourceRequest.cc
|
||||
src/model/EvaluateDedicatedHostInstanceResourceResult.cc
|
||||
src/model/GetDBInstanceTopologyRequest.cc
|
||||
src/model/GetDBInstanceTopologyResult.cc
|
||||
src/model/GetDbProxyInstanceSslRequest.cc
|
||||
@@ -814,8 +780,6 @@ set(rds_src
|
||||
src/model/ModifyDedicatedHostAttributeResult.cc
|
||||
src/model/ModifyDedicatedHostGroupAttributeRequest.cc
|
||||
src/model/ModifyDedicatedHostGroupAttributeResult.cc
|
||||
src/model/ModifyDedicatedHostUserRequest.cc
|
||||
src/model/ModifyDedicatedHostUserResult.cc
|
||||
src/model/ModifyHASwitchConfigRequest.cc
|
||||
src/model/ModifyHASwitchConfigResult.cc
|
||||
src/model/ModifyInstanceAutoRenewalAttributeRequest.cc
|
||||
|
||||
@@ -66,12 +66,6 @@
|
||||
#include "model/CreateDdrInstanceResult.h"
|
||||
#include "model/CreateDedicatedHostRequest.h"
|
||||
#include "model/CreateDedicatedHostResult.h"
|
||||
#include "model/CreateDedicatedHostAccountRequest.h"
|
||||
#include "model/CreateDedicatedHostAccountResult.h"
|
||||
#include "model/CreateDedicatedHostGroupRequest.h"
|
||||
#include "model/CreateDedicatedHostGroupResult.h"
|
||||
#include "model/CreateDedicatedHostUserRequest.h"
|
||||
#include "model/CreateDedicatedHostUserResult.h"
|
||||
#include "model/CreateDiagnosticReportRequest.h"
|
||||
#include "model/CreateDiagnosticReportResult.h"
|
||||
#include "model/CreateHostAccountRequest.h"
|
||||
@@ -100,10 +94,6 @@
|
||||
#include "model/DeleteDBProxyEndpointAddressResult.h"
|
||||
#include "model/DeleteDatabaseRequest.h"
|
||||
#include "model/DeleteDatabaseResult.h"
|
||||
#include "model/DeleteDedicatedHostAccountRequest.h"
|
||||
#include "model/DeleteDedicatedHostAccountResult.h"
|
||||
#include "model/DeleteDedicatedHostGroupRequest.h"
|
||||
#include "model/DeleteDedicatedHostGroupResult.h"
|
||||
#include "model/DeleteHostAccountRequest.h"
|
||||
#include "model/DeleteHostAccountResult.h"
|
||||
#include "model/DeleteParameterGroupRequest.h"
|
||||
@@ -120,8 +110,6 @@
|
||||
#include "model/DescribeAvailableCrossRegionResult.h"
|
||||
#include "model/DescribeAvailableDedicatedHostClassesRequest.h"
|
||||
#include "model/DescribeAvailableDedicatedHostClassesResult.h"
|
||||
#include "model/DescribeAvailableDedicatedHostZonesRequest.h"
|
||||
#include "model/DescribeAvailableDedicatedHostZonesResult.h"
|
||||
#include "model/DescribeAvailableRecoveryTimeRequest.h"
|
||||
#include "model/DescribeAvailableRecoveryTimeResult.h"
|
||||
#include "model/DescribeAvailableResourceRequest.h"
|
||||
@@ -284,10 +272,6 @@
|
||||
#include "model/DescribeTasksResult.h"
|
||||
#include "model/DestroyDBInstanceRequest.h"
|
||||
#include "model/DestroyDBInstanceResult.h"
|
||||
#include "model/DropDedicatedHostUserRequest.h"
|
||||
#include "model/DropDedicatedHostUserResult.h"
|
||||
#include "model/EvaluateDedicatedHostInstanceResourceRequest.h"
|
||||
#include "model/EvaluateDedicatedHostInstanceResourceResult.h"
|
||||
#include "model/GetDBInstanceTopologyRequest.h"
|
||||
#include "model/GetDBInstanceTopologyResult.h"
|
||||
#include "model/GetDbProxyInstanceSslRequest.h"
|
||||
@@ -370,8 +354,6 @@
|
||||
#include "model/ModifyDedicatedHostAttributeResult.h"
|
||||
#include "model/ModifyDedicatedHostGroupAttributeRequest.h"
|
||||
#include "model/ModifyDedicatedHostGroupAttributeResult.h"
|
||||
#include "model/ModifyDedicatedHostUserRequest.h"
|
||||
#include "model/ModifyDedicatedHostUserResult.h"
|
||||
#include "model/ModifyHASwitchConfigRequest.h"
|
||||
#include "model/ModifyHASwitchConfigResult.h"
|
||||
#include "model/ModifyInstanceAutoRenewalAttributeRequest.h"
|
||||
@@ -539,15 +521,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateDedicatedHostResult> CreateDedicatedHostOutcome;
|
||||
typedef std::future<CreateDedicatedHostOutcome> CreateDedicatedHostOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateDedicatedHostRequest&, const CreateDedicatedHostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDedicatedHostAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDedicatedHostAccountResult> CreateDedicatedHostAccountOutcome;
|
||||
typedef std::future<CreateDedicatedHostAccountOutcome> CreateDedicatedHostAccountOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateDedicatedHostAccountRequest&, const CreateDedicatedHostAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDedicatedHostAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDedicatedHostGroupResult> CreateDedicatedHostGroupOutcome;
|
||||
typedef std::future<CreateDedicatedHostGroupOutcome> CreateDedicatedHostGroupOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateDedicatedHostGroupRequest&, const CreateDedicatedHostGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDedicatedHostGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDedicatedHostUserResult> CreateDedicatedHostUserOutcome;
|
||||
typedef std::future<CreateDedicatedHostUserOutcome> CreateDedicatedHostUserOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateDedicatedHostUserRequest&, const CreateDedicatedHostUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDedicatedHostUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDiagnosticReportResult> CreateDiagnosticReportOutcome;
|
||||
typedef std::future<CreateDiagnosticReportOutcome> CreateDiagnosticReportOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::CreateDiagnosticReportRequest&, const CreateDiagnosticReportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDiagnosticReportAsyncHandler;
|
||||
@@ -590,12 +563,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteDatabaseResult> DeleteDatabaseOutcome;
|
||||
typedef std::future<DeleteDatabaseOutcome> DeleteDatabaseOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteDatabaseRequest&, const DeleteDatabaseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDatabaseAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDedicatedHostAccountResult> DeleteDedicatedHostAccountOutcome;
|
||||
typedef std::future<DeleteDedicatedHostAccountOutcome> DeleteDedicatedHostAccountOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteDedicatedHostAccountRequest&, const DeleteDedicatedHostAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDedicatedHostAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDedicatedHostGroupResult> DeleteDedicatedHostGroupOutcome;
|
||||
typedef std::future<DeleteDedicatedHostGroupOutcome> DeleteDedicatedHostGroupOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteDedicatedHostGroupRequest&, const DeleteDedicatedHostGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDedicatedHostGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteHostAccountResult> DeleteHostAccountOutcome;
|
||||
typedef std::future<DeleteHostAccountOutcome> DeleteHostAccountOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DeleteHostAccountRequest&, const DeleteHostAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteHostAccountAsyncHandler;
|
||||
@@ -620,9 +587,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeAvailableDedicatedHostClassesResult> DescribeAvailableDedicatedHostClassesOutcome;
|
||||
typedef std::future<DescribeAvailableDedicatedHostClassesOutcome> DescribeAvailableDedicatedHostClassesOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeAvailableDedicatedHostClassesRequest&, const DescribeAvailableDedicatedHostClassesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAvailableDedicatedHostClassesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAvailableDedicatedHostZonesResult> DescribeAvailableDedicatedHostZonesOutcome;
|
||||
typedef std::future<DescribeAvailableDedicatedHostZonesOutcome> DescribeAvailableDedicatedHostZonesOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeAvailableDedicatedHostZonesRequest&, const DescribeAvailableDedicatedHostZonesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAvailableDedicatedHostZonesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAvailableRecoveryTimeResult> DescribeAvailableRecoveryTimeOutcome;
|
||||
typedef std::future<DescribeAvailableRecoveryTimeOutcome> DescribeAvailableRecoveryTimeOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DescribeAvailableRecoveryTimeRequest&, const DescribeAvailableRecoveryTimeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAvailableRecoveryTimeAsyncHandler;
|
||||
@@ -866,12 +830,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DestroyDBInstanceResult> DestroyDBInstanceOutcome;
|
||||
typedef std::future<DestroyDBInstanceOutcome> DestroyDBInstanceOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DestroyDBInstanceRequest&, const DestroyDBInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DestroyDBInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::DropDedicatedHostUserResult> DropDedicatedHostUserOutcome;
|
||||
typedef std::future<DropDedicatedHostUserOutcome> DropDedicatedHostUserOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::DropDedicatedHostUserRequest&, const DropDedicatedHostUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DropDedicatedHostUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::EvaluateDedicatedHostInstanceResourceResult> EvaluateDedicatedHostInstanceResourceOutcome;
|
||||
typedef std::future<EvaluateDedicatedHostInstanceResourceOutcome> EvaluateDedicatedHostInstanceResourceOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::EvaluateDedicatedHostInstanceResourceRequest&, const EvaluateDedicatedHostInstanceResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EvaluateDedicatedHostInstanceResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDBInstanceTopologyResult> GetDBInstanceTopologyOutcome;
|
||||
typedef std::future<GetDBInstanceTopologyOutcome> GetDBInstanceTopologyOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::GetDBInstanceTopologyRequest&, const GetDBInstanceTopologyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDBInstanceTopologyAsyncHandler;
|
||||
@@ -995,9 +953,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDedicatedHostGroupAttributeResult> ModifyDedicatedHostGroupAttributeOutcome;
|
||||
typedef std::future<ModifyDedicatedHostGroupAttributeOutcome> ModifyDedicatedHostGroupAttributeOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyDedicatedHostGroupAttributeRequest&, const ModifyDedicatedHostGroupAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDedicatedHostGroupAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDedicatedHostUserResult> ModifyDedicatedHostUserOutcome;
|
||||
typedef std::future<ModifyDedicatedHostUserOutcome> ModifyDedicatedHostUserOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyDedicatedHostUserRequest&, const ModifyDedicatedHostUserOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDedicatedHostUserAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyHASwitchConfigResult> ModifyHASwitchConfigOutcome;
|
||||
typedef std::future<ModifyHASwitchConfigOutcome> ModifyHASwitchConfigOutcomeCallable;
|
||||
typedef std::function<void(const RdsClient*, const Model::ModifyHASwitchConfigRequest&, const ModifyHASwitchConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHASwitchConfigAsyncHandler;
|
||||
@@ -1207,15 +1162,6 @@ namespace AlibabaCloud
|
||||
CreateDedicatedHostOutcome createDedicatedHost(const Model::CreateDedicatedHostRequest &request)const;
|
||||
void createDedicatedHostAsync(const Model::CreateDedicatedHostRequest& request, const CreateDedicatedHostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDedicatedHostOutcomeCallable createDedicatedHostCallable(const Model::CreateDedicatedHostRequest& request) const;
|
||||
CreateDedicatedHostAccountOutcome createDedicatedHostAccount(const Model::CreateDedicatedHostAccountRequest &request)const;
|
||||
void createDedicatedHostAccountAsync(const Model::CreateDedicatedHostAccountRequest& request, const CreateDedicatedHostAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDedicatedHostAccountOutcomeCallable createDedicatedHostAccountCallable(const Model::CreateDedicatedHostAccountRequest& request) const;
|
||||
CreateDedicatedHostGroupOutcome createDedicatedHostGroup(const Model::CreateDedicatedHostGroupRequest &request)const;
|
||||
void createDedicatedHostGroupAsync(const Model::CreateDedicatedHostGroupRequest& request, const CreateDedicatedHostGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDedicatedHostGroupOutcomeCallable createDedicatedHostGroupCallable(const Model::CreateDedicatedHostGroupRequest& request) const;
|
||||
CreateDedicatedHostUserOutcome createDedicatedHostUser(const Model::CreateDedicatedHostUserRequest &request)const;
|
||||
void createDedicatedHostUserAsync(const Model::CreateDedicatedHostUserRequest& request, const CreateDedicatedHostUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDedicatedHostUserOutcomeCallable createDedicatedHostUserCallable(const Model::CreateDedicatedHostUserRequest& request) const;
|
||||
CreateDiagnosticReportOutcome createDiagnosticReport(const Model::CreateDiagnosticReportRequest &request)const;
|
||||
void createDiagnosticReportAsync(const Model::CreateDiagnosticReportRequest& request, const CreateDiagnosticReportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDiagnosticReportOutcomeCallable createDiagnosticReportCallable(const Model::CreateDiagnosticReportRequest& request) const;
|
||||
@@ -1258,12 +1204,6 @@ namespace AlibabaCloud
|
||||
DeleteDatabaseOutcome deleteDatabase(const Model::DeleteDatabaseRequest &request)const;
|
||||
void deleteDatabaseAsync(const Model::DeleteDatabaseRequest& request, const DeleteDatabaseAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDatabaseOutcomeCallable deleteDatabaseCallable(const Model::DeleteDatabaseRequest& request) const;
|
||||
DeleteDedicatedHostAccountOutcome deleteDedicatedHostAccount(const Model::DeleteDedicatedHostAccountRequest &request)const;
|
||||
void deleteDedicatedHostAccountAsync(const Model::DeleteDedicatedHostAccountRequest& request, const DeleteDedicatedHostAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDedicatedHostAccountOutcomeCallable deleteDedicatedHostAccountCallable(const Model::DeleteDedicatedHostAccountRequest& request) const;
|
||||
DeleteDedicatedHostGroupOutcome deleteDedicatedHostGroup(const Model::DeleteDedicatedHostGroupRequest &request)const;
|
||||
void deleteDedicatedHostGroupAsync(const Model::DeleteDedicatedHostGroupRequest& request, const DeleteDedicatedHostGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDedicatedHostGroupOutcomeCallable deleteDedicatedHostGroupCallable(const Model::DeleteDedicatedHostGroupRequest& request) const;
|
||||
DeleteHostAccountOutcome deleteHostAccount(const Model::DeleteHostAccountRequest &request)const;
|
||||
void deleteHostAccountAsync(const Model::DeleteHostAccountRequest& request, const DeleteHostAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteHostAccountOutcomeCallable deleteHostAccountCallable(const Model::DeleteHostAccountRequest& request) const;
|
||||
@@ -1288,9 +1228,6 @@ namespace AlibabaCloud
|
||||
DescribeAvailableDedicatedHostClassesOutcome describeAvailableDedicatedHostClasses(const Model::DescribeAvailableDedicatedHostClassesRequest &request)const;
|
||||
void describeAvailableDedicatedHostClassesAsync(const Model::DescribeAvailableDedicatedHostClassesRequest& request, const DescribeAvailableDedicatedHostClassesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAvailableDedicatedHostClassesOutcomeCallable describeAvailableDedicatedHostClassesCallable(const Model::DescribeAvailableDedicatedHostClassesRequest& request) const;
|
||||
DescribeAvailableDedicatedHostZonesOutcome describeAvailableDedicatedHostZones(const Model::DescribeAvailableDedicatedHostZonesRequest &request)const;
|
||||
void describeAvailableDedicatedHostZonesAsync(const Model::DescribeAvailableDedicatedHostZonesRequest& request, const DescribeAvailableDedicatedHostZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAvailableDedicatedHostZonesOutcomeCallable describeAvailableDedicatedHostZonesCallable(const Model::DescribeAvailableDedicatedHostZonesRequest& request) const;
|
||||
DescribeAvailableRecoveryTimeOutcome describeAvailableRecoveryTime(const Model::DescribeAvailableRecoveryTimeRequest &request)const;
|
||||
void describeAvailableRecoveryTimeAsync(const Model::DescribeAvailableRecoveryTimeRequest& request, const DescribeAvailableRecoveryTimeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAvailableRecoveryTimeOutcomeCallable describeAvailableRecoveryTimeCallable(const Model::DescribeAvailableRecoveryTimeRequest& request) const;
|
||||
@@ -1534,12 +1471,6 @@ namespace AlibabaCloud
|
||||
DestroyDBInstanceOutcome destroyDBInstance(const Model::DestroyDBInstanceRequest &request)const;
|
||||
void destroyDBInstanceAsync(const Model::DestroyDBInstanceRequest& request, const DestroyDBInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DestroyDBInstanceOutcomeCallable destroyDBInstanceCallable(const Model::DestroyDBInstanceRequest& request) const;
|
||||
DropDedicatedHostUserOutcome dropDedicatedHostUser(const Model::DropDedicatedHostUserRequest &request)const;
|
||||
void dropDedicatedHostUserAsync(const Model::DropDedicatedHostUserRequest& request, const DropDedicatedHostUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DropDedicatedHostUserOutcomeCallable dropDedicatedHostUserCallable(const Model::DropDedicatedHostUserRequest& request) const;
|
||||
EvaluateDedicatedHostInstanceResourceOutcome evaluateDedicatedHostInstanceResource(const Model::EvaluateDedicatedHostInstanceResourceRequest &request)const;
|
||||
void evaluateDedicatedHostInstanceResourceAsync(const Model::EvaluateDedicatedHostInstanceResourceRequest& request, const EvaluateDedicatedHostInstanceResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EvaluateDedicatedHostInstanceResourceOutcomeCallable evaluateDedicatedHostInstanceResourceCallable(const Model::EvaluateDedicatedHostInstanceResourceRequest& request) const;
|
||||
GetDBInstanceTopologyOutcome getDBInstanceTopology(const Model::GetDBInstanceTopologyRequest &request)const;
|
||||
void getDBInstanceTopologyAsync(const Model::GetDBInstanceTopologyRequest& request, const GetDBInstanceTopologyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDBInstanceTopologyOutcomeCallable getDBInstanceTopologyCallable(const Model::GetDBInstanceTopologyRequest& request) const;
|
||||
@@ -1663,9 +1594,6 @@ namespace AlibabaCloud
|
||||
ModifyDedicatedHostGroupAttributeOutcome modifyDedicatedHostGroupAttribute(const Model::ModifyDedicatedHostGroupAttributeRequest &request)const;
|
||||
void modifyDedicatedHostGroupAttributeAsync(const Model::ModifyDedicatedHostGroupAttributeRequest& request, const ModifyDedicatedHostGroupAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDedicatedHostGroupAttributeOutcomeCallable modifyDedicatedHostGroupAttributeCallable(const Model::ModifyDedicatedHostGroupAttributeRequest& request) const;
|
||||
ModifyDedicatedHostUserOutcome modifyDedicatedHostUser(const Model::ModifyDedicatedHostUserRequest &request)const;
|
||||
void modifyDedicatedHostUserAsync(const Model::ModifyDedicatedHostUserRequest& request, const ModifyDedicatedHostUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDedicatedHostUserOutcomeCallable modifyDedicatedHostUserCallable(const Model::ModifyDedicatedHostUserRequest& request) const;
|
||||
ModifyHASwitchConfigOutcome modifyHASwitchConfig(const Model::ModifyHASwitchConfigRequest &request)const;
|
||||
void modifyHASwitchConfigAsync(const Model::ModifyHASwitchConfigRequest& request, const ModifyHASwitchConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyHASwitchConfigOutcomeCallable modifyHASwitchConfigCallable(const Model::ModifyHASwitchConfigRequest& request) const;
|
||||
|
||||
@@ -1,87 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTGROUPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT CreateDedicatedHostGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDedicatedHostGroupRequest();
|
||||
~CreateDedicatedHostGroupRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getCpuAllocationRatio()const;
|
||||
void setCpuAllocationRatio(int cpuAllocationRatio);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getEngine()const;
|
||||
void setEngine(const std::string& engine);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
int getDiskAllocationRatio()const;
|
||||
void setDiskAllocationRatio(int diskAllocationRatio);
|
||||
int getOpenPermission()const;
|
||||
void setOpenPermission(int openPermission);
|
||||
int getMemAllocationRatio()const;
|
||||
void setMemAllocationRatio(int memAllocationRatio);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getHostReplacePolicy()const;
|
||||
void setHostReplacePolicy(const std::string& hostReplacePolicy);
|
||||
std::string getAllocationPolicy()const;
|
||||
void setAllocationPolicy(const std::string& allocationPolicy);
|
||||
std::string getVPCId()const;
|
||||
void setVPCId(const std::string& vPCId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int cpuAllocationRatio_;
|
||||
std::string clientToken_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string engine_;
|
||||
std::string resourceOwnerAccount_;
|
||||
int diskAllocationRatio_;
|
||||
int openPermission_;
|
||||
int memAllocationRatio_;
|
||||
long ownerId_;
|
||||
std::string hostReplacePolicy_;
|
||||
std::string allocationPolicy_;
|
||||
std::string vPCId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_CREATEDEDICATEDHOSTGROUPREQUEST_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DeleteDedicatedHostAccountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDedicatedHostAccountRequest();
|
||||
~DeleteDedicatedHostAccountRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDedicatedHostId()const;
|
||||
void setDedicatedHostId(const std::string& dedicatedHostId);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getAccountName()const;
|
||||
void setAccountName(const std::string& accountName);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dedicatedHostId_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string accountName_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTACCOUNTREQUEST_H_
|
||||
@@ -1,49 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTGROUPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT DeleteDedicatedHostGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDedicatedHostGroupResult();
|
||||
explicit DeleteDedicatedHostGroupResult(const std::string &payload);
|
||||
~DeleteDedicatedHostGroupResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_DELETEDEDICATEDHOSTGROUPRESULT_H_
|
||||
@@ -32,30 +32,42 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_RDS_EXPORT DescribeDBProxyEndpointResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct EndpointConnectItemsItem
|
||||
{
|
||||
std::string dbProxyEndpointNetType;
|
||||
std::string dbProxyEndpointPort;
|
||||
std::string dbProxyEndpointConnectString;
|
||||
};
|
||||
|
||||
|
||||
DescribeDBProxyEndpointResult();
|
||||
explicit DescribeDBProxyEndpointResult(const std::string &payload);
|
||||
~DescribeDBProxyEndpointResult();
|
||||
std::string getReadOnlyInstanceDistributionType()const;
|
||||
std::string getDbProxyEndpointReadWriteMode()const;
|
||||
std::string getDBProxyConnectString()const;
|
||||
std::string getDBProxyEndpointId()const;
|
||||
std::string getDbProxyEndpointAliases()const;
|
||||
std::string getDBProxyFeatures()const;
|
||||
std::string getReadOnlyInstanceWeight()const;
|
||||
std::string getReadOnlyInstanceMaxDelayTime()const;
|
||||
std::string getDBProxyConnectStringNetType()const;
|
||||
std::vector<EndpointConnectItemsItem> getEndpointConnectItems()const;
|
||||
std::string getDBProxyConnectStringPort()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string readOnlyInstanceDistributionType_;
|
||||
std::string dbProxyEndpointReadWriteMode_;
|
||||
std::string dBProxyConnectString_;
|
||||
std::string dBProxyEndpointId_;
|
||||
std::string dbProxyEndpointAliases_;
|
||||
std::string dBProxyFeatures_;
|
||||
std::string readOnlyInstanceWeight_;
|
||||
std::string readOnlyInstanceMaxDelayTime_;
|
||||
std::string dBProxyConnectStringNetType_;
|
||||
std::vector<EndpointConnectItemsItem> endpointConnectItems_;
|
||||
std::string dBProxyConnectStringPort_;
|
||||
|
||||
};
|
||||
|
||||
@@ -42,6 +42,13 @@ namespace AlibabaCloud
|
||||
std::string dBProxyConnectStringPort;
|
||||
std::string dBProxyVpcInstanceId;
|
||||
};
|
||||
struct DbProxyEndpointItemsItem
|
||||
{
|
||||
std::string dbProxyEndpointName;
|
||||
std::string dbProxyEndpointAliases;
|
||||
std::string dbProxyEndpointType;
|
||||
std::string dbProxyReadWriteMode;
|
||||
};
|
||||
|
||||
|
||||
DescribeDBProxyResult();
|
||||
@@ -52,6 +59,7 @@ namespace AlibabaCloud
|
||||
std::string getDBProxyServiceStatus()const;
|
||||
int getDBProxyInstanceNum()const;
|
||||
std::string getDBProxyInstanceLatestMinorVersion()const;
|
||||
std::vector<DbProxyEndpointItemsItem> getDbProxyEndpointItems()const;
|
||||
std::vector<DBProxyConnectStringItemsItem> getDBProxyConnectStringItems()const;
|
||||
std::string getDBProxyInstanceStatus()const;
|
||||
std::string getDBProxyInstanceType()const;
|
||||
@@ -64,6 +72,7 @@ namespace AlibabaCloud
|
||||
std::string dBProxyServiceStatus_;
|
||||
int dBProxyInstanceNum_;
|
||||
std::string dBProxyInstanceLatestMinorVersion_;
|
||||
std::vector<DbProxyEndpointItemsItem> dbProxyEndpointItems_;
|
||||
std::vector<DBProxyConnectStringItemsItem> dBProxyConnectStringItems_;
|
||||
std::string dBProxyInstanceStatus_;
|
||||
std::string dBProxyInstanceType_;
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_EVALUATEDEDICATEDHOSTINSTANCERESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_EVALUATEDEDICATEDHOSTINSTANCERESOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT EvaluateDedicatedHostInstanceResourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EvaluateDedicatedHostInstanceResourceRequest();
|
||||
~EvaluateDedicatedHostInstanceResourceRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getEngineVersion()const;
|
||||
void setEngineVersion(const std::string& engineVersion);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getEngine()const;
|
||||
void setEngine(const std::string& engine);
|
||||
std::string getDedicatedHostGroupId()const;
|
||||
void setDedicatedHostGroupId(const std::string& dedicatedHostGroupId);
|
||||
std::string getInstanceClassNames()const;
|
||||
void setInstanceClassNames(const std::string& instanceClassNames);
|
||||
std::string getDiskSize()const;
|
||||
void setDiskSize(const std::string& diskSize);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDiskType()const;
|
||||
void setDiskType(const std::string& diskType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string engineVersion_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string engine_;
|
||||
std::string dedicatedHostGroupId_;
|
||||
std::string instanceClassNames_;
|
||||
std::string diskSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
long ownerId_;
|
||||
std::string diskType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_EVALUATEDEDICATEDHOSTINSTANCERESOURCEREQUEST_H_
|
||||
@@ -1,53 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_EVALUATEDEDICATEDHOSTINSTANCERESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_EVALUATEDEDICATEDHOSTINSTANCERESOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT EvaluateDedicatedHostInstanceResourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EvaluateDedicatedHostInstanceResourceResult();
|
||||
explicit EvaluateDedicatedHostInstanceResourceResult(const std::string &payload);
|
||||
~EvaluateDedicatedHostInstanceResourceResult();
|
||||
std::string getDBInstanceClass()const;
|
||||
int getAvailable()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dBInstanceClass_;
|
||||
int available_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_EVALUATEDEDICATEDHOSTINSTANCERESOURCERESULT_H_
|
||||
@@ -51,8 +51,16 @@ namespace AlibabaCloud
|
||||
void setReadOnlyInstanceMaxDelayTime(const std::string& readOnlyInstanceMaxDelayTime);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getDbEndpointAliases()const;
|
||||
void setDbEndpointAliases(const std::string& dbEndpointAliases);
|
||||
std::string getDbEndpointOperator()const;
|
||||
void setDbEndpointOperator(const std::string& dbEndpointOperator);
|
||||
std::string getDbEndpointType()const;
|
||||
void setDbEndpointType(const std::string& dbEndpointType);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDbEndpointReadWriteMode()const;
|
||||
void setDbEndpointReadWriteMode(const std::string& dbEndpointReadWriteMode);
|
||||
std::string getDBProxyEndpointId()const;
|
||||
void setDBProxyEndpointId(const std::string& dBProxyEndpointId);
|
||||
std::string getReadOnlyInstanceDistributionType()const;
|
||||
@@ -67,7 +75,11 @@ namespace AlibabaCloud
|
||||
std::string readOnlyInstanceWeight_;
|
||||
std::string readOnlyInstanceMaxDelayTime_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dbEndpointAliases_;
|
||||
std::string dbEndpointOperator_;
|
||||
std::string dbEndpointType_;
|
||||
long ownerId_;
|
||||
std::string dbEndpointReadWriteMode_;
|
||||
std::string dBProxyEndpointId_;
|
||||
std::string readOnlyInstanceDistributionType_;
|
||||
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERREQUEST_H_
|
||||
#define ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/rds/RdsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Rds
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_RDS_EXPORT ModifyDedicatedHostUserRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDedicatedHostUserRequest();
|
||||
~ModifyDedicatedHostUserRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDedicatedHostName()const;
|
||||
void setDedicatedHostName(const std::string& dedicatedHostName);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOldPassword()const;
|
||||
void setOldPassword(const std::string& oldPassword);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getNewPassword()const;
|
||||
void setNewPassword(const std::string& newPassword);
|
||||
std::string getUserName()const;
|
||||
void setUserName(const std::string& userName);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string regionId_;
|
||||
std::string dedicatedHostName_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string oldPassword_;
|
||||
long ownerId_;
|
||||
std::string newPassword_;
|
||||
std::string userName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_RDS_MODEL_MODIFYDEDICATEDHOSTUSERREQUEST_H_
|
||||
@@ -843,114 +843,6 @@ RdsClient::CreateDedicatedHostOutcomeCallable RdsClient::createDedicatedHostCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreateDedicatedHostAccountOutcome RdsClient::createDedicatedHostAccount(const CreateDedicatedHostAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDedicatedHostAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDedicatedHostAccountOutcome(CreateDedicatedHostAccountResult(outcome.result()));
|
||||
else
|
||||
return CreateDedicatedHostAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::createDedicatedHostAccountAsync(const CreateDedicatedHostAccountRequest& request, const CreateDedicatedHostAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDedicatedHostAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::CreateDedicatedHostAccountOutcomeCallable RdsClient::createDedicatedHostAccountCallable(const CreateDedicatedHostAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDedicatedHostAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDedicatedHostAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreateDedicatedHostGroupOutcome RdsClient::createDedicatedHostGroup(const CreateDedicatedHostGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDedicatedHostGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDedicatedHostGroupOutcome(CreateDedicatedHostGroupResult(outcome.result()));
|
||||
else
|
||||
return CreateDedicatedHostGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::createDedicatedHostGroupAsync(const CreateDedicatedHostGroupRequest& request, const CreateDedicatedHostGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDedicatedHostGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::CreateDedicatedHostGroupOutcomeCallable RdsClient::createDedicatedHostGroupCallable(const CreateDedicatedHostGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDedicatedHostGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDedicatedHostGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreateDedicatedHostUserOutcome RdsClient::createDedicatedHostUser(const CreateDedicatedHostUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateDedicatedHostUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateDedicatedHostUserOutcome(CreateDedicatedHostUserResult(outcome.result()));
|
||||
else
|
||||
return CreateDedicatedHostUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::createDedicatedHostUserAsync(const CreateDedicatedHostUserRequest& request, const CreateDedicatedHostUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createDedicatedHostUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::CreateDedicatedHostUserOutcomeCallable RdsClient::createDedicatedHostUserCallable(const CreateDedicatedHostUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateDedicatedHostUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createDedicatedHostUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::CreateDiagnosticReportOutcome RdsClient::createDiagnosticReport(const CreateDiagnosticReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1455,78 +1347,6 @@ RdsClient::DeleteDatabaseOutcomeCallable RdsClient::deleteDatabaseCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteDedicatedHostAccountOutcome RdsClient::deleteDedicatedHostAccount(const DeleteDedicatedHostAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDedicatedHostAccountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDedicatedHostAccountOutcome(DeleteDedicatedHostAccountResult(outcome.result()));
|
||||
else
|
||||
return DeleteDedicatedHostAccountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::deleteDedicatedHostAccountAsync(const DeleteDedicatedHostAccountRequest& request, const DeleteDedicatedHostAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDedicatedHostAccount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DeleteDedicatedHostAccountOutcomeCallable RdsClient::deleteDedicatedHostAccountCallable(const DeleteDedicatedHostAccountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDedicatedHostAccountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDedicatedHostAccount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteDedicatedHostGroupOutcome RdsClient::deleteDedicatedHostGroup(const DeleteDedicatedHostGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDedicatedHostGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDedicatedHostGroupOutcome(DeleteDedicatedHostGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteDedicatedHostGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::deleteDedicatedHostGroupAsync(const DeleteDedicatedHostGroupRequest& request, const DeleteDedicatedHostGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDedicatedHostGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DeleteDedicatedHostGroupOutcomeCallable RdsClient::deleteDedicatedHostGroupCallable(const DeleteDedicatedHostGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDedicatedHostGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDedicatedHostGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteHostAccountOutcome RdsClient::deleteHostAccount(const DeleteHostAccountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1815,42 +1635,6 @@ RdsClient::DescribeAvailableDedicatedHostClassesOutcomeCallable RdsClient::descr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeAvailableDedicatedHostZonesOutcome RdsClient::describeAvailableDedicatedHostZones(const DescribeAvailableDedicatedHostZonesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAvailableDedicatedHostZonesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAvailableDedicatedHostZonesOutcome(DescribeAvailableDedicatedHostZonesResult(outcome.result()));
|
||||
else
|
||||
return DescribeAvailableDedicatedHostZonesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeAvailableDedicatedHostZonesAsync(const DescribeAvailableDedicatedHostZonesRequest& request, const DescribeAvailableDedicatedHostZonesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAvailableDedicatedHostZones(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeAvailableDedicatedHostZonesOutcomeCallable RdsClient::describeAvailableDedicatedHostZonesCallable(const DescribeAvailableDedicatedHostZonesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAvailableDedicatedHostZonesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAvailableDedicatedHostZones(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeAvailableRecoveryTimeOutcome RdsClient::describeAvailableRecoveryTime(const DescribeAvailableRecoveryTimeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4767,78 +4551,6 @@ RdsClient::DestroyDBInstanceOutcomeCallable RdsClient::destroyDBInstanceCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DropDedicatedHostUserOutcome RdsClient::dropDedicatedHostUser(const DropDedicatedHostUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DropDedicatedHostUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DropDedicatedHostUserOutcome(DropDedicatedHostUserResult(outcome.result()));
|
||||
else
|
||||
return DropDedicatedHostUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::dropDedicatedHostUserAsync(const DropDedicatedHostUserRequest& request, const DropDedicatedHostUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, dropDedicatedHostUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DropDedicatedHostUserOutcomeCallable RdsClient::dropDedicatedHostUserCallable(const DropDedicatedHostUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DropDedicatedHostUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->dropDedicatedHostUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::EvaluateDedicatedHostInstanceResourceOutcome RdsClient::evaluateDedicatedHostInstanceResource(const EvaluateDedicatedHostInstanceResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EvaluateDedicatedHostInstanceResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EvaluateDedicatedHostInstanceResourceOutcome(EvaluateDedicatedHostInstanceResourceResult(outcome.result()));
|
||||
else
|
||||
return EvaluateDedicatedHostInstanceResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::evaluateDedicatedHostInstanceResourceAsync(const EvaluateDedicatedHostInstanceResourceRequest& request, const EvaluateDedicatedHostInstanceResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, evaluateDedicatedHostInstanceResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::EvaluateDedicatedHostInstanceResourceOutcomeCallable RdsClient::evaluateDedicatedHostInstanceResourceCallable(const EvaluateDedicatedHostInstanceResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EvaluateDedicatedHostInstanceResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->evaluateDedicatedHostInstanceResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::GetDBInstanceTopologyOutcome RdsClient::getDBInstanceTopology(const GetDBInstanceTopologyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -6315,42 +6027,6 @@ RdsClient::ModifyDedicatedHostGroupAttributeOutcomeCallable RdsClient::modifyDed
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDedicatedHostUserOutcome RdsClient::modifyDedicatedHostUser(const ModifyDedicatedHostUserRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDedicatedHostUserOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDedicatedHostUserOutcome(ModifyDedicatedHostUserResult(outcome.result()));
|
||||
else
|
||||
return ModifyDedicatedHostUserOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyDedicatedHostUserAsync(const ModifyDedicatedHostUserRequest& request, const ModifyDedicatedHostUserAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDedicatedHostUser(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyDedicatedHostUserOutcomeCallable RdsClient::modifyDedicatedHostUserCallable(const ModifyDedicatedHostUserRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDedicatedHostUserOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDedicatedHostUser(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyHASwitchConfigOutcome RdsClient::modifyHASwitchConfig(const ModifyHASwitchConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDedicatedHostAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDedicatedHostAccountRequest;
|
||||
|
||||
CreateDedicatedHostAccountRequest::CreateDedicatedHostAccountRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDedicatedHostAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDedicatedHostAccountRequest::~CreateDedicatedHostAccountRequest()
|
||||
{}
|
||||
|
||||
long CreateDedicatedHostAccountRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostAccountRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostAccountRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostAccountRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostAccountRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostAccountRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostAccountRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostAccountRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostAccountRequest::getDedicatedHostId()const
|
||||
{
|
||||
return dedicatedHostId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostAccountRequest::setDedicatedHostId(const std::string& dedicatedHostId)
|
||||
{
|
||||
dedicatedHostId_ = dedicatedHostId;
|
||||
setParameter("DedicatedHostId", dedicatedHostId);
|
||||
}
|
||||
|
||||
long CreateDedicatedHostAccountRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostAccountRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostAccountRequest::getAccountPassword()const
|
||||
{
|
||||
return accountPassword_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostAccountRequest::setAccountPassword(const std::string& accountPassword)
|
||||
{
|
||||
accountPassword_ = accountPassword;
|
||||
setParameter("AccountPassword", accountPassword);
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDedicatedHostAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
CreateDedicatedHostAccountResult::CreateDedicatedHostAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateDedicatedHostAccountResult::CreateDedicatedHostAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateDedicatedHostAccountResult::~CreateDedicatedHostAccountResult()
|
||||
{}
|
||||
|
||||
void CreateDedicatedHostAccountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -1,183 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/CreateDedicatedHostGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::CreateDedicatedHostGroupRequest;
|
||||
|
||||
CreateDedicatedHostGroupRequest::CreateDedicatedHostGroupRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "CreateDedicatedHostGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDedicatedHostGroupRequest::~CreateDedicatedHostGroupRequest()
|
||||
{}
|
||||
|
||||
long CreateDedicatedHostGroupRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int CreateDedicatedHostGroupRequest::getCpuAllocationRatio()const
|
||||
{
|
||||
return cpuAllocationRatio_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setCpuAllocationRatio(int cpuAllocationRatio)
|
||||
{
|
||||
cpuAllocationRatio_ = cpuAllocationRatio;
|
||||
setParameter("CpuAllocationRatio", std::to_string(cpuAllocationRatio));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setEngine(const std::string& engine)
|
||||
{
|
||||
engine_ = engine;
|
||||
setParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
int CreateDedicatedHostGroupRequest::getDiskAllocationRatio()const
|
||||
{
|
||||
return diskAllocationRatio_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setDiskAllocationRatio(int diskAllocationRatio)
|
||||
{
|
||||
diskAllocationRatio_ = diskAllocationRatio;
|
||||
setParameter("DiskAllocationRatio", std::to_string(diskAllocationRatio));
|
||||
}
|
||||
|
||||
int CreateDedicatedHostGroupRequest::getOpenPermission()const
|
||||
{
|
||||
return openPermission_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setOpenPermission(int openPermission)
|
||||
{
|
||||
openPermission_ = openPermission;
|
||||
setParameter("OpenPermission", std::to_string(openPermission));
|
||||
}
|
||||
|
||||
int CreateDedicatedHostGroupRequest::getMemAllocationRatio()const
|
||||
{
|
||||
return memAllocationRatio_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setMemAllocationRatio(int memAllocationRatio)
|
||||
{
|
||||
memAllocationRatio_ = memAllocationRatio;
|
||||
setParameter("MemAllocationRatio", std::to_string(memAllocationRatio));
|
||||
}
|
||||
|
||||
long CreateDedicatedHostGroupRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getHostReplacePolicy()const
|
||||
{
|
||||
return hostReplacePolicy_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setHostReplacePolicy(const std::string& hostReplacePolicy)
|
||||
{
|
||||
hostReplacePolicy_ = hostReplacePolicy;
|
||||
setParameter("HostReplacePolicy", hostReplacePolicy);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getAllocationPolicy()const
|
||||
{
|
||||
return allocationPolicy_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setAllocationPolicy(const std::string& allocationPolicy)
|
||||
{
|
||||
allocationPolicy_ = allocationPolicy;
|
||||
setParameter("AllocationPolicy", allocationPolicy);
|
||||
}
|
||||
|
||||
std::string CreateDedicatedHostGroupRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void CreateDedicatedHostGroupRequest::setVPCId(const std::string& vPCId)
|
||||
{
|
||||
vPCId_ = vPCId;
|
||||
setParameter("VPCId", vPCId);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user