Generated 2017-08-01 for polardb.

This commit is contained in:
sdk-team
2023-03-02 03:38:53 +00:00
parent 60e29b9949
commit 430d7d44dc
21 changed files with 469 additions and 340 deletions

View File

@@ -1 +1 @@
1.36.1475
1.36.1476

View File

@@ -175,10 +175,10 @@ set(polardb_public_header_model
include/alibabacloud/polardb/model/DescribeSlowLogRecordsResult.h
include/alibabacloud/polardb/model/DescribeSlowLogsRequest.h
include/alibabacloud/polardb/model/DescribeSlowLogsResult.h
include/alibabacloud/polardb/model/DescribeStoragePlanRequest.h
include/alibabacloud/polardb/model/DescribeStoragePlanResult.h
include/alibabacloud/polardb/model/DescribeTasksRequest.h
include/alibabacloud/polardb/model/DescribeTasksResult.h
include/alibabacloud/polardb/model/DescribeVSwitchesRequest.h
include/alibabacloud/polardb/model/DescribeVSwitchesResult.h
include/alibabacloud/polardb/model/EnableFirewallRulesRequest.h
include/alibabacloud/polardb/model/EnableFirewallRulesResult.h
include/alibabacloud/polardb/model/EvaluateRegionResourceRequest.h
@@ -436,10 +436,10 @@ set(polardb_src
src/model/DescribeSlowLogRecordsResult.cc
src/model/DescribeSlowLogsRequest.cc
src/model/DescribeSlowLogsResult.cc
src/model/DescribeStoragePlanRequest.cc
src/model/DescribeStoragePlanResult.cc
src/model/DescribeTasksRequest.cc
src/model/DescribeTasksResult.cc
src/model/DescribeVSwitchesRequest.cc
src/model/DescribeVSwitchesResult.cc
src/model/EnableFirewallRulesRequest.cc
src/model/EnableFirewallRulesResult.cc
src/model/EvaluateRegionResourceRequest.cc

View File

@@ -176,10 +176,10 @@
#include "model/DescribeSlowLogRecordsResult.h"
#include "model/DescribeSlowLogsRequest.h"
#include "model/DescribeSlowLogsResult.h"
#include "model/DescribeStoragePlanRequest.h"
#include "model/DescribeStoragePlanResult.h"
#include "model/DescribeTasksRequest.h"
#include "model/DescribeTasksResult.h"
#include "model/DescribeVSwitchesRequest.h"
#include "model/DescribeVSwitchesResult.h"
#include "model/EnableFirewallRulesRequest.h"
#include "model/EnableFirewallRulesResult.h"
#include "model/EvaluateRegionResourceRequest.h"
@@ -520,12 +520,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeSlowLogsResult> DescribeSlowLogsOutcome;
typedef std::future<DescribeSlowLogsOutcome> DescribeSlowLogsOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeSlowLogsRequest&, const DescribeSlowLogsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSlowLogsAsyncHandler;
typedef Outcome<Error, Model::DescribeStoragePlanResult> DescribeStoragePlanOutcome;
typedef std::future<DescribeStoragePlanOutcome> DescribeStoragePlanOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeStoragePlanRequest&, const DescribeStoragePlanOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeStoragePlanAsyncHandler;
typedef Outcome<Error, Model::DescribeTasksResult> DescribeTasksOutcome;
typedef std::future<DescribeTasksOutcome> DescribeTasksOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeTasksRequest&, const DescribeTasksOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeTasksAsyncHandler;
typedef Outcome<Error, Model::DescribeVSwitchesResult> DescribeVSwitchesOutcome;
typedef std::future<DescribeVSwitchesOutcome> DescribeVSwitchesOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeVSwitchesRequest&, const DescribeVSwitchesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVSwitchesAsyncHandler;
typedef Outcome<Error, Model::EnableFirewallRulesResult> EnableFirewallRulesOutcome;
typedef std::future<EnableFirewallRulesOutcome> EnableFirewallRulesOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::EnableFirewallRulesRequest&, const EnableFirewallRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableFirewallRulesAsyncHandler;
@@ -912,12 +912,12 @@ namespace AlibabaCloud
DescribeSlowLogsOutcome describeSlowLogs(const Model::DescribeSlowLogsRequest &request)const;
void describeSlowLogsAsync(const Model::DescribeSlowLogsRequest& request, const DescribeSlowLogsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSlowLogsOutcomeCallable describeSlowLogsCallable(const Model::DescribeSlowLogsRequest& request) const;
DescribeStoragePlanOutcome describeStoragePlan(const Model::DescribeStoragePlanRequest &request)const;
void describeStoragePlanAsync(const Model::DescribeStoragePlanRequest& request, const DescribeStoragePlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeStoragePlanOutcomeCallable describeStoragePlanCallable(const Model::DescribeStoragePlanRequest& request) const;
DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const;
void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const;
DescribeVSwitchesOutcome describeVSwitches(const Model::DescribeVSwitchesRequest &request)const;
void describeVSwitchesAsync(const Model::DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVSwitchesOutcomeCallable describeVSwitchesCallable(const Model::DescribeVSwitchesRequest& request) const;
EnableFirewallRulesOutcome enableFirewallRules(const Model::EnableFirewallRulesRequest &request)const;
void enableFirewallRulesAsync(const Model::EnableFirewallRulesRequest& request, const EnableFirewallRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableFirewallRulesOutcomeCallable enableFirewallRulesCallable(const Model::EnableFirewallRulesRequest& request) const;

View File

@@ -70,6 +70,8 @@ public:
void setDBMinorVersion(const std::string &dBMinorVersion);
bool getAutoRenew() const;
void setAutoRenew(bool autoRenew);
std::string getHotStandbyCluster() const;
void setHotStandbyCluster(const std::string &hotStandbyCluster);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
bool getTDEStatus() const;
@@ -114,6 +116,8 @@ public:
void setCloneDataPoint(const std::string &cloneDataPoint);
std::string getPayType() const;
void setPayType(const std::string &payType);
long getStorageSpace() const;
void setStorageSpace(long storageSpace);
std::string getServerlessType() const;
void setServerlessType(const std::string &serverlessType);
@@ -136,6 +140,7 @@ private:
std::string securityIPList_;
std::string dBMinorVersion_;
bool autoRenew_;
std::string hotStandbyCluster_;
std::string zoneId_;
bool tDEStatus_;
std::string allowShutDown_;
@@ -158,6 +163,7 @@ private:
std::string dBVersion_;
std::string cloneDataPoint_;
std::string payType_;
long storageSpace_;
std::string serverlessType_;
};
} // namespace Model

View File

@@ -35,13 +35,19 @@ namespace AlibabaCloud
struct ItemsItem
{
std::string classTypeLevel;
std::string classCode;
std::string maxConnections;
std::string classGroup;
std::string pl2MaxIOPS;
std::string pl3MaxIOPS;
std::string cpu;
std::string memoryClass;
std::string referencePrice;
std::string maxIOPS;
std::string classCode;
std::string psl4MaxIOPS;
std::string classGroup;
std::string psl5MaxIOPS;
std::string pl1MaxIOPS;
std::string memoryClass;
std::string maxStorageCapacity;
};

View File

@@ -44,6 +44,7 @@ namespace AlibabaCloud
std::string characterSetName;
std::string dBDescription;
std::string dBName;
std::string masterID;
std::string dBStatus;
std::vector<Database::Account> accounts;
std::string engine;

View File

@@ -76,7 +76,9 @@ namespace AlibabaCloud
std::string getGDNStatus()const;
std::string getDBVersion()const;
std::string getGDNId()const;
std::string getResourceGroupId()const;
std::string getCreateTime()const;
std::string getDBClusterId()const;
std::string getDBType()const;
std::string getGDNDescription()const;
std::vector<DBCluster> getDBClusters()const;
@@ -88,7 +90,9 @@ namespace AlibabaCloud
std::string gDNStatus_;
std::string dBVersion_;
std::string gDNId_;
std::string resourceGroupId_;
std::string createTime_;
std::string dBClusterId_;
std::string dBType_;
std::string gDNDescription_;
std::vector<DBCluster> dBClusters_;

View File

@@ -38,6 +38,8 @@ public:
void setAccessKeyId(const std::string &accessKeyId);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getFilterRegion() const;
void setFilterRegion(const std::string &filterRegion);
std::string getSecurityToken() const;
void setSecurityToken(const std::string &securityToken);
std::string getGDNId() const;
@@ -60,6 +62,7 @@ private:
int pageNumber_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string filterRegion_;
std::string securityToken_;
std::string gDNId_;
int pageSize_;

View File

@@ -1,75 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESTORAGEPLANRESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESTORAGEPLANRESULT_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 DescribeStoragePlanResult : public ServiceResult
{
public:
struct DescribeStoragePlanResponses
{
std::string status;
std::string storageType;
std::string instanceId;
std::string initCapaCityViewUnit;
std::string startTimes;
std::string prodCode;
std::string initCapacityViewValue;
std::string purchaseTimes;
std::string periodTime;
std::string periodCapacityViewValue;
std::string commodityCode;
std::string templateName;
std::string periodCapaCityViewUnit;
std::string aliUid;
std::string endTimes;
};
DescribeStoragePlanResult();
explicit DescribeStoragePlanResult(const std::string &payload);
~DescribeStoragePlanResult();
long getTotalRecordCount()const;
long getPageSize()const;
long getPageNumber()const;
std::vector<DescribeStoragePlanResponses> getItems()const;
protected:
void parse(const std::string &payload);
private:
long totalRecordCount_;
long pageSize_;
long pageNumber_;
std::vector<DescribeStoragePlanResponses> items_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESTORAGEPLANRESULT_H_

View File

@@ -14,8 +14,8 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBESTORAGEPLANREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBESTORAGEPLANREQUEST_H_
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHESREQUEST_H_
#include <alibabacloud/polardb/PolardbExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
@@ -26,10 +26,10 @@
namespace AlibabaCloud {
namespace Polardb {
namespace Model {
class ALIBABACLOUD_POLARDB_EXPORT DescribeStoragePlanRequest : public RpcServiceRequest {
class ALIBABACLOUD_POLARDB_EXPORT DescribeVSwitchesRequest : public RpcServiceRequest {
public:
DescribeStoragePlanRequest();
~DescribeStoragePlanRequest();
DescribeVSwitchesRequest();
~DescribeVSwitchesRequest();
long getResourceOwnerId() const;
void setResourceOwnerId(long resourceOwnerId);
int getPageNumber() const;
@@ -38,26 +38,41 @@ public:
void setAccessKeyId(const std::string &accessKeyId);
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getSecurityToken() const;
void setSecurityToken(const std::string &securityToken);
std::string getRegionId() const;
void setRegionId(const std::string &regionId);
int getPageSize() const;
void setPageSize(int pageSize);
std::string getDedicatedHostGroupId() const;
void setDedicatedHostGroupId(const std::string &dedicatedHostGroupId);
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 getVpcId() const;
void setVpcId(const std::string &vpcId);
std::string getZoneId() const;
void setZoneId(const std::string &zoneId);
private:
long resourceOwnerId_;
int pageNumber_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string securityToken_;
std::string regionId_;
int pageSize_;
std::string dedicatedHostGroupId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
std::string vpcId_;
std::string zoneId_;
};
} // namespace Model
} // namespace Polardb
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBESTORAGEPLANREQUEST_H_
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHESREQUEST_H_

View File

@@ -0,0 +1,73 @@
/*
* 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_DESCRIBEVSWITCHESRESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHESRESULT_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 DescribeVSwitchesResult : public ServiceResult
{
public:
struct VSwitch
{
bool isDefault;
std::string status;
std::string regionNo;
std::string description;
std::string vSwitchId;
long availableIpAddressCount;
std::string gmtModified;
std::string cidrBlock;
std::string izNo;
std::string gmtCreate;
std::string vSwitchName;
std::string bid;
std::string aliUid;
};
DescribeVSwitchesResult();
explicit DescribeVSwitchesResult(const std::string &payload);
~DescribeVSwitchesResult();
std::vector<VSwitch> getVSwitchs()const;
int getTotalCount()const;
int getPageSize()const;
int getPageNumber()const;
protected:
void parse(const std::string &payload);
private:
std::vector<VSwitch> vSwitchs_;
int totalCount_;
int pageSize_;
int pageNumber_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEVSWITCHESRESULT_H_

View File

@@ -2823,42 +2823,6 @@ PolardbClient::DescribeSlowLogsOutcomeCallable PolardbClient::describeSlowLogsCa
return task->get_future();
}
PolardbClient::DescribeStoragePlanOutcome PolardbClient::describeStoragePlan(const DescribeStoragePlanRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeStoragePlanOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeStoragePlanOutcome(DescribeStoragePlanResult(outcome.result()));
else
return DescribeStoragePlanOutcome(outcome.error());
}
void PolardbClient::describeStoragePlanAsync(const DescribeStoragePlanRequest& request, const DescribeStoragePlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeStoragePlan(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::DescribeStoragePlanOutcomeCallable PolardbClient::describeStoragePlanCallable(const DescribeStoragePlanRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeStoragePlanOutcome()>>(
[this, request]()
{
return this->describeStoragePlan(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::DescribeTasksOutcome PolardbClient::describeTasks(const DescribeTasksRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2895,6 +2859,42 @@ PolardbClient::DescribeTasksOutcomeCallable PolardbClient::describeTasksCallable
return task->get_future();
}
PolardbClient::DescribeVSwitchesOutcome PolardbClient::describeVSwitches(const DescribeVSwitchesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVSwitchesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVSwitchesOutcome(DescribeVSwitchesResult(outcome.result()));
else
return DescribeVSwitchesOutcome(outcome.error());
}
void PolardbClient::describeVSwitchesAsync(const DescribeVSwitchesRequest& request, const DescribeVSwitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVSwitches(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::DescribeVSwitchesOutcomeCallable PolardbClient::describeVSwitchesCallable(const DescribeVSwitchesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVSwitchesOutcome()>>(
[this, request]()
{
return this->describeVSwitches(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::EnableFirewallRulesOutcome PolardbClient::enableFirewallRules(const EnableFirewallRulesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -192,6 +192,15 @@ void CreateDBClusterRequest::setAutoRenew(bool autoRenew) {
setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false");
}
std::string CreateDBClusterRequest::getHotStandbyCluster() const {
return hotStandbyCluster_;
}
void CreateDBClusterRequest::setHotStandbyCluster(const std::string &hotStandbyCluster) {
hotStandbyCluster_ = hotStandbyCluster;
setParameter(std::string("HotStandbyCluster"), hotStandbyCluster);
}
std::string CreateDBClusterRequest::getZoneId() const {
return zoneId_;
}
@@ -390,6 +399,15 @@ void CreateDBClusterRequest::setPayType(const std::string &payType) {
setParameter(std::string("PayType"), payType);
}
long CreateDBClusterRequest::getStorageSpace() const {
return storageSpace_;
}
void CreateDBClusterRequest::setStorageSpace(long storageSpace) {
storageSpace_ = storageSpace;
setParameter(std::string("StorageSpace"), std::to_string(storageSpace));
}
std::string CreateDBClusterRequest::getServerlessType() const {
return serverlessType_;
}

View File

@@ -43,8 +43,8 @@ void DescribeClassListResult::parse(const std::string &payload)
for (auto valueItemsItemsItem : allItemsNode)
{
ItemsItem itemsObject;
if(!valueItemsItemsItem["MaxIOPS"].isNull())
itemsObject.maxIOPS = valueItemsItemsItem["MaxIOPS"].asString();
if(!valueItemsItemsItem["Psl4MaxIOPS"].isNull())
itemsObject.psl4MaxIOPS = valueItemsItemsItem["Psl4MaxIOPS"].asString();
if(!valueItemsItemsItem["ClassTypeLevel"].isNull())
itemsObject.classTypeLevel = valueItemsItemsItem["ClassTypeLevel"].asString();
if(!valueItemsItemsItem["Cpu"].isNull())
@@ -59,6 +59,18 @@ void DescribeClassListResult::parse(const std::string &payload)
itemsObject.classCode = valueItemsItemsItem["ClassCode"].asString();
if(!valueItemsItemsItem["ClassGroup"].isNull())
itemsObject.classGroup = valueItemsItemsItem["ClassGroup"].asString();
if(!valueItemsItemsItem["Psl5MaxIOPS"].isNull())
itemsObject.psl5MaxIOPS = valueItemsItemsItem["Psl5MaxIOPS"].asString();
if(!valueItemsItemsItem["MaxIOPS"].isNull())
itemsObject.maxIOPS = valueItemsItemsItem["MaxIOPS"].asString();
if(!valueItemsItemsItem["MaxStorageCapacity"].isNull())
itemsObject.maxStorageCapacity = valueItemsItemsItem["MaxStorageCapacity"].asString();
if(!valueItemsItemsItem["Pl1MaxIOPS"].isNull())
itemsObject.pl1MaxIOPS = valueItemsItemsItem["Pl1MaxIOPS"].asString();
if(!valueItemsItemsItem["Pl2MaxIOPS"].isNull())
itemsObject.pl2MaxIOPS = valueItemsItemsItem["Pl2MaxIOPS"].asString();
if(!valueItemsItemsItem["Pl3MaxIOPS"].isNull())
itemsObject.pl3MaxIOPS = valueItemsItemsItem["Pl3MaxIOPS"].asString();
items_.push_back(itemsObject);
}
if(!value["RegionId"].isNull())

View File

@@ -51,6 +51,8 @@ void DescribeDatabasesResult::parse(const std::string &payload)
databasesObject.dBName = valueDatabasesDatabase["DBName"].asString();
if(!valueDatabasesDatabase["Engine"].isNull())
databasesObject.engine = valueDatabasesDatabase["Engine"].asString();
if(!valueDatabasesDatabase["MasterID"].isNull())
databasesObject.masterID = valueDatabasesDatabase["MasterID"].asString();
if(!valueDatabasesDatabase["CharacterSetName"].isNull())
databasesObject.characterSetName = valueDatabasesDatabase["CharacterSetName"].asString();
auto allAccountsNode = valueDatabasesDatabase["Accounts"]["Account"];

View File

@@ -119,6 +119,10 @@ void DescribeGlobalDatabaseNetworkResult::parse(const std::string &payload)
dBType_ = value["DBType"].asString();
if(!value["GDNDescription"].isNull())
gDNDescription_ = value["GDNDescription"].asString();
if(!value["DBClusterId"].isNull())
dBClusterId_ = value["DBClusterId"].asString();
if(!value["ResourceGroupId"].isNull())
resourceGroupId_ = value["ResourceGroupId"].asString();
}
@@ -142,11 +146,21 @@ std::string DescribeGlobalDatabaseNetworkResult::getGDNId()const
return gDNId_;
}
std::string DescribeGlobalDatabaseNetworkResult::getResourceGroupId()const
{
return resourceGroupId_;
}
std::string DescribeGlobalDatabaseNetworkResult::getCreateTime()const
{
return createTime_;
}
std::string DescribeGlobalDatabaseNetworkResult::getDBClusterId()const
{
return dBClusterId_;
}
std::string DescribeGlobalDatabaseNetworkResult::getDBType()const
{
return dBType_;

View File

@@ -61,6 +61,15 @@ void DescribeGlobalDatabaseNetworksRequest::setResourceGroupId(const std::string
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeGlobalDatabaseNetworksRequest::getFilterRegion() const {
return filterRegion_;
}
void DescribeGlobalDatabaseNetworksRequest::setFilterRegion(const std::string &filterRegion) {
filterRegion_ = filterRegion;
setParameter(std::string("FilterRegion"), filterRegion);
}
std::string DescribeGlobalDatabaseNetworksRequest::getSecurityToken() const {
return securityToken_;
}

View File

@@ -1,99 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/polardb/model/DescribeStoragePlanRequest.h>
using AlibabaCloud::Polardb::Model::DescribeStoragePlanRequest;
DescribeStoragePlanRequest::DescribeStoragePlanRequest()
: RpcServiceRequest("polardb", "2017-08-01", "DescribeStoragePlan") {
setMethod(HttpRequest::Method::Post);
}
DescribeStoragePlanRequest::~DescribeStoragePlanRequest() {}
long DescribeStoragePlanRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeStoragePlanRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
int DescribeStoragePlanRequest::getPageNumber() const {
return pageNumber_;
}
void DescribeStoragePlanRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeStoragePlanRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DescribeStoragePlanRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribeStoragePlanRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeStoragePlanRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
int DescribeStoragePlanRequest::getPageSize() const {
return pageSize_;
}
void DescribeStoragePlanRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeStoragePlanRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeStoragePlanRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DescribeStoragePlanRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DescribeStoragePlanRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long DescribeStoragePlanRequest::getOwnerId() const {
return ownerId_;
}
void DescribeStoragePlanRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/polardb/model/DescribeStoragePlanResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Polardb;
using namespace AlibabaCloud::Polardb::Model;
DescribeStoragePlanResult::DescribeStoragePlanResult() :
ServiceResult()
{}
DescribeStoragePlanResult::DescribeStoragePlanResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeStoragePlanResult::~DescribeStoragePlanResult()
{}
void DescribeStoragePlanResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItemsNode = value["Items"]["DescribeStoragePlanResponses"];
for (auto valueItemsDescribeStoragePlanResponses : allItemsNode)
{
DescribeStoragePlanResponses itemsObject;
if(!valueItemsDescribeStoragePlanResponses["ProdCode"].isNull())
itemsObject.prodCode = valueItemsDescribeStoragePlanResponses["ProdCode"].asString();
if(!valueItemsDescribeStoragePlanResponses["AliUid"].isNull())
itemsObject.aliUid = valueItemsDescribeStoragePlanResponses["AliUid"].asString();
if(!valueItemsDescribeStoragePlanResponses["CommodityCode"].isNull())
itemsObject.commodityCode = valueItemsDescribeStoragePlanResponses["CommodityCode"].asString();
if(!valueItemsDescribeStoragePlanResponses["TemplateName"].isNull())
itemsObject.templateName = valueItemsDescribeStoragePlanResponses["TemplateName"].asString();
if(!valueItemsDescribeStoragePlanResponses["StorageType"].isNull())
itemsObject.storageType = valueItemsDescribeStoragePlanResponses["StorageType"].asString();
if(!valueItemsDescribeStoragePlanResponses["Status"].isNull())
itemsObject.status = valueItemsDescribeStoragePlanResponses["Status"].asString();
if(!valueItemsDescribeStoragePlanResponses["StartTimes"].isNull())
itemsObject.startTimes = valueItemsDescribeStoragePlanResponses["StartTimes"].asString();
if(!valueItemsDescribeStoragePlanResponses["EndTimes"].isNull())
itemsObject.endTimes = valueItemsDescribeStoragePlanResponses["EndTimes"].asString();
if(!valueItemsDescribeStoragePlanResponses["PurchaseTimes"].isNull())
itemsObject.purchaseTimes = valueItemsDescribeStoragePlanResponses["PurchaseTimes"].asString();
if(!valueItemsDescribeStoragePlanResponses["InstanceId"].isNull())
itemsObject.instanceId = valueItemsDescribeStoragePlanResponses["InstanceId"].asString();
if(!valueItemsDescribeStoragePlanResponses["InitCapacityViewValue"].isNull())
itemsObject.initCapacityViewValue = valueItemsDescribeStoragePlanResponses["InitCapacityViewValue"].asString();
if(!valueItemsDescribeStoragePlanResponses["InitCapaCityViewUnit"].isNull())
itemsObject.initCapaCityViewUnit = valueItemsDescribeStoragePlanResponses["InitCapaCityViewUnit"].asString();
if(!valueItemsDescribeStoragePlanResponses["PeriodCapacityViewValue"].isNull())
itemsObject.periodCapacityViewValue = valueItemsDescribeStoragePlanResponses["PeriodCapacityViewValue"].asString();
if(!valueItemsDescribeStoragePlanResponses["PeriodCapaCityViewUnit"].isNull())
itemsObject.periodCapaCityViewUnit = valueItemsDescribeStoragePlanResponses["PeriodCapaCityViewUnit"].asString();
if(!valueItemsDescribeStoragePlanResponses["PeriodTime"].isNull())
itemsObject.periodTime = valueItemsDescribeStoragePlanResponses["PeriodTime"].asString();
items_.push_back(itemsObject);
}
if(!value["TotalRecordCount"].isNull())
totalRecordCount_ = std::stol(value["TotalRecordCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
}
long DescribeStoragePlanResult::getTotalRecordCount()const
{
return totalRecordCount_;
}
long DescribeStoragePlanResult::getPageSize()const
{
return pageSize_;
}
long DescribeStoragePlanResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<DescribeStoragePlanResult::DescribeStoragePlanResponses> DescribeStoragePlanResult::getItems()const
{
return items_;
}

View File

@@ -0,0 +1,144 @@
/*
* 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/DescribeVSwitchesRequest.h>
using AlibabaCloud::Polardb::Model::DescribeVSwitchesRequest;
DescribeVSwitchesRequest::DescribeVSwitchesRequest()
: RpcServiceRequest("polardb", "2017-08-01", "DescribeVSwitches") {
setMethod(HttpRequest::Method::Post);
}
DescribeVSwitchesRequest::~DescribeVSwitchesRequest() {}
long DescribeVSwitchesRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeVSwitchesRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
int DescribeVSwitchesRequest::getPageNumber() const {
return pageNumber_;
}
void DescribeVSwitchesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string DescribeVSwitchesRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DescribeVSwitchesRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DescribeVSwitchesRequest::getResourceGroupId() const {
return resourceGroupId_;
}
void DescribeVSwitchesRequest::setResourceGroupId(const std::string &resourceGroupId) {
resourceGroupId_ = resourceGroupId;
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string DescribeVSwitchesRequest::getSecurityToken() const {
return securityToken_;
}
void DescribeVSwitchesRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string DescribeVSwitchesRequest::getRegionId() const {
return regionId_;
}
void DescribeVSwitchesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
int DescribeVSwitchesRequest::getPageSize() const {
return pageSize_;
}
void DescribeVSwitchesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string DescribeVSwitchesRequest::getDedicatedHostGroupId() const {
return dedicatedHostGroupId_;
}
void DescribeVSwitchesRequest::setDedicatedHostGroupId(const std::string &dedicatedHostGroupId) {
dedicatedHostGroupId_ = dedicatedHostGroupId;
setParameter(std::string("DedicatedHostGroupId"), dedicatedHostGroupId);
}
std::string DescribeVSwitchesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeVSwitchesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DescribeVSwitchesRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DescribeVSwitchesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long DescribeVSwitchesRequest::getOwnerId() const {
return ownerId_;
}
void DescribeVSwitchesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string DescribeVSwitchesRequest::getVpcId() const {
return vpcId_;
}
void DescribeVSwitchesRequest::setVpcId(const std::string &vpcId) {
vpcId_ = vpcId;
setParameter(std::string("VpcId"), vpcId);
}
std::string DescribeVSwitchesRequest::getZoneId() const {
return zoneId_;
}
void DescribeVSwitchesRequest::setZoneId(const std::string &zoneId) {
zoneId_ = zoneId;
setParameter(std::string("ZoneId"), zoneId);
}

View File

@@ -0,0 +1,102 @@
/*
* 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/DescribeVSwitchesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Polardb;
using namespace AlibabaCloud::Polardb::Model;
DescribeVSwitchesResult::DescribeVSwitchesResult() :
ServiceResult()
{}
DescribeVSwitchesResult::DescribeVSwitchesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVSwitchesResult::~DescribeVSwitchesResult()
{}
void DescribeVSwitchesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVSwitchsNode = value["VSwitchs"]["VSwitch"];
for (auto valueVSwitchsVSwitch : allVSwitchsNode)
{
VSwitch vSwitchsObject;
if(!valueVSwitchsVSwitch["AliUid"].isNull())
vSwitchsObject.aliUid = valueVSwitchsVSwitch["AliUid"].asString();
if(!valueVSwitchsVSwitch["Bid"].isNull())
vSwitchsObject.bid = valueVSwitchsVSwitch["Bid"].asString();
if(!valueVSwitchsVSwitch["CidrBlock"].isNull())
vSwitchsObject.cidrBlock = valueVSwitchsVSwitch["CidrBlock"].asString();
if(!valueVSwitchsVSwitch["Description"].isNull())
vSwitchsObject.description = valueVSwitchsVSwitch["Description"].asString();
if(!valueVSwitchsVSwitch["GmtCreate"].isNull())
vSwitchsObject.gmtCreate = valueVSwitchsVSwitch["GmtCreate"].asString();
if(!valueVSwitchsVSwitch["GmtModified"].isNull())
vSwitchsObject.gmtModified = valueVSwitchsVSwitch["GmtModified"].asString();
if(!valueVSwitchsVSwitch["IsDefault"].isNull())
vSwitchsObject.isDefault = valueVSwitchsVSwitch["IsDefault"].asString() == "true";
if(!valueVSwitchsVSwitch["IzNo"].isNull())
vSwitchsObject.izNo = valueVSwitchsVSwitch["IzNo"].asString();
if(!valueVSwitchsVSwitch["RegionNo"].isNull())
vSwitchsObject.regionNo = valueVSwitchsVSwitch["RegionNo"].asString();
if(!valueVSwitchsVSwitch["Status"].isNull())
vSwitchsObject.status = valueVSwitchsVSwitch["Status"].asString();
if(!valueVSwitchsVSwitch["VSwitchId"].isNull())
vSwitchsObject.vSwitchId = valueVSwitchsVSwitch["VSwitchId"].asString();
if(!valueVSwitchsVSwitch["VSwitchName"].isNull())
vSwitchsObject.vSwitchName = valueVSwitchsVSwitch["VSwitchName"].asString();
if(!valueVSwitchsVSwitch["AvailableIpAddressCount"].isNull())
vSwitchsObject.availableIpAddressCount = std::stol(valueVSwitchsVSwitch["AvailableIpAddressCount"].asString());
vSwitchs_.push_back(vSwitchsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
std::vector<DescribeVSwitchesResult::VSwitch> DescribeVSwitchesResult::getVSwitchs()const
{
return vSwitchs_;
}
int DescribeVSwitchesResult::getTotalCount()const
{
return totalCount_;
}
int DescribeVSwitchesResult::getPageSize()const
{
return pageSize_;
}
int DescribeVSwitchesResult::getPageNumber()const
{
return pageNumber_;
}