Support RefreshProxyLevel.

This commit is contained in:
sdk-team
2022-02-22 07:29:13 +00:00
parent 213faf8f4f
commit 5dbd88a76d
11 changed files with 376 additions and 4 deletions

View File

@@ -214,6 +214,8 @@
#include "model/ModifyMaskingRulesResult.h"
#include "model/ModifyPendingMaintenanceActionRequest.h"
#include "model/ModifyPendingMaintenanceActionResult.h"
#include "model/RefreshProxyLevelRequest.h"
#include "model/RefreshProxyLevelResult.h"
#include "model/RemoveDBClusterFromGDNRequest.h"
#include "model/RemoveDBClusterFromGDNResult.h"
#include "model/ResetAccountRequest.h"
@@ -533,6 +535,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyPendingMaintenanceActionResult> ModifyPendingMaintenanceActionOutcome;
typedef std::future<ModifyPendingMaintenanceActionOutcome> ModifyPendingMaintenanceActionOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyPendingMaintenanceActionRequest&, const ModifyPendingMaintenanceActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyPendingMaintenanceActionAsyncHandler;
typedef Outcome<Error, Model::RefreshProxyLevelResult> RefreshProxyLevelOutcome;
typedef std::future<RefreshProxyLevelOutcome> RefreshProxyLevelOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::RefreshProxyLevelRequest&, const RefreshProxyLevelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RefreshProxyLevelAsyncHandler;
typedef Outcome<Error, Model::RemoveDBClusterFromGDNResult> RemoveDBClusterFromGDNOutcome;
typedef std::future<RemoveDBClusterFromGDNOutcome> RemoveDBClusterFromGDNOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::RemoveDBClusterFromGDNRequest&, const RemoveDBClusterFromGDNOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemoveDBClusterFromGDNAsyncHandler;
@@ -859,6 +864,9 @@ namespace AlibabaCloud
ModifyPendingMaintenanceActionOutcome modifyPendingMaintenanceAction(const Model::ModifyPendingMaintenanceActionRequest &request)const;
void modifyPendingMaintenanceActionAsync(const Model::ModifyPendingMaintenanceActionRequest& request, const ModifyPendingMaintenanceActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyPendingMaintenanceActionOutcomeCallable modifyPendingMaintenanceActionCallable(const Model::ModifyPendingMaintenanceActionRequest& request) const;
RefreshProxyLevelOutcome refreshProxyLevel(const Model::RefreshProxyLevelRequest &request)const;
void refreshProxyLevelAsync(const Model::RefreshProxyLevelRequest& request, const RefreshProxyLevelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RefreshProxyLevelOutcomeCallable refreshProxyLevelCallable(const Model::RefreshProxyLevelRequest& request) const;
RemoveDBClusterFromGDNOutcome removeDBClusterFromGDN(const Model::RemoveDBClusterFromGDNRequest &request)const;
void removeDBClusterFromGDNAsync(const Model::RemoveDBClusterFromGDNRequest& request, const RemoveDBClusterFromGDNAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RemoveDBClusterFromGDNOutcomeCallable removeDBClusterFromGDNCallable(const Model::RemoveDBClusterFromGDNRequest& request) const;

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setPlannedStartTime(const std::string& plannedStartTime);
std::string getModifyType()const;
void setModifyType(const std::string& modifyType);
std::string getSubCategory()const;
void setSubCategory(const std::string& subCategory);
private:
long resourceOwnerId_;
@@ -70,6 +72,7 @@ namespace AlibabaCloud
long ownerId_;
std::string plannedStartTime_;
std::string modifyType_;
std::string subCategory_;
};
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_REFRESHPROXYLEVELREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_REFRESHPROXYLEVELREQUEST_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 RefreshProxyLevelRequest : public RpcServiceRequest
{
public:
RefreshProxyLevelRequest();
~RefreshProxyLevelRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getPlannedEndTime()const;
void setPlannedEndTime(const std::string& plannedEndTime);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getProxyTargetClass()const;
void setProxyTargetClass(const std::string& proxyTargetClass);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getDBClusterId()const;
void setDBClusterId(const std::string& dBClusterId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getPlannedStartTime()const;
void setPlannedStartTime(const std::string& plannedStartTime);
bool getFromTimeService()const;
void setFromTimeService(bool fromTimeService);
private:
long resourceOwnerId_;
std::string plannedEndTime_;
std::string accessKeyId_;
std::string proxyTargetClass_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;
std::string ownerAccount_;
long ownerId_;
std::string plannedStartTime_;
bool fromTimeService_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_REFRESHPROXYLEVELREQUEST_H_

View File

@@ -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_REFRESHPROXYLEVELRESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_REFRESHPROXYLEVELRESULT_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 RefreshProxyLevelResult : public ServiceResult
{
public:
RefreshProxyLevelResult();
explicit RefreshProxyLevelResult(const std::string &payload);
~RefreshProxyLevelResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_REFRESHPROXYLEVELRESULT_H_