regenerate code
This commit is contained in:
@@ -65,10 +65,14 @@ 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/DescribeDBClusterAvailableResourcesRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterMigrationRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterMonitorRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterMonitorResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterParametersRequest.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterParametersResult.h
|
||||
include/alibabacloud/polardb/model/DescribeDBClusterPerformanceRequest.h
|
||||
@@ -111,6 +115,8 @@ set(polardb_public_header_model
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterMaintainTimeResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterMigrationResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterMonitorRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterMonitorResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterParametersRequest.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterParametersResult.h
|
||||
include/alibabacloud/polardb/model/ModifyDBClusterSSLRequest.h
|
||||
@@ -178,10 +184,14 @@ set(polardb_src
|
||||
src/model/DescribeDBClusterAccessWhitelistResult.cc
|
||||
src/model/DescribeDBClusterAttributeRequest.cc
|
||||
src/model/DescribeDBClusterAttributeResult.cc
|
||||
src/model/DescribeDBClusterAvailableResourcesRequest.cc
|
||||
src/model/DescribeDBClusterAvailableResourcesResult.cc
|
||||
src/model/DescribeDBClusterEndpointsRequest.cc
|
||||
src/model/DescribeDBClusterEndpointsResult.cc
|
||||
src/model/DescribeDBClusterMigrationRequest.cc
|
||||
src/model/DescribeDBClusterMigrationResult.cc
|
||||
src/model/DescribeDBClusterMonitorRequest.cc
|
||||
src/model/DescribeDBClusterMonitorResult.cc
|
||||
src/model/DescribeDBClusterParametersRequest.cc
|
||||
src/model/DescribeDBClusterParametersResult.cc
|
||||
src/model/DescribeDBClusterPerformanceRequest.cc
|
||||
@@ -224,6 +234,8 @@ set(polardb_src
|
||||
src/model/ModifyDBClusterMaintainTimeResult.cc
|
||||
src/model/ModifyDBClusterMigrationRequest.cc
|
||||
src/model/ModifyDBClusterMigrationResult.cc
|
||||
src/model/ModifyDBClusterMonitorRequest.cc
|
||||
src/model/ModifyDBClusterMonitorResult.cc
|
||||
src/model/ModifyDBClusterParametersRequest.cc
|
||||
src/model/ModifyDBClusterParametersResult.cc
|
||||
src/model/ModifyDBClusterSSLRequest.cc
|
||||
|
||||
@@ -66,10 +66,14 @@
|
||||
#include "model/DescribeDBClusterAccessWhitelistResult.h"
|
||||
#include "model/DescribeDBClusterAttributeRequest.h"
|
||||
#include "model/DescribeDBClusterAttributeResult.h"
|
||||
#include "model/DescribeDBClusterAvailableResourcesRequest.h"
|
||||
#include "model/DescribeDBClusterAvailableResourcesResult.h"
|
||||
#include "model/DescribeDBClusterEndpointsRequest.h"
|
||||
#include "model/DescribeDBClusterEndpointsResult.h"
|
||||
#include "model/DescribeDBClusterMigrationRequest.h"
|
||||
#include "model/DescribeDBClusterMigrationResult.h"
|
||||
#include "model/DescribeDBClusterMonitorRequest.h"
|
||||
#include "model/DescribeDBClusterMonitorResult.h"
|
||||
#include "model/DescribeDBClusterParametersRequest.h"
|
||||
#include "model/DescribeDBClusterParametersResult.h"
|
||||
#include "model/DescribeDBClusterPerformanceRequest.h"
|
||||
@@ -112,6 +116,8 @@
|
||||
#include "model/ModifyDBClusterMaintainTimeResult.h"
|
||||
#include "model/ModifyDBClusterMigrationRequest.h"
|
||||
#include "model/ModifyDBClusterMigrationResult.h"
|
||||
#include "model/ModifyDBClusterMonitorRequest.h"
|
||||
#include "model/ModifyDBClusterMonitorResult.h"
|
||||
#include "model/ModifyDBClusterParametersRequest.h"
|
||||
#include "model/ModifyDBClusterParametersResult.h"
|
||||
#include "model/ModifyDBClusterSSLRequest.h"
|
||||
@@ -207,12 +213,18 @@ 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::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;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterEndpointsResult> DescribeDBClusterEndpointsOutcome;
|
||||
typedef std::future<DescribeDBClusterEndpointsOutcome> DescribeDBClusterEndpointsOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterEndpointsRequest&, const DescribeDBClusterEndpointsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterEndpointsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterMigrationResult> DescribeDBClusterMigrationOutcome;
|
||||
typedef std::future<DescribeDBClusterMigrationOutcome> DescribeDBClusterMigrationOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterMigrationRequest&, const DescribeDBClusterMigrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterMigrationAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterMonitorResult> DescribeDBClusterMonitorOutcome;
|
||||
typedef std::future<DescribeDBClusterMonitorOutcome> DescribeDBClusterMonitorOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterMonitorRequest&, const DescribeDBClusterMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeDBClusterParametersResult> DescribeDBClusterParametersOutcome;
|
||||
typedef std::future<DescribeDBClusterParametersOutcome> DescribeDBClusterParametersOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::DescribeDBClusterParametersRequest&, const DescribeDBClusterParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBClusterParametersAsyncHandler;
|
||||
@@ -276,6 +288,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyDBClusterMigrationResult> ModifyDBClusterMigrationOutcome;
|
||||
typedef std::future<ModifyDBClusterMigrationOutcome> ModifyDBClusterMigrationOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterMigrationRequest&, const ModifyDBClusterMigrationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterMigrationAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterMonitorResult> ModifyDBClusterMonitorOutcome;
|
||||
typedef std::future<ModifyDBClusterMonitorOutcome> ModifyDBClusterMonitorOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterMonitorRequest&, const ModifyDBClusterMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDBClusterParametersResult> ModifyDBClusterParametersOutcome;
|
||||
typedef std::future<ModifyDBClusterParametersOutcome> ModifyDBClusterParametersOutcomeCallable;
|
||||
typedef std::function<void(const PolardbClient*, const Model::ModifyDBClusterParametersRequest&, const ModifyDBClusterParametersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBClusterParametersAsyncHandler;
|
||||
@@ -377,12 +392,18 @@ 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;
|
||||
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;
|
||||
DescribeDBClusterEndpointsOutcome describeDBClusterEndpoints(const Model::DescribeDBClusterEndpointsRequest &request)const;
|
||||
void describeDBClusterEndpointsAsync(const Model::DescribeDBClusterEndpointsRequest& request, const DescribeDBClusterEndpointsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterEndpointsOutcomeCallable describeDBClusterEndpointsCallable(const Model::DescribeDBClusterEndpointsRequest& request) const;
|
||||
DescribeDBClusterMigrationOutcome describeDBClusterMigration(const Model::DescribeDBClusterMigrationRequest &request)const;
|
||||
void describeDBClusterMigrationAsync(const Model::DescribeDBClusterMigrationRequest& request, const DescribeDBClusterMigrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterMigrationOutcomeCallable describeDBClusterMigrationCallable(const Model::DescribeDBClusterMigrationRequest& request) const;
|
||||
DescribeDBClusterMonitorOutcome describeDBClusterMonitor(const Model::DescribeDBClusterMonitorRequest &request)const;
|
||||
void describeDBClusterMonitorAsync(const Model::DescribeDBClusterMonitorRequest& request, const DescribeDBClusterMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterMonitorOutcomeCallable describeDBClusterMonitorCallable(const Model::DescribeDBClusterMonitorRequest& request) const;
|
||||
DescribeDBClusterParametersOutcome describeDBClusterParameters(const Model::DescribeDBClusterParametersRequest &request)const;
|
||||
void describeDBClusterParametersAsync(const Model::DescribeDBClusterParametersRequest& request, const DescribeDBClusterParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDBClusterParametersOutcomeCallable describeDBClusterParametersCallable(const Model::DescribeDBClusterParametersRequest& request) const;
|
||||
@@ -446,6 +467,9 @@ namespace AlibabaCloud
|
||||
ModifyDBClusterMigrationOutcome modifyDBClusterMigration(const Model::ModifyDBClusterMigrationRequest &request)const;
|
||||
void modifyDBClusterMigrationAsync(const Model::ModifyDBClusterMigrationRequest& request, const ModifyDBClusterMigrationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterMigrationOutcomeCallable modifyDBClusterMigrationCallable(const Model::ModifyDBClusterMigrationRequest& request) const;
|
||||
ModifyDBClusterMonitorOutcome modifyDBClusterMonitor(const Model::ModifyDBClusterMonitorRequest &request)const;
|
||||
void modifyDBClusterMonitorAsync(const Model::ModifyDBClusterMonitorRequest& request, const ModifyDBClusterMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterMonitorOutcomeCallable modifyDBClusterMonitorCallable(const Model::ModifyDBClusterMonitorRequest& request) const;
|
||||
ModifyDBClusterParametersOutcome modifyDBClusterParameters(const Model::ModifyDBClusterParametersRequest &request)const;
|
||||
void modifyDBClusterParametersAsync(const Model::ModifyDBClusterParametersRequest& request, const ModifyDBClusterParametersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDBClusterParametersOutcomeCallable modifyDBClusterParametersCallable(const Model::ModifyDBClusterParametersRequest& request) const;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setDBNodeClass(const std::string& dBNodeClass);
|
||||
std::string getEngine()const;
|
||||
void setEngine(const std::string& engine);
|
||||
std::string getGDNId()const;
|
||||
void setGDNId(const std::string& gDNId);
|
||||
std::string getCreationOption()const;
|
||||
void setCreationOption(const std::string& creationOption);
|
||||
std::string getSourceResourceId()const;
|
||||
@@ -81,6 +83,8 @@ namespace AlibabaCloud
|
||||
void setDBVersion(const std::string& dBVersion);
|
||||
std::string getCloneDataPoint()const;
|
||||
void setCloneDataPoint(const std::string& cloneDataPoint);
|
||||
bool getTDEStatus()const;
|
||||
void setTDEStatus(bool tDEStatus);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
@@ -93,6 +97,7 @@ namespace AlibabaCloud
|
||||
std::string resourceGroupId_;
|
||||
std::string dBNodeClass_;
|
||||
std::string engine_;
|
||||
std::string gDNId_;
|
||||
std::string creationOption_;
|
||||
std::string sourceResourceId_;
|
||||
std::string period_;
|
||||
@@ -108,6 +113,7 @@ namespace AlibabaCloud
|
||||
std::string zoneId_;
|
||||
std::string dBVersion_;
|
||||
std::string cloneDataPoint_;
|
||||
bool tDEStatus_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
@@ -58,6 +60,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string accessKeyId_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_DESCRIBEDBCLUSTERAVAILABLERESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAVAILABLERESOURCESREQUEST_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 DescribeDBClusterAvailableResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDBClusterAvailableResourcesRequest();
|
||||
~DescribeDBClusterAvailableResourcesRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDBNodeClass()const;
|
||||
void setDBNodeClass(const std::string& dBNodeClass);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getDBType()const;
|
||||
void setDBType(const std::string& dBType);
|
||||
std::string getDBVersion()const;
|
||||
void setDBVersion(const std::string& dBVersion);
|
||||
std::string getZoneId()const;
|
||||
void setZoneId(const std::string& zoneId);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string dBNodeClass_;
|
||||
std::string regionId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string dBType_;
|
||||
std::string dBVersion_;
|
||||
std::string zoneId_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAVAILABLERESOURCESREQUEST_H_
|
||||
@@ -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_DESCRIBEDBCLUSTERAVAILABLERESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAVAILABLERESOURCESRESULT_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 DescribeDBClusterAvailableResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AvailableZone
|
||||
{
|
||||
struct SupportedEngine
|
||||
{
|
||||
struct AvailableResource
|
||||
{
|
||||
std::string dBNodeClass;
|
||||
};
|
||||
std::vector<SupportedEngine::AvailableResource> availableResources;
|
||||
std::string engine;
|
||||
};
|
||||
std::string zoneId;
|
||||
std::vector<AvailableZone::SupportedEngine> supportedEngines;
|
||||
std::string regionId;
|
||||
};
|
||||
|
||||
|
||||
DescribeDBClusterAvailableResourcesResult();
|
||||
explicit DescribeDBClusterAvailableResourcesResult(const std::string &payload);
|
||||
~DescribeDBClusterAvailableResourcesResult();
|
||||
std::vector<AvailableZone> getAvailableZones()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<AvailableZone> availableZones_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAVAILABLERESOURCESRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMONITORREQUEST_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 DescribeDBClusterMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDBClusterMonitorRequest();
|
||||
~DescribeDBClusterMonitorRequest();
|
||||
|
||||
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_DESCRIBEDBCLUSTERMONITORREQUEST_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_DESCRIBEDBCLUSTERMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMONITORRESULT_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 DescribeDBClusterMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeDBClusterMonitorResult();
|
||||
explicit DescribeDBClusterMonitorResult(const std::string &payload);
|
||||
~DescribeDBClusterMonitorResult();
|
||||
std::string getPeriod()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string period_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERMONITORRESULT_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getDuration()const;
|
||||
void setDuration(const std::string& duration);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getRenewalStatus()const;
|
||||
@@ -60,6 +62,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string accessKeyId_;
|
||||
std::string duration_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string renewalStatus_;
|
||||
std::string resourceOwnerAccount_;
|
||||
|
||||
@@ -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_MODIFYDBCLUSTERMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMONITORREQUEST_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 ModifyDBClusterMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDBClusterMonitorRequest();
|
||||
~ModifyDBClusterMonitorRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
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 getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string period_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string dBClusterId_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMONITORREQUEST_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_MODIFYDBCLUSTERMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMONITORRESULT_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 ModifyDBClusterMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDBClusterMonitorResult();
|
||||
explicit ModifyDBClusterMonitorResult(const std::string &payload);
|
||||
~ModifyDBClusterMonitorResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERMONITORRESULT_H_
|
||||
@@ -843,6 +843,42 @@ PolardbClient::DescribeDBClusterAttributeOutcomeCallable PolardbClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAvailableResourcesOutcome PolardbClient::describeDBClusterAvailableResources(const DescribeDBClusterAvailableResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBClusterAvailableResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBClusterAvailableResourcesOutcome(DescribeDBClusterAvailableResourcesResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBClusterAvailableResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeDBClusterAvailableResourcesAsync(const DescribeDBClusterAvailableResourcesRequest& request, const DescribeDBClusterAvailableResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBClusterAvailableResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAvailableResourcesOutcomeCallable PolardbClient::describeDBClusterAvailableResourcesCallable(const DescribeDBClusterAvailableResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBClusterAvailableResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBClusterAvailableResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterEndpointsOutcome PolardbClient::describeDBClusterEndpoints(const DescribeDBClusterEndpointsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -915,6 +951,42 @@ PolardbClient::DescribeDBClusterMigrationOutcomeCallable PolardbClient::describe
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterMonitorOutcome PolardbClient::describeDBClusterMonitor(const DescribeDBClusterMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBClusterMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBClusterMonitorOutcome(DescribeDBClusterMonitorResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBClusterMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeDBClusterMonitorAsync(const DescribeDBClusterMonitorRequest& request, const DescribeDBClusterMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBClusterMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterMonitorOutcomeCallable PolardbClient::describeDBClusterMonitorCallable(const DescribeDBClusterMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBClusterMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBClusterMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterParametersOutcome PolardbClient::describeDBClusterParameters(const DescribeDBClusterParametersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1743,42 @@ PolardbClient::ModifyDBClusterMigrationOutcomeCallable PolardbClient::modifyDBCl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterMonitorOutcome PolardbClient::modifyDBClusterMonitor(const ModifyDBClusterMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBClusterMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBClusterMonitorOutcome(ModifyDBClusterMonitorResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBClusterMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::modifyDBClusterMonitorAsync(const ModifyDBClusterMonitorRequest& request, const ModifyDBClusterMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBClusterMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterMonitorOutcomeCallable PolardbClient::modifyDBClusterMonitorCallable(const ModifyDBClusterMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBClusterMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBClusterMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::ModifyDBClusterParametersOutcome PolardbClient::modifyDBClusterParameters(const ModifyDBClusterParametersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -115,6 +115,17 @@ void CreateDBClusterRequest::setEngine(const std::string& engine)
|
||||
setParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getGDNId()const
|
||||
{
|
||||
return gDNId_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setGDNId(const std::string& gDNId)
|
||||
{
|
||||
gDNId_ = gDNId;
|
||||
setParameter("GDNId", gDNId);
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getCreationOption()const
|
||||
{
|
||||
return creationOption_;
|
||||
@@ -280,6 +291,17 @@ void CreateDBClusterRequest::setCloneDataPoint(const std::string& cloneDataPoint
|
||||
setParameter("CloneDataPoint", cloneDataPoint);
|
||||
}
|
||||
|
||||
bool CreateDBClusterRequest::getTDEStatus()const
|
||||
{
|
||||
return tDEStatus_;
|
||||
}
|
||||
|
||||
void CreateDBClusterRequest::setTDEStatus(bool tDEStatus)
|
||||
{
|
||||
tDEStatus_ = tDEStatus;
|
||||
setParameter("TDEStatus", tDEStatus ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDBClusterRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
|
||||
@@ -60,6 +60,17 @@ void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string& access
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeAutoRenewAttributeRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void DescribeAutoRenewAttributeRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string DescribeAutoRenewAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
150
polardb/src/model/DescribeDBClusterAvailableResourcesRequest.cc
Normal file
150
polardb/src/model/DescribeDBClusterAvailableResourcesRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/DescribeDBClusterAvailableResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeDBClusterAvailableResourcesRequest;
|
||||
|
||||
DescribeDBClusterAvailableResourcesRequest::DescribeDBClusterAvailableResourcesRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterAvailableResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBClusterAvailableResourcesRequest::~DescribeDBClusterAvailableResourcesRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBClusterAvailableResourcesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getDBNodeClass()const
|
||||
{
|
||||
return dBNodeClass_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setDBNodeClass(const std::string& dBNodeClass)
|
||||
{
|
||||
dBNodeClass_ = dBNodeClass;
|
||||
setParameter("DBNodeClass", dBNodeClass);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBClusterAvailableResourcesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getDBType()const
|
||||
{
|
||||
return dBType_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setDBType(const std::string& dBType)
|
||||
{
|
||||
dBType_ = dBType;
|
||||
setParameter("DBType", dBType);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getDBVersion()const
|
||||
{
|
||||
return dBVersion_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setDBVersion(const std::string& dBVersion)
|
||||
{
|
||||
dBVersion_ = dBVersion;
|
||||
setParameter("DBVersion", dBVersion);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterAvailableResourcesRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeDBClusterAvailableResourcesResult::DescribeDBClusterAvailableResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBClusterAvailableResourcesResult::DescribeDBClusterAvailableResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBClusterAvailableResourcesResult::~DescribeDBClusterAvailableResourcesResult()
|
||||
{}
|
||||
|
||||
void DescribeDBClusterAvailableResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAvailableZonesNode = value["AvailableZones"]["AvailableZone"];
|
||||
for (auto valueAvailableZonesAvailableZone : allAvailableZonesNode)
|
||||
{
|
||||
AvailableZone availableZonesObject;
|
||||
if(!valueAvailableZonesAvailableZone["RegionId"].isNull())
|
||||
availableZonesObject.regionId = valueAvailableZonesAvailableZone["RegionId"].asString();
|
||||
if(!valueAvailableZonesAvailableZone["ZoneId"].isNull())
|
||||
availableZonesObject.zoneId = valueAvailableZonesAvailableZone["ZoneId"].asString();
|
||||
auto allSupportedEnginesNode = allAvailableZonesNode["SupportedEngines"]["SupportedEngine"];
|
||||
for (auto allAvailableZonesNodeSupportedEnginesSupportedEngine : allSupportedEnginesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine supportedEnginesObject;
|
||||
if(!allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].isNull())
|
||||
supportedEnginesObject.engine = allAvailableZonesNodeSupportedEnginesSupportedEngine["Engine"].asString();
|
||||
auto allAvailableResourcesNode = allSupportedEnginesNode["AvailableResources"]["AvailableResource"];
|
||||
for (auto allSupportedEnginesNodeAvailableResourcesAvailableResource : allAvailableResourcesNode)
|
||||
{
|
||||
AvailableZone::SupportedEngine::AvailableResource availableResourcesObject;
|
||||
if(!allSupportedEnginesNodeAvailableResourcesAvailableResource["DBNodeClass"].isNull())
|
||||
availableResourcesObject.dBNodeClass = allSupportedEnginesNodeAvailableResourcesAvailableResource["DBNodeClass"].asString();
|
||||
supportedEnginesObject.availableResources.push_back(availableResourcesObject);
|
||||
}
|
||||
availableZonesObject.supportedEngines.push_back(supportedEnginesObject);
|
||||
}
|
||||
availableZones_.push_back(availableZonesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBClusterAvailableResourcesResult::AvailableZone> DescribeDBClusterAvailableResourcesResult::getAvailableZones()const
|
||||
{
|
||||
return availableZones_;
|
||||
}
|
||||
|
||||
95
polardb/src/model/DescribeDBClusterMonitorRequest.cc
Normal file
95
polardb/src/model/DescribeDBClusterMonitorRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeDBClusterMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeDBClusterMonitorRequest;
|
||||
|
||||
DescribeDBClusterMonitorRequest::DescribeDBClusterMonitorRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBClusterMonitorRequest::~DescribeDBClusterMonitorRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBClusterMonitorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterMonitorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterMonitorRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterMonitorRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterMonitorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterMonitorRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterMonitorRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterMonitorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterMonitorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBClusterMonitorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBClusterMonitorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
polardb/src/model/DescribeDBClusterMonitorResult.cc
Normal file
51
polardb/src/model/DescribeDBClusterMonitorResult.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/polardb/model/DescribeDBClusterMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeDBClusterMonitorResult::DescribeDBClusterMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBClusterMonitorResult::DescribeDBClusterMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBClusterMonitorResult::~DescribeDBClusterMonitorResult()
|
||||
{}
|
||||
|
||||
void DescribeDBClusterMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Period"].isNull())
|
||||
period_ = value["Period"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBClusterMonitorResult::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
@@ -60,6 +60,17 @@ void ModifyAutoRenewAttributeRequest::setDuration(const std::string& duration)
|
||||
setParameter("Duration", duration);
|
||||
}
|
||||
|
||||
std::string ModifyAutoRenewAttributeRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void ModifyAutoRenewAttributeRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
std::string ModifyAutoRenewAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
|
||||
106
polardb/src/model/ModifyDBClusterMonitorRequest.cc
Normal file
106
polardb/src/model/ModifyDBClusterMonitorRequest.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/ModifyDBClusterMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::ModifyDBClusterMonitorRequest;
|
||||
|
||||
ModifyDBClusterMonitorRequest::ModifyDBClusterMonitorRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBClusterMonitorRequest::~ModifyDBClusterMonitorRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBClusterMonitorRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setPeriod(const std::string& period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", period);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string ModifyDBClusterMonitorRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBClusterMonitorRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBClusterMonitorRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = 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);
|
||||
}
|
||||
|
||||
44
polardb/src/model/ModifyDBClusterMonitorResult.cc
Normal file
44
polardb/src/model/ModifyDBClusterMonitorResult.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/ModifyDBClusterMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
ModifyDBClusterMonitorResult::ModifyDBClusterMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBClusterMonitorResult::ModifyDBClusterMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBClusterMonitorResult::~ModifyDBClusterMonitorResult()
|
||||
{}
|
||||
|
||||
void ModifyDBClusterMonitorResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user