From 4d79d51820381835214d555591e855f46d0f3759 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 17 Jul 2020 15:27:49 +0800 Subject: [PATCH] Add DescribeDBClusterAuditLogCollector. --- CHANGELOG | 5 + VERSION | 2 +- polardb/CMakeLists.txt | 8 ++ .../alibabacloud/polardb/PolardbClient.h | 16 +++ ...escribeDBClusterAuditLogCollectorRequest.h | 63 +++++++++++ ...DescribeDBClusterAuditLogCollectorResult.h | 51 +++++++++ .../model/DescribeDBClusterEndpointsResult.h | 1 + .../model/DescribeDBClusterMigrationResult.h | 34 ++++++ .../ModifyDBClusterAuditLogCollectorRequest.h | 66 +++++++++++ .../ModifyDBClusterAuditLogCollectorResult.h | 49 ++++++++ .../model/ModifyDBClusterMigrationRequest.h | 3 + .../model/ModifyDBClusterMonitorRequest.h | 6 +- .../model/ModifyDBEndpointAddressRequest.h | 3 + polardb/src/PolardbClient.cc | 72 ++++++++++++ ...scribeDBClusterAuditLogCollectorRequest.cc | 95 ++++++++++++++++ ...escribeDBClusterAuditLogCollectorResult.cc | 51 +++++++++ .../model/DescribeDBClusterEndpointsResult.cc | 2 + .../model/DescribeDBClusterMigrationResult.cc | 66 +++++++++++ ...ModifyDBClusterAuditLogCollectorRequest.cc | 106 ++++++++++++++++++ .../ModifyDBClusterAuditLogCollectorResult.cc | 44 ++++++++ .../model/ModifyDBClusterMigrationRequest.cc | 11 ++ .../model/ModifyDBClusterMonitorRequest.cc | 22 ++-- .../model/ModifyDBEndpointAddressRequest.cc | 11 ++ 23 files changed, 772 insertions(+), 15 deletions(-) create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h create mode 100644 polardb/include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorRequest.h create mode 100644 polardb/include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorResult.h create mode 100644 polardb/src/model/DescribeDBClusterAuditLogCollectorRequest.cc create mode 100644 polardb/src/model/DescribeDBClusterAuditLogCollectorResult.cc create mode 100644 polardb/src/model/ModifyDBClusterAuditLogCollectorRequest.cc create mode 100644 polardb/src/model/ModifyDBClusterAuditLogCollectorResult.cc diff --git a/CHANGELOG b/CHANGELOG index 5f871afba..86b6d92f1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2020-07-17 Version: 1.36.521 +- Add DescribeDBClusterAuditLogCollector. +- Add DescribeBackupPolicy. +- Support polardb for pgsql and oracle customize endpoints. + 2020-07-17 Version: 1.36.520 - Public beta version. - Add Api Overseas. diff --git a/VERSION b/VERSION index ae99aec66..580010fdb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.520 \ No newline at end of file +1.36.521 \ No newline at end of file diff --git a/polardb/CMakeLists.txt b/polardb/CMakeLists.txt index ea3aab3f7..5d0beaa3e 100644 --- a/polardb/CMakeLists.txt +++ b/polardb/CMakeLists.txt @@ -65,6 +65,8 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/DescribeDBClusterAccessWhitelistResult.h include/alibabacloud/polardb/model/DescribeDBClusterAttributeRequest.h include/alibabacloud/polardb/model/DescribeDBClusterAttributeResult.h + include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorRequest.h + include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h include/alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesRequest.h include/alibabacloud/polardb/model/DescribeDBClusterAvailableResourcesResult.h include/alibabacloud/polardb/model/DescribeDBClusterEndpointsRequest.h @@ -113,6 +115,8 @@ set(polardb_public_header_model include/alibabacloud/polardb/model/ModifyBackupPolicyResult.h include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistRequest.h include/alibabacloud/polardb/model/ModifyDBClusterAccessWhitelistResult.h + include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorRequest.h + include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorResult.h include/alibabacloud/polardb/model/ModifyDBClusterDescriptionRequest.h include/alibabacloud/polardb/model/ModifyDBClusterDescriptionResult.h include/alibabacloud/polardb/model/ModifyDBClusterEndpointRequest.h @@ -192,6 +196,8 @@ set(polardb_src src/model/DescribeDBClusterAccessWhitelistResult.cc src/model/DescribeDBClusterAttributeRequest.cc src/model/DescribeDBClusterAttributeResult.cc + src/model/DescribeDBClusterAuditLogCollectorRequest.cc + src/model/DescribeDBClusterAuditLogCollectorResult.cc src/model/DescribeDBClusterAvailableResourcesRequest.cc src/model/DescribeDBClusterAvailableResourcesResult.cc src/model/DescribeDBClusterEndpointsRequest.cc @@ -240,6 +246,8 @@ set(polardb_src src/model/ModifyBackupPolicyResult.cc src/model/ModifyDBClusterAccessWhitelistRequest.cc src/model/ModifyDBClusterAccessWhitelistResult.cc + src/model/ModifyDBClusterAuditLogCollectorRequest.cc + src/model/ModifyDBClusterAuditLogCollectorResult.cc src/model/ModifyDBClusterDescriptionRequest.cc src/model/ModifyDBClusterDescriptionResult.cc src/model/ModifyDBClusterEndpointRequest.cc diff --git a/polardb/include/alibabacloud/polardb/PolardbClient.h b/polardb/include/alibabacloud/polardb/PolardbClient.h index 1f608ba01..6b16f5898 100644 --- a/polardb/include/alibabacloud/polardb/PolardbClient.h +++ b/polardb/include/alibabacloud/polardb/PolardbClient.h @@ -66,6 +66,8 @@ #include "model/DescribeDBClusterAccessWhitelistResult.h" #include "model/DescribeDBClusterAttributeRequest.h" #include "model/DescribeDBClusterAttributeResult.h" +#include "model/DescribeDBClusterAuditLogCollectorRequest.h" +#include "model/DescribeDBClusterAuditLogCollectorResult.h" #include "model/DescribeDBClusterAvailableResourcesRequest.h" #include "model/DescribeDBClusterAvailableResourcesResult.h" #include "model/DescribeDBClusterEndpointsRequest.h" @@ -114,6 +116,8 @@ #include "model/ModifyBackupPolicyResult.h" #include "model/ModifyDBClusterAccessWhitelistRequest.h" #include "model/ModifyDBClusterAccessWhitelistResult.h" +#include "model/ModifyDBClusterAuditLogCollectorRequest.h" +#include "model/ModifyDBClusterAuditLogCollectorResult.h" #include "model/ModifyDBClusterDescriptionRequest.h" #include "model/ModifyDBClusterDescriptionResult.h" #include "model/ModifyDBClusterEndpointRequest.h" @@ -221,6 +225,9 @@ namespace AlibabaCloud typedef Outcome DescribeDBClusterAttributeOutcome; typedef std::future DescribeDBClusterAttributeOutcomeCallable; typedef std::function&)> DescribeDBClusterAttributeAsyncHandler; + typedef Outcome DescribeDBClusterAuditLogCollectorOutcome; + typedef std::future DescribeDBClusterAuditLogCollectorOutcomeCallable; + typedef std::function&)> DescribeDBClusterAuditLogCollectorAsyncHandler; typedef Outcome DescribeDBClusterAvailableResourcesOutcome; typedef std::future DescribeDBClusterAvailableResourcesOutcomeCallable; typedef std::function&)> DescribeDBClusterAvailableResourcesAsyncHandler; @@ -293,6 +300,9 @@ namespace AlibabaCloud typedef Outcome ModifyDBClusterAccessWhitelistOutcome; typedef std::future ModifyDBClusterAccessWhitelistOutcomeCallable; typedef std::function&)> ModifyDBClusterAccessWhitelistAsyncHandler; + typedef Outcome ModifyDBClusterAuditLogCollectorOutcome; + typedef std::future ModifyDBClusterAuditLogCollectorOutcomeCallable; + typedef std::function&)> ModifyDBClusterAuditLogCollectorAsyncHandler; typedef Outcome ModifyDBClusterDescriptionOutcome; typedef std::future ModifyDBClusterDescriptionOutcomeCallable; typedef std::function&)> ModifyDBClusterDescriptionAsyncHandler; @@ -412,6 +422,9 @@ namespace AlibabaCloud DescribeDBClusterAttributeOutcome describeDBClusterAttribute(const Model::DescribeDBClusterAttributeRequest &request)const; void describeDBClusterAttributeAsync(const Model::DescribeDBClusterAttributeRequest& request, const DescribeDBClusterAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterAttributeOutcomeCallable describeDBClusterAttributeCallable(const Model::DescribeDBClusterAttributeRequest& request) const; + DescribeDBClusterAuditLogCollectorOutcome describeDBClusterAuditLogCollector(const Model::DescribeDBClusterAuditLogCollectorRequest &request)const; + void describeDBClusterAuditLogCollectorAsync(const Model::DescribeDBClusterAuditLogCollectorRequest& request, const DescribeDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDBClusterAuditLogCollectorOutcomeCallable describeDBClusterAuditLogCollectorCallable(const Model::DescribeDBClusterAuditLogCollectorRequest& request) const; DescribeDBClusterAvailableResourcesOutcome describeDBClusterAvailableResources(const Model::DescribeDBClusterAvailableResourcesRequest &request)const; void describeDBClusterAvailableResourcesAsync(const Model::DescribeDBClusterAvailableResourcesRequest& request, const DescribeDBClusterAvailableResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBClusterAvailableResourcesOutcomeCallable describeDBClusterAvailableResourcesCallable(const Model::DescribeDBClusterAvailableResourcesRequest& request) const; @@ -484,6 +497,9 @@ namespace AlibabaCloud ModifyDBClusterAccessWhitelistOutcome modifyDBClusterAccessWhitelist(const Model::ModifyDBClusterAccessWhitelistRequest &request)const; void modifyDBClusterAccessWhitelistAsync(const Model::ModifyDBClusterAccessWhitelistRequest& request, const ModifyDBClusterAccessWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterAccessWhitelistOutcomeCallable modifyDBClusterAccessWhitelistCallable(const Model::ModifyDBClusterAccessWhitelistRequest& request) const; + ModifyDBClusterAuditLogCollectorOutcome modifyDBClusterAuditLogCollector(const Model::ModifyDBClusterAuditLogCollectorRequest &request)const; + void modifyDBClusterAuditLogCollectorAsync(const Model::ModifyDBClusterAuditLogCollectorRequest& request, const ModifyDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDBClusterAuditLogCollectorOutcomeCallable modifyDBClusterAuditLogCollectorCallable(const Model::ModifyDBClusterAuditLogCollectorRequest& request) const; ModifyDBClusterDescriptionOutcome modifyDBClusterDescription(const Model::ModifyDBClusterDescriptionRequest &request)const; void modifyDBClusterDescriptionAsync(const Model::ModifyDBClusterDescriptionRequest& request, const ModifyDBClusterDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDBClusterDescriptionOutcomeCallable modifyDBClusterDescriptionCallable(const Model::ModifyDBClusterDescriptionRequest& request) const; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorRequest.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorRequest.h new file mode 100644 index 000000000..147cf565f --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAuditLogCollectorRequest : public RpcServiceRequest + { + + public: + DescribeDBClusterAuditLogCollectorRequest(); + ~DescribeDBClusterAuditLogCollectorRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getDBClusterId()const; + void setDBClusterId(const std::string& dBClusterId); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h new file mode 100644 index 000000000..bcbb43c69 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterAuditLogCollectorResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterAuditLogCollectorResult : public ServiceResult + { + public: + + + DescribeDBClusterAuditLogCollectorResult(); + explicit DescribeDBClusterAuditLogCollectorResult(const std::string &payload); + ~DescribeDBClusterAuditLogCollectorResult(); + std::string getCollectorStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string collectorStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_DESCRIBEDBCLUSTERAUDITLOGCOLLECTORRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h index d18be7e63..b01a4bde3 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterEndpointsResult.h @@ -46,6 +46,7 @@ namespace AlibabaCloud std::string netType; }; std::string dBEndpointId; + std::string nodeWithRoles; std::string autoAddNewNodes; std::string endpointType; std::vector addressItems; diff --git a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h index 0e72edea8..9d5c69173 100644 --- a/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h +++ b/polardb/include/alibabacloud/polardb/model/DescribeDBClusterMigrationResult.h @@ -32,11 +32,42 @@ namespace AlibabaCloud class ALIBABACLOUD_POLARDB_EXPORT DescribeDBClusterMigrationResult : public ServiceResult { public: + struct DBClusterEndpoint + { + struct Address + { + std::string vPCId; + std::string port; + std::string vSwitchId; + std::string connectionString; + std::string iPAddress; + std::string netType; + }; + std::string dBEndpointId; + std::string endpointType; + std::vector addressItems; + }; + struct RdsEndpoint + { + struct Address2 + { + std::string vPCId; + std::string port; + std::string vSwitchId; + std::string connectionString; + std::string iPAddress; + std::string netType; + }; + std::string dBEndpointId; + std::string endpointType; + std::vector addressItems1; + }; DescribeDBClusterMigrationResult(); explicit DescribeDBClusterMigrationResult(const std::string &payload); ~DescribeDBClusterMigrationResult(); + std::vector getDBClusterEndpointList()const; std::string getComment()const; std::string getExpiredTime()const; std::string getDBClusterId()const; @@ -46,10 +77,12 @@ namespace AlibabaCloud int getDelayedSeconds()const; std::string getDBClusterReadWriteMode()const; std::string getMigrationStatus()const; + std::vector getRdsEndpointList()const; protected: void parse(const std::string &payload); private: + std::vector dBClusterEndpointList_; std::string comment_; std::string expiredTime_; std::string dBClusterId_; @@ -59,6 +92,7 @@ namespace AlibabaCloud int delayedSeconds_; std::string dBClusterReadWriteMode_; std::string migrationStatus_; + std::vector rdsEndpointList_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorRequest.h new file mode 100644 index 000000000..7a9bb932d --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterAuditLogCollectorRequest : public RpcServiceRequest + { + + public: + ModifyDBClusterAuditLogCollectorRequest(); + ~ModifyDBClusterAuditLogCollectorRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + 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 getCollectorStatus()const; + void setCollectorStatus(const std::string& collectorStatus); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string collectorStatus_; + long ownerId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORREQUEST_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorResult.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorResult.h new file mode 100644 index 000000000..4bac3ec91 --- /dev/null +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterAuditLogCollectorResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_H_ +#define ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Polardb + { + namespace Model + { + class ALIBABACLOUD_POLARDB_EXPORT ModifyDBClusterAuditLogCollectorResult : public ServiceResult + { + public: + + + ModifyDBClusterAuditLogCollectorResult(); + explicit ModifyDBClusterAuditLogCollectorResult(const std::string &payload); + ~ModifyDBClusterAuditLogCollectorResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_POLARDB_MODEL_MODIFYDBCLUSTERAUDITLOGCOLLECTORRESULT_H_ \ No newline at end of file diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h index 45c4907a2..b99471993 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMigrationRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); std::string getSourceRDSDBInstanceId()const; void setSourceRDSDBInstanceId(const std::string& sourceRDSDBInstanceId); + std::string getSwapConnectionString()const; + void setSwapConnectionString(const std::string& swapConnectionString); long getOwnerId()const; void setOwnerId(long ownerId); @@ -63,6 +65,7 @@ namespace AlibabaCloud std::string dBClusterId_; std::string ownerAccount_; std::string sourceRDSDBInstanceId_; + std::string swapConnectionString_; long ownerId_; }; diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMonitorRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMonitorRequest.h index 0b62b35c5..394bcecab 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMonitorRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBClusterMonitorRequest.h @@ -37,6 +37,8 @@ namespace AlibabaCloud long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); std::string getPeriod()const; void setPeriod(const std::string& period); std::string getResourceOwnerAccount()const; @@ -47,17 +49,15 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); private: long resourceOwnerId_; + std::string accessKeyId_; std::string period_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; - std::string accessKeyId_; }; } diff --git a/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h b/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h index 91c305494..e6e18fd68 100644 --- a/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h +++ b/polardb/include/alibabacloud/polardb/model/ModifyDBEndpointAddressRequest.h @@ -55,6 +55,8 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); + std::string getPort()const; + void setPort(const std::string& port); std::string getNetType()const; void setNetType(const std::string& netType); @@ -69,6 +71,7 @@ namespace AlibabaCloud std::string dBClusterId_; std::string ownerAccount_; long ownerId_; + std::string port_; std::string netType_; }; diff --git a/polardb/src/PolardbClient.cc b/polardb/src/PolardbClient.cc index 59cac3f2c..3d8289ee0 100644 --- a/polardb/src/PolardbClient.cc +++ b/polardb/src/PolardbClient.cc @@ -843,6 +843,42 @@ PolardbClient::DescribeDBClusterAttributeOutcomeCallable PolardbClient::describe return task->get_future(); } +PolardbClient::DescribeDBClusterAuditLogCollectorOutcome PolardbClient::describeDBClusterAuditLogCollector(const DescribeDBClusterAuditLogCollectorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDBClusterAuditLogCollectorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDBClusterAuditLogCollectorOutcome(DescribeDBClusterAuditLogCollectorResult(outcome.result())); + else + return DescribeDBClusterAuditLogCollectorOutcome(outcome.error()); +} + +void PolardbClient::describeDBClusterAuditLogCollectorAsync(const DescribeDBClusterAuditLogCollectorRequest& request, const DescribeDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDBClusterAuditLogCollector(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::DescribeDBClusterAuditLogCollectorOutcomeCallable PolardbClient::describeDBClusterAuditLogCollectorCallable(const DescribeDBClusterAuditLogCollectorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDBClusterAuditLogCollector(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::DescribeDBClusterAvailableResourcesOutcome PolardbClient::describeDBClusterAvailableResources(const DescribeDBClusterAvailableResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1743,42 @@ PolardbClient::ModifyDBClusterAccessWhitelistOutcomeCallable PolardbClient::modi return task->get_future(); } +PolardbClient::ModifyDBClusterAuditLogCollectorOutcome PolardbClient::modifyDBClusterAuditLogCollector(const ModifyDBClusterAuditLogCollectorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDBClusterAuditLogCollectorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDBClusterAuditLogCollectorOutcome(ModifyDBClusterAuditLogCollectorResult(outcome.result())); + else + return ModifyDBClusterAuditLogCollectorOutcome(outcome.error()); +} + +void PolardbClient::modifyDBClusterAuditLogCollectorAsync(const ModifyDBClusterAuditLogCollectorRequest& request, const ModifyDBClusterAuditLogCollectorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDBClusterAuditLogCollector(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +PolardbClient::ModifyDBClusterAuditLogCollectorOutcomeCallable PolardbClient::modifyDBClusterAuditLogCollectorCallable(const ModifyDBClusterAuditLogCollectorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDBClusterAuditLogCollector(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + PolardbClient::ModifyDBClusterDescriptionOutcome PolardbClient::modifyDBClusterDescription(const ModifyDBClusterDescriptionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/polardb/src/model/DescribeDBClusterAuditLogCollectorRequest.cc b/polardb/src/model/DescribeDBClusterAuditLogCollectorRequest.cc new file mode 100644 index 000000000..587c7e47f --- /dev/null +++ b/polardb/src/model/DescribeDBClusterAuditLogCollectorRequest.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Polardb::Model::DescribeDBClusterAuditLogCollectorRequest; + +DescribeDBClusterAuditLogCollectorRequest::DescribeDBClusterAuditLogCollectorRequest() : + RpcServiceRequest("polardb", "2017-08-01", "DescribeDBClusterAuditLogCollector") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDBClusterAuditLogCollectorRequest::~DescribeDBClusterAuditLogCollectorRequest() +{} + +long DescribeDBClusterAuditLogCollectorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeDBClusterAuditLogCollectorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeDBClusterAuditLogCollectorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeDBClusterAuditLogCollectorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeDBClusterAuditLogCollectorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeDBClusterAuditLogCollectorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeDBClusterAuditLogCollectorRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void DescribeDBClusterAuditLogCollectorRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setParameter("DBClusterId", dBClusterId); +} + +std::string DescribeDBClusterAuditLogCollectorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeDBClusterAuditLogCollectorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeDBClusterAuditLogCollectorRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeDBClusterAuditLogCollectorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/polardb/src/model/DescribeDBClusterAuditLogCollectorResult.cc b/polardb/src/model/DescribeDBClusterAuditLogCollectorResult.cc new file mode 100644 index 000000000..3ad3e1070 --- /dev/null +++ b/polardb/src/model/DescribeDBClusterAuditLogCollectorResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +DescribeDBClusterAuditLogCollectorResult::DescribeDBClusterAuditLogCollectorResult() : + ServiceResult() +{} + +DescribeDBClusterAuditLogCollectorResult::DescribeDBClusterAuditLogCollectorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDBClusterAuditLogCollectorResult::~DescribeDBClusterAuditLogCollectorResult() +{} + +void DescribeDBClusterAuditLogCollectorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CollectorStatus"].isNull()) + collectorStatus_ = value["CollectorStatus"].asString(); + +} + +std::string DescribeDBClusterAuditLogCollectorResult::getCollectorStatus()const +{ + return collectorStatus_; +} + diff --git a/polardb/src/model/DescribeDBClusterEndpointsResult.cc b/polardb/src/model/DescribeDBClusterEndpointsResult.cc index 54ac77a06..cdce9de5d 100644 --- a/polardb/src/model/DescribeDBClusterEndpointsResult.cc +++ b/polardb/src/model/DescribeDBClusterEndpointsResult.cc @@ -55,6 +55,8 @@ void DescribeDBClusterEndpointsResult::parse(const std::string &payload) itemsObject.autoAddNewNodes = valueItemsDBEndpoint["AutoAddNewNodes"].asString(); if(!valueItemsDBEndpoint["EndpointConfig"].isNull()) itemsObject.endpointConfig = valueItemsDBEndpoint["EndpointConfig"].asString(); + if(!valueItemsDBEndpoint["NodeWithRoles"].isNull()) + itemsObject.nodeWithRoles = valueItemsDBEndpoint["NodeWithRoles"].asString(); auto allAddressItemsNode = allItemsNode["AddressItems"]["Address"]; for (auto allItemsNodeAddressItemsAddress : allAddressItemsNode) { diff --git a/polardb/src/model/DescribeDBClusterMigrationResult.cc b/polardb/src/model/DescribeDBClusterMigrationResult.cc index 45c72640e..8a5cba466 100644 --- a/polardb/src/model/DescribeDBClusterMigrationResult.cc +++ b/polardb/src/model/DescribeDBClusterMigrationResult.cc @@ -39,6 +39,62 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allDBClusterEndpointListNode = value["DBClusterEndpointList"]["DBClusterEndpoint"]; + for (auto valueDBClusterEndpointListDBClusterEndpoint : allDBClusterEndpointListNode) + { + DBClusterEndpoint dBClusterEndpointListObject; + if(!valueDBClusterEndpointListDBClusterEndpoint["DBEndpointId"].isNull()) + dBClusterEndpointListObject.dBEndpointId = valueDBClusterEndpointListDBClusterEndpoint["DBEndpointId"].asString(); + if(!valueDBClusterEndpointListDBClusterEndpoint["EndpointType"].isNull()) + dBClusterEndpointListObject.endpointType = valueDBClusterEndpointListDBClusterEndpoint["EndpointType"].asString(); + auto allAddressItemsNode = allDBClusterEndpointListNode["AddressItems"]["Address"]; + for (auto allDBClusterEndpointListNodeAddressItemsAddress : allAddressItemsNode) + { + DBClusterEndpoint::Address addressItemsObject; + if(!allDBClusterEndpointListNodeAddressItemsAddress["ConnectionString"].isNull()) + addressItemsObject.connectionString = allDBClusterEndpointListNodeAddressItemsAddress["ConnectionString"].asString(); + if(!allDBClusterEndpointListNodeAddressItemsAddress["IPAddress"].isNull()) + addressItemsObject.iPAddress = allDBClusterEndpointListNodeAddressItemsAddress["IPAddress"].asString(); + if(!allDBClusterEndpointListNodeAddressItemsAddress["NetType"].isNull()) + addressItemsObject.netType = allDBClusterEndpointListNodeAddressItemsAddress["NetType"].asString(); + if(!allDBClusterEndpointListNodeAddressItemsAddress["Port"].isNull()) + addressItemsObject.port = allDBClusterEndpointListNodeAddressItemsAddress["Port"].asString(); + if(!allDBClusterEndpointListNodeAddressItemsAddress["VPCId"].isNull()) + addressItemsObject.vPCId = allDBClusterEndpointListNodeAddressItemsAddress["VPCId"].asString(); + if(!allDBClusterEndpointListNodeAddressItemsAddress["VSwitchId"].isNull()) + addressItemsObject.vSwitchId = allDBClusterEndpointListNodeAddressItemsAddress["VSwitchId"].asString(); + dBClusterEndpointListObject.addressItems.push_back(addressItemsObject); + } + dBClusterEndpointList_.push_back(dBClusterEndpointListObject); + } + auto allRdsEndpointListNode = value["RdsEndpointList"]["RdsEndpoint"]; + for (auto valueRdsEndpointListRdsEndpoint : allRdsEndpointListNode) + { + RdsEndpoint rdsEndpointListObject; + if(!valueRdsEndpointListRdsEndpoint["DBEndpointId"].isNull()) + rdsEndpointListObject.dBEndpointId = valueRdsEndpointListRdsEndpoint["DBEndpointId"].asString(); + if(!valueRdsEndpointListRdsEndpoint["EndpointType"].isNull()) + rdsEndpointListObject.endpointType = valueRdsEndpointListRdsEndpoint["EndpointType"].asString(); + auto allAddressItems1Node = allRdsEndpointListNode["AddressItems"]["Address"]; + for (auto allRdsEndpointListNodeAddressItemsAddress : allAddressItems1Node) + { + RdsEndpoint::Address2 addressItems1Object; + if(!allRdsEndpointListNodeAddressItemsAddress["ConnectionString"].isNull()) + addressItems1Object.connectionString = allRdsEndpointListNodeAddressItemsAddress["ConnectionString"].asString(); + if(!allRdsEndpointListNodeAddressItemsAddress["IPAddress"].isNull()) + addressItems1Object.iPAddress = allRdsEndpointListNodeAddressItemsAddress["IPAddress"].asString(); + if(!allRdsEndpointListNodeAddressItemsAddress["NetType"].isNull()) + addressItems1Object.netType = allRdsEndpointListNodeAddressItemsAddress["NetType"].asString(); + if(!allRdsEndpointListNodeAddressItemsAddress["Port"].isNull()) + addressItems1Object.port = allRdsEndpointListNodeAddressItemsAddress["Port"].asString(); + if(!allRdsEndpointListNodeAddressItemsAddress["VPCId"].isNull()) + addressItems1Object.vPCId = allRdsEndpointListNodeAddressItemsAddress["VPCId"].asString(); + if(!allRdsEndpointListNodeAddressItemsAddress["VSwitchId"].isNull()) + addressItems1Object.vSwitchId = allRdsEndpointListNodeAddressItemsAddress["VSwitchId"].asString(); + rdsEndpointListObject.addressItems1.push_back(addressItems1Object); + } + rdsEndpointList_.push_back(rdsEndpointListObject); + } if(!value["DBClusterId"].isNull()) dBClusterId_ = value["DBClusterId"].asString(); if(!value["SourceRDSDBInstanceId"].isNull()) @@ -60,6 +116,11 @@ void DescribeDBClusterMigrationResult::parse(const std::string &payload) } +std::vector DescribeDBClusterMigrationResult::getDBClusterEndpointList()const +{ + return dBClusterEndpointList_; +} + std::string DescribeDBClusterMigrationResult::getComment()const { return comment_; @@ -105,3 +166,8 @@ std::string DescribeDBClusterMigrationResult::getMigrationStatus()const return migrationStatus_; } +std::vector DescribeDBClusterMigrationResult::getRdsEndpointList()const +{ + return rdsEndpointList_; +} + diff --git a/polardb/src/model/ModifyDBClusterAuditLogCollectorRequest.cc b/polardb/src/model/ModifyDBClusterAuditLogCollectorRequest.cc new file mode 100644 index 000000000..966f52eb8 --- /dev/null +++ b/polardb/src/model/ModifyDBClusterAuditLogCollectorRequest.cc @@ -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 + +using AlibabaCloud::Polardb::Model::ModifyDBClusterAuditLogCollectorRequest; + +ModifyDBClusterAuditLogCollectorRequest::ModifyDBClusterAuditLogCollectorRequest() : + RpcServiceRequest("polardb", "2017-08-01", "ModifyDBClusterAuditLogCollector") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyDBClusterAuditLogCollectorRequest::~ModifyDBClusterAuditLogCollectorRequest() +{} + +long ModifyDBClusterAuditLogCollectorRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyDBClusterAuditLogCollectorRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyDBClusterAuditLogCollectorRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyDBClusterAuditLogCollectorRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyDBClusterAuditLogCollectorRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void ModifyDBClusterAuditLogCollectorRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setParameter("DBClusterId", dBClusterId); +} + +std::string ModifyDBClusterAuditLogCollectorRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyDBClusterAuditLogCollectorRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ModifyDBClusterAuditLogCollectorRequest::getCollectorStatus()const +{ + return collectorStatus_; +} + +void ModifyDBClusterAuditLogCollectorRequest::setCollectorStatus(const std::string& collectorStatus) +{ + collectorStatus_ = collectorStatus; + setParameter("CollectorStatus", collectorStatus); +} + +long ModifyDBClusterAuditLogCollectorRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyDBClusterAuditLogCollectorRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyDBClusterAuditLogCollectorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBClusterAuditLogCollectorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/polardb/src/model/ModifyDBClusterAuditLogCollectorResult.cc b/polardb/src/model/ModifyDBClusterAuditLogCollectorResult.cc new file mode 100644 index 000000000..ca9ca660d --- /dev/null +++ b/polardb/src/model/ModifyDBClusterAuditLogCollectorResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Polardb; +using namespace AlibabaCloud::Polardb::Model; + +ModifyDBClusterAuditLogCollectorResult::ModifyDBClusterAuditLogCollectorResult() : + ServiceResult() +{} + +ModifyDBClusterAuditLogCollectorResult::ModifyDBClusterAuditLogCollectorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDBClusterAuditLogCollectorResult::~ModifyDBClusterAuditLogCollectorResult() +{} + +void ModifyDBClusterAuditLogCollectorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/polardb/src/model/ModifyDBClusterMigrationRequest.cc b/polardb/src/model/ModifyDBClusterMigrationRequest.cc index 1e68300be..3179d496a 100644 --- a/polardb/src/model/ModifyDBClusterMigrationRequest.cc +++ b/polardb/src/model/ModifyDBClusterMigrationRequest.cc @@ -115,6 +115,17 @@ void ModifyDBClusterMigrationRequest::setSourceRDSDBInstanceId(const std::string setParameter("SourceRDSDBInstanceId", sourceRDSDBInstanceId); } +std::string ModifyDBClusterMigrationRequest::getSwapConnectionString()const +{ + return swapConnectionString_; +} + +void ModifyDBClusterMigrationRequest::setSwapConnectionString(const std::string& swapConnectionString) +{ + swapConnectionString_ = swapConnectionString; + setParameter("SwapConnectionString", swapConnectionString); +} + long ModifyDBClusterMigrationRequest::getOwnerId()const { return ownerId_; diff --git a/polardb/src/model/ModifyDBClusterMonitorRequest.cc b/polardb/src/model/ModifyDBClusterMonitorRequest.cc index f63933bf1..1cbfa3872 100644 --- a/polardb/src/model/ModifyDBClusterMonitorRequest.cc +++ b/polardb/src/model/ModifyDBClusterMonitorRequest.cc @@ -38,6 +38,17 @@ void ModifyDBClusterMonitorRequest::setResourceOwnerId(long resourceOwnerId) setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } +std::string ModifyDBClusterMonitorRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyDBClusterMonitorRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + std::string ModifyDBClusterMonitorRequest::getPeriod()const { return period_; @@ -93,14 +104,3 @@ void ModifyDBClusterMonitorRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } -std::string ModifyDBClusterMonitorRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ModifyDBClusterMonitorRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - diff --git a/polardb/src/model/ModifyDBEndpointAddressRequest.cc b/polardb/src/model/ModifyDBEndpointAddressRequest.cc index fdc113ebb..8361a83b6 100644 --- a/polardb/src/model/ModifyDBEndpointAddressRequest.cc +++ b/polardb/src/model/ModifyDBEndpointAddressRequest.cc @@ -137,6 +137,17 @@ void ModifyDBEndpointAddressRequest::setOwnerId(long ownerId) setParameter("OwnerId", std::to_string(ownerId)); } +std::string ModifyDBEndpointAddressRequest::getPort()const +{ + return port_; +} + +void ModifyDBEndpointAddressRequest::setPort(const std::string& port) +{ + port_ = port; + setParameter("Port", port); +} + std::string ModifyDBEndpointAddressRequest::getNetType()const { return netType_;