Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b64262402e | ||
|
|
4d79d51820 | ||
|
|
44130b741e | ||
|
|
1ac661d847 | ||
|
|
401f5f7e4c | ||
|
|
eee5186ffd | ||
|
|
ac957846a2 | ||
|
|
bf6b90c665 | ||
|
|
499b696774 | ||
|
|
8bcded107d | ||
|
|
26788350a5 |
45
CHANGELOG
45
CHANGELOG
@@ -1,3 +1,48 @@
|
||||
2020-07-17 Version: 1.36.522
|
||||
- Add DescribeRegions.
|
||||
- Modify DescribeFullBackupList.
|
||||
- Modify DescribeBackupPlanList.
|
||||
- Modify DescribeRestoreRangeInfo.
|
||||
|
||||
2020-07-17 Version: 1.36.521
|
||||
- Add DescribeDBClusterAuditLogCollector.
|
||||
- Add DescribeBackupPolicy.
|
||||
- Support polardb for pgsql and oracle customize endpoints.
|
||||
|
||||
2020-07-17 Version: 1.36.520
|
||||
- Public beta version.
|
||||
- Add Api Overseas.
|
||||
|
||||
2020-07-15 Version: 1.36.519
|
||||
- Edit ListTraceApp api.
|
||||
- Edit SearchTraceAppByName api.
|
||||
- Edut SearchTraceAppByPage api.
|
||||
|
||||
2020-07-15 Version: 1.36.518
|
||||
- Modify ConfigureBackupPlan.
|
||||
- Modify DescribeFullBackupList.
|
||||
- Modify DescribeBackupPlanList.
|
||||
- Modify DescribeRestoreRangeInfo.
|
||||
|
||||
2020-07-15 Version: 1.36.517
|
||||
- Support ModifyImageAttribute by LaunchPermission.
|
||||
- Support ImageFamily.
|
||||
|
||||
2020-07-14 Version: 1.36.516
|
||||
- Add ListEventAlgorithmResult API.
|
||||
|
||||
2020-07-14 Version: 1.36.515
|
||||
- Add ListEventAlgorithmResult API.
|
||||
|
||||
2020-07-14 Version: 1.36.514
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-14 Version: 1.36.513
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-14 Version: 1.36.512
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
2020-07-10 Version: 1.36.511
|
||||
- Add ListBodyAlgorithmResult API.
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ set(aliyuncvc_public_header_model
|
||||
include/alibabacloud/aliyuncvc/model/CreateUserResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateUserInternationalRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CreateUserInternationalResult.h
|
||||
include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/CustomGonggeLayoutResult.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteDeviceRequest.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteDeviceResult.h
|
||||
include/alibabacloud/aliyuncvc/model/DeleteLiveRequest.h
|
||||
@@ -134,6 +136,8 @@ set(aliyuncvc_src
|
||||
src/model/CreateUserResult.cc
|
||||
src/model/CreateUserInternationalRequest.cc
|
||||
src/model/CreateUserInternationalResult.cc
|
||||
src/model/CustomGonggeLayoutRequest.cc
|
||||
src/model/CustomGonggeLayoutResult.cc
|
||||
src/model/DeleteDeviceRequest.cc
|
||||
src/model/DeleteDeviceResult.cc
|
||||
src/model/DeleteLiveRequest.cc
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
#include "model/CreateUserResult.h"
|
||||
#include "model/CreateUserInternationalRequest.h"
|
||||
#include "model/CreateUserInternationalResult.h"
|
||||
#include "model/CustomGonggeLayoutRequest.h"
|
||||
#include "model/CustomGonggeLayoutResult.h"
|
||||
#include "model/DeleteDeviceRequest.h"
|
||||
#include "model/DeleteDeviceResult.h"
|
||||
#include "model/DeleteLiveRequest.h"
|
||||
@@ -153,6 +155,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateUserInternationalResult> CreateUserInternationalOutcome;
|
||||
typedef std::future<CreateUserInternationalOutcome> CreateUserInternationalOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CreateUserInternationalRequest&, const CreateUserInternationalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserInternationalAsyncHandler;
|
||||
typedef Outcome<Error, Model::CustomGonggeLayoutResult> CustomGonggeLayoutOutcome;
|
||||
typedef std::future<CustomGonggeLayoutOutcome> CustomGonggeLayoutOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::CustomGonggeLayoutRequest&, const CustomGonggeLayoutOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CustomGonggeLayoutAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDeviceResult> DeleteDeviceOutcome;
|
||||
typedef std::future<DeleteDeviceOutcome> DeleteDeviceOutcomeCallable;
|
||||
typedef std::function<void(const AliyuncvcClient*, const Model::DeleteDeviceRequest&, const DeleteDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeviceAsyncHandler;
|
||||
@@ -287,6 +292,9 @@ namespace AlibabaCloud
|
||||
CreateUserInternationalOutcome createUserInternational(const Model::CreateUserInternationalRequest &request)const;
|
||||
void createUserInternationalAsync(const Model::CreateUserInternationalRequest& request, const CreateUserInternationalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateUserInternationalOutcomeCallable createUserInternationalCallable(const Model::CreateUserInternationalRequest& request) const;
|
||||
CustomGonggeLayoutOutcome customGonggeLayout(const Model::CustomGonggeLayoutRequest &request)const;
|
||||
void customGonggeLayoutAsync(const Model::CustomGonggeLayoutRequest& request, const CustomGonggeLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CustomGonggeLayoutOutcomeCallable customGonggeLayoutCallable(const Model::CustomGonggeLayoutRequest& request) const;
|
||||
DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const;
|
||||
void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTREQUEST_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CustomGonggeLayoutRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CustomGonggeLayoutRequest();
|
||||
~CustomGonggeLayoutRequest();
|
||||
|
||||
std::string getMeetingUUID()const;
|
||||
void setMeetingUUID(const std::string& meetingUUID);
|
||||
std::string getLayoutSolution()const;
|
||||
void setLayoutSolution(const std::string& layoutSolution);
|
||||
|
||||
private:
|
||||
std::string meetingUUID_;
|
||||
std::string layoutSolution_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTREQUEST_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_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTRESULT_H_
|
||||
#define ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/aliyuncvc/AliyuncvcExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Aliyuncvc
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ALIYUNCVC_EXPORT CustomGonggeLayoutResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CustomGonggeLayoutResult();
|
||||
explicit CustomGonggeLayoutResult(const std::string &payload);
|
||||
~CustomGonggeLayoutResult();
|
||||
std::string getMessage()const;
|
||||
int getErrorCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int errorCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ALIYUNCVC_MODEL_CUSTOMGONGGELAYOUTRESULT_H_
|
||||
@@ -483,6 +483,42 @@ AliyuncvcClient::CreateUserInternationalOutcomeCallable AliyuncvcClient::createU
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::CustomGonggeLayoutOutcome AliyuncvcClient::customGonggeLayout(const CustomGonggeLayoutRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CustomGonggeLayoutOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CustomGonggeLayoutOutcome(CustomGonggeLayoutResult(outcome.result()));
|
||||
else
|
||||
return CustomGonggeLayoutOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void AliyuncvcClient::customGonggeLayoutAsync(const CustomGonggeLayoutRequest& request, const CustomGonggeLayoutAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, customGonggeLayout(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
AliyuncvcClient::CustomGonggeLayoutOutcomeCallable AliyuncvcClient::customGonggeLayoutCallable(const CustomGonggeLayoutRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CustomGonggeLayoutOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->customGonggeLayout(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
AliyuncvcClient::DeleteDeviceOutcome AliyuncvcClient::deleteDevice(const DeleteDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
aliyuncvc/src/model/CustomGonggeLayoutRequest.cc
Normal file
51
aliyuncvc/src/model/CustomGonggeLayoutRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/aliyuncvc/model/CustomGonggeLayoutRequest.h>
|
||||
|
||||
using AlibabaCloud::Aliyuncvc::Model::CustomGonggeLayoutRequest;
|
||||
|
||||
CustomGonggeLayoutRequest::CustomGonggeLayoutRequest() :
|
||||
RpcServiceRequest("aliyuncvc", "2019-10-30", "CustomGonggeLayout")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CustomGonggeLayoutRequest::~CustomGonggeLayoutRequest()
|
||||
{}
|
||||
|
||||
std::string CustomGonggeLayoutRequest::getMeetingUUID()const
|
||||
{
|
||||
return meetingUUID_;
|
||||
}
|
||||
|
||||
void CustomGonggeLayoutRequest::setMeetingUUID(const std::string& meetingUUID)
|
||||
{
|
||||
meetingUUID_ = meetingUUID;
|
||||
setBodyParameter("MeetingUUID", meetingUUID);
|
||||
}
|
||||
|
||||
std::string CustomGonggeLayoutRequest::getLayoutSolution()const
|
||||
{
|
||||
return layoutSolution_;
|
||||
}
|
||||
|
||||
void CustomGonggeLayoutRequest::setLayoutSolution(const std::string& layoutSolution)
|
||||
{
|
||||
layoutSolution_ = layoutSolution;
|
||||
setBodyParameter("LayoutSolution", layoutSolution);
|
||||
}
|
||||
|
||||
65
aliyuncvc/src/model/CustomGonggeLayoutResult.cc
Normal file
65
aliyuncvc/src/model/CustomGonggeLayoutResult.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/aliyuncvc/model/CustomGonggeLayoutResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Aliyuncvc;
|
||||
using namespace AlibabaCloud::Aliyuncvc::Model;
|
||||
|
||||
CustomGonggeLayoutResult::CustomGonggeLayoutResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CustomGonggeLayoutResult::CustomGonggeLayoutResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CustomGonggeLayoutResult::~CustomGonggeLayoutResult()
|
||||
{}
|
||||
|
||||
void CustomGonggeLayoutResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = std::stoi(value["ErrorCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CustomGonggeLayoutResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CustomGonggeLayoutResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CustomGonggeLayoutResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/CheckDataConsistencyResult.h
|
||||
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingRequest.h
|
||||
include/alibabacloud/arms/model/CheckServiceLinkedRoleForDeletingResult.h
|
||||
include/alibabacloud/arms/model/ConfigAppRequest.h
|
||||
include/alibabacloud/arms/model/ConfigAppResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactResult.h
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupRequest.h
|
||||
@@ -122,6 +124,8 @@ set(arms_src
|
||||
src/model/CheckDataConsistencyResult.cc
|
||||
src/model/CheckServiceLinkedRoleForDeletingRequest.cc
|
||||
src/model/CheckServiceLinkedRoleForDeletingResult.cc
|
||||
src/model/ConfigAppRequest.cc
|
||||
src/model/ConfigAppResult.cc
|
||||
src/model/CreateAlertContactRequest.cc
|
||||
src/model/CreateAlertContactResult.cc
|
||||
src/model/CreateAlertContactGroupRequest.cc
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
#include "model/CheckDataConsistencyResult.h"
|
||||
#include "model/CheckServiceLinkedRoleForDeletingRequest.h"
|
||||
#include "model/CheckServiceLinkedRoleForDeletingResult.h"
|
||||
#include "model/ConfigAppRequest.h"
|
||||
#include "model/ConfigAppResult.h"
|
||||
#include "model/CreateAlertContactRequest.h"
|
||||
#include "model/CreateAlertContactResult.h"
|
||||
#include "model/CreateAlertContactGroupRequest.h"
|
||||
@@ -133,6 +135,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CheckServiceLinkedRoleForDeletingResult> CheckServiceLinkedRoleForDeletingOutcome;
|
||||
typedef std::future<CheckServiceLinkedRoleForDeletingOutcome> CheckServiceLinkedRoleForDeletingOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CheckServiceLinkedRoleForDeletingRequest&, const CheckServiceLinkedRoleForDeletingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CheckServiceLinkedRoleForDeletingAsyncHandler;
|
||||
typedef Outcome<Error, Model::ConfigAppResult> ConfigAppOutcome;
|
||||
typedef std::future<ConfigAppOutcome> ConfigAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ConfigAppRequest&, const ConfigAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConfigAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAlertContactResult> CreateAlertContactOutcome;
|
||||
typedef std::future<CreateAlertContactOutcome> CreateAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateAlertContactRequest&, const CreateAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAlertContactAsyncHandler;
|
||||
@@ -273,6 +278,9 @@ namespace AlibabaCloud
|
||||
CheckServiceLinkedRoleForDeletingOutcome checkServiceLinkedRoleForDeleting(const Model::CheckServiceLinkedRoleForDeletingRequest &request)const;
|
||||
void checkServiceLinkedRoleForDeletingAsync(const Model::CheckServiceLinkedRoleForDeletingRequest& request, const CheckServiceLinkedRoleForDeletingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CheckServiceLinkedRoleForDeletingOutcomeCallable checkServiceLinkedRoleForDeletingCallable(const Model::CheckServiceLinkedRoleForDeletingRequest& request) const;
|
||||
ConfigAppOutcome configApp(const Model::ConfigAppRequest &request)const;
|
||||
void configAppAsync(const Model::ConfigAppRequest& request, const ConfigAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConfigAppOutcomeCallable configAppCallable(const Model::ConfigAppRequest& request) const;
|
||||
CreateAlertContactOutcome createAlertContact(const Model::CreateAlertContactRequest &request)const;
|
||||
void createAlertContactAsync(const Model::CreateAlertContactRequest& request, const CreateAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAlertContactOutcomeCallable createAlertContactCallable(const Model::CreateAlertContactRequest& request) const;
|
||||
|
||||
54
arms/include/alibabacloud/arms/model/ConfigAppRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/ConfigAppRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ConfigAppRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ConfigAppRequest();
|
||||
~ConfigAppRequest();
|
||||
|
||||
std::string getAppIds()const;
|
||||
void setAppIds(const std::string& appIds);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getEnable()const;
|
||||
void setEnable(bool enable);
|
||||
|
||||
private:
|
||||
std::string appIds_;
|
||||
std::string regionId_;
|
||||
bool enable_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CONFIGAPPREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/ConfigAppResult.h
Normal file
51
arms/include/alibabacloud/arms/model/ConfigAppResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CONFIGAPPRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CONFIGAPPRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT ConfigAppResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ConfigAppResult();
|
||||
explicit ConfigAppResult(const std::string &payload);
|
||||
~ConfigAppResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CONFIGAPPRESULT_H_
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
long createTime;
|
||||
long updateTime;
|
||||
std::string pid;
|
||||
bool show;
|
||||
std::string regionId;
|
||||
std::string appName;
|
||||
};
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
long createTime;
|
||||
long updateTime;
|
||||
std::string pid;
|
||||
bool show;
|
||||
std::string regionId;
|
||||
std::string appName;
|
||||
};
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
long createTime;
|
||||
long updateTime;
|
||||
std::string pid;
|
||||
bool show;
|
||||
std::string regionId;
|
||||
std::string appName;
|
||||
};
|
||||
|
||||
@@ -195,6 +195,42 @@ ARMSClient::CheckServiceLinkedRoleForDeletingOutcomeCallable ARMSClient::checkSe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ConfigAppOutcome ARMSClient::configApp(const ConfigAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConfigAppOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ConfigAppOutcome(ConfigAppResult(outcome.result()));
|
||||
else
|
||||
return ConfigAppOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::configAppAsync(const ConfigAppRequest& request, const ConfigAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, configApp(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ConfigAppOutcomeCallable ARMSClient::configAppCallable(const ConfigAppRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ConfigAppOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->configApp(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateAlertContactOutcome ARMSClient::createAlertContact(const CreateAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
62
arms/src/model/ConfigAppRequest.cc
Normal file
62
arms/src/model/ConfigAppRequest.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/arms/model/ConfigAppRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ConfigAppRequest;
|
||||
|
||||
ConfigAppRequest::ConfigAppRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ConfigApp")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConfigAppRequest::~ConfigAppRequest()
|
||||
{}
|
||||
|
||||
std::string ConfigAppRequest::getAppIds()const
|
||||
{
|
||||
return appIds_;
|
||||
}
|
||||
|
||||
void ConfigAppRequest::setAppIds(const std::string& appIds)
|
||||
{
|
||||
appIds_ = appIds;
|
||||
setParameter("AppIds", appIds);
|
||||
}
|
||||
|
||||
std::string ConfigAppRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ConfigAppRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool ConfigAppRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void ConfigAppRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
51
arms/src/model/ConfigAppResult.cc
Normal file
51
arms/src/model/ConfigAppResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/arms/model/ConfigAppResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ConfigAppResult::ConfigAppResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfigAppResult::ConfigAppResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfigAppResult::~ConfigAppResult()
|
||||
{}
|
||||
|
||||
void ConfigAppResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ConfigAppResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -59,6 +59,8 @@ void ListTraceAppsResult::parse(const std::string &payload)
|
||||
traceAppsObject.updateTime = std::stol(valueTraceAppsTraceApp["UpdateTime"].asString());
|
||||
if(!valueTraceAppsTraceApp["RegionId"].isNull())
|
||||
traceAppsObject.regionId = valueTraceAppsTraceApp["RegionId"].asString();
|
||||
if(!valueTraceAppsTraceApp["Show"].isNull())
|
||||
traceAppsObject.show = valueTraceAppsTraceApp["Show"].asString() == "true";
|
||||
traceApps_.push_back(traceAppsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -59,6 +59,8 @@ void SearchTraceAppByNameResult::parse(const std::string &payload)
|
||||
traceAppsObject.createTime = std::stol(valueTraceAppsTraceApp["CreateTime"].asString());
|
||||
if(!valueTraceAppsTraceApp["UpdateTime"].isNull())
|
||||
traceAppsObject.updateTime = std::stol(valueTraceAppsTraceApp["UpdateTime"].asString());
|
||||
if(!valueTraceAppsTraceApp["Show"].isNull())
|
||||
traceAppsObject.show = valueTraceAppsTraceApp["Show"].asString() == "true";
|
||||
traceApps_.push_back(traceAppsObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,8 @@ void SearchTraceAppByPageResult::parse(const std::string &payload)
|
||||
traceAppObject.createTime = std::stol(pageBeanNodeTraceAppsTraceApp["CreateTime"].asString());
|
||||
if(!pageBeanNodeTraceAppsTraceApp["UpdateTime"].isNull())
|
||||
traceAppObject.updateTime = std::stol(pageBeanNodeTraceAppsTraceApp["UpdateTime"].asString());
|
||||
if(!pageBeanNodeTraceAppsTraceApp["Show"].isNull())
|
||||
traceAppObject.show = pageBeanNodeTraceAppsTraceApp["Show"].asString() == "true";
|
||||
pageBean_.traceApps.push_back(traceAppObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ set(dbs_public_header_model
|
||||
include/alibabacloud/dbs/model/DescribeNodeCidrListResult.h
|
||||
include/alibabacloud/dbs/model/DescribePreCheckProgressListRequest.h
|
||||
include/alibabacloud/dbs/model/DescribePreCheckProgressListResult.h
|
||||
include/alibabacloud/dbs/model/DescribeRegionsRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeRegionsResult.h
|
||||
include/alibabacloud/dbs/model/DescribeRestoreRangeInfoRequest.h
|
||||
include/alibabacloud/dbs/model/DescribeRestoreRangeInfoResult.h
|
||||
include/alibabacloud/dbs/model/DescribeRestoreTaskListRequest.h
|
||||
@@ -106,6 +108,8 @@ set(dbs_src
|
||||
src/model/DescribeNodeCidrListResult.cc
|
||||
src/model/DescribePreCheckProgressListRequest.cc
|
||||
src/model/DescribePreCheckProgressListResult.cc
|
||||
src/model/DescribeRegionsRequest.cc
|
||||
src/model/DescribeRegionsResult.cc
|
||||
src/model/DescribeRestoreRangeInfoRequest.cc
|
||||
src/model/DescribeRestoreRangeInfoResult.cc
|
||||
src/model/DescribeRestoreTaskListRequest.cc
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
#include "model/DescribeNodeCidrListResult.h"
|
||||
#include "model/DescribePreCheckProgressListRequest.h"
|
||||
#include "model/DescribePreCheckProgressListResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeRestoreRangeInfoRequest.h"
|
||||
#include "model/DescribeRestoreRangeInfoResult.h"
|
||||
#include "model/DescribeRestoreTaskListRequest.h"
|
||||
@@ -127,6 +129,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribePreCheckProgressListResult> DescribePreCheckProgressListOutcome;
|
||||
typedef std::future<DescribePreCheckProgressListOutcome> DescribePreCheckProgressListOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribePreCheckProgressListRequest&, const DescribePreCheckProgressListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePreCheckProgressListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRestoreRangeInfoResult> DescribeRestoreRangeInfoOutcome;
|
||||
typedef std::future<DescribeRestoreRangeInfoOutcome> DescribeRestoreRangeInfoOutcomeCallable;
|
||||
typedef std::function<void(const DbsClient*, const Model::DescribeRestoreRangeInfoRequest&, const DescribeRestoreRangeInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRestoreRangeInfoAsyncHandler;
|
||||
@@ -213,6 +218,9 @@ namespace AlibabaCloud
|
||||
DescribePreCheckProgressListOutcome describePreCheckProgressList(const Model::DescribePreCheckProgressListRequest &request)const;
|
||||
void describePreCheckProgressListAsync(const Model::DescribePreCheckProgressListRequest& request, const DescribePreCheckProgressListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePreCheckProgressListOutcomeCallable describePreCheckProgressListCallable(const Model::DescribePreCheckProgressListRequest& request) const;
|
||||
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;
|
||||
DescribeRestoreRangeInfoOutcome describeRestoreRangeInfo(const Model::DescribeRestoreRangeInfoRequest &request)const;
|
||||
void describeRestoreRangeInfoAsync(const Model::DescribeRestoreRangeInfoRequest& request, const DescribeRestoreRangeInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRestoreRangeInfoOutcomeCallable describeRestoreRangeInfoCallable(const Model::DescribeRestoreRangeInfoRequest& request) const;
|
||||
|
||||
@@ -65,6 +65,8 @@ namespace AlibabaCloud
|
||||
void setDuplicationArchivePeriod(int duplicationArchivePeriod);
|
||||
std::string getCrossAliyunId()const;
|
||||
void setCrossAliyunId(const std::string& crossAliyunId);
|
||||
bool getAutoStartBackup()const;
|
||||
void setAutoStartBackup(bool autoStartBackup);
|
||||
std::string getSourceEndpointPassword()const;
|
||||
void setSourceEndpointPassword(const std::string& sourceEndpointPassword);
|
||||
std::string getBackupObjects()const;
|
||||
@@ -106,6 +108,7 @@ namespace AlibabaCloud
|
||||
std::string backupStorageType_;
|
||||
int duplicationArchivePeriod_;
|
||||
std::string crossAliyunId_;
|
||||
bool autoStartBackup_;
|
||||
std::string sourceEndpointPassword_;
|
||||
std::string backupObjects_;
|
||||
std::string ownerId_;
|
||||
|
||||
@@ -60,6 +60,7 @@ namespace AlibabaCloud
|
||||
std::string instanceClass;
|
||||
std::string backupSetDownloadIncrementDataFormat;
|
||||
long endTimestampForRestore;
|
||||
std::string errMessage;
|
||||
std::string backupSetDownloadTargetType;
|
||||
int duplicationArchivePeriod;
|
||||
std::string oSSBucketName;
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getBackupPlanId()const;
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getBackupSetId()const;
|
||||
void setBackupSetId(const std::string& backupSetId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
std::string getOwnerId()const;
|
||||
@@ -51,6 +53,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string backupSetId_;
|
||||
int pageNum_;
|
||||
std::string ownerId_;
|
||||
bool showStorageType_;
|
||||
|
||||
51
dbs/include/alibabacloud/dbs/model/DescribeRegionsRequest.h
Normal file
51
dbs/include/alibabacloud/dbs/model/DescribeRegionsRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeRegionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeRegionsRequest();
|
||||
~DescribeRegionsRequest();
|
||||
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
|
||||
private:
|
||||
std::string clientToken_;
|
||||
std::string ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSREQUEST_H_
|
||||
59
dbs/include/alibabacloud/dbs/model/DescribeRegionsResult.h
Normal file
59
dbs/include/alibabacloud/dbs/model/DescribeRegionsResult.h
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
#define ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dbs/DbsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Dbs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DBS_EXPORT DescribeRegionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeRegionsResult();
|
||||
explicit DescribeRegionsResult(const std::string &payload);
|
||||
~DescribeRegionsResult();
|
||||
int getHttpStatusCode()const;
|
||||
std::vector<std::string> getRegions()const;
|
||||
std::string getErrMessage()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int httpStatusCode_;
|
||||
std::vector<std::string> regions_;
|
||||
std::string errMessage_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DBS_MODEL_DESCRIBEREGIONSRESULT_H_
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setBackupPlanId(const std::string& backupPlanId);
|
||||
std::string getOwnerId()const;
|
||||
void setOwnerId(const std::string& ownerId);
|
||||
bool getRecentlyRestore()const;
|
||||
void setRecentlyRestore(bool recentlyRestore);
|
||||
|
||||
private:
|
||||
long beginTimestampForRestore_;
|
||||
@@ -52,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string clientToken_;
|
||||
std::string backupPlanId_;
|
||||
std::string ownerId_;
|
||||
bool recentlyRestore_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -555,6 +555,42 @@ DbsClient::DescribePreCheckProgressListOutcomeCallable DbsClient::describePreChe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeRegionsOutcome DbsClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRegionsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
|
||||
else
|
||||
return DescribeRegionsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DbsClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRegions(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DbsClient::DescribeRegionsOutcomeCallable DbsClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRegions(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DbsClient::DescribeRestoreRangeInfoOutcome DbsClient::describeRestoreRangeInfo(const DescribeRestoreRangeInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -192,6 +192,17 @@ void ConfigureBackupPlanRequest::setCrossAliyunId(const std::string& crossAliyun
|
||||
setParameter("CrossAliyunId", crossAliyunId);
|
||||
}
|
||||
|
||||
bool ConfigureBackupPlanRequest::getAutoStartBackup()const
|
||||
{
|
||||
return autoStartBackup_;
|
||||
}
|
||||
|
||||
void ConfigureBackupPlanRequest::setAutoStartBackup(bool autoStartBackup)
|
||||
{
|
||||
autoStartBackup_ = autoStartBackup;
|
||||
setParameter("AutoStartBackup", autoStartBackup ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfigureBackupPlanRequest::getSourceEndpointPassword()const
|
||||
{
|
||||
return sourceEndpointPassword_;
|
||||
|
||||
@@ -111,6 +111,8 @@ void DescribeBackupPlanListResult::parse(const std::string &payload)
|
||||
itemsObject.crossRoleName = valueItemsBackupPlanDetail["CrossRoleName"].asString();
|
||||
if(!valueItemsBackupPlanDetail["BackupStorageType"].isNull())
|
||||
itemsObject.backupStorageType = valueItemsBackupPlanDetail["BackupStorageType"].asString();
|
||||
if(!valueItemsBackupPlanDetail["ErrMessage"].isNull())
|
||||
itemsObject.errMessage = valueItemsBackupPlanDetail["ErrMessage"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeFullBackupListRequest::setBackupPlanId(const std::string& backupPla
|
||||
setParameter("BackupPlanId", backupPlanId);
|
||||
}
|
||||
|
||||
std::string DescribeFullBackupListRequest::getBackupSetId()const
|
||||
{
|
||||
return backupSetId_;
|
||||
}
|
||||
|
||||
void DescribeFullBackupListRequest::setBackupSetId(const std::string& backupSetId)
|
||||
{
|
||||
backupSetId_ = backupSetId;
|
||||
setParameter("BackupSetId", backupSetId);
|
||||
}
|
||||
|
||||
int DescribeFullBackupListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
|
||||
51
dbs/src/model/DescribeRegionsRequest.cc
Normal file
51
dbs/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dbs::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("dbs", "2019-03-06", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setOwnerId(const std::string& ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
80
dbs/src/model/DescribeRegionsResult.cc
Normal file
80
dbs/src/model/DescribeRegionsResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dbs/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dbs;
|
||||
using namespace AlibabaCloud::Dbs::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["RegionCode"];
|
||||
for (const auto &item : allRegions)
|
||||
regions_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
if(!value["ErrMessage"].isNull())
|
||||
errMessage_ = value["ErrMessage"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeRegionsResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
std::string DescribeRegionsResult::getErrMessage()const
|
||||
{
|
||||
return errMessage_;
|
||||
}
|
||||
|
||||
bool DescribeRegionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DescribeRegionsResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
@@ -82,3 +82,14 @@ void DescribeRestoreRangeInfoRequest::setOwnerId(const std::string& ownerId)
|
||||
setParameter("OwnerId", ownerId);
|
||||
}
|
||||
|
||||
bool DescribeRestoreRangeInfoRequest::getRecentlyRestore()const
|
||||
{
|
||||
return recentlyRestore_;
|
||||
}
|
||||
|
||||
void DescribeRestoreRangeInfoRequest::setRecentlyRestore(bool recentlyRestore)
|
||||
{
|
||||
recentlyRestore_ = recentlyRestore;
|
||||
setParameter("RecentlyRestore", recentlyRestore ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,8 @@ namespace AlibabaCloud
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getBootMode()const;
|
||||
void setBootMode(const std::string& bootMode);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getImageName()const;
|
||||
@@ -85,6 +87,7 @@ namespace AlibabaCloud
|
||||
std::string description_;
|
||||
std::string platform_;
|
||||
std::string resourceGroupId_;
|
||||
std::string bootMode_;
|
||||
std::string regionId_;
|
||||
std::string imageName_;
|
||||
std::vector<Tag> tag_;
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setImageId(const std::string& imageId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getLaunchPermission()const;
|
||||
void setLaunchPermission(const std::string& launchPermission);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
@@ -56,6 +58,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string imageId_;
|
||||
std::string regionId_;
|
||||
std::string launchPermission_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
@@ -91,6 +91,17 @@ void ImportImageRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ImportImageRequest::getBootMode()const
|
||||
{
|
||||
return bootMode_;
|
||||
}
|
||||
|
||||
void ImportImageRequest::setBootMode(const std::string& bootMode)
|
||||
{
|
||||
bootMode_ = bootMode;
|
||||
setParameter("BootMode", bootMode);
|
||||
}
|
||||
|
||||
std::string ImportImageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
@@ -60,6 +60,17 @@ void ModifyImageSharePermissionRequest::setRegionId(const std::string& regionId)
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getLaunchPermission()const
|
||||
{
|
||||
return launchPermission_;
|
||||
}
|
||||
|
||||
void ModifyImageSharePermissionRequest::setLaunchPermission(const std::string& launchPermission)
|
||||
{
|
||||
launchPermission_ = launchPermission;
|
||||
setParameter("LaunchPermission", launchPermission);
|
||||
}
|
||||
|
||||
std::string ModifyImageSharePermissionRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
@@ -65,6 +65,8 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h
|
||||
@@ -113,6 +115,8 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h
|
||||
@@ -192,6 +196,8 @@ set(polardb_src
|
||||
src/model/DescribeDBClusterAccessWhitelistResult.cc
|
||||
src/model/DescribeDBClusterAttributeRequest.cc
|
||||
src/model/DescribeDBClusterAttributeResult.cc
|
||||
src/model/DescribeDBClusterAuditLogCollectorRequest.cc
|
||||
src/model/DescribeDBClusterAuditLogCollectorResult.cc
|
||||
src/model/DescribeDBClusterAvailableResourcesRequest.cc
|
||||
src/model/DescribeDBClusterAvailableResourcesResult.cc
|
||||
src/model/DescribeDBClusterEndpointsRequest.cc
|
||||
@@ -240,6 +246,8 @@ set(polardb_src
|
||||
src/model/ModifyBackupPolicyResult.cc
|
||||
src/model/ModifyDBClusterAccessWhitelistRequest.cc
|
||||
src/model/ModifyDBClusterAccessWhitelistResult.cc
|
||||
src/model/ModifyDBClusterAuditLogCollectorRequest.cc
|
||||
src/model/ModifyDBClusterAuditLogCollectorResult.cc
|
||||
src/model/ModifyDBClusterDescriptionRequest.cc
|
||||
src/model/ModifyDBClusterDescriptionResult.cc
|
||||
src/model/ModifyDBClusterEndpointRequest.cc
|
||||
|
||||
@@ -66,6 +66,8 @@
|
||||
#include "model/DescribeDBClusterAccessWhitelistResult.h"
|
||||
#include "model/DescribeDBClusterAttributeRequest.h"
|
||||
#include "model/DescribeDBClusterAttributeResult.h"
|
||||
#include "model/DescribeDBClusterAuditLogCollectorRequest.h"
|
||||
#include "model/DescribeDBClusterAuditLogCollectorResult.h"
|
||||
#include "model/DescribeDBClusterAvailableResourcesRequest.h"
|
||||
#include "model/DescribeDBClusterAvailableResourcesResult.h"
|
||||
#include "model/DescribeDBClusterEndpointsRequest.h"
|
||||
@@ -114,6 +116,8 @@
|
||||
#include "model/ModifyBackupPolicyResult.h"
|
||||
#include "model/ModifyDBClusterAccessWhitelistRequest.h"
|
||||
#include "model/ModifyDBClusterAccessWhitelistResult.h"
|
||||
#include "model/ModifyDBClusterAuditLogCollectorRequest.h"
|
||||
#include "model/ModifyDBClusterAuditLogCollectorResult.h"
|
||||
#include "model/ModifyDBClusterDescriptionRequest.h"
|
||||
#include "model/ModifyDBClusterDescriptionResult.h"
|
||||
#include "model/ModifyDBClusterEndpointRequest.h"
|
||||
@@ -221,6 +225,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeDBClusterAttributeResult> DescribeDBClusterAttributeOutcome;
|
||||
typedef std::future<DescribeDBClusterAttributeOutcome> DescribeDBClusterAttributeOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterAttributeRequest&, const DescribeDBClusterAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterAuditLogCollectorResult> DescribeDBClusterAuditLogCollectorOutcome;
|
||||
typedef std::future<DescribeDBClusterAuditLogCollectorOutcome> DescribeDBClusterAuditLogCollectorOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterAuditLogCollectorRequest&, const DescribeDBClusterAuditLogCollectorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterAuditLogCollectorAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterAvailableResourcesResult> DescribeDBClusterAvailableResourcesOutcome;
|
||||
typedef std::future<DescribeDBClusterAvailableResourcesOutcome> DescribeDBClusterAvailableResourcesOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterAvailableResourcesRequest&, const DescribeDBClusterAvailableResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterAvailableResourcesAsyncHandler;
|
||||
@@ -293,6 +300,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDBClusterAccessWhitelistResult> ModifyDBClusterAccessWhitelistOutcome;
|
||||
typedef std::future<ModifyDBClusterAccessWhitelistOutcome> ModifyDBClusterAccessWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterAccessWhitelistRequest&, const ModifyDBClusterAccessWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAccessWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterAuditLogCollectorResult> ModifyDBClusterAuditLogCollectorOutcome;
|
||||
typedef std::future<ModifyDBClusterAuditLogCollectorOutcome> ModifyDBClusterAuditLogCollectorOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterAuditLogCollectorRequest&, const ModifyDBClusterAuditLogCollectorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterAuditLogCollectorAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterDescriptionResult> ModifyDBClusterDescriptionOutcome;
|
||||
typedef std::future<ModifyDBClusterDescriptionOutcome> ModifyDBClusterDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterDescriptionRequest&, const ModifyDBClusterDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterDescriptionAsyncHandler;
|
||||
@@ -412,6 +422,9 @@ namespace AlibabaCloud
|
||||
DescribeDBClusterAttributeOutcome describeDBClusterAttribute(const Model::DescribeDBClusterAttributeRequest &request)const;
|
||||
void describeDBClusterAttributeAsync(const Model::DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterAttributeOutcomeCallable describeDBClusterAttributeCallable(const Model::DescribeDBClusterAttributeRequest& request) const;
|
||||
DescribeDBClusterAuditLogCollectorOutcome describeDBClusterAuditLogCollector(const Model::DescribeDBClusterAuditLogCollectorRequest &request)const;
|
||||
void describeDBClusterAuditLogCollectorAsync(const Model::DescribeDBClusterAuditLogCollectorRequest& request, const DescribeDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterAuditLogCollectorOutcomeCallable describeDBClusterAuditLogCollectorCallable(const Model::DescribeDBClusterAuditLogCollectorRequest& request) const;
|
||||
DescribeDBClusterAvailableResourcesOutcome describeDBClusterAvailableResources(const Model::DescribeDBClusterAvailableResourcesRequest &request)const;
|
||||
void describeDBClusterAvailableResourcesAsync(const Model::DescribeDBClusterAvailableResourcesRequest& request, const DescribeDBClusterAvailableResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterAvailableResourcesOutcomeCallable describeDBClusterAvailableResourcesCallable(const Model::DescribeDBClusterAvailableResourcesRequest& request) const;
|
||||
@@ -484,6 +497,9 @@ namespace AlibabaCloud
|
||||
ModifyDBClusterAccessWhitelistOutcome modifyDBClusterAccessWhitelist(const Model::ModifyDBClusterAccessWhitelistRequest &request)const;
|
||||
void modifyDBClusterAccessWhitelistAsync(const Model::ModifyDBClusterAccessWhitelistRequest& request, const ModifyDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterAccessWhitelistOutcomeCallable modifyDBClusterAccessWhitelistCallable(const Model::ModifyDBClusterAccessWhitelistRequest& request) const;
|
||||
ModifyDBClusterAuditLogCollectorOutcome modifyDBClusterAuditLogCollector(const Model::ModifyDBClusterAuditLogCollectorRequest &request)const;
|
||||
void modifyDBClusterAuditLogCollectorAsync(const Model::ModifyDBClusterAuditLogCollectorRequest& request, const ModifyDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterAuditLogCollectorOutcomeCallable modifyDBClusterAuditLogCollectorCallable(const Model::ModifyDBClusterAuditLogCollectorRequest& request) const;
|
||||
ModifyDBClusterDescriptionOutcome modifyDBClusterDescription(const Model::ModifyDBClusterDescriptionRequest &request)const;
|
||||
void modifyDBClusterDescriptionAsync(const Model::ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterDescriptionOutcomeCallable modifyDBClusterDescriptionCallable(const Model::ModifyDBClusterDescriptionRequest& 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_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAuditLogCollectorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDBClusterAuditLogCollectorRequest();
|
||||
~DescribeDBClusterAuditLogCollectorRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
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);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_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 DescribeDBClusterAuditLogCollectorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeDBClusterAuditLogCollectorResult();
|
||||
explicit DescribeDBClusterAuditLogCollectorResult(const std::string &payload);
|
||||
~DescribeDBClusterAuditLogCollectorResult();
|
||||
std::string getCollectorStatus()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string collectorStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_H_
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
std::string netType;
|
||||
};
|
||||
std::string dBEndpointId;
|
||||
std::string nodeWithRoles;
|
||||
std::string autoAddNewNodes;
|
||||
std::string endpointType;
|
||||
std::vector<DBEndpoint::Address> addressItems;
|
||||
|
||||
@@ -32,11 +32,42 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterMigrationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DBClusterEndpoint
|
||||
{
|
||||
struct Address
|
||||
{
|
||||
std::string vPCId;
|
||||
std::string port;
|
||||
std::string vSwitchId;
|
||||
std::string connectionString;
|
||||
std::string iPAddress;
|
||||
std::string netType;
|
||||
};
|
||||
std::string dBEndpointId;
|
||||
std::string endpointType;
|
||||
std::vector<DBClusterEndpoint::Address> addressItems;
|
||||
};
|
||||
struct RdsEndpoint
|
||||
{
|
||||
struct Address2
|
||||
{
|
||||
std::string vPCId;
|
||||
std::string port;
|
||||
std::string vSwitchId;
|
||||
std::string connectionString;
|
||||
std::string iPAddress;
|
||||
std::string netType;
|
||||
};
|
||||
std::string dBEndpointId;
|
||||
std::string endpointType;
|
||||
std::vector<RdsEndpoint::Address2> addressItems1;
|
||||
};
|
||||
|
||||
|
||||
DescribeDBClusterMigrationResult();
|
||||
explicit DescribeDBClusterMigrationResult(const std::string &payload);
|
||||
~DescribeDBClusterMigrationResult();
|
||||
std::vector<DBClusterEndpoint> getDBClusterEndpointList()const;
|
||||
std::string getComment()const;
|
||||
std::string getExpiredTime()const;
|
||||
std::string getDBClusterId()const;
|
||||
@@ -46,10 +77,12 @@ namespace AlibabaCloud
|
||||
int getDelayedSeconds()const;
|
||||
std::string getDBClusterReadWriteMode()const;
|
||||
std::string getMigrationStatus()const;
|
||||
std::vector<RdsEndpoint> getRdsEndpointList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DBClusterEndpoint> dBClusterEndpointList_;
|
||||
std::string comment_;
|
||||
std::string expiredTime_;
|
||||
std::string dBClusterId_;
|
||||
@@ -59,6 +92,7 @@ namespace AlibabaCloud
|
||||
int delayedSeconds_;
|
||||
std::string dBClusterReadWriteMode_;
|
||||
std::string migrationStatus_;
|
||||
std::vector<RdsEndpoint> rdsEndpointList_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterAuditLogCollectorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDBClusterAuditLogCollectorRequest();
|
||||
~ModifyDBClusterAuditLogCollectorRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
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);
|
||||
std::string getCollectorStatus()const;
|
||||
void setCollectorStatus(const std::string& collectorStatus);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string collectorStatus_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_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 ModifyDBClusterAuditLogCollectorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDBClusterAuditLogCollectorResult();
|
||||
explicit ModifyDBClusterAuditLogCollectorResult(const std::string &payload);
|
||||
~ModifyDBClusterAuditLogCollectorResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_H_
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
std::string getSourceRDSDBInstanceId()const;
|
||||
void setSourceRDSDBInstanceId(const std::string& sourceRDSDBInstanceId);
|
||||
std::string getSwapConnectionString()const;
|
||||
void setSwapConnectionString(const std::string& swapConnectionString);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
|
||||
@@ -63,6 +65,7 @@ namespace AlibabaCloud
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
std::string sourceRDSDBInstanceId_;
|
||||
std::string swapConnectionString_;
|
||||
long ownerId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
@@ -47,17 +49,15 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string period_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,6 +55,8 @@ namespace AlibabaCloud
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getPort()const;
|
||||
void setPort(const std::string& port);
|
||||
std::string getNetType()const;
|
||||
void setNetType(const std::string& netType);
|
||||
|
||||
@@ -69,6 +71,7 @@ namespace AlibabaCloud
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string port_;
|
||||
std::string netType_;
|
||||
|
||||
};
|
||||
|
||||
@@ -843,6 +843,42 @@ PolardbClient::DescribeDBClusterAttributeOutcomeCallable PolardbClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAuditLogCollectorOutcome PolardbClient::describeDBClusterAuditLogCollector(const DescribeDBClusterAuditLogCollectorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBClusterAuditLogCollectorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBClusterAuditLogCollectorOutcome(DescribeDBClusterAuditLogCollectorResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBClusterAuditLogCollectorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeDBClusterAuditLogCollectorAsync(const DescribeDBClusterAuditLogCollectorRequest& request, const DescribeDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBClusterAuditLogCollector(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAuditLogCollectorOutcomeCallable PolardbClient::describeDBClusterAuditLogCollectorCallable(const DescribeDBClusterAuditLogCollectorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBClusterAuditLogCollectorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBClusterAuditLogCollector(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAvailableResourcesOutcome PolardbClient::describeDBClusterAvailableResources(const DescribeDBClusterAvailableResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,6 +1743,42 @@ PolardbClient::ModifyDBClusterAccessWhitelistOutcomeCallable PolardbClient::modi
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterAuditLogCollectorOutcome PolardbClient::modifyDBClusterAuditLogCollector(const ModifyDBClusterAuditLogCollectorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBClusterAuditLogCollectorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBClusterAuditLogCollectorOutcome(ModifyDBClusterAuditLogCollectorResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBClusterAuditLogCollectorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::modifyDBClusterAuditLogCollectorAsync(const ModifyDBClusterAuditLogCollectorRequest& request, const ModifyDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBClusterAuditLogCollector(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterAuditLogCollectorOutcomeCallable PolardbClient::modifyDBClusterAuditLogCollectorCallable(const ModifyDBClusterAuditLogCollectorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBClusterAuditLogCollectorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBClusterAuditLogCollector(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterDescriptionOutcome PolardbClient::modifyDBClusterDescription(const ModifyDBClusterDescriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -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/DescribeDBClusterAuditLogCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeDBClusterAuditLogCollectorRequest;
|
||||
|
||||
DescribeDBClusterAuditLogCollectorRequest::DescribeDBClusterAuditLogCollectorRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterAuditLogCollector")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBClusterAuditLogCollectorRequest::~DescribeDBClusterAuditLogCollectorRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBClusterAuditLogCollectorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBClusterAuditLogCollectorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeDBClusterAuditLogCollectorResult::DescribeDBClusterAuditLogCollectorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBClusterAuditLogCollectorResult::DescribeDBClusterAuditLogCollectorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBClusterAuditLogCollectorResult::~DescribeDBClusterAuditLogCollectorResult()
|
||||
{}
|
||||
|
||||
void DescribeDBClusterAuditLogCollectorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CollectorStatus"].isNull())
|
||||
collectorStatus_ = value["CollectorStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAuditLogCollectorResult::getCollectorStatus()const
|
||||
{
|
||||
return collectorStatus_;
|
||||
}
|
||||
|
||||
@@ -55,6 +55,8 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload)
|
||||
itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString();
|
||||
if(!valueItemsDBEndpoint["EndpointConfig"].isNull())
|
||||
itemsObject.endpointConfig = valueItemsDBEndpoint["EndpointConfig"].asString();
|
||||
if(!valueItemsDBEndpoint["NodeWithRoles"].isNull())
|
||||
itemsObject.nodeWithRoles = valueItemsDBEndpoint["NodeWithRoles"].asString();
|
||||
auto allAddressItemsNode = allItemsNode["AddressItems"]["Address"];
|
||||
for (auto allItemsNodeAddressItemsAddress : allAddressItemsNode)
|
||||
{
|
||||
|
||||
@@ -39,6 +39,62 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDBClusterEndpointListNode = value["DBClusterEndpointList"]["DBClusterEndpoint"];
|
||||
for (auto valueDBClusterEndpointListDBClusterEndpoint : allDBClusterEndpointListNode)
|
||||
{
|
||||
DBClusterEndpoint dBClusterEndpointListObject;
|
||||
if(!valueDBClusterEndpointListDBClusterEndpoint["DBEndpointId"].isNull())
|
||||
dBClusterEndpointListObject.dBEndpointId = valueDBClusterEndpointListDBClusterEndpoint["DBEndpointId"].asString();
|
||||
if(!valueDBClusterEndpointListDBClusterEndpoint["EndpointType"].isNull())
|
||||
dBClusterEndpointListObject.endpointType = valueDBClusterEndpointListDBClusterEndpoint["EndpointType"].asString();
|
||||
auto allAddressItemsNode = allDBClusterEndpointListNode["AddressItems"]["Address"];
|
||||
for (auto allDBClusterEndpointListNodeAddressItemsAddress : allAddressItemsNode)
|
||||
{
|
||||
DBClusterEndpoint::Address addressItemsObject;
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["ConnectionString"].isNull())
|
||||
addressItemsObject.connectionString = allDBClusterEndpointListNodeAddressItemsAddress["ConnectionString"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["IPAddress"].isNull())
|
||||
addressItemsObject.iPAddress = allDBClusterEndpointListNodeAddressItemsAddress["IPAddress"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["NetType"].isNull())
|
||||
addressItemsObject.netType = allDBClusterEndpointListNodeAddressItemsAddress["NetType"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["Port"].isNull())
|
||||
addressItemsObject.port = allDBClusterEndpointListNodeAddressItemsAddress["Port"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["VPCId"].isNull())
|
||||
addressItemsObject.vPCId = allDBClusterEndpointListNodeAddressItemsAddress["VPCId"].asString();
|
||||
if(!allDBClusterEndpointListNodeAddressItemsAddress["VSwitchId"].isNull())
|
||||
addressItemsObject.vSwitchId = allDBClusterEndpointListNodeAddressItemsAddress["VSwitchId"].asString();
|
||||
dBClusterEndpointListObject.addressItems.push_back(addressItemsObject);
|
||||
}
|
||||
dBClusterEndpointList_.push_back(dBClusterEndpointListObject);
|
||||
}
|
||||
auto allRdsEndpointListNode = value["RdsEndpointList"]["RdsEndpoint"];
|
||||
for (auto valueRdsEndpointListRdsEndpoint : allRdsEndpointListNode)
|
||||
{
|
||||
RdsEndpoint rdsEndpointListObject;
|
||||
if(!valueRdsEndpointListRdsEndpoint["DBEndpointId"].isNull())
|
||||
rdsEndpointListObject.dBEndpointId = valueRdsEndpointListRdsEndpoint["DBEndpointId"].asString();
|
||||
if(!valueRdsEndpointListRdsEndpoint["EndpointType"].isNull())
|
||||
rdsEndpointListObject.endpointType = valueRdsEndpointListRdsEndpoint["EndpointType"].asString();
|
||||
auto allAddressItems1Node = allRdsEndpointListNode["AddressItems"]["Address"];
|
||||
for (auto allRdsEndpointListNodeAddressItemsAddress : allAddressItems1Node)
|
||||
{
|
||||
RdsEndpoint::Address2 addressItems1Object;
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["ConnectionString"].isNull())
|
||||
addressItems1Object.connectionString = allRdsEndpointListNodeAddressItemsAddress["ConnectionString"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["IPAddress"].isNull())
|
||||
addressItems1Object.iPAddress = allRdsEndpointListNodeAddressItemsAddress["IPAddress"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["NetType"].isNull())
|
||||
addressItems1Object.netType = allRdsEndpointListNodeAddressItemsAddress["NetType"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["Port"].isNull())
|
||||
addressItems1Object.port = allRdsEndpointListNodeAddressItemsAddress["Port"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["VPCId"].isNull())
|
||||
addressItems1Object.vPCId = allRdsEndpointListNodeAddressItemsAddress["VPCId"].asString();
|
||||
if(!allRdsEndpointListNodeAddressItemsAddress["VSwitchId"].isNull())
|
||||
addressItems1Object.vSwitchId = allRdsEndpointListNodeAddressItemsAddress["VSwitchId"].asString();
|
||||
rdsEndpointListObject.addressItems1.push_back(addressItems1Object);
|
||||
}
|
||||
rdsEndpointList_.push_back(rdsEndpointListObject);
|
||||
}
|
||||
if(!value["DBClusterId"].isNull())
|
||||
dBClusterId_ = value["DBClusterId"].asString();
|
||||
if(!value["SourceRDSDBInstanceId"].isNull())
|
||||
@@ -60,6 +116,11 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterMigrationResult::DBClusterEndpoint> DescribeDBClusterMigrationResult::getDBClusterEndpointList()const
|
||||
{
|
||||
return dBClusterEndpointList_;
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterMigrationResult::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
@@ -105,3 +166,8 @@ std::string DescribeDBClusterMigrationResult::getMigrationStatus()const
|
||||
return migrationStatus_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterMigrationResult::RdsEndpoint> DescribeDBClusterMigrationResult::getRdsEndpointList()const
|
||||
{
|
||||
return rdsEndpointList_;
|
||||
}
|
||||
|
||||
|
||||
106
polardb/src/model/ModifyDBClusterAuditLogCollectorRequest.cc
Normal file
106
polardb/src/model/ModifyDBClusterAuditLogCollectorRequest.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/ModifyDBClusterAuditLogCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::ModifyDBClusterAuditLogCollectorRequest;
|
||||
|
||||
ModifyDBClusterAuditLogCollectorRequest::ModifyDBClusterAuditLogCollectorRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterAuditLogCollector")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBClusterAuditLogCollectorRequest::~ModifyDBClusterAuditLogCollectorRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBClusterAuditLogCollectorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getCollectorStatus()const
|
||||
{
|
||||
return collectorStatus_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setCollectorStatus(const std::string& collectorStatus)
|
||||
{
|
||||
collectorStatus_ = collectorStatus;
|
||||
setParameter("CollectorStatus", collectorStatus);
|
||||
}
|
||||
|
||||
long ModifyDBClusterAuditLogCollectorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterAuditLogCollectorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
44
polardb/src/model/ModifyDBClusterAuditLogCollectorResult.cc
Normal file
44
polardb/src/model/ModifyDBClusterAuditLogCollectorResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/ModifyDBClusterAuditLogCollectorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
ModifyDBClusterAuditLogCollectorResult::ModifyDBClusterAuditLogCollectorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBClusterAuditLogCollectorResult::ModifyDBClusterAuditLogCollectorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBClusterAuditLogCollectorResult::~ModifyDBClusterAuditLogCollectorResult()
|
||||
{}
|
||||
|
||||
void ModifyDBClusterAuditLogCollectorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -115,6 +115,17 @@ void ModifyDBClusterMigrationRequest::setSourceRDSDBInstanceId(const std::string
|
||||
setParameter("SourceRDSDBInstanceId", sourceRDSDBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMigrationRequest::getSwapConnectionString()const
|
||||
{
|
||||
return swapConnectionString_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMigrationRequest::setSwapConnectionString(const std::string& swapConnectionString)
|
||||
{
|
||||
swapConnectionString_ = swapConnectionString;
|
||||
setParameter("SwapConnectionString", swapConnectionString);
|
||||
}
|
||||
|
||||
long ModifyDBClusterMigrationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void ModifyDBClusterMonitorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
@@ -93,14 +104,3 @@ void ModifyDBClusterMonitorRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -137,6 +137,17 @@ void ModifyDBEndpointAddressRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBEndpointAddressRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void ModifyDBEndpointAddressRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", port);
|
||||
}
|
||||
|
||||
std::string ModifyDBEndpointAddressRequest::getNetType()const
|
||||
{
|
||||
return netType_;
|
||||
|
||||
@@ -34,8 +34,20 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Attributes
|
||||
{
|
||||
std::string faceQuality;
|
||||
int rightBottomX;
|
||||
int rightBottomY;
|
||||
std::string faceStyle;
|
||||
int leftTopY;
|
||||
int leftTopX;
|
||||
std::string targetImageStoragePath;
|
||||
std::string faceScore;
|
||||
};
|
||||
std::string description;
|
||||
std::string qualityScore;
|
||||
Attributes attributes;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -44,6 +44,23 @@ void RecognizeFaceQualityResult::parse(const std::string &payload)
|
||||
data_.qualityScore = dataNode["QualityScore"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
auto attributesNode = dataNode["Attributes"];
|
||||
if(!attributesNode["LeftTopX"].isNull())
|
||||
data_.attributes.leftTopX = std::stoi(attributesNode["LeftTopX"].asString());
|
||||
if(!attributesNode["LeftTopY"].isNull())
|
||||
data_.attributes.leftTopY = std::stoi(attributesNode["LeftTopY"].asString());
|
||||
if(!attributesNode["RightBottomX"].isNull())
|
||||
data_.attributes.rightBottomX = std::stoi(attributesNode["RightBottomX"].asString());
|
||||
if(!attributesNode["RightBottomY"].isNull())
|
||||
data_.attributes.rightBottomY = std::stoi(attributesNode["RightBottomY"].asString());
|
||||
if(!attributesNode["TargetImageStoragePath"].isNull())
|
||||
data_.attributes.targetImageStoragePath = attributesNode["TargetImageStoragePath"].asString();
|
||||
if(!attributesNode["FaceStyle"].isNull())
|
||||
data_.attributes.faceStyle = attributesNode["FaceStyle"].asString();
|
||||
if(!attributesNode["FaceQuality"].isNull())
|
||||
data_.attributes.faceQuality = attributesNode["FaceQuality"].asString();
|
||||
if(!attributesNode["FaceScore"].isNull())
|
||||
data_.attributes.faceScore = attributesNode["FaceScore"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user