diff --git a/CHANGELOG b/CHANGELOG index 40a66ee35..54c741b10 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-07-21 Version: 1.36.524 +- Support Tag API. + 2020-07-21 Version: 1.36.523 - Add algorithm type for ListPerson. diff --git a/VERSION b/VERSION index 3dbcd8030..7cffea74b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.523 \ No newline at end of file +1.36.524 \ No newline at end of file diff --git a/adb/CMakeLists.txt b/adb/CMakeLists.txt index 1cf515421..9f37505bb 100644 --- a/adb/CMakeLists.txt +++ b/adb/CMakeLists.txt @@ -35,6 +35,10 @@ set(adb_public_header_model include/alibabacloud/adb/model/DescribeAccountsResult.h include/alibabacloud/adb/model/DescribeAllDataSourceRequest.h include/alibabacloud/adb/model/DescribeAllDataSourceResult.h + include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h + include/alibabacloud/adb/model/DescribeAuditLogConfigResult.h + include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h + include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h include/alibabacloud/adb/model/DescribeAutoRenewAttributeResult.h include/alibabacloud/adb/model/DescribeAvailableResourceRequest.h @@ -57,10 +61,6 @@ set(adb_public_header_model include/alibabacloud/adb/model/DescribeDBClustersResult.h include/alibabacloud/adb/model/DescribeInclinedTablesRequest.h include/alibabacloud/adb/model/DescribeInclinedTablesResult.h - include/alibabacloud/adb/model/DescribeLogStoreKeysRequest.h - include/alibabacloud/adb/model/DescribeLogStoreKeysResult.h - include/alibabacloud/adb/model/DescribeLoghubDetailRequest.h - include/alibabacloud/adb/model/DescribeLoghubDetailResult.h include/alibabacloud/adb/model/DescribeOperatorPermissionRequest.h include/alibabacloud/adb/model/DescribeOperatorPermissionResult.h include/alibabacloud/adb/model/DescribeProcessListRequest.h @@ -75,6 +75,8 @@ set(adb_public_header_model include/alibabacloud/adb/model/DescribeSlowLogTrendResult.h include/alibabacloud/adb/model/DescribeTableDetailRequest.h include/alibabacloud/adb/model/DescribeTableDetailResult.h + include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h + include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h include/alibabacloud/adb/model/DescribeTablesRequest.h include/alibabacloud/adb/model/DescribeTablesResult.h include/alibabacloud/adb/model/DescribeTaskInfoRequest.h @@ -87,6 +89,8 @@ set(adb_public_header_model include/alibabacloud/adb/model/ListTagResourcesResult.h include/alibabacloud/adb/model/ModifyAccountDescriptionRequest.h include/alibabacloud/adb/model/ModifyAccountDescriptionResult.h + include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h + include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h include/alibabacloud/adb/model/ModifyAutoRenewAttributeRequest.h include/alibabacloud/adb/model/ModifyAutoRenewAttributeResult.h include/alibabacloud/adb/model/ModifyBackupPolicyRequest.h @@ -130,6 +134,10 @@ set(adb_src src/model/DescribeAccountsResult.cc src/model/DescribeAllDataSourceRequest.cc src/model/DescribeAllDataSourceResult.cc + src/model/DescribeAuditLogConfigRequest.cc + src/model/DescribeAuditLogConfigResult.cc + src/model/DescribeAuditLogRecordsRequest.cc + src/model/DescribeAuditLogRecordsResult.cc src/model/DescribeAutoRenewAttributeRequest.cc src/model/DescribeAutoRenewAttributeResult.cc src/model/DescribeAvailableResourceRequest.cc @@ -152,10 +160,6 @@ set(adb_src src/model/DescribeDBClustersResult.cc src/model/DescribeInclinedTablesRequest.cc src/model/DescribeInclinedTablesResult.cc - src/model/DescribeLogStoreKeysRequest.cc - src/model/DescribeLogStoreKeysResult.cc - src/model/DescribeLoghubDetailRequest.cc - src/model/DescribeLoghubDetailResult.cc src/model/DescribeOperatorPermissionRequest.cc src/model/DescribeOperatorPermissionResult.cc src/model/DescribeProcessListRequest.cc @@ -170,6 +174,8 @@ set(adb_src src/model/DescribeSlowLogTrendResult.cc src/model/DescribeTableDetailRequest.cc src/model/DescribeTableDetailResult.cc + src/model/DescribeTablePartitionDiagnoseRequest.cc + src/model/DescribeTablePartitionDiagnoseResult.cc src/model/DescribeTablesRequest.cc src/model/DescribeTablesResult.cc src/model/DescribeTaskInfoRequest.cc @@ -182,6 +188,8 @@ set(adb_src src/model/ListTagResourcesResult.cc src/model/ModifyAccountDescriptionRequest.cc src/model/ModifyAccountDescriptionResult.cc + src/model/ModifyAuditLogConfigRequest.cc + src/model/ModifyAuditLogConfigResult.cc src/model/ModifyAutoRenewAttributeRequest.cc src/model/ModifyAutoRenewAttributeResult.cc src/model/ModifyBackupPolicyRequest.cc diff --git a/adb/include/alibabacloud/adb/AdbClient.h b/adb/include/alibabacloud/adb/AdbClient.h index 13c85d930..73898c37f 100644 --- a/adb/include/alibabacloud/adb/AdbClient.h +++ b/adb/include/alibabacloud/adb/AdbClient.h @@ -36,6 +36,10 @@ #include "model/DescribeAccountsResult.h" #include "model/DescribeAllDataSourceRequest.h" #include "model/DescribeAllDataSourceResult.h" +#include "model/DescribeAuditLogConfigRequest.h" +#include "model/DescribeAuditLogConfigResult.h" +#include "model/DescribeAuditLogRecordsRequest.h" +#include "model/DescribeAuditLogRecordsResult.h" #include "model/DescribeAutoRenewAttributeRequest.h" #include "model/DescribeAutoRenewAttributeResult.h" #include "model/DescribeAvailableResourceRequest.h" @@ -58,10 +62,6 @@ #include "model/DescribeDBClustersResult.h" #include "model/DescribeInclinedTablesRequest.h" #include "model/DescribeInclinedTablesResult.h" -#include "model/DescribeLogStoreKeysRequest.h" -#include "model/DescribeLogStoreKeysResult.h" -#include "model/DescribeLoghubDetailRequest.h" -#include "model/DescribeLoghubDetailResult.h" #include "model/DescribeOperatorPermissionRequest.h" #include "model/DescribeOperatorPermissionResult.h" #include "model/DescribeProcessListRequest.h" @@ -76,6 +76,8 @@ #include "model/DescribeSlowLogTrendResult.h" #include "model/DescribeTableDetailRequest.h" #include "model/DescribeTableDetailResult.h" +#include "model/DescribeTablePartitionDiagnoseRequest.h" +#include "model/DescribeTablePartitionDiagnoseResult.h" #include "model/DescribeTablesRequest.h" #include "model/DescribeTablesResult.h" #include "model/DescribeTaskInfoRequest.h" @@ -88,6 +90,8 @@ #include "model/ListTagResourcesResult.h" #include "model/ModifyAccountDescriptionRequest.h" #include "model/ModifyAccountDescriptionResult.h" +#include "model/ModifyAuditLogConfigRequest.h" +#include "model/ModifyAuditLogConfigResult.h" #include "model/ModifyAutoRenewAttributeRequest.h" #include "model/ModifyAutoRenewAttributeResult.h" #include "model/ModifyBackupPolicyRequest.h" @@ -144,6 +148,12 @@ namespace AlibabaCloud typedef Outcome DescribeAllDataSourceOutcome; typedef std::future DescribeAllDataSourceOutcomeCallable; typedef std::function&)> DescribeAllDataSourceAsyncHandler; + typedef Outcome DescribeAuditLogConfigOutcome; + typedef std::future DescribeAuditLogConfigOutcomeCallable; + typedef std::function&)> DescribeAuditLogConfigAsyncHandler; + typedef Outcome DescribeAuditLogRecordsOutcome; + typedef std::future DescribeAuditLogRecordsOutcomeCallable; + typedef std::function&)> DescribeAuditLogRecordsAsyncHandler; typedef Outcome DescribeAutoRenewAttributeOutcome; typedef std::future DescribeAutoRenewAttributeOutcomeCallable; typedef std::function&)> DescribeAutoRenewAttributeAsyncHandler; @@ -177,12 +187,6 @@ namespace AlibabaCloud typedef Outcome DescribeInclinedTablesOutcome; typedef std::future DescribeInclinedTablesOutcomeCallable; typedef std::function&)> DescribeInclinedTablesAsyncHandler; - typedef Outcome DescribeLogStoreKeysOutcome; - typedef std::future DescribeLogStoreKeysOutcomeCallable; - typedef std::function&)> DescribeLogStoreKeysAsyncHandler; - typedef Outcome DescribeLoghubDetailOutcome; - typedef std::future DescribeLoghubDetailOutcomeCallable; - typedef std::function&)> DescribeLoghubDetailAsyncHandler; typedef Outcome DescribeOperatorPermissionOutcome; typedef std::future DescribeOperatorPermissionOutcomeCallable; typedef std::function&)> DescribeOperatorPermissionAsyncHandler; @@ -204,6 +208,9 @@ namespace AlibabaCloud typedef Outcome DescribeTableDetailOutcome; typedef std::future DescribeTableDetailOutcomeCallable; typedef std::function&)> DescribeTableDetailAsyncHandler; + typedef Outcome DescribeTablePartitionDiagnoseOutcome; + typedef std::future DescribeTablePartitionDiagnoseOutcomeCallable; + typedef std::function&)> DescribeTablePartitionDiagnoseAsyncHandler; typedef Outcome DescribeTablesOutcome; typedef std::future DescribeTablesOutcomeCallable; typedef std::function&)> DescribeTablesAsyncHandler; @@ -222,6 +229,9 @@ namespace AlibabaCloud typedef Outcome ModifyAccountDescriptionOutcome; typedef std::future ModifyAccountDescriptionOutcomeCallable; typedef std::function&)> ModifyAccountDescriptionAsyncHandler; + typedef Outcome ModifyAuditLogConfigOutcome; + typedef std::future ModifyAuditLogConfigOutcomeCallable; + typedef std::function&)> ModifyAuditLogConfigAsyncHandler; typedef Outcome ModifyAutoRenewAttributeOutcome; typedef std::future ModifyAutoRenewAttributeOutcomeCallable; typedef std::function&)> ModifyAutoRenewAttributeAsyncHandler; @@ -287,6 +297,12 @@ namespace AlibabaCloud DescribeAllDataSourceOutcome describeAllDataSource(const Model::DescribeAllDataSourceRequest &request)const; void describeAllDataSourceAsync(const Model::DescribeAllDataSourceRequest& request, const DescribeAllDataSourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAllDataSourceOutcomeCallable describeAllDataSourceCallable(const Model::DescribeAllDataSourceRequest& request) const; + DescribeAuditLogConfigOutcome describeAuditLogConfig(const Model::DescribeAuditLogConfigRequest &request)const; + void describeAuditLogConfigAsync(const Model::DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuditLogConfigOutcomeCallable describeAuditLogConfigCallable(const Model::DescribeAuditLogConfigRequest& request) const; + DescribeAuditLogRecordsOutcome describeAuditLogRecords(const Model::DescribeAuditLogRecordsRequest &request)const; + void describeAuditLogRecordsAsync(const Model::DescribeAuditLogRecordsRequest& request, const DescribeAuditLogRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAuditLogRecordsOutcomeCallable describeAuditLogRecordsCallable(const Model::DescribeAuditLogRecordsRequest& request) const; DescribeAutoRenewAttributeOutcome describeAutoRenewAttribute(const Model::DescribeAutoRenewAttributeRequest &request)const; void describeAutoRenewAttributeAsync(const Model::DescribeAutoRenewAttributeRequest& request, const DescribeAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeAutoRenewAttributeOutcomeCallable describeAutoRenewAttributeCallable(const Model::DescribeAutoRenewAttributeRequest& request) const; @@ -320,12 +336,6 @@ namespace AlibabaCloud DescribeInclinedTablesOutcome describeInclinedTables(const Model::DescribeInclinedTablesRequest &request)const; void describeInclinedTablesAsync(const Model::DescribeInclinedTablesRequest& request, const DescribeInclinedTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInclinedTablesOutcomeCallable describeInclinedTablesCallable(const Model::DescribeInclinedTablesRequest& request) const; - DescribeLogStoreKeysOutcome describeLogStoreKeys(const Model::DescribeLogStoreKeysRequest &request)const; - void describeLogStoreKeysAsync(const Model::DescribeLogStoreKeysRequest& request, const DescribeLogStoreKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLogStoreKeysOutcomeCallable describeLogStoreKeysCallable(const Model::DescribeLogStoreKeysRequest& request) const; - DescribeLoghubDetailOutcome describeLoghubDetail(const Model::DescribeLoghubDetailRequest &request)const; - void describeLoghubDetailAsync(const Model::DescribeLoghubDetailRequest& request, const DescribeLoghubDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeLoghubDetailOutcomeCallable describeLoghubDetailCallable(const Model::DescribeLoghubDetailRequest& request) const; DescribeOperatorPermissionOutcome describeOperatorPermission(const Model::DescribeOperatorPermissionRequest &request)const; void describeOperatorPermissionAsync(const Model::DescribeOperatorPermissionRequest& request, const DescribeOperatorPermissionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOperatorPermissionOutcomeCallable describeOperatorPermissionCallable(const Model::DescribeOperatorPermissionRequest& request) const; @@ -347,6 +357,9 @@ namespace AlibabaCloud DescribeTableDetailOutcome describeTableDetail(const Model::DescribeTableDetailRequest &request)const; void describeTableDetailAsync(const Model::DescribeTableDetailRequest& request, const DescribeTableDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTableDetailOutcomeCallable describeTableDetailCallable(const Model::DescribeTableDetailRequest& request) const; + DescribeTablePartitionDiagnoseOutcome describeTablePartitionDiagnose(const Model::DescribeTablePartitionDiagnoseRequest &request)const; + void describeTablePartitionDiagnoseAsync(const Model::DescribeTablePartitionDiagnoseRequest& request, const DescribeTablePartitionDiagnoseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTablePartitionDiagnoseOutcomeCallable describeTablePartitionDiagnoseCallable(const Model::DescribeTablePartitionDiagnoseRequest& request) const; DescribeTablesOutcome describeTables(const Model::DescribeTablesRequest &request)const; void describeTablesAsync(const Model::DescribeTablesRequest& request, const DescribeTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTablesOutcomeCallable describeTablesCallable(const Model::DescribeTablesRequest& request) const; @@ -365,6 +378,9 @@ namespace AlibabaCloud ModifyAccountDescriptionOutcome modifyAccountDescription(const Model::ModifyAccountDescriptionRequest &request)const; void modifyAccountDescriptionAsync(const Model::ModifyAccountDescriptionRequest& request, const ModifyAccountDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAccountDescriptionOutcomeCallable modifyAccountDescriptionCallable(const Model::ModifyAccountDescriptionRequest& request) const; + ModifyAuditLogConfigOutcome modifyAuditLogConfig(const Model::ModifyAuditLogConfigRequest &request)const; + void modifyAuditLogConfigAsync(const Model::ModifyAuditLogConfigRequest& request, const ModifyAuditLogConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAuditLogConfigOutcomeCallable modifyAuditLogConfigCallable(const Model::ModifyAuditLogConfigRequest& request) const; ModifyAutoRenewAttributeOutcome modifyAutoRenewAttribute(const Model::ModifyAutoRenewAttributeRequest &request)const; void modifyAutoRenewAttributeAsync(const Model::ModifyAutoRenewAttributeRequest& request, const ModifyAutoRenewAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyAutoRenewAttributeOutcomeCallable modifyAutoRenewAttributeCallable(const Model::ModifyAutoRenewAttributeRequest& request) const; diff --git a/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h b/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h index 893465773..687981781 100644 --- a/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h +++ b/adb/include/alibabacloud/adb/model/CreateDBClusterRequest.h @@ -41,8 +41,16 @@ namespace AlibabaCloud void setDBClusterDescription(const std::string& dBClusterDescription); std::string getClientToken()const; void setClientToken(const std::string& clientToken); + std::string getStorageType()const; + void setStorageType(const std::string& storageType); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getMode()const; + void setMode(const std::string& mode); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::string getStorageResource()const; + void setStorageResource(const std::string& storageResource); std::string getRegionId()const; void setRegionId(const std::string& regionId); std::string getDBClusterCategory()const; @@ -69,10 +77,14 @@ namespace AlibabaCloud void setVSwitchId(const std::string& vSwitchId); std::string getDBNodeStorage()const; void setDBNodeStorage(const std::string& dBNodeStorage); + std::string getExecutorCount()const; + void setExecutorCount(const std::string& executorCount); std::string getVPCId()const; void setVPCId(const std::string& vPCId); std::string getZoneId()const; void setZoneId(const std::string& zoneId); + std::string getComputeResource()const; + void setComputeResource(const std::string& computeResource); std::string getPayType()const; void setPayType(const std::string& payType); @@ -80,7 +92,11 @@ namespace AlibabaCloud long resourceOwnerId_; std::string dBClusterDescription_; std::string clientToken_; + std::string storageType_; std::string accessKeyId_; + std::string mode_; + std::string resourceGroupId_; + std::string storageResource_; std::string regionId_; std::string dBClusterCategory_; std::string dBClusterNetworkType_; @@ -94,8 +110,10 @@ namespace AlibabaCloud std::string usedTime_; std::string vSwitchId_; std::string dBNodeStorage_; + std::string executorCount_; std::string vPCId_; std::string zoneId_; + std::string computeResource_; std::string payType_; }; diff --git a/adb/include/alibabacloud/adb/model/CreateDBClusterResult.h b/adb/include/alibabacloud/adb/model/CreateDBClusterResult.h index 2b69cf7e8..c48e47590 100644 --- a/adb/include/alibabacloud/adb/model/CreateDBClusterResult.h +++ b/adb/include/alibabacloud/adb/model/CreateDBClusterResult.h @@ -37,12 +37,14 @@ namespace AlibabaCloud CreateDBClusterResult(); explicit CreateDBClusterResult(const std::string &payload); ~CreateDBClusterResult(); + std::string getResourceGroupId()const; std::string getDBClusterId()const; std::string getOrderId()const; protected: void parse(const std::string &payload); private: + std::string resourceGroupId_; std::string dBClusterId_; std::string orderId_; diff --git a/adb/include/alibabacloud/adb/model/DescribeLoghubDetailRequest.h b/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h similarity index 72% rename from adb/include/alibabacloud/adb/model/DescribeLoghubDetailRequest.h rename to adb/include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h index 2e6ef6bd2..8e760e8df 100644 --- a/adb/include/alibabacloud/adb/model/DescribeLoghubDetailRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeLoghubDetailRequest : public RpcServiceRequest + class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogConfigRequest : public RpcServiceRequest { public: - DescribeLoghubDetailRequest(); - ~DescribeLoghubDetailRequest(); + DescribeAuditLogConfigRequest(); + ~DescribeAuditLogConfigRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); @@ -41,29 +41,26 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getProjectName()const; - void setProjectName(const std::string& projectName); 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 getExportName()const; - void setExportName(const std::string& exportName); private: long resourceOwnerId_; std::string accessKeyId_; std::string regionId_; - std::string projectName_; std::string resourceOwnerAccount_; + std::string dBClusterId_; std::string ownerAccount_; long ownerId_; - std::string exportName_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGREQUEST_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigResult.h b/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigResult.h new file mode 100644 index 000000000..5862c4673 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeAuditLogConfigResult.h @@ -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_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogConfigResult : public ServiceResult + { + public: + + + DescribeAuditLogConfigResult(); + explicit DescribeAuditLogConfigResult(const std::string &payload); + ~DescribeAuditLogConfigResult(); + std::string getAuditLogStatus()const; + std::string getDBClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string auditLogStatus_; + std::string dBClusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGCONFIGRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h new file mode 100644 index 000000000..42df3e877 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsRequest.h @@ -0,0 +1,99 @@ +/* + * 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_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogRecordsRequest : public RpcServiceRequest + { + + public: + DescribeAuditLogRecordsRequest(); + ~DescribeAuditLogRecordsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getHostAddress()const; + void setHostAddress(const std::string& hostAddress); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getSqlType()const; + void setSqlType(const std::string& sqlType); + 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 getQueryKeyword()const; + void setQueryKeyword(const std::string& queryKeyword); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getDBName()const; + void setDBName(const std::string& dBName); + std::string getSucceed()const; + void setSucceed(const std::string& succeed); + std::string getUser()const; + void setUser(const std::string& user); + std::string getOrderType()const; + void setOrderType(const std::string& orderType); + + private: + long resourceOwnerId_; + std::string startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string hostAddress_; + std::string regionId_; + int pageSize_; + std::string sqlType_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + std::string queryKeyword_; + std::string endTime_; + long ownerId_; + std::string dBName_; + std::string succeed_; + std::string user_; + std::string orderType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSREQUEST_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h new file mode 100644 index 000000000..7cc863dc4 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeAuditLogRecordsResult.h @@ -0,0 +1,71 @@ +/* + * 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_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeAuditLogRecordsResult : public ServiceResult + { + public: + struct SlowLogRecord + { + std::string connId; + std::string executeTime; + std::string totalTime; + std::string dBName; + std::string processID; + std::string hostAddress; + std::string sQLType; + std::string sQLText; + std::string succeed; + }; + + + DescribeAuditLogRecordsResult(); + explicit DescribeAuditLogRecordsResult(const std::string &payload); + ~DescribeAuditLogRecordsResult(); + std::string getTotalCount()const; + std::string getPageSize()const; + std::string getPageNumber()const; + std::string getDBClusterId()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::string pageSize_; + std::string pageNumber_; + std::string dBClusterId_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBEAUDITLOGRECORDSRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h b/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h index a37cc72a3..01abe0bba 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeAutoRenewAttributeRequest.h @@ -41,6 +41,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getPageSize()const; @@ -58,6 +60,7 @@ namespace AlibabaCloud long resourceOwnerId_; int pageNumber_; std::string accessKeyId_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::string resourceOwnerAccount_; diff --git a/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h b/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h index c950ce047..313ab5fc8 100644 --- a/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeAvailableResourceResult.h @@ -34,30 +34,53 @@ namespace AlibabaCloud public: struct AvailableZone { - struct SupportedSerial + struct SupportedModeItem { - struct SupportedInstanceClass + struct SupportedSerialListItem { - struct SupportedNodeCount + struct SupportedFlexibleResourceItem { - struct NodeCount - { - std::string maxCount; - std::string step; - std::string minCount; - }; - NodeCount nodeCount; - std::vector storageSize; + std::string storageType; + std::vector supportedStorageResource; + std::vector supportedComputeResource; }; - std::string instanceClass; - std::vector supportedNodeCountList; - std::string tips; + struct SupportedInstanceClass + { + struct SupportedNodeCount + { + struct NodeCount + { + std::string maxCount; + std::string step; + std::string minCount; + }; + NodeCount nodeCount; + std::vector storageSize; + }; + struct SupportedExecutor + { + struct NodeCount1 + { + std::string maxCount; + std::string step; + std::string minCount; + }; + NodeCount1 nodeCount1; + }; + std::vector supportedExecutorList; + std::string instanceClass; + std::vector supportedNodeCountList; + std::string tips; + }; + std::string serial; + std::vector supportedFlexibleResource; + std::vector supportedInstanceClassList; }; - std::string serial; - std::vector supportedInstanceClassList; + std::string mode; + std::vector supportedSerialList; }; std::string zoneId; - std::vector supportedSerialList; + std::vector supportedMode; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h index 729952752..e0836d975 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClusterAttributeResult.h @@ -39,15 +39,19 @@ namespace AlibabaCloud std::string value; std::string key; }; + std::string storageResource; std::string category; + std::string resourceGroupId; int port; std::string dBClusterId; std::string dBClusterNetworkType; std::string dBClusterType; + std::string diskType; std::string dBVersion; std::string dtsJobId; long dBNodeCount; std::string commodityCode; + std::string executorCount; std::string lockReason; std::string maintainTime; std::vector tags; @@ -57,7 +61,9 @@ namespace AlibabaCloud std::string vPCId; std::string dBClusterStatus; std::string vSwitchId; + std::string mode; std::string dBClusterDescription; + std::string computeResource; std::string expired; std::string lockMode; std::string payType; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h b/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h index 4c0cba0c4..39ebd56a1 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClustersRequest.h @@ -51,6 +51,8 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getRegionId()const; void setRegionId(const std::string& regionId); int getPageSize()const; @@ -72,6 +74,7 @@ namespace AlibabaCloud std::string dBClusterStatus_; int pageNumber_; std::string accessKeyId_; + std::string resourceGroupId_; std::string regionId_; int pageSize_; std::vector tag_; diff --git a/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h b/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h index 0034f7948..716718415 100644 --- a/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h +++ b/adb/include/alibabacloud/adb/model/DescribeDBClustersResult.h @@ -39,25 +39,39 @@ namespace AlibabaCloud std::string value; std::string key; }; - long dBNodeStorage; + std::string storageResource; std::string category; - std::string dBClusterStatus; - std::string createTime; + std::string resourceGroupId; + std::string port; std::string dBClusterId; - std::string dBClusterDescription; - std::string expired; - std::string payType; - std::string lockMode; - std::string dBNodeClass; + std::string dBClusterNetworkType; std::string dBClusterType; + std::string diskType; std::string dBVersion; std::string dtsJobId; long dBNodeCount; std::string commodityCode; - std::string regionId; - std::string expireTime; + std::string executorCount; std::string lockReason; std::vector tags; + std::string engine; + long dBNodeStorage; + std::string zoneId; + std::string vPCId; + std::string dBClusterStatus; + std::string createTime; + std::string vSwitchId; + std::string mode; + std::string dBClusterDescription; + std::string computeResource; + std::string expired; + std::string payType; + std::string lockMode; + std::string dBNodeClass; + std::string vPCCloudInstanceId; + std::string regionId; + std::string expireTime; + std::string connectionString; std::string rdsInstanceId; }; diff --git a/adb/include/alibabacloud/adb/model/DescribeLoghubDetailResult.h b/adb/include/alibabacloud/adb/model/DescribeLoghubDetailResult.h deleted file mode 100644 index 555dd23c3..000000000 --- a/adb/include/alibabacloud/adb/model/DescribeLoghubDetailResult.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Adb - { - namespace Model - { - class ALIBABACLOUD_ADB_EXPORT DescribeLoghubDetailResult : public ServiceResult - { - public: - struct LoghubInfo - { - struct LogHubStore - { - std::string type; - std::string logKey; - std::string fieldKey; - }; - std::string description; - std::string userName; - std::string zoneId; - std::string projectName; - std::string deliverName; - std::string deliverTime; - std::string dBClusterId; - std::string dBType; - std::string tableName; - bool filterDirtyData; - std::string accessSecret; - std::string logStoreName; - std::string domainUrl; - std::vector logHubStores; - std::string regionId; - std::string accessKey; - std::string schemaName; - std::string password; - }; - - - DescribeLoghubDetailResult(); - explicit DescribeLoghubDetailResult(const std::string &payload); - ~DescribeLoghubDetailResult(); - LoghubInfo getLoghubInfo()const; - - protected: - void parse(const std::string &payload); - private: - LoghubInfo loghubInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGHUBDETAILRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h b/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h new file mode 100644 index 000000000..721f29d10 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseRequest.h @@ -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_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseRequest : public RpcServiceRequest + { + + public: + DescribeTablePartitionDiagnoseRequest(); + ~DescribeTablePartitionDiagnoseRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getPageSize()const; + void setPageSize(int pageSize); + 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_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string dBClusterId_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSEREQUEST_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h b/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h new file mode 100644 index 000000000..34b1b0679 --- /dev/null +++ b/adb/include/alibabacloud/adb/model/DescribeTablePartitionDiagnoseResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Adb + { + namespace Model + { + class ALIBABACLOUD_ADB_EXPORT DescribeTablePartitionDiagnoseResult : public ServiceResult + { + public: + struct TablePartitionDiagnose + { + std::string tableName; + int partitionNumber; + std::string partitionDetail; + std::string schemaName; + }; + + + DescribeTablePartitionDiagnoseResult(); + explicit DescribeTablePartitionDiagnoseResult(const std::string &payload); + ~DescribeTablePartitionDiagnoseResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + int getDBClusterId()const; + long getSuggestMaxRecordsPerPartition()const; + std::vector getItems()const; + long getSuggestMinRecordsPerPartition()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + int dBClusterId_; + long suggestMaxRecordsPerPartition_; + std::vector items_; + long suggestMinRecordsPerPartition_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBETABLEPARTITIONDIAGNOSERESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeLogStoreKeysRequest.h b/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h similarity index 72% rename from adb/include/alibabacloud/adb/model/DescribeLogStoreKeysRequest.h rename to adb/include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h index c7fb75ad5..4ade8caf6 100644 --- a/adb/include/alibabacloud/adb/model/DescribeLogStoreKeysRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeLogStoreKeysRequest : public RpcServiceRequest + class ALIBABACLOUD_ADB_EXPORT ModifyAuditLogConfigRequest : public RpcServiceRequest { public: - DescribeLogStoreKeysRequest(); - ~DescribeLogStoreKeysRequest(); + ModifyAuditLogConfigRequest(); + ~ModifyAuditLogConfigRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); @@ -41,29 +41,29 @@ namespace AlibabaCloud void setAccessKeyId(const std::string& accessKeyId); std::string getRegionId()const; void setRegionId(const std::string& regionId); - std::string getProjectName()const; - void setProjectName(const std::string& projectName); - std::string getLogStoreName()const; - void setLogStoreName(const std::string& logStoreName); 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 getAuditLogStatus()const; + void setAuditLogStatus(const std::string& auditLogStatus); private: long resourceOwnerId_; std::string accessKeyId_; std::string regionId_; - std::string projectName_; - std::string logStoreName_; std::string resourceOwnerAccount_; + std::string dBClusterId_; std::string ownerAccount_; long ownerId_; + std::string auditLogStatus_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGREQUEST_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/DescribeLogStoreKeysResult.h b/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h similarity index 66% rename from adb/include/alibabacloud/adb/model/DescribeLogStoreKeysResult.h rename to adb/include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h index 14b6f2da6..1deca7211 100644 --- a/adb/include/alibabacloud/adb/model/DescribeLogStoreKeysResult.h +++ b/adb/include/alibabacloud/adb/model/ModifyAuditLogConfigResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_H_ -#define ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_H_ +#ifndef ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_ +#define ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_ADB_EXPORT DescribeLogStoreKeysResult : public ServiceResult + class ALIBABACLOUD_ADB_EXPORT ModifyAuditLogConfigResult : public ServiceResult { public: - DescribeLogStoreKeysResult(); - explicit DescribeLogStoreKeysResult(const std::string &payload); - ~DescribeLogStoreKeysResult(); - std::vector getLogStoreKeys()const; + ModifyAuditLogConfigResult(); + explicit ModifyAuditLogConfigResult(const std::string &payload); + ~ModifyAuditLogConfigResult(); protected: void parse(const std::string &payload); private: - std::vector logStoreKeys_; }; } } } -#endif // !ALIBABACLOUD_ADB_MODEL_DESCRIBELOGSTOREKEYSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_ADB_MODEL_MODIFYAUDITLOGCONFIGRESULT_H_ \ No newline at end of file diff --git a/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h b/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h index 2c5370d3c..c8de218a0 100644 --- a/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h +++ b/adb/include/alibabacloud/adb/model/ModifyDBClusterRequest.h @@ -39,8 +39,12 @@ namespace AlibabaCloud void setResourceOwnerId(long resourceOwnerId); std::string getAccessKeyId()const; void setAccessKeyId(const std::string& accessKeyId); + std::string getStorageResource()const; + void setStorageResource(const std::string& storageResource); std::string getDBNodeClass()const; void setDBNodeClass(const std::string& dBNodeClass); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getDBClusterId()const; @@ -53,20 +57,28 @@ namespace AlibabaCloud void setDBNodeGroupCount(const std::string& dBNodeGroupCount); std::string getDBNodeStorage()const; void setDBNodeStorage(const std::string& dBNodeStorage); + std::string getExecutorCount()const; + void setExecutorCount(const std::string& executorCount); std::string getModifyType()const; void setModifyType(const std::string& modifyType); + std::string getComputeResource()const; + void setComputeResource(const std::string& computeResource); private: long resourceOwnerId_; std::string accessKeyId_; + std::string storageResource_; std::string dBNodeClass_; + std::string regionId_; std::string resourceOwnerAccount_; std::string dBClusterId_; std::string ownerAccount_; long ownerId_; std::string dBNodeGroupCount_; std::string dBNodeStorage_; + std::string executorCount_; std::string modifyType_; + std::string computeResource_; }; } diff --git a/adb/src/AdbClient.cc b/adb/src/AdbClient.cc index a62cc82f6..68b525dc8 100644 --- a/adb/src/AdbClient.cc +++ b/adb/src/AdbClient.cc @@ -303,6 +303,78 @@ AdbClient::DescribeAllDataSourceOutcomeCallable AdbClient::describeAllDataSource return task->get_future(); } +AdbClient::DescribeAuditLogConfigOutcome AdbClient::describeAuditLogConfig(const DescribeAuditLogConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuditLogConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuditLogConfigOutcome(DescribeAuditLogConfigResult(outcome.result())); + else + return DescribeAuditLogConfigOutcome(outcome.error()); +} + +void AdbClient::describeAuditLogConfigAsync(const DescribeAuditLogConfigRequest& request, const DescribeAuditLogConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuditLogConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeAuditLogConfigOutcomeCallable AdbClient::describeAuditLogConfigCallable(const DescribeAuditLogConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuditLogConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +AdbClient::DescribeAuditLogRecordsOutcome AdbClient::describeAuditLogRecords(const DescribeAuditLogRecordsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAuditLogRecordsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAuditLogRecordsOutcome(DescribeAuditLogRecordsResult(outcome.result())); + else + return DescribeAuditLogRecordsOutcome(outcome.error()); +} + +void AdbClient::describeAuditLogRecordsAsync(const DescribeAuditLogRecordsRequest& request, const DescribeAuditLogRecordsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAuditLogRecords(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeAuditLogRecordsOutcomeCallable AdbClient::describeAuditLogRecordsCallable(const DescribeAuditLogRecordsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAuditLogRecords(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeAutoRenewAttributeOutcome AdbClient::describeAutoRenewAttribute(const DescribeAutoRenewAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -699,78 +771,6 @@ AdbClient::DescribeInclinedTablesOutcomeCallable AdbClient::describeInclinedTabl return task->get_future(); } -AdbClient::DescribeLogStoreKeysOutcome AdbClient::describeLogStoreKeys(const DescribeLogStoreKeysRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLogStoreKeysOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLogStoreKeysOutcome(DescribeLogStoreKeysResult(outcome.result())); - else - return DescribeLogStoreKeysOutcome(outcome.error()); -} - -void AdbClient::describeLogStoreKeysAsync(const DescribeLogStoreKeysRequest& request, const DescribeLogStoreKeysAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLogStoreKeys(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeLogStoreKeysOutcomeCallable AdbClient::describeLogStoreKeysCallable(const DescribeLogStoreKeysRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLogStoreKeys(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -AdbClient::DescribeLoghubDetailOutcome AdbClient::describeLoghubDetail(const DescribeLoghubDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeLoghubDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeLoghubDetailOutcome(DescribeLoghubDetailResult(outcome.result())); - else - return DescribeLoghubDetailOutcome(outcome.error()); -} - -void AdbClient::describeLoghubDetailAsync(const DescribeLoghubDetailRequest& request, const DescribeLoghubDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeLoghubDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -AdbClient::DescribeLoghubDetailOutcomeCallable AdbClient::describeLoghubDetailCallable(const DescribeLoghubDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeLoghubDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - AdbClient::DescribeOperatorPermissionOutcome AdbClient::describeOperatorPermission(const DescribeOperatorPermissionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +1023,42 @@ AdbClient::DescribeTableDetailOutcomeCallable AdbClient::describeTableDetailCall return task->get_future(); } +AdbClient::DescribeTablePartitionDiagnoseOutcome AdbClient::describeTablePartitionDiagnose(const DescribeTablePartitionDiagnoseRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTablePartitionDiagnoseOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTablePartitionDiagnoseOutcome(DescribeTablePartitionDiagnoseResult(outcome.result())); + else + return DescribeTablePartitionDiagnoseOutcome(outcome.error()); +} + +void AdbClient::describeTablePartitionDiagnoseAsync(const DescribeTablePartitionDiagnoseRequest& request, const DescribeTablePartitionDiagnoseAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTablePartitionDiagnose(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::DescribeTablePartitionDiagnoseOutcomeCallable AdbClient::describeTablePartitionDiagnoseCallable(const DescribeTablePartitionDiagnoseRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTablePartitionDiagnose(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::DescribeTablesOutcome AdbClient::describeTables(const DescribeTablesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1239,6 +1275,42 @@ AdbClient::ModifyAccountDescriptionOutcomeCallable AdbClient::modifyAccountDescr return task->get_future(); } +AdbClient::ModifyAuditLogConfigOutcome AdbClient::modifyAuditLogConfig(const ModifyAuditLogConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyAuditLogConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyAuditLogConfigOutcome(ModifyAuditLogConfigResult(outcome.result())); + else + return ModifyAuditLogConfigOutcome(outcome.error()); +} + +void AdbClient::modifyAuditLogConfigAsync(const ModifyAuditLogConfigRequest& request, const ModifyAuditLogConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyAuditLogConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +AdbClient::ModifyAuditLogConfigOutcomeCallable AdbClient::modifyAuditLogConfigCallable(const ModifyAuditLogConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyAuditLogConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + AdbClient::ModifyAutoRenewAttributeOutcome AdbClient::modifyAutoRenewAttribute(const ModifyAutoRenewAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/adb/src/model/CreateDBClusterRequest.cc b/adb/src/model/CreateDBClusterRequest.cc index c3cfb7b1d..35046a633 100644 --- a/adb/src/model/CreateDBClusterRequest.cc +++ b/adb/src/model/CreateDBClusterRequest.cc @@ -60,6 +60,17 @@ void CreateDBClusterRequest::setClientToken(const std::string& clientToken) setParameter("ClientToken", clientToken); } +std::string CreateDBClusterRequest::getStorageType()const +{ + return storageType_; +} + +void CreateDBClusterRequest::setStorageType(const std::string& storageType) +{ + storageType_ = storageType; + setParameter("StorageType", storageType); +} + std::string CreateDBClusterRequest::getAccessKeyId()const { return accessKeyId_; @@ -71,6 +82,39 @@ void CreateDBClusterRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string CreateDBClusterRequest::getMode()const +{ + return mode_; +} + +void CreateDBClusterRequest::setMode(const std::string& mode) +{ + mode_ = mode; + setParameter("Mode", mode); +} + +std::string CreateDBClusterRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateDBClusterRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::string CreateDBClusterRequest::getStorageResource()const +{ + return storageResource_; +} + +void CreateDBClusterRequest::setStorageResource(const std::string& storageResource) +{ + storageResource_ = storageResource; + setParameter("StorageResource", storageResource); +} + std::string CreateDBClusterRequest::getRegionId()const { return regionId_; @@ -214,6 +258,17 @@ void CreateDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage) setParameter("DBNodeStorage", dBNodeStorage); } +std::string CreateDBClusterRequest::getExecutorCount()const +{ + return executorCount_; +} + +void CreateDBClusterRequest::setExecutorCount(const std::string& executorCount) +{ + executorCount_ = executorCount; + setParameter("ExecutorCount", executorCount); +} + std::string CreateDBClusterRequest::getVPCId()const { return vPCId_; @@ -236,6 +291,17 @@ void CreateDBClusterRequest::setZoneId(const std::string& zoneId) setParameter("ZoneId", zoneId); } +std::string CreateDBClusterRequest::getComputeResource()const +{ + return computeResource_; +} + +void CreateDBClusterRequest::setComputeResource(const std::string& computeResource) +{ + computeResource_ = computeResource; + setParameter("ComputeResource", computeResource); +} + std::string CreateDBClusterRequest::getPayType()const { return payType_; diff --git a/adb/src/model/CreateDBClusterResult.cc b/adb/src/model/CreateDBClusterResult.cc index c69d6acec..d04b5b701 100644 --- a/adb/src/model/CreateDBClusterResult.cc +++ b/adb/src/model/CreateDBClusterResult.cc @@ -43,9 +43,16 @@ void CreateDBClusterResult::parse(const std::string &payload) dBClusterId_ = value["DBClusterId"].asString(); if(!value["OrderId"].isNull()) orderId_ = value["OrderId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); } +std::string CreateDBClusterResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string CreateDBClusterResult::getDBClusterId()const { return dBClusterId_; diff --git a/adb/src/model/DescribeAuditLogConfigRequest.cc b/adb/src/model/DescribeAuditLogConfigRequest.cc new file mode 100644 index 000000000..698ef620d --- /dev/null +++ b/adb/src/model/DescribeAuditLogConfigRequest.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::Adb::Model::DescribeAuditLogConfigRequest; + +DescribeAuditLogConfigRequest::DescribeAuditLogConfigRequest() : + RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeAuditLogConfigRequest::~DescribeAuditLogConfigRequest() +{} + +long DescribeAuditLogConfigRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAuditLogConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeAuditLogConfigRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAuditLogConfigRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string DescribeAuditLogConfigRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAuditLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAuditLogConfigRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void DescribeAuditLogConfigRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setParameter("DBClusterId", dBClusterId); +} + +std::string DescribeAuditLogConfigRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAuditLogConfigRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeAuditLogConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAuditLogConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/adb/src/model/DescribeAuditLogConfigResult.cc b/adb/src/model/DescribeAuditLogConfigResult.cc new file mode 100644 index 000000000..eeda2bc0e --- /dev/null +++ b/adb/src/model/DescribeAuditLogConfigResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeAuditLogConfigResult::DescribeAuditLogConfigResult() : + ServiceResult() +{} + +DescribeAuditLogConfigResult::DescribeAuditLogConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuditLogConfigResult::~DescribeAuditLogConfigResult() +{} + +void DescribeAuditLogConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AuditLogStatus"].isNull()) + auditLogStatus_ = value["AuditLogStatus"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string DescribeAuditLogConfigResult::getAuditLogStatus()const +{ + return auditLogStatus_; +} + +std::string DescribeAuditLogConfigResult::getDBClusterId()const +{ + return dBClusterId_; +} + diff --git a/adb/src/model/DescribeAuditLogRecordsRequest.cc b/adb/src/model/DescribeAuditLogRecordsRequest.cc new file mode 100644 index 000000000..feaf2281b --- /dev/null +++ b/adb/src/model/DescribeAuditLogRecordsRequest.cc @@ -0,0 +1,227 @@ +/* + * 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::Adb::Model::DescribeAuditLogRecordsRequest; + +DescribeAuditLogRecordsRequest::DescribeAuditLogRecordsRequest() : + RpcServiceRequest("adb", "2019-03-15", "DescribeAuditLogRecords") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeAuditLogRecordsRequest::~DescribeAuditLogRecordsRequest() +{} + +long DescribeAuditLogRecordsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeAuditLogRecordsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeAuditLogRecordsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeAuditLogRecordsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +int DescribeAuditLogRecordsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeAuditLogRecordsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeAuditLogRecordsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeAuditLogRecordsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeAuditLogRecordsRequest::getHostAddress()const +{ + return hostAddress_; +} + +void DescribeAuditLogRecordsRequest::setHostAddress(const std::string& hostAddress) +{ + hostAddress_ = hostAddress; + setParameter("HostAddress", hostAddress); +} + +std::string DescribeAuditLogRecordsRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeAuditLogRecordsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeAuditLogRecordsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAuditLogRecordsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeAuditLogRecordsRequest::getSqlType()const +{ + return sqlType_; +} + +void DescribeAuditLogRecordsRequest::setSqlType(const std::string& sqlType) +{ + sqlType_ = sqlType; + setParameter("SqlType", sqlType); +} + +std::string DescribeAuditLogRecordsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeAuditLogRecordsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeAuditLogRecordsRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void DescribeAuditLogRecordsRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setParameter("DBClusterId", dBClusterId); +} + +std::string DescribeAuditLogRecordsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeAuditLogRecordsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string DescribeAuditLogRecordsRequest::getQueryKeyword()const +{ + return queryKeyword_; +} + +void DescribeAuditLogRecordsRequest::setQueryKeyword(const std::string& queryKeyword) +{ + queryKeyword_ = queryKeyword; + setParameter("QueryKeyword", queryKeyword); +} + +std::string DescribeAuditLogRecordsRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeAuditLogRecordsRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +long DescribeAuditLogRecordsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeAuditLogRecordsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeAuditLogRecordsRequest::getDBName()const +{ + return dBName_; +} + +void DescribeAuditLogRecordsRequest::setDBName(const std::string& dBName) +{ + dBName_ = dBName; + setParameter("DBName", dBName); +} + +std::string DescribeAuditLogRecordsRequest::getSucceed()const +{ + return succeed_; +} + +void DescribeAuditLogRecordsRequest::setSucceed(const std::string& succeed) +{ + succeed_ = succeed; + setParameter("Succeed", succeed); +} + +std::string DescribeAuditLogRecordsRequest::getUser()const +{ + return user_; +} + +void DescribeAuditLogRecordsRequest::setUser(const std::string& user) +{ + user_ = user; + setParameter("User", user); +} + +std::string DescribeAuditLogRecordsRequest::getOrderType()const +{ + return orderType_; +} + +void DescribeAuditLogRecordsRequest::setOrderType(const std::string& orderType) +{ + orderType_ = orderType; + setParameter("OrderType", orderType); +} + diff --git a/adb/src/model/DescribeAuditLogRecordsResult.cc b/adb/src/model/DescribeAuditLogRecordsResult.cc new file mode 100644 index 000000000..dabaf982d --- /dev/null +++ b/adb/src/model/DescribeAuditLogRecordsResult.cc @@ -0,0 +1,101 @@ +/* + * 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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeAuditLogRecordsResult::DescribeAuditLogRecordsResult() : + ServiceResult() +{} + +DescribeAuditLogRecordsResult::DescribeAuditLogRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAuditLogRecordsResult::~DescribeAuditLogRecordsResult() +{} + +void DescribeAuditLogRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["SlowLogRecord"]; + for (auto valueItemsSlowLogRecord : allItemsNode) + { + SlowLogRecord itemsObject; + if(!valueItemsSlowLogRecord["HostAddress"].isNull()) + itemsObject.hostAddress = valueItemsSlowLogRecord["HostAddress"].asString(); + if(!valueItemsSlowLogRecord["DBName"].isNull()) + itemsObject.dBName = valueItemsSlowLogRecord["DBName"].asString(); + if(!valueItemsSlowLogRecord["SQLText"].isNull()) + itemsObject.sQLText = valueItemsSlowLogRecord["SQLText"].asString(); + if(!valueItemsSlowLogRecord["SQLType"].isNull()) + itemsObject.sQLType = valueItemsSlowLogRecord["SQLType"].asString(); + if(!valueItemsSlowLogRecord["ConnId"].isNull()) + itemsObject.connId = valueItemsSlowLogRecord["ConnId"].asString(); + if(!valueItemsSlowLogRecord["ExecuteTime"].isNull()) + itemsObject.executeTime = valueItemsSlowLogRecord["ExecuteTime"].asString(); + if(!valueItemsSlowLogRecord["Succeed"].isNull()) + itemsObject.succeed = valueItemsSlowLogRecord["Succeed"].asString(); + if(!valueItemsSlowLogRecord["TotalTime"].isNull()) + itemsObject.totalTime = valueItemsSlowLogRecord["TotalTime"].asString(); + if(!valueItemsSlowLogRecord["ProcessID"].isNull()) + itemsObject.processID = valueItemsSlowLogRecord["ProcessID"].asString(); + items_.push_back(itemsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = value["DBClusterId"].asString(); + +} + +std::string DescribeAuditLogRecordsResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeAuditLogRecordsResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeAuditLogRecordsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeAuditLogRecordsResult::getDBClusterId()const +{ + return dBClusterId_; +} + +std::vector DescribeAuditLogRecordsResult::getItems()const +{ + return items_; +} + diff --git a/adb/src/model/DescribeAutoRenewAttributeRequest.cc b/adb/src/model/DescribeAutoRenewAttributeRequest.cc index 0d1e498a6..08e480df0 100644 --- a/adb/src/model/DescribeAutoRenewAttributeRequest.cc +++ b/adb/src/model/DescribeAutoRenewAttributeRequest.cc @@ -60,6 +60,17 @@ void DescribeAutoRenewAttributeRequest::setAccessKeyId(const std::string& access setParameter("AccessKeyId", accessKeyId); } +std::string DescribeAutoRenewAttributeRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeAutoRenewAttributeRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + std::string DescribeAutoRenewAttributeRequest::getRegionId()const { return regionId_; diff --git a/adb/src/model/DescribeAvailableResourceResult.cc b/adb/src/model/DescribeAvailableResourceResult.cc index c631ecf4a..6a1dcf10c 100644 --- a/adb/src/model/DescribeAvailableResourceResult.cc +++ b/adb/src/model/DescribeAvailableResourceResult.cc @@ -45,39 +45,74 @@ void DescribeAvailableResourceResult::parse(const std::string &payload) AvailableZone availableZoneListObject; if(!valueAvailableZoneListAvailableZone["ZoneId"].isNull()) availableZoneListObject.zoneId = valueAvailableZoneListAvailableZone["ZoneId"].asString(); - auto allSupportedSerialListNode = allAvailableZoneListNode["SupportedSerialList"]["SupportedSerial"]; - for (auto allAvailableZoneListNodeSupportedSerialListSupportedSerial : allSupportedSerialListNode) + auto allSupportedModeNode = allAvailableZoneListNode["SupportedMode"]["SupportedModeItem"]; + for (auto allAvailableZoneListNodeSupportedModeSupportedModeItem : allSupportedModeNode) { - AvailableZone::SupportedSerial supportedSerialListObject; - if(!allAvailableZoneListNodeSupportedSerialListSupportedSerial["Serial"].isNull()) - supportedSerialListObject.serial = allAvailableZoneListNodeSupportedSerialListSupportedSerial["Serial"].asString(); - auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"]; - for (auto allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode) + AvailableZone::SupportedModeItem supportedModeObject; + if(!allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].isNull()) + supportedModeObject.mode = allAvailableZoneListNodeSupportedModeSupportedModeItem["Mode"].asString(); + auto allSupportedSerialListNode = allSupportedModeNode["SupportedSerialList"]["SupportedSerialListItem"]; + for (auto allSupportedModeNodeSupportedSerialListSupportedSerialListItem : allSupportedSerialListNode) { - AvailableZone::SupportedSerial::SupportedInstanceClass supportedInstanceClassListObject; - if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull()) - supportedInstanceClassListObject.instanceClass = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString(); - if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull()) - supportedInstanceClassListObject.tips = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].asString(); - auto allSupportedNodeCountListNode = allSupportedInstanceClassListNode["SupportedNodeCountList"]["SupportedNodeCount"]; - for (auto allSupportedInstanceClassListNodeSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode) + AvailableZone::SupportedModeItem::SupportedSerialListItem supportedSerialListObject; + if(!allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].isNull()) + supportedSerialListObject.serial = allSupportedModeNodeSupportedSerialListSupportedSerialListItem["Serial"].asString(); + auto allSupportedFlexibleResourceNode = allSupportedSerialListNode["SupportedFlexibleResource"]["SupportedFlexibleResourceItem"]; + for (auto allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem : allSupportedFlexibleResourceNode) { - AvailableZone::SupportedSerial::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject; - auto nodeCountNode = value["NodeCount"]; - if(!nodeCountNode["MinCount"].isNull()) - supportedNodeCountListObject.nodeCount.minCount = nodeCountNode["MinCount"].asString(); - if(!nodeCountNode["MaxCount"].isNull()) - supportedNodeCountListObject.nodeCount.maxCount = nodeCountNode["MaxCount"].asString(); - if(!nodeCountNode["Step"].isNull()) - supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString(); - auto allStorageSize = value["StorageSize"]["StorageSize"]; - for (auto value : allStorageSize) - supportedNodeCountListObject.storageSize.push_back(value.asString()); - supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject); + AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedFlexibleResourceItem supportedFlexibleResourceObject; + if(!allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].isNull()) + supportedFlexibleResourceObject.storageType = allSupportedSerialListNodeSupportedFlexibleResourceSupportedFlexibleResourceItem["StorageType"].asString(); + auto allSupportedStorageResource = value["SupportedStorageResource"]["SupportedStorageResource"]; + for (auto value : allSupportedStorageResource) + supportedFlexibleResourceObject.supportedStorageResource.push_back(value.asString()); + auto allSupportedComputeResource = value["SupportedComputeResource"]["SupportedComputeResource"]; + for (auto value : allSupportedComputeResource) + supportedFlexibleResourceObject.supportedComputeResource.push_back(value.asString()); + supportedSerialListObject.supportedFlexibleResource.push_back(supportedFlexibleResourceObject); } - supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject); + auto allSupportedInstanceClassListNode = allSupportedSerialListNode["SupportedInstanceClassList"]["SupportedInstanceClass"]; + for (auto allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass : allSupportedInstanceClassListNode) + { + AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass supportedInstanceClassListObject; + if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].isNull()) + supportedInstanceClassListObject.instanceClass = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["InstanceClass"].asString(); + if(!allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].isNull()) + supportedInstanceClassListObject.tips = allSupportedSerialListNodeSupportedInstanceClassListSupportedInstanceClass["Tips"].asString(); + auto allSupportedNodeCountListNode = allSupportedInstanceClassListNode["SupportedNodeCountList"]["SupportedNodeCount"]; + for (auto allSupportedInstanceClassListNodeSupportedNodeCountListSupportedNodeCount : allSupportedNodeCountListNode) + { + AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedNodeCount supportedNodeCountListObject; + auto nodeCountNode = value["NodeCount"]; + if(!nodeCountNode["MinCount"].isNull()) + supportedNodeCountListObject.nodeCount.minCount = nodeCountNode["MinCount"].asString(); + if(!nodeCountNode["MaxCount"].isNull()) + supportedNodeCountListObject.nodeCount.maxCount = nodeCountNode["MaxCount"].asString(); + if(!nodeCountNode["Step"].isNull()) + supportedNodeCountListObject.nodeCount.step = nodeCountNode["Step"].asString(); + auto allStorageSize = value["StorageSize"]["StorageSize"]; + for (auto value : allStorageSize) + supportedNodeCountListObject.storageSize.push_back(value.asString()); + supportedInstanceClassListObject.supportedNodeCountList.push_back(supportedNodeCountListObject); + } + auto allSupportedExecutorListNode = allSupportedInstanceClassListNode["SupportedExecutorList"]["SupportedExecutor"]; + for (auto allSupportedInstanceClassListNodeSupportedExecutorListSupportedExecutor : allSupportedExecutorListNode) + { + AvailableZone::SupportedModeItem::SupportedSerialListItem::SupportedInstanceClass::SupportedExecutor supportedExecutorListObject; + auto nodeCount1Node = value["NodeCount"]; + if(!nodeCount1Node["MinCount"].isNull()) + supportedExecutorListObject.nodeCount1.minCount = nodeCount1Node["MinCount"].asString(); + if(!nodeCount1Node["MaxCount"].isNull()) + supportedExecutorListObject.nodeCount1.maxCount = nodeCount1Node["MaxCount"].asString(); + if(!nodeCount1Node["Step"].isNull()) + supportedExecutorListObject.nodeCount1.step = nodeCount1Node["Step"].asString(); + supportedInstanceClassListObject.supportedExecutorList.push_back(supportedExecutorListObject); + } + supportedSerialListObject.supportedInstanceClassList.push_back(supportedInstanceClassListObject); + } + supportedModeObject.supportedSerialList.push_back(supportedSerialListObject); } - availableZoneListObject.supportedSerialList.push_back(supportedSerialListObject); + availableZoneListObject.supportedMode.push_back(supportedModeObject); } availableZoneList_.push_back(availableZoneListObject); } diff --git a/adb/src/model/DescribeDBClusterAttributeResult.cc b/adb/src/model/DescribeDBClusterAttributeResult.cc index e2a1925a5..5b44da4af 100644 --- a/adb/src/model/DescribeDBClusterAttributeResult.cc +++ b/adb/src/model/DescribeDBClusterAttributeResult.cc @@ -99,6 +99,18 @@ void DescribeDBClusterAttributeResult::parse(const std::string &payload) itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString(); if(!valueItemsDBCluster["DtsJobId"].isNull()) itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString(); + if(!valueItemsDBCluster["ExecutorCount"].isNull()) + itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString(); + if(!valueItemsDBCluster["DiskType"].isNull()) + itemsObject.diskType = valueItemsDBCluster["DiskType"].asString(); + if(!valueItemsDBCluster["ComputeResource"].isNull()) + itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString(); + if(!valueItemsDBCluster["StorageResource"].isNull()) + itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString(); + if(!valueItemsDBCluster["Mode"].isNull()) + itemsObject.mode = valueItemsDBCluster["Mode"].asString(); + if(!valueItemsDBCluster["ResourceGroupId"].isNull()) + itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString(); auto allTagsNode = allItemsNode["Tags"]["Tag"]; for (auto allItemsNodeTagsTag : allTagsNode) { diff --git a/adb/src/model/DescribeDBClustersRequest.cc b/adb/src/model/DescribeDBClustersRequest.cc index 4cc425878..11174815c 100644 --- a/adb/src/model/DescribeDBClustersRequest.cc +++ b/adb/src/model/DescribeDBClustersRequest.cc @@ -82,6 +82,17 @@ void DescribeDBClustersRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string DescribeDBClustersRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeDBClustersRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + std::string DescribeDBClustersRequest::getRegionId()const { return regionId_; diff --git a/adb/src/model/DescribeDBClustersResult.cc b/adb/src/model/DescribeDBClustersResult.cc index 589be339a..62c22754c 100644 --- a/adb/src/model/DescribeDBClustersResult.cc +++ b/adb/src/model/DescribeDBClustersResult.cc @@ -81,6 +81,34 @@ void DescribeDBClustersResult::parse(const std::string &payload) itemsObject.rdsInstanceId = valueItemsDBCluster["RdsInstanceId"].asString(); if(!valueItemsDBCluster["DtsJobId"].isNull()) itemsObject.dtsJobId = valueItemsDBCluster["DtsJobId"].asString(); + if(!valueItemsDBCluster["ExecutorCount"].isNull()) + itemsObject.executorCount = valueItemsDBCluster["ExecutorCount"].asString(); + if(!valueItemsDBCluster["DiskType"].isNull()) + itemsObject.diskType = valueItemsDBCluster["DiskType"].asString(); + if(!valueItemsDBCluster["VPCCloudInstanceId"].isNull()) + itemsObject.vPCCloudInstanceId = valueItemsDBCluster["VPCCloudInstanceId"].asString(); + if(!valueItemsDBCluster["Engine"].isNull()) + itemsObject.engine = valueItemsDBCluster["Engine"].asString(); + if(!valueItemsDBCluster["DBClusterNetworkType"].isNull()) + itemsObject.dBClusterNetworkType = valueItemsDBCluster["DBClusterNetworkType"].asString(); + if(!valueItemsDBCluster["VPCId"].isNull()) + itemsObject.vPCId = valueItemsDBCluster["VPCId"].asString(); + if(!valueItemsDBCluster["VSwitchId"].isNull()) + itemsObject.vSwitchId = valueItemsDBCluster["VSwitchId"].asString(); + if(!valueItemsDBCluster["ZoneId"].isNull()) + itemsObject.zoneId = valueItemsDBCluster["ZoneId"].asString(); + if(!valueItemsDBCluster["ConnectionString"].isNull()) + itemsObject.connectionString = valueItemsDBCluster["ConnectionString"].asString(); + if(!valueItemsDBCluster["Port"].isNull()) + itemsObject.port = valueItemsDBCluster["Port"].asString(); + if(!valueItemsDBCluster["ComputeResource"].isNull()) + itemsObject.computeResource = valueItemsDBCluster["ComputeResource"].asString(); + if(!valueItemsDBCluster["StorageResource"].isNull()) + itemsObject.storageResource = valueItemsDBCluster["StorageResource"].asString(); + if(!valueItemsDBCluster["Mode"].isNull()) + itemsObject.mode = valueItemsDBCluster["Mode"].asString(); + if(!valueItemsDBCluster["ResourceGroupId"].isNull()) + itemsObject.resourceGroupId = valueItemsDBCluster["ResourceGroupId"].asString(); auto allTagsNode = allItemsNode["Tags"]["Tag"]; for (auto allItemsNodeTagsTag : allTagsNode) { diff --git a/adb/src/model/DescribeLogStoreKeysRequest.cc b/adb/src/model/DescribeLogStoreKeysRequest.cc deleted file mode 100644 index 9216dab6b..000000000 --- a/adb/src/model/DescribeLogStoreKeysRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeLogStoreKeysRequest; - -DescribeLogStoreKeysRequest::DescribeLogStoreKeysRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeLogStoreKeys") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLogStoreKeysRequest::~DescribeLogStoreKeysRequest() -{} - -long DescribeLogStoreKeysRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeLogStoreKeysRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeLogStoreKeysRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeLogStoreKeysRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeLogStoreKeysRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeLogStoreKeysRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribeLogStoreKeysRequest::getProjectName()const -{ - return projectName_; -} - -void DescribeLogStoreKeysRequest::setProjectName(const std::string& projectName) -{ - projectName_ = projectName; - setParameter("ProjectName", projectName); -} - -std::string DescribeLogStoreKeysRequest::getLogStoreName()const -{ - return logStoreName_; -} - -void DescribeLogStoreKeysRequest::setLogStoreName(const std::string& logStoreName) -{ - logStoreName_ = logStoreName; - setParameter("LogStoreName", logStoreName); -} - -std::string DescribeLogStoreKeysRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeLogStoreKeysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeLogStoreKeysRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeLogStoreKeysRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeLogStoreKeysRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeLogStoreKeysRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - diff --git a/adb/src/model/DescribeLoghubDetailRequest.cc b/adb/src/model/DescribeLoghubDetailRequest.cc deleted file mode 100644 index 32b001a63..000000000 --- a/adb/src/model/DescribeLoghubDetailRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Adb::Model::DescribeLoghubDetailRequest; - -DescribeLoghubDetailRequest::DescribeLoghubDetailRequest() : - RpcServiceRequest("adb", "2019-03-15", "DescribeLoghubDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeLoghubDetailRequest::~DescribeLoghubDetailRequest() -{} - -long DescribeLoghubDetailRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void DescribeLoghubDetailRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string DescribeLoghubDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeLoghubDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string DescribeLoghubDetailRequest::getRegionId()const -{ - return regionId_; -} - -void DescribeLoghubDetailRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); -} - -std::string DescribeLoghubDetailRequest::getProjectName()const -{ - return projectName_; -} - -void DescribeLoghubDetailRequest::setProjectName(const std::string& projectName) -{ - projectName_ = projectName; - setParameter("ProjectName", projectName); -} - -std::string DescribeLoghubDetailRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void DescribeLoghubDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string DescribeLoghubDetailRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void DescribeLoghubDetailRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long DescribeLoghubDetailRequest::getOwnerId()const -{ - return ownerId_; -} - -void DescribeLoghubDetailRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string DescribeLoghubDetailRequest::getExportName()const -{ - return exportName_; -} - -void DescribeLoghubDetailRequest::setExportName(const std::string& exportName) -{ - exportName_ = exportName; - setParameter("ExportName", exportName); -} - diff --git a/adb/src/model/DescribeLoghubDetailResult.cc b/adb/src/model/DescribeLoghubDetailResult.cc deleted file mode 100644 index 947289879..000000000 --- a/adb/src/model/DescribeLoghubDetailResult.cc +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Adb; -using namespace AlibabaCloud::Adb::Model; - -DescribeLoghubDetailResult::DescribeLoghubDetailResult() : - ServiceResult() -{} - -DescribeLoghubDetailResult::DescribeLoghubDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeLoghubDetailResult::~DescribeLoghubDetailResult() -{} - -void DescribeLoghubDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto loghubInfoNode = value["LoghubInfo"]; - if(!loghubInfoNode["ProjectName"].isNull()) - loghubInfo_.projectName = loghubInfoNode["ProjectName"].asString(); - if(!loghubInfoNode["LogStoreName"].isNull()) - loghubInfo_.logStoreName = loghubInfoNode["LogStoreName"].asString(); - if(!loghubInfoNode["DeliverName"].isNull()) - loghubInfo_.deliverName = loghubInfoNode["DeliverName"].asString(); - if(!loghubInfoNode["DeliverTime"].isNull()) - loghubInfo_.deliverTime = loghubInfoNode["DeliverTime"].asString(); - if(!loghubInfoNode["DomainUrl"].isNull()) - loghubInfo_.domainUrl = loghubInfoNode["DomainUrl"].asString(); - if(!loghubInfoNode["Description"].isNull()) - loghubInfo_.description = loghubInfoNode["Description"].asString(); - if(!loghubInfoNode["SchemaName"].isNull()) - loghubInfo_.schemaName = loghubInfoNode["SchemaName"].asString(); - if(!loghubInfoNode["TableName"].isNull()) - loghubInfo_.tableName = loghubInfoNode["TableName"].asString(); - if(!loghubInfoNode["RegionId"].isNull()) - loghubInfo_.regionId = loghubInfoNode["RegionId"].asString(); - if(!loghubInfoNode["ZoneId"].isNull()) - loghubInfo_.zoneId = loghubInfoNode["ZoneId"].asString(); - if(!loghubInfoNode["UserName"].isNull()) - loghubInfo_.userName = loghubInfoNode["UserName"].asString(); - if(!loghubInfoNode["Password"].isNull()) - loghubInfo_.password = loghubInfoNode["Password"].asString(); - if(!loghubInfoNode["FilterDirtyData"].isNull()) - loghubInfo_.filterDirtyData = loghubInfoNode["FilterDirtyData"].asString() == "true"; - if(!loghubInfoNode["AccessKey"].isNull()) - loghubInfo_.accessKey = loghubInfoNode["AccessKey"].asString(); - if(!loghubInfoNode["AccessSecret"].isNull()) - loghubInfo_.accessSecret = loghubInfoNode["AccessSecret"].asString(); - if(!loghubInfoNode["DBType"].isNull()) - loghubInfo_.dBType = loghubInfoNode["DBType"].asString(); - if(!loghubInfoNode["DBClusterId"].isNull()) - loghubInfo_.dBClusterId = loghubInfoNode["DBClusterId"].asString(); - auto allLogHubStoresNode = loghubInfoNode["LogHubStores"]["LogHubStore"]; - for (auto loghubInfoNodeLogHubStoresLogHubStore : allLogHubStoresNode) - { - LoghubInfo::LogHubStore logHubStoreObject; - if(!loghubInfoNodeLogHubStoresLogHubStore["LogKey"].isNull()) - logHubStoreObject.logKey = loghubInfoNodeLogHubStoresLogHubStore["LogKey"].asString(); - if(!loghubInfoNodeLogHubStoresLogHubStore["FieldKey"].isNull()) - logHubStoreObject.fieldKey = loghubInfoNodeLogHubStoresLogHubStore["FieldKey"].asString(); - if(!loghubInfoNodeLogHubStoresLogHubStore["Type"].isNull()) - logHubStoreObject.type = loghubInfoNodeLogHubStoresLogHubStore["Type"].asString(); - loghubInfo_.logHubStores.push_back(logHubStoreObject); - } - -} - -DescribeLoghubDetailResult::LoghubInfo DescribeLoghubDetailResult::getLoghubInfo()const -{ - return loghubInfo_; -} - diff --git a/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc b/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc new file mode 100644 index 000000000..a92bf1c0b --- /dev/null +++ b/adb/src/model/DescribeTablePartitionDiagnoseRequest.cc @@ -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 + +using AlibabaCloud::Adb::Model::DescribeTablePartitionDiagnoseRequest; + +DescribeTablePartitionDiagnoseRequest::DescribeTablePartitionDiagnoseRequest() : + RpcServiceRequest("adb", "2019-03-15", "DescribeTablePartitionDiagnose") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeTablePartitionDiagnoseRequest::~DescribeTablePartitionDiagnoseRequest() +{} + +long DescribeTablePartitionDiagnoseRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeTablePartitionDiagnoseRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeTablePartitionDiagnoseRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTablePartitionDiagnoseRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeTablePartitionDiagnoseRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeTablePartitionDiagnoseRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeTablePartitionDiagnoseRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeTablePartitionDiagnoseRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int DescribeTablePartitionDiagnoseRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTablePartitionDiagnoseRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTablePartitionDiagnoseRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeTablePartitionDiagnoseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeTablePartitionDiagnoseRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void DescribeTablePartitionDiagnoseRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setParameter("DBClusterId", dBClusterId); +} + +std::string DescribeTablePartitionDiagnoseRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeTablePartitionDiagnoseRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeTablePartitionDiagnoseRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeTablePartitionDiagnoseRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/adb/src/model/DescribeTablePartitionDiagnoseResult.cc b/adb/src/model/DescribeTablePartitionDiagnoseResult.cc new file mode 100644 index 000000000..15e54b4bd --- /dev/null +++ b/adb/src/model/DescribeTablePartitionDiagnoseResult.cc @@ -0,0 +1,105 @@ +/* + * 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::Adb; +using namespace AlibabaCloud::Adb::Model; + +DescribeTablePartitionDiagnoseResult::DescribeTablePartitionDiagnoseResult() : + ServiceResult() +{} + +DescribeTablePartitionDiagnoseResult::DescribeTablePartitionDiagnoseResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTablePartitionDiagnoseResult::~DescribeTablePartitionDiagnoseResult() +{} + +void DescribeTablePartitionDiagnoseResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["TablePartitionDiagnose"]; + for (auto valueItemsTablePartitionDiagnose : allItemsNode) + { + TablePartitionDiagnose itemsObject; + if(!valueItemsTablePartitionDiagnose["SchemaName"].isNull()) + itemsObject.schemaName = valueItemsTablePartitionDiagnose["SchemaName"].asString(); + if(!valueItemsTablePartitionDiagnose["TableName"].isNull()) + itemsObject.tableName = valueItemsTablePartitionDiagnose["TableName"].asString(); + if(!valueItemsTablePartitionDiagnose["PartitionNumber"].isNull()) + itemsObject.partitionNumber = std::stoi(valueItemsTablePartitionDiagnose["PartitionNumber"].asString()); + if(!valueItemsTablePartitionDiagnose["PartitionDetail"].isNull()) + itemsObject.partitionDetail = valueItemsTablePartitionDiagnose["PartitionDetail"].asString(); + items_.push_back(itemsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["DBClusterId"].isNull()) + dBClusterId_ = std::stoi(value["DBClusterId"].asString()); + if(!value["SuggestMinRecordsPerPartition"].isNull()) + suggestMinRecordsPerPartition_ = std::stol(value["SuggestMinRecordsPerPartition"].asString()); + if(!value["SuggestMaxRecordsPerPartition"].isNull()) + suggestMaxRecordsPerPartition_ = std::stol(value["SuggestMaxRecordsPerPartition"].asString()); + +} + +int DescribeTablePartitionDiagnoseResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeTablePartitionDiagnoseResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeTablePartitionDiagnoseResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeTablePartitionDiagnoseResult::getDBClusterId()const +{ + return dBClusterId_; +} + +long DescribeTablePartitionDiagnoseResult::getSuggestMaxRecordsPerPartition()const +{ + return suggestMaxRecordsPerPartition_; +} + +std::vector DescribeTablePartitionDiagnoseResult::getItems()const +{ + return items_; +} + +long DescribeTablePartitionDiagnoseResult::getSuggestMinRecordsPerPartition()const +{ + return suggestMinRecordsPerPartition_; +} + diff --git a/adb/src/model/ModifyAuditLogConfigRequest.cc b/adb/src/model/ModifyAuditLogConfigRequest.cc new file mode 100644 index 000000000..dbea4e268 --- /dev/null +++ b/adb/src/model/ModifyAuditLogConfigRequest.cc @@ -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 + +using AlibabaCloud::Adb::Model::ModifyAuditLogConfigRequest; + +ModifyAuditLogConfigRequest::ModifyAuditLogConfigRequest() : + RpcServiceRequest("adb", "2019-03-15", "ModifyAuditLogConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyAuditLogConfigRequest::~ModifyAuditLogConfigRequest() +{} + +long ModifyAuditLogConfigRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyAuditLogConfigRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyAuditLogConfigRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyAuditLogConfigRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyAuditLogConfigRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyAuditLogConfigRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ModifyAuditLogConfigRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyAuditLogConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyAuditLogConfigRequest::getDBClusterId()const +{ + return dBClusterId_; +} + +void ModifyAuditLogConfigRequest::setDBClusterId(const std::string& dBClusterId) +{ + dBClusterId_ = dBClusterId; + setParameter("DBClusterId", dBClusterId); +} + +std::string ModifyAuditLogConfigRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyAuditLogConfigRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyAuditLogConfigRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyAuditLogConfigRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyAuditLogConfigRequest::getAuditLogStatus()const +{ + return auditLogStatus_; +} + +void ModifyAuditLogConfigRequest::setAuditLogStatus(const std::string& auditLogStatus) +{ + auditLogStatus_ = auditLogStatus; + setParameter("AuditLogStatus", auditLogStatus); +} + diff --git a/adb/src/model/DescribeLogStoreKeysResult.cc b/adb/src/model/ModifyAuditLogConfigResult.cc similarity index 62% rename from adb/src/model/DescribeLogStoreKeysResult.cc rename to adb/src/model/ModifyAuditLogConfigResult.cc index 9dba8e612..faeb07748 100644 --- a/adb/src/model/DescribeLogStoreKeysResult.cc +++ b/adb/src/model/ModifyAuditLogConfigResult.cc @@ -14,39 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Adb; using namespace AlibabaCloud::Adb::Model; -DescribeLogStoreKeysResult::DescribeLogStoreKeysResult() : +ModifyAuditLogConfigResult::ModifyAuditLogConfigResult() : ServiceResult() {} -DescribeLogStoreKeysResult::DescribeLogStoreKeysResult(const std::string &payload) : +ModifyAuditLogConfigResult::ModifyAuditLogConfigResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeLogStoreKeysResult::~DescribeLogStoreKeysResult() +ModifyAuditLogConfigResult::~ModifyAuditLogConfigResult() {} -void DescribeLogStoreKeysResult::parse(const std::string &payload) +void ModifyAuditLogConfigResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allLogStoreKeys = value["LogStoreKeys"]["LogStoreKey"]; - for (const auto &item : allLogStoreKeys) - logStoreKeys_.push_back(item.asString()); } -std::vector DescribeLogStoreKeysResult::getLogStoreKeys()const -{ - return logStoreKeys_; -} - diff --git a/adb/src/model/ModifyDBClusterRequest.cc b/adb/src/model/ModifyDBClusterRequest.cc index 2bdd41a11..1e37a05ac 100644 --- a/adb/src/model/ModifyDBClusterRequest.cc +++ b/adb/src/model/ModifyDBClusterRequest.cc @@ -49,6 +49,17 @@ void ModifyDBClusterRequest::setAccessKeyId(const std::string& accessKeyId) setParameter("AccessKeyId", accessKeyId); } +std::string ModifyDBClusterRequest::getStorageResource()const +{ + return storageResource_; +} + +void ModifyDBClusterRequest::setStorageResource(const std::string& storageResource) +{ + storageResource_ = storageResource; + setParameter("StorageResource", storageResource); +} + std::string ModifyDBClusterRequest::getDBNodeClass()const { return dBNodeClass_; @@ -60,6 +71,17 @@ void ModifyDBClusterRequest::setDBNodeClass(const std::string& dBNodeClass) setParameter("DBNodeClass", dBNodeClass); } +std::string ModifyDBClusterRequest::getRegionId()const +{ + return regionId_; +} + +void ModifyDBClusterRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + std::string ModifyDBClusterRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; @@ -126,6 +148,17 @@ void ModifyDBClusterRequest::setDBNodeStorage(const std::string& dBNodeStorage) setParameter("DBNodeStorage", dBNodeStorage); } +std::string ModifyDBClusterRequest::getExecutorCount()const +{ + return executorCount_; +} + +void ModifyDBClusterRequest::setExecutorCount(const std::string& executorCount) +{ + executorCount_ = executorCount; + setParameter("ExecutorCount", executorCount); +} + std::string ModifyDBClusterRequest::getModifyType()const { return modifyType_; @@ -137,3 +170,14 @@ void ModifyDBClusterRequest::setModifyType(const std::string& modifyType) setParameter("ModifyType", modifyType); } +std::string ModifyDBClusterRequest::getComputeResource()const +{ + return computeResource_; +} + +void ModifyDBClusterRequest::setComputeResource(const std::string& computeResource) +{ + computeResource_ = computeResource; + setParameter("ComputeResource", computeResource); +} +