Support modify dbcluster storage space.
This commit is contained in:
@@ -226,6 +226,8 @@
|
||||
#include "model/ModifyDBClusterSSLResult.h"
|
||||
#include "model/ModifyDBClusterServerlessConfRequest.h"
|
||||
#include "model/ModifyDBClusterServerlessConfResult.h"
|
||||
#include "model/ModifyDBClusterStorageSpaceRequest.h"
|
||||
#include "model/ModifyDBClusterStorageSpaceResult.h"
|
||||
#include "model/ModifyDBClusterTDERequest.h"
|
||||
#include "model/ModifyDBClusterTDEResult.h"
|
||||
#include "model/ModifyDBDescriptionRequest.h"
|
||||
@@ -595,6 +597,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDBClusterServerlessConfResult> ModifyDBClusterServerlessConfOutcome;
|
||||
typedef std::future<ModifyDBClusterServerlessConfOutcome> ModifyDBClusterServerlessConfOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterServerlessConfRequest&, const ModifyDBClusterServerlessConfOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterServerlessConfAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterStorageSpaceResult> ModifyDBClusterStorageSpaceOutcome;
|
||||
typedef std::future<ModifyDBClusterStorageSpaceOutcome> ModifyDBClusterStorageSpaceOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterStorageSpaceRequest&, const ModifyDBClusterStorageSpaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterStorageSpaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterTDEResult> ModifyDBClusterTDEOutcome;
|
||||
typedef std::future<ModifyDBClusterTDEOutcome> ModifyDBClusterTDEOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterTDERequest&, const ModifyDBClusterTDEOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterTDEAsyncHandler;
|
||||
@@ -987,6 +992,9 @@ namespace AlibabaCloud
|
||||
ModifyDBClusterServerlessConfOutcome modifyDBClusterServerlessConf(const Model::ModifyDBClusterServerlessConfRequest &request)const;
|
||||
void modifyDBClusterServerlessConfAsync(const Model::ModifyDBClusterServerlessConfRequest& request, const ModifyDBClusterServerlessConfAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterServerlessConfOutcomeCallable modifyDBClusterServerlessConfCallable(const Model::ModifyDBClusterServerlessConfRequest& request) const;
|
||||
ModifyDBClusterStorageSpaceOutcome modifyDBClusterStorageSpace(const Model::ModifyDBClusterStorageSpaceRequest &request)const;
|
||||
void modifyDBClusterStorageSpaceAsync(const Model::ModifyDBClusterStorageSpaceRequest& request, const ModifyDBClusterStorageSpaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterStorageSpaceOutcomeCallable modifyDBClusterStorageSpaceCallable(const Model::ModifyDBClusterStorageSpaceRequest& request) const;
|
||||
ModifyDBClusterTDEOutcome modifyDBClusterTDE(const Model::ModifyDBClusterTDERequest &request)const;
|
||||
void modifyDBClusterTDEAsync(const Model::ModifyDBClusterTDERequest& request, const ModifyDBClusterTDEAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterTDEOutcomeCallable modifyDBClusterTDECallable(const Model::ModifyDBClusterTDERequest& request) const;
|
||||
|
||||
@@ -32,6 +32,13 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAttributeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct RelatedAPInstance
|
||||
{
|
||||
std::string totalAPNodes;
|
||||
std::string classCode;
|
||||
std::string ossStorageUsed;
|
||||
std::string name;
|
||||
};
|
||||
struct DBNode
|
||||
{
|
||||
std::string dBNodeStatus;
|
||||
@@ -43,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string dBNodeId;
|
||||
int maxIOPS;
|
||||
std::string dBNodeClass;
|
||||
std::string serverlessType;
|
||||
std::string creationTime;
|
||||
std::string sccMode;
|
||||
std::string masterId;
|
||||
@@ -75,6 +83,7 @@ namespace AlibabaCloud
|
||||
long getStorageMax()const;
|
||||
std::string getDBVersion()const;
|
||||
std::vector<DBNode> getDBNodes()const;
|
||||
std::string getFeatureHTAPSupported()const;
|
||||
std::string getZoneIds()const;
|
||||
long getInodeUsed()const;
|
||||
std::string getMaintainTime()const;
|
||||
@@ -95,9 +104,11 @@ namespace AlibabaCloud
|
||||
bool getIsProxyLatestVersion()const;
|
||||
long getStorageSpace()const;
|
||||
std::string getDBVersionStatus()const;
|
||||
std::string getProxyServerlessType()const;
|
||||
std::string getServerlessType()const;
|
||||
std::string getCreationTime()const;
|
||||
std::string getSubCategory()const;
|
||||
RelatedAPInstance getRelatedAPInstance()const;
|
||||
long getSQLSize()const;
|
||||
std::string getRegionId()const;
|
||||
std::string getProxyType()const;
|
||||
@@ -121,6 +132,7 @@ namespace AlibabaCloud
|
||||
long storageMax_;
|
||||
std::string dBVersion_;
|
||||
std::vector<DBNode> dBNodes_;
|
||||
std::string featureHTAPSupported_;
|
||||
std::string zoneIds_;
|
||||
long inodeUsed_;
|
||||
std::string maintainTime_;
|
||||
@@ -141,9 +153,11 @@ namespace AlibabaCloud
|
||||
bool isProxyLatestVersion_;
|
||||
long storageSpace_;
|
||||
std::string dBVersionStatus_;
|
||||
std::string proxyServerlessType_;
|
||||
std::string serverlessType_;
|
||||
std::string creationTime_;
|
||||
std::string subCategory_;
|
||||
RelatedAPInstance relatedAPInstance_;
|
||||
long sQLSize_;
|
||||
std::string regionId_;
|
||||
std::string proxyType_;
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
~DescribeDBClusterServerlessConfResult();
|
||||
std::string getScaleRoNumMin()const;
|
||||
std::string getAllowShutDown()const;
|
||||
std::string getScaleApRoNumMin()const;
|
||||
std::string getScaleApRoNumMax()const;
|
||||
std::string getScaleRoNumMax()const;
|
||||
std::string getDBClusterId()const;
|
||||
std::string getScaleMin()const;
|
||||
@@ -50,6 +52,8 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string scaleRoNumMin_;
|
||||
std::string allowShutDown_;
|
||||
std::string scaleApRoNumMin_;
|
||||
std::string scaleApRoNumMax_;
|
||||
std::string scaleRoNumMax_;
|
||||
std::string dBClusterId_;
|
||||
std::string scaleMin_;
|
||||
|
||||
@@ -34,12 +34,16 @@ public:
|
||||
void setScaleRoNumMax(const std::string &scaleRoNumMax);
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getScaleApRoNumMax() const;
|
||||
void setScaleApRoNumMax(const std::string &scaleApRoNumMax);
|
||||
std::string getScaleMax() const;
|
||||
void setScaleMax(const std::string &scaleMax);
|
||||
std::string getAccessKeyId() const;
|
||||
void setAccessKeyId(const std::string &accessKeyId);
|
||||
std::string getSecondsUntilAutoPause() const;
|
||||
void setSecondsUntilAutoPause(const std::string &secondsUntilAutoPause);
|
||||
std::string getScaleApRoNumMin() const;
|
||||
void setScaleApRoNumMin(const std::string &scaleApRoNumMin);
|
||||
std::string getScaleMin() const;
|
||||
void setScaleMin(const std::string &scaleMin);
|
||||
std::string getResourceOwnerAccount() const;
|
||||
@@ -58,9 +62,11 @@ public:
|
||||
private:
|
||||
std::string scaleRoNumMax_;
|
||||
long resourceOwnerId_;
|
||||
std::string scaleApRoNumMax_;
|
||||
std::string scaleMax_;
|
||||
std::string accessKeyId_;
|
||||
std::string secondsUntilAutoPause_;
|
||||
std::string scaleApRoNumMin_;
|
||||
std::string scaleMin_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGESPACEREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGESPACEREQUEST_H_
|
||||
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Polardb {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterStorageSpaceRequest : public RpcServiceRequest {
|
||||
public:
|
||||
ModifyDBClusterStorageSpaceRequest();
|
||||
~ModifyDBClusterStorageSpaceRequest();
|
||||
long getResourceOwnerId() const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getClientToken() const;
|
||||
void setClientToken(const std::string &clientToken);
|
||||
std::string getPlannedEndTime() const;
|
||||
void setPlannedEndTime(const std::string &plannedEndTime);
|
||||
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);
|
||||
std::string getPlannedStartTime() const;
|
||||
void setPlannedStartTime(const std::string &plannedStartTime);
|
||||
std::string getSubCategory() const;
|
||||
void setSubCategory(const std::string &subCategory);
|
||||
long getStorageSpace() const;
|
||||
void setStorageSpace(long storageSpace);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string plannedEndTime_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string plannedStartTime_;
|
||||
std::string subCategory_;
|
||||
long storageSpace_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Polardb
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGESPACEREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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_MODIFYDBCLUSTERSTORAGESPACERESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGESPACERESULT_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 ModifyDBClusterStorageSpaceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDBClusterStorageSpaceResult();
|
||||
explicit ModifyDBClusterStorageSpaceResult(const std::string &payload);
|
||||
~ModifyDBClusterStorageSpaceResult();
|
||||
std::string getDBClusterId()const;
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string dBClusterId_;
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERSTORAGESPACERESULT_H_
|
||||
Reference in New Issue
Block a user