Fix some bugs.

This commit is contained in:
sdk-team
2022-01-26 08:53:12 +00:00
parent 7e07a62c24
commit d68d8044d3
25 changed files with 1242 additions and 21 deletions

View File

@@ -1,3 +1,6 @@
2022-01-26 Version: 1.36.1044
- Fix some bugs.
2022-01-25 Version: 1.36.1043
- Create Lindorm Open api.

View File

@@ -1 +1 @@
1.36.1043
1.36.1044

View File

@@ -121,6 +121,8 @@ set(polardb_public_header_model
include/alibabacloud/polardb/model/DescribeDBLinksResult.h
include/alibabacloud/polardb/model/DescribeDBNodePerformanceRequest.h
include/alibabacloud/polardb/model/DescribeDBNodePerformanceResult.h
include/alibabacloud/polardb/model/DescribeDBProxyPerformanceRequest.h
include/alibabacloud/polardb/model/DescribeDBProxyPerformanceResult.h
include/alibabacloud/polardb/model/DescribeDatabasesRequest.h
include/alibabacloud/polardb/model/DescribeDatabasesResult.h
include/alibabacloud/polardb/model/DescribeDetachedBackupsRequest.h
@@ -163,6 +165,8 @@ set(polardb_public_header_model
include/alibabacloud/polardb/model/GrantAccountPrivilegeResult.h
include/alibabacloud/polardb/model/ListTagResourcesRequest.h
include/alibabacloud/polardb/model/ListTagResourcesResult.h
include/alibabacloud/polardb/model/ListTagResourcesForRegionRequest.h
include/alibabacloud/polardb/model/ListTagResourcesForRegionResult.h
include/alibabacloud/polardb/model/ModifyAccountDescriptionRequest.h
include/alibabacloud/polardb/model/ModifyAccountDescriptionResult.h
include/alibabacloud/polardb/model/ModifyAccountPasswordRequest.h
@@ -199,6 +203,8 @@ set(polardb_public_header_model
include/alibabacloud/polardb/model/ModifyDBEndpointAddressResult.h
include/alibabacloud/polardb/model/ModifyDBNodeClassRequest.h
include/alibabacloud/polardb/model/ModifyDBNodeClassResult.h
include/alibabacloud/polardb/model/ModifyDBNodeHotReplicaModeRequest.h
include/alibabacloud/polardb/model/ModifyDBNodeHotReplicaModeResult.h
include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkRequest.h
include/alibabacloud/polardb/model/ModifyGlobalDatabaseNetworkResult.h
include/alibabacloud/polardb/model/ModifyLogBackupPolicyRequest.h
@@ -332,6 +338,8 @@ set(polardb_src
src/model/DescribeDBLinksResult.cc
src/model/DescribeDBNodePerformanceRequest.cc
src/model/DescribeDBNodePerformanceResult.cc
src/model/DescribeDBProxyPerformanceRequest.cc
src/model/DescribeDBProxyPerformanceResult.cc
src/model/DescribeDatabasesRequest.cc
src/model/DescribeDatabasesResult.cc
src/model/DescribeDetachedBackupsRequest.cc
@@ -374,6 +382,8 @@ set(polardb_src
src/model/GrantAccountPrivilegeResult.cc
src/model/ListTagResourcesRequest.cc
src/model/ListTagResourcesResult.cc
src/model/ListTagResourcesForRegionRequest.cc
src/model/ListTagResourcesForRegionResult.cc
src/model/ModifyAccountDescriptionRequest.cc
src/model/ModifyAccountDescriptionResult.cc
src/model/ModifyAccountPasswordRequest.cc
@@ -410,6 +420,8 @@ set(polardb_src
src/model/ModifyDBEndpointAddressResult.cc
src/model/ModifyDBNodeClassRequest.cc
src/model/ModifyDBNodeClassResult.cc
src/model/ModifyDBNodeHotReplicaModeRequest.cc
src/model/ModifyDBNodeHotReplicaModeResult.cc
src/model/ModifyGlobalDatabaseNetworkRequest.cc
src/model/ModifyGlobalDatabaseNetworkResult.cc
src/model/ModifyLogBackupPolicyRequest.cc

View File

@@ -122,6 +122,8 @@
#include "model/DescribeDBLinksResult.h"
#include "model/DescribeDBNodePerformanceRequest.h"
#include "model/DescribeDBNodePerformanceResult.h"
#include "model/DescribeDBProxyPerformanceRequest.h"
#include "model/DescribeDBProxyPerformanceResult.h"
#include "model/DescribeDatabasesRequest.h"
#include "model/DescribeDatabasesResult.h"
#include "model/DescribeDetachedBackupsRequest.h"
@@ -164,6 +166,8 @@
#include "model/GrantAccountPrivilegeResult.h"
#include "model/ListTagResourcesRequest.h"
#include "model/ListTagResourcesResult.h"
#include "model/ListTagResourcesForRegionRequest.h"
#include "model/ListTagResourcesForRegionResult.h"
#include "model/ModifyAccountDescriptionRequest.h"
#include "model/ModifyAccountDescriptionResult.h"
#include "model/ModifyAccountPasswordRequest.h"
@@ -200,6 +204,8 @@
#include "model/ModifyDBEndpointAddressResult.h"
#include "model/ModifyDBNodeClassRequest.h"
#include "model/ModifyDBNodeClassResult.h"
#include "model/ModifyDBNodeHotReplicaModeRequest.h"
#include "model/ModifyDBNodeHotReplicaModeResult.h"
#include "model/ModifyGlobalDatabaseNetworkRequest.h"
#include "model/ModifyGlobalDatabaseNetworkResult.h"
#include "model/ModifyLogBackupPolicyRequest.h"
@@ -389,6 +395,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DescribeDBNodePerformanceResult> DescribeDBNodePerformanceOutcome;
typedef std::future<DescribeDBNodePerformanceOutcome> DescribeDBNodePerformanceOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeDBNodePerformanceRequest&, const DescribeDBNodePerformanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBNodePerformanceAsyncHandler;
typedef Outcome<Error, Model::DescribeDBProxyPerformanceResult> DescribeDBProxyPerformanceOutcome;
typedef std::future<DescribeDBProxyPerformanceOutcome> DescribeDBProxyPerformanceOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeDBProxyPerformanceRequest&, const DescribeDBProxyPerformanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDBProxyPerformanceAsyncHandler;
typedef Outcome<Error, Model::DescribeDatabasesResult> DescribeDatabasesOutcome;
typedef std::future<DescribeDatabasesOutcome> DescribeDatabasesOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::DescribeDatabasesRequest&, const DescribeDatabasesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDatabasesAsyncHandler;
@@ -452,6 +461,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListTagResourcesResult> ListTagResourcesOutcome;
typedef std::future<ListTagResourcesOutcome> ListTagResourcesOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ListTagResourcesRequest&, const ListTagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesAsyncHandler;
typedef Outcome<Error, Model::ListTagResourcesForRegionResult> ListTagResourcesForRegionOutcome;
typedef std::future<ListTagResourcesForRegionOutcome> ListTagResourcesForRegionOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ListTagResourcesForRegionRequest&, const ListTagResourcesForRegionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagResourcesForRegionAsyncHandler;
typedef Outcome<Error, Model::ModifyAccountDescriptionResult> ModifyAccountDescriptionOutcome;
typedef std::future<ModifyAccountDescriptionOutcome> ModifyAccountDescriptionOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyAccountDescriptionRequest&, const ModifyAccountDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyAccountDescriptionAsyncHandler;
@@ -506,6 +518,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDBNodeClassResult> ModifyDBNodeClassOutcome;
typedef std::future<ModifyDBNodeClassOutcome> ModifyDBNodeClassOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyDBNodeClassRequest&, const ModifyDBNodeClassOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBNodeClassAsyncHandler;
typedef Outcome<Error, Model::ModifyDBNodeHotReplicaModeResult> ModifyDBNodeHotReplicaModeOutcome;
typedef std::future<ModifyDBNodeHotReplicaModeOutcome> ModifyDBNodeHotReplicaModeOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyDBNodeHotReplicaModeRequest&, const ModifyDBNodeHotReplicaModeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDBNodeHotReplicaModeAsyncHandler;
typedef Outcome<Error, Model::ModifyGlobalDatabaseNetworkResult> ModifyGlobalDatabaseNetworkOutcome;
typedef std::future<ModifyGlobalDatabaseNetworkOutcome> ModifyGlobalDatabaseNetworkOutcomeCallable;
typedef std::function<void(const PolardbClient*, const Model::ModifyGlobalDatabaseNetworkRequest&, const ModifyGlobalDatabaseNetworkOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyGlobalDatabaseNetworkAsyncHandler;
@@ -706,6 +721,9 @@ namespace AlibabaCloud
DescribeDBNodePerformanceOutcome describeDBNodePerformance(const Model::DescribeDBNodePerformanceRequest &request)const;
void describeDBNodePerformanceAsync(const Model::DescribeDBNodePerformanceRequest& request, const DescribeDBNodePerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDBNodePerformanceOutcomeCallable describeDBNodePerformanceCallable(const Model::DescribeDBNodePerformanceRequest& request) const;
DescribeDBProxyPerformanceOutcome describeDBProxyPerformance(const Model::DescribeDBProxyPerformanceRequest &request)const;
void describeDBProxyPerformanceAsync(const Model::DescribeDBProxyPerformanceRequest& request, const DescribeDBProxyPerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDBProxyPerformanceOutcomeCallable describeDBProxyPerformanceCallable(const Model::DescribeDBProxyPerformanceRequest& request) const;
DescribeDatabasesOutcome describeDatabases(const Model::DescribeDatabasesRequest &request)const;
void describeDatabasesAsync(const Model::DescribeDatabasesRequest& request, const DescribeDatabasesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDatabasesOutcomeCallable describeDatabasesCallable(const Model::DescribeDatabasesRequest& request) const;
@@ -769,6 +787,9 @@ namespace AlibabaCloud
ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const;
void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const;
ListTagResourcesForRegionOutcome listTagResourcesForRegion(const Model::ListTagResourcesForRegionRequest &request)const;
void listTagResourcesForRegionAsync(const Model::ListTagResourcesForRegionRequest& request, const ListTagResourcesForRegionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagResourcesForRegionOutcomeCallable listTagResourcesForRegionCallable(const Model::ListTagResourcesForRegionRequest& request) const;
ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const;
void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const;
@@ -823,6 +844,9 @@ namespace AlibabaCloud
ModifyDBNodeClassOutcome modifyDBNodeClass(const Model::ModifyDBNodeClassRequest &request)const;
void modifyDBNodeClassAsync(const Model::ModifyDBNodeClassRequest& request, const ModifyDBNodeClassAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDBNodeClassOutcomeCallable modifyDBNodeClassCallable(const Model::ModifyDBNodeClassRequest& request) const;
ModifyDBNodeHotReplicaModeOutcome modifyDBNodeHotReplicaMode(const Model::ModifyDBNodeHotReplicaModeRequest &request)const;
void modifyDBNodeHotReplicaModeAsync(const Model::ModifyDBNodeHotReplicaModeRequest& request, const ModifyDBNodeHotReplicaModeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDBNodeHotReplicaModeOutcomeCallable modifyDBNodeHotReplicaModeCallable(const Model::ModifyDBNodeHotReplicaModeRequest& request) const;
ModifyGlobalDatabaseNetworkOutcome modifyGlobalDatabaseNetwork(const Model::ModifyGlobalDatabaseNetworkRequest &request)const;
void modifyGlobalDatabaseNetworkAsync(const Model::ModifyGlobalDatabaseNetworkRequest& request, const ModifyGlobalDatabaseNetworkAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyGlobalDatabaseNetworkOutcomeCallable modifyGlobalDatabaseNetworkCallable(const Model::ModifyGlobalDatabaseNetworkRequest& request) const;

View File

@@ -63,6 +63,8 @@ namespace AlibabaCloud
void setPlannedStartTime(const std::string& plannedStartTime);
std::vector<DBNode> getDBNode()const;
void setDBNode(const std::vector<DBNode>& dBNode);
std::string getImciSwitch()const;
void setImciSwitch(const std::string& imciSwitch);
private:
long resourceOwnerId_;
@@ -76,6 +78,7 @@ namespace AlibabaCloud
long ownerId_;
std::string plannedStartTime_;
std::vector<DBNode> dBNode_;
std::string imciSwitch_;
};
}

View File

@@ -39,8 +39,10 @@ namespace AlibabaCloud
int maxConnections;
std::string dBNodeRole;
std::string creationTime;
std::string imciSwitch;
std::string dBNodeId;
int failoverPriority;
std::string hotReplicaMode;
int maxIOPS;
std::string dBNodeClass;
};
@@ -59,6 +61,7 @@ namespace AlibabaCloud
std::string getResourceGroupId()const;
long getDataLevel1BackupChainSize()const;
std::string getDBClusterId()const;
std::string getProxyStatus()const;
std::string getDBType()const;
std::string getDBClusterNetworkType()const;
bool getIsLatestVersion()const;
@@ -69,11 +72,13 @@ namespace AlibabaCloud
std::string getMaintainTime()const;
std::vector<Tag> getTags()const;
std::string getEngine()const;
std::string getStorageType()const;
std::string getVPCId()const;
std::string getDBClusterStatus()const;
std::string getVSwitchId()const;
std::string getDBClusterDescription()const;
std::string getExpired()const;
std::string getProxyCpuCores()const;
std::string getPayType()const;
std::string getLockMode()const;
long getStorageUsed()const;
@@ -83,6 +88,7 @@ namespace AlibabaCloud
std::string getSubCategory()const;
long getSQLSize()const;
std::string getRegionId()const;
std::string getProxyType()const;
std::string getExpireTime()const;
protected:
@@ -93,6 +99,7 @@ namespace AlibabaCloud
std::string resourceGroupId_;
long dataLevel1BackupChainSize_;
std::string dBClusterId_;
std::string proxyStatus_;
std::string dBType_;
std::string dBClusterNetworkType_;
bool isLatestVersion_;
@@ -103,11 +110,13 @@ namespace AlibabaCloud
std::string maintainTime_;
std::vector<Tag> tags_;
std::string engine_;
std::string storageType_;
std::string vPCId_;
std::string dBClusterStatus_;
std::string vSwitchId_;
std::string dBClusterDescription_;
std::string expired_;
std::string proxyCpuCores_;
std::string payType_;
std::string lockMode_;
long storageUsed_;
@@ -117,6 +126,7 @@ namespace AlibabaCloud
std::string subCategory_;
long sQLSize_;
std::string regionId_;
std::string proxyType_;
std::string expireTime_;
};

View File

@@ -49,6 +49,8 @@ namespace AlibabaCloud
void setDBClusterStatus(const std::string& dBClusterStatus);
int getPageNumber()const;
void setPageNumber(int pageNumber);
std::string getDBNodeIds()const;
void setDBNodeIds(const std::string& dBNodeIds);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceGroupId()const;
@@ -67,6 +69,8 @@ namespace AlibabaCloud
void setOwnerId(long ownerId);
std::string getDBType()const;
void setDBType(const std::string& dBType);
std::string getPayType()const;
void setPayType(const std::string& payType);
std::string getDBClusterIds()const;
void setDBClusterIds(const std::string& dBClusterIds);
@@ -75,6 +79,7 @@ namespace AlibabaCloud
std::string dBClusterDescription_;
std::string dBClusterStatus_;
int pageNumber_;
std::string dBNodeIds_;
std::string accessKeyId_;
std::string resourceGroupId_;
std::string regionId_;
@@ -84,6 +89,7 @@ namespace AlibabaCloud
std::string ownerAccount_;
long ownerId_;
std::string dBType_;
std::string payType_;
std::string dBClusterIds_;
};

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBPROXYPERFORMANCEREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBPROXYPERFORMANCEREQUEST_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 DescribeDBProxyPerformanceRequest : public RpcServiceRequest
{
public:
DescribeDBProxyPerformanceRequest();
~DescribeDBProxyPerformanceRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getStartTime()const;
void setStartTime(const std::string& startTime);
std::string getKey()const;
void setKey(const std::string& key);
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);
std::string getEndTime()const;
void setEndTime(const std::string& endTime);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getMetric()const;
void setMetric(const std::string& metric);
private:
long resourceOwnerId_;
std::string startTime_;
std::string key_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;
std::string ownerAccount_;
std::string endTime_;
long ownerId_;
std::string metric_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBPROXYPERFORMANCEREQUEST_H_

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBPROXYPERFORMANCERESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBPROXYPERFORMANCERESULT_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 DescribeDBProxyPerformanceResult : public ServiceResult
{
public:
struct PerformanceItem
{
struct PerformanceItemValue
{
std::string value;
long timestamp;
};
std::string measurement;
std::string metricName;
std::vector<PerformanceItem::PerformanceItemValue> points;
std::string dBNodeId;
};
DescribeDBProxyPerformanceResult();
explicit DescribeDBProxyPerformanceResult(const std::string &payload);
~DescribeDBProxyPerformanceResult();
std::vector<PerformanceItem> getPerformanceKeys()const;
std::string getDBVersion()const;
std::string getEndTime()const;
std::string getStartTime()const;
std::string getDBClusterId()const;
std::string getDBType()const;
std::string getEngine()const;
protected:
void parse(const std::string &payload);
private:
std::vector<PerformanceItem> performanceKeys_;
std::string dBVersion_;
std::string endTime_;
std::string startTime_;
std::string dBClusterId_;
std::string dBType_;
std::string engine_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBPROXYPERFORMANCERESULT_H_

View File

@@ -42,6 +42,7 @@ namespace AlibabaCloud
long parseRowCounts;
std::string dBNodeId;
std::string hostAddress;
long queryTimeMS;
std::string sQLText;
};

View File

@@ -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_LISTTAGRESOURCESFORREGIONREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESFORREGIONREQUEST_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 ListTagResourcesForRegionRequest : public RpcServiceRequest
{
public:
ListTagResourcesForRegionRequest();
~ListTagResourcesForRegionRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getRegionId()const;
void setRegionId(const std::string& regionId);
std::string getNextToken()const;
void setNextToken(const std::string& nextToken);
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);
private:
long resourceOwnerId_;
std::string accessKeyId_;
std::string regionId_;
std::string nextToken_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
long ownerId_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESFORREGIONREQUEST_H_

View File

@@ -0,0 +1,60 @@
/*
* 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_LISTTAGRESOURCESFORREGIONRESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESFORREGIONRESULT_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 ListTagResourcesForRegionResult : public ServiceResult
{
public:
struct TagResource
{
std::string resourceId;
std::string tagKey;
std::string resourceType;
std::string tagValue;
};
ListTagResourcesForRegionResult();
explicit ListTagResourcesForRegionResult(const std::string &payload);
~ListTagResourcesForRegionResult();
std::string getNextToken()const;
std::vector<TagResource> getTagResources()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::vector<TagResource> tagResources_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_LISTTAGRESOURCESFORREGIONRESULT_H_

View File

@@ -0,0 +1,69 @@
/*
* 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_MODIFYDBNODEHOTREPLICAMODEREQUEST_H_
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEHOTREPLICAMODEREQUEST_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 ModifyDBNodeHotReplicaModeRequest : public RpcServiceRequest
{
public:
ModifyDBNodeHotReplicaModeRequest();
~ModifyDBNodeHotReplicaModeRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getDBNodeId()const;
void setDBNodeId(const std::string& dBNodeId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getDBClusterId()const;
void setDBClusterId(const std::string& dBClusterId);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getHotReplicaMode()const;
void setHotReplicaMode(const std::string& hotReplicaMode);
private:
long resourceOwnerId_;
std::string dBNodeId_;
std::string accessKeyId_;
std::string resourceOwnerAccount_;
std::string dBClusterId_;
std::string ownerAccount_;
long ownerId_;
std::string hotReplicaMode_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEHOTREPLICAMODEREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEHOTREPLICAMODERESULT_H_
#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEHOTREPLICAMODERESULT_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 ModifyDBNodeHotReplicaModeResult : public ServiceResult
{
public:
ModifyDBNodeHotReplicaModeResult();
explicit ModifyDBNodeHotReplicaModeResult(const std::string &payload);
~ModifyDBNodeHotReplicaModeResult();
std::string getDBClusterId()const;
std::string getOrderId()const;
protected:
void parse(const std::string &payload);
private:
std::string dBClusterId_;
std::string orderId_;
};
}
}
}
#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBNODEHOTREPLICAMODERESULT_H_

View File

@@ -1851,6 +1851,42 @@ PolardbClient::DescribeDBNodePerformanceOutcomeCallable PolardbClient::describeD
return task->get_future();
}
PolardbClient::DescribeDBProxyPerformanceOutcome PolardbClient::describeDBProxyPerformance(const DescribeDBProxyPerformanceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeDBProxyPerformanceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeDBProxyPerformanceOutcome(DescribeDBProxyPerformanceResult(outcome.result()));
else
return DescribeDBProxyPerformanceOutcome(outcome.error());
}
void PolardbClient::describeDBProxyPerformanceAsync(const DescribeDBProxyPerformanceRequest& request, const DescribeDBProxyPerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeDBProxyPerformance(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::DescribeDBProxyPerformanceOutcomeCallable PolardbClient::describeDBProxyPerformanceCallable(const DescribeDBProxyPerformanceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeDBProxyPerformanceOutcome()>>(
[this, request]()
{
return this->describeDBProxyPerformance(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::DescribeDatabasesOutcome PolardbClient::describeDatabases(const DescribeDatabasesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2607,6 +2643,42 @@ PolardbClient::ListTagResourcesOutcomeCallable PolardbClient::listTagResourcesCa
return task->get_future();
}
PolardbClient::ListTagResourcesForRegionOutcome PolardbClient::listTagResourcesForRegion(const ListTagResourcesForRegionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListTagResourcesForRegionOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListTagResourcesForRegionOutcome(ListTagResourcesForRegionResult(outcome.result()));
else
return ListTagResourcesForRegionOutcome(outcome.error());
}
void PolardbClient::listTagResourcesForRegionAsync(const ListTagResourcesForRegionRequest& request, const ListTagResourcesForRegionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listTagResourcesForRegion(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::ListTagResourcesForRegionOutcomeCallable PolardbClient::listTagResourcesForRegionCallable(const ListTagResourcesForRegionRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListTagResourcesForRegionOutcome()>>(
[this, request]()
{
return this->listTagResourcesForRegion(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::ModifyAccountDescriptionOutcome PolardbClient::modifyAccountDescription(const ModifyAccountDescriptionRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3255,6 +3327,42 @@ PolardbClient::ModifyDBNodeClassOutcomeCallable PolardbClient::modifyDBNodeClass
return task->get_future();
}
PolardbClient::ModifyDBNodeHotReplicaModeOutcome PolardbClient::modifyDBNodeHotReplicaMode(const ModifyDBNodeHotReplicaModeRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ModifyDBNodeHotReplicaModeOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ModifyDBNodeHotReplicaModeOutcome(ModifyDBNodeHotReplicaModeResult(outcome.result()));
else
return ModifyDBNodeHotReplicaModeOutcome(outcome.error());
}
void PolardbClient::modifyDBNodeHotReplicaModeAsync(const ModifyDBNodeHotReplicaModeRequest& request, const ModifyDBNodeHotReplicaModeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, modifyDBNodeHotReplicaMode(request), context);
};
asyncExecute(new Runnable(fn));
}
PolardbClient::ModifyDBNodeHotReplicaModeOutcomeCallable PolardbClient::modifyDBNodeHotReplicaModeCallable(const ModifyDBNodeHotReplicaModeRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ModifyDBNodeHotReplicaModeOutcome()>>(
[this, request]()
{
return this->modifyDBNodeHotReplicaMode(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
PolardbClient::ModifyGlobalDatabaseNetworkOutcome PolardbClient::modifyGlobalDatabaseNetwork(const ModifyGlobalDatabaseNetworkRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -153,3 +153,14 @@ void CreateDBNodesRequest::setDBNode(const std::vector<DBNode>& dBNode)
}
}
std::string CreateDBNodesRequest::getImciSwitch()const
{
return imciSwitch_;
}
void CreateDBNodesRequest::setImciSwitch(const std::string& imciSwitch)
{
imciSwitch_ = imciSwitch;
setParameter("ImciSwitch", imciSwitch);
}

View File

@@ -61,6 +61,10 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
dBNodesObject.dBNodeStatus = valueDBNodesDBNode["DBNodeStatus"].asString();
if(!valueDBNodesDBNode["DBNodeId"].isNull())
dBNodesObject.dBNodeId = valueDBNodesDBNode["DBNodeId"].asString();
if(!valueDBNodesDBNode["ImciSwitch"].isNull())
dBNodesObject.imciSwitch = valueDBNodesDBNode["ImciSwitch"].asString();
if(!valueDBNodesDBNode["HotReplicaMode"].isNull())
dBNodesObject.hotReplicaMode = valueDBNodesDBNode["HotReplicaMode"].asString();
dBNodes_.push_back(dBNodesObject);
}
auto allTagsNode = value["Tags"]["Tag"];
@@ -129,6 +133,14 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload)
subCategory_ = value["SubCategory"].asString();
if(!value["IsProxyLatestVersion"].isNull())
isProxyLatestVersion_ = value["IsProxyLatestVersion"].asString() == "true";
if(!value["StorageType"].isNull())
storageType_ = value["StorageType"].asString();
if(!value["ProxyCpuCores"].isNull())
proxyCpuCores_ = value["ProxyCpuCores"].asString();
if(!value["ProxyType"].isNull())
proxyType_ = value["ProxyType"].asString();
if(!value["ProxyStatus"].isNull())
proxyStatus_ = value["ProxyStatus"].asString();
}
@@ -157,6 +169,11 @@ std::string DescribeDBClusterAttributeResult::getDBClusterId()const
return dBClusterId_;
}
std::string DescribeDBClusterAttributeResult::getProxyStatus()const
{
return proxyStatus_;
}
std::string DescribeDBClusterAttributeResult::getDBType()const
{
return dBType_;
@@ -207,6 +224,11 @@ std::string DescribeDBClusterAttributeResult::getEngine()const
return engine_;
}
std::string DescribeDBClusterAttributeResult::getStorageType()const
{
return storageType_;
}
std::string DescribeDBClusterAttributeResult::getVPCId()const
{
return vPCId_;
@@ -232,6 +254,11 @@ std::string DescribeDBClusterAttributeResult::getExpired()const
return expired_;
}
std::string DescribeDBClusterAttributeResult::getProxyCpuCores()const
{
return proxyCpuCores_;
}
std::string DescribeDBClusterAttributeResult::getPayType()const
{
return payType_;
@@ -277,6 +304,11 @@ std::string DescribeDBClusterAttributeResult::getRegionId()const
return regionId_;
}
std::string DescribeDBClusterAttributeResult::getProxyType()const
{
return proxyType_;
}
std::string DescribeDBClusterAttributeResult::getExpireTime()const
{
return expireTime_;

View File

@@ -71,6 +71,17 @@ void DescribeDBClustersRequest::setPageNumber(int pageNumber)
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeDBClustersRequest::getDBNodeIds()const
{
return dBNodeIds_;
}
void DescribeDBClustersRequest::setDBNodeIds(const std::string& dBNodeIds)
{
dBNodeIds_ = dBNodeIds;
setParameter("DBNodeIds", dBNodeIds);
}
std::string DescribeDBClustersRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -175,6 +186,17 @@ void DescribeDBClustersRequest::setDBType(const std::string& dBType)
setParameter("DBType", dBType);
}
std::string DescribeDBClustersRequest::getPayType()const
{
return payType_;
}
void DescribeDBClustersRequest::setPayType(const std::string& payType)
{
payType_ = payType;
setParameter("PayType", payType);
}
std::string DescribeDBClustersRequest::getDBClusterIds()const
{
return dBClusterIds_;

View File

@@ -0,0 +1,128 @@
/*
* 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/DescribeDBProxyPerformanceRequest.h>
using AlibabaCloud::Polardb::Model::DescribeDBProxyPerformanceRequest;
DescribeDBProxyPerformanceRequest::DescribeDBProxyPerformanceRequest() :
RpcServiceRequest("polardb", "2017-08-01", "DescribeDBProxyPerformance")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDBProxyPerformanceRequest::~DescribeDBProxyPerformanceRequest()
{}
long DescribeDBProxyPerformanceRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDBProxyPerformanceRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribeDBProxyPerformanceRequest::getStartTime()const
{
return startTime_;
}
void DescribeDBProxyPerformanceRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDBProxyPerformanceRequest::getKey()const
{
return key_;
}
void DescribeDBProxyPerformanceRequest::setKey(const std::string& key)
{
key_ = key;
setParameter("Key", key);
}
std::string DescribeDBProxyPerformanceRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDBProxyPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDBProxyPerformanceRequest::getDBClusterId()const
{
return dBClusterId_;
}
void DescribeDBProxyPerformanceRequest::setDBClusterId(const std::string& dBClusterId)
{
dBClusterId_ = dBClusterId;
setParameter("DBClusterId", dBClusterId);
}
std::string DescribeDBProxyPerformanceRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeDBProxyPerformanceRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DescribeDBProxyPerformanceRequest::getEndTime()const
{
return endTime_;
}
void DescribeDBProxyPerformanceRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeDBProxyPerformanceRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDBProxyPerformanceRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeDBProxyPerformanceRequest::getMetric()const
{
return metric_;
}
void DescribeDBProxyPerformanceRequest::setMetric(const std::string& metric)
{
metric_ = metric;
setParameter("Metric", metric);
}

View File

@@ -0,0 +1,113 @@
/*
* 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/DescribeDBProxyPerformanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Polardb;
using namespace AlibabaCloud::Polardb::Model;
DescribeDBProxyPerformanceResult::DescribeDBProxyPerformanceResult() :
ServiceResult()
{}
DescribeDBProxyPerformanceResult::DescribeDBProxyPerformanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDBProxyPerformanceResult::~DescribeDBProxyPerformanceResult()
{}
void DescribeDBProxyPerformanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPerformanceKeysNode = value["PerformanceKeys"]["PerformanceItem"];
for (auto valuePerformanceKeysPerformanceItem : allPerformanceKeysNode)
{
PerformanceItem performanceKeysObject;
if(!valuePerformanceKeysPerformanceItem["MetricName"].isNull())
performanceKeysObject.metricName = valuePerformanceKeysPerformanceItem["MetricName"].asString();
if(!valuePerformanceKeysPerformanceItem["Measurement"].isNull())
performanceKeysObject.measurement = valuePerformanceKeysPerformanceItem["Measurement"].asString();
if(!valuePerformanceKeysPerformanceItem["DBNodeId"].isNull())
performanceKeysObject.dBNodeId = valuePerformanceKeysPerformanceItem["DBNodeId"].asString();
auto allPointsNode = valuePerformanceKeysPerformanceItem["Points"]["PerformanceItemValue"];
for (auto valuePerformanceKeysPerformanceItemPointsPerformanceItemValue : allPointsNode)
{
PerformanceItem::PerformanceItemValue pointsObject;
if(!valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Value"].isNull())
pointsObject.value = valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Value"].asString();
if(!valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Timestamp"].isNull())
pointsObject.timestamp = std::stol(valuePerformanceKeysPerformanceItemPointsPerformanceItemValue["Timestamp"].asString());
performanceKeysObject.points.push_back(pointsObject);
}
performanceKeys_.push_back(performanceKeysObject);
}
if(!value["DBVersion"].isNull())
dBVersion_ = value["DBVersion"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["DBClusterId"].isNull())
dBClusterId_ = value["DBClusterId"].asString();
if(!value["DBType"].isNull())
dBType_ = value["DBType"].asString();
if(!value["Engine"].isNull())
engine_ = value["Engine"].asString();
}
std::vector<DescribeDBProxyPerformanceResult::PerformanceItem> DescribeDBProxyPerformanceResult::getPerformanceKeys()const
{
return performanceKeys_;
}
std::string DescribeDBProxyPerformanceResult::getDBVersion()const
{
return dBVersion_;
}
std::string DescribeDBProxyPerformanceResult::getEndTime()const
{
return endTime_;
}
std::string DescribeDBProxyPerformanceResult::getStartTime()const
{
return startTime_;
}
std::string DescribeDBProxyPerformanceResult::getDBClusterId()const
{
return dBClusterId_;
}
std::string DescribeDBProxyPerformanceResult::getDBType()const
{
return dBType_;
}
std::string DescribeDBProxyPerformanceResult::getEngine()const
{
return engine_;
}

View File

@@ -43,36 +43,38 @@ void DescribeSlowLogRecordsResult::parse(const std::string &payload)
for (auto valueItemsSQLSlowRecord : allItemsNode)
{
SQLSlowRecord itemsObject;
if(!valueItemsSQLSlowRecord["HostAddress"].isNull())
itemsObject.hostAddress = valueItemsSQLSlowRecord["HostAddress"].asString();
if(!valueItemsSQLSlowRecord["DBName"].isNull())
itemsObject.dBName = valueItemsSQLSlowRecord["DBName"].asString();
if(!valueItemsSQLSlowRecord["SQLText"].isNull())
itemsObject.sQLText = valueItemsSQLSlowRecord["SQLText"].asString();
if(!valueItemsSQLSlowRecord["QueryTimes"].isNull())
itemsObject.queryTimes = std::stol(valueItemsSQLSlowRecord["QueryTimes"].asString());
if(!valueItemsSQLSlowRecord["LockTimes"].isNull())
itemsObject.lockTimes = std::stol(valueItemsSQLSlowRecord["LockTimes"].asString());
if(!valueItemsSQLSlowRecord["ParseRowCounts"].isNull())
itemsObject.parseRowCounts = std::stol(valueItemsSQLSlowRecord["ParseRowCounts"].asString());
if(!valueItemsSQLSlowRecord["ReturnRowCounts"].isNull())
itemsObject.returnRowCounts = std::stol(valueItemsSQLSlowRecord["ReturnRowCounts"].asString());
if(!valueItemsSQLSlowRecord["ExecutionStartTime"].isNull())
itemsObject.executionStartTime = valueItemsSQLSlowRecord["ExecutionStartTime"].asString();
if(!valueItemsSQLSlowRecord["HostAddress"].isNull())
itemsObject.hostAddress = valueItemsSQLSlowRecord["HostAddress"].asString();
if(!valueItemsSQLSlowRecord["QueryTimes"].isNull())
itemsObject.queryTimes = std::stol(valueItemsSQLSlowRecord["QueryTimes"].asString());
if(!valueItemsSQLSlowRecord["SQLText"].isNull())
itemsObject.sQLText = valueItemsSQLSlowRecord["SQLText"].asString();
if(!valueItemsSQLSlowRecord["ReturnRowCounts"].isNull())
itemsObject.returnRowCounts = std::stol(valueItemsSQLSlowRecord["ReturnRowCounts"].asString());
if(!valueItemsSQLSlowRecord["ParseRowCounts"].isNull())
itemsObject.parseRowCounts = std::stol(valueItemsSQLSlowRecord["ParseRowCounts"].asString());
if(!valueItemsSQLSlowRecord["DBName"].isNull())
itemsObject.dBName = valueItemsSQLSlowRecord["DBName"].asString();
if(!valueItemsSQLSlowRecord["LockTimes"].isNull())
itemsObject.lockTimes = std::stol(valueItemsSQLSlowRecord["LockTimes"].asString());
if(!valueItemsSQLSlowRecord["DBNodeId"].isNull())
itemsObject.dBNodeId = valueItemsSQLSlowRecord["DBNodeId"].asString();
if(!valueItemsSQLSlowRecord["QueryTimeMS"].isNull())
itemsObject.queryTimeMS = std::stol(valueItemsSQLSlowRecord["QueryTimeMS"].asString());
items_.push_back(itemsObject);
}
if(!value["TotalRecordCount"].isNull())
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
if(!value["PageRecordCount"].isNull())
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["DBClusterId"].isNull())
dBClusterId_ = value["DBClusterId"].asString();
if(!value["Engine"].isNull())
engine_ = value["Engine"].asString();
if(!value["TotalRecordCount"].isNull())
totalRecordCount_ = std::stoi(value["TotalRecordCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageRecordCount"].isNull())
pageRecordCount_ = std::stoi(value["PageRecordCount"].asString());
}

View 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/ListTagResourcesForRegionRequest.h>
using AlibabaCloud::Polardb::Model::ListTagResourcesForRegionRequest;
ListTagResourcesForRegionRequest::ListTagResourcesForRegionRequest() :
RpcServiceRequest("polardb", "2017-08-01", "ListTagResourcesForRegion")
{
setMethod(HttpRequest::Method::Post);
}
ListTagResourcesForRegionRequest::~ListTagResourcesForRegionRequest()
{}
long ListTagResourcesForRegionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListTagResourcesForRegionRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListTagResourcesForRegionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListTagResourcesForRegionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ListTagResourcesForRegionRequest::getRegionId()const
{
return regionId_;
}
void ListTagResourcesForRegionRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string ListTagResourcesForRegionRequest::getNextToken()const
{
return nextToken_;
}
void ListTagResourcesForRegionRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
}
std::string ListTagResourcesForRegionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListTagResourcesForRegionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListTagResourcesForRegionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListTagResourcesForRegionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListTagResourcesForRegionRequest::getOwnerId()const
{
return ownerId_;
}
void ListTagResourcesForRegionRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,70 @@
/*
* 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/ListTagResourcesForRegionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Polardb;
using namespace AlibabaCloud::Polardb::Model;
ListTagResourcesForRegionResult::ListTagResourcesForRegionResult() :
ServiceResult()
{}
ListTagResourcesForRegionResult::ListTagResourcesForRegionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagResourcesForRegionResult::~ListTagResourcesForRegionResult()
{}
void ListTagResourcesForRegionResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTagResourcesNode = value["TagResources"]["TagResource"];
for (auto valueTagResourcesTagResource : allTagResourcesNode)
{
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["ResourceType"].isNull())
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
if(!valueTagResourcesTagResource["TagValue"].isNull())
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
if(!valueTagResourcesTagResource["TagKey"].isNull())
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
tagResources_.push_back(tagResourcesObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListTagResourcesForRegionResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListTagResourcesForRegionResult::TagResource> ListTagResourcesForRegionResult::getTagResources()const
{
return tagResources_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/ModifyDBNodeHotReplicaModeRequest.h>
using AlibabaCloud::Polardb::Model::ModifyDBNodeHotReplicaModeRequest;
ModifyDBNodeHotReplicaModeRequest::ModifyDBNodeHotReplicaModeRequest() :
RpcServiceRequest("polardb", "2017-08-01", "ModifyDBNodeHotReplicaMode")
{
setMethod(HttpRequest::Method::Post);
}
ModifyDBNodeHotReplicaModeRequest::~ModifyDBNodeHotReplicaModeRequest()
{}
long ModifyDBNodeHotReplicaModeRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ModifyDBNodeHotReplicaModeRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ModifyDBNodeHotReplicaModeRequest::getDBNodeId()const
{
return dBNodeId_;
}
void ModifyDBNodeHotReplicaModeRequest::setDBNodeId(const std::string& dBNodeId)
{
dBNodeId_ = dBNodeId;
setParameter("DBNodeId", dBNodeId);
}
std::string ModifyDBNodeHotReplicaModeRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ModifyDBNodeHotReplicaModeRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ModifyDBNodeHotReplicaModeRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ModifyDBNodeHotReplicaModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ModifyDBNodeHotReplicaModeRequest::getDBClusterId()const
{
return dBClusterId_;
}
void ModifyDBNodeHotReplicaModeRequest::setDBClusterId(const std::string& dBClusterId)
{
dBClusterId_ = dBClusterId;
setParameter("DBClusterId", dBClusterId);
}
std::string ModifyDBNodeHotReplicaModeRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ModifyDBNodeHotReplicaModeRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ModifyDBNodeHotReplicaModeRequest::getOwnerId()const
{
return ownerId_;
}
void ModifyDBNodeHotReplicaModeRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ModifyDBNodeHotReplicaModeRequest::getHotReplicaMode()const
{
return hotReplicaMode_;
}
void ModifyDBNodeHotReplicaModeRequest::setHotReplicaMode(const std::string& hotReplicaMode)
{
hotReplicaMode_ = hotReplicaMode;
setParameter("HotReplicaMode", hotReplicaMode);
}

View File

@@ -0,0 +1,58 @@
/*
* 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/ModifyDBNodeHotReplicaModeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Polardb;
using namespace AlibabaCloud::Polardb::Model;
ModifyDBNodeHotReplicaModeResult::ModifyDBNodeHotReplicaModeResult() :
ServiceResult()
{}
ModifyDBNodeHotReplicaModeResult::ModifyDBNodeHotReplicaModeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDBNodeHotReplicaModeResult::~ModifyDBNodeHotReplicaModeResult()
{}
void ModifyDBNodeHotReplicaModeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DBClusterId"].isNull())
dBClusterId_ = value["DBClusterId"].asString();
if(!value["OrderId"].isNull())
orderId_ = value["OrderId"].asString();
}
std::string ModifyDBNodeHotReplicaModeResult::getDBClusterId()const
{
return dBClusterId_;
}
std::string ModifyDBNodeHotReplicaModeResult::getOrderId()const
{
return orderId_;
}