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

@@ -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_