diff --git a/CHANGELOG b/CHANGELOG index 6ebcc402d..ae98460c3 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-10-20 Version: patch +- Support modifyInstnaceType. + 2020-10-20 Version: patch - Add LivenessFaceVerify API. diff --git a/hbase/CMakeLists.txt b/hbase/CMakeLists.txt index 1f253875f..979550bbc 100644 --- a/hbase/CMakeLists.txt +++ b/hbase/CMakeLists.txt @@ -59,10 +59,14 @@ set(hbase_public_header_model include/alibabacloud/hbase/model/DescribeBackupSummaryResult.h include/alibabacloud/hbase/model/DescribeBackupTablesRequest.h include/alibabacloud/hbase/model/DescribeBackupTablesResult.h + include/alibabacloud/hbase/model/DescribeClusterConnectionRequest.h + include/alibabacloud/hbase/model/DescribeClusterConnectionResult.h include/alibabacloud/hbase/model/DescribeDBInstanceUsageRequest.h include/alibabacloud/hbase/model/DescribeDBInstanceUsageResult.h include/alibabacloud/hbase/model/DescribeDeletedInstancesRequest.h include/alibabacloud/hbase/model/DescribeDeletedInstancesResult.h + include/alibabacloud/hbase/model/DescribeDiskWarningLineRequest.h + include/alibabacloud/hbase/model/DescribeDiskWarningLineResult.h include/alibabacloud/hbase/model/DescribeEndpointsRequest.h include/alibabacloud/hbase/model/DescribeEndpointsResult.h include/alibabacloud/hbase/model/DescribeInstanceRequest.h @@ -109,10 +113,14 @@ set(hbase_public_header_model include/alibabacloud/hbase/model/ModifyBackupPlanConfigResult.h include/alibabacloud/hbase/model/ModifyClusterDeletionProtectionRequest.h include/alibabacloud/hbase/model/ModifyClusterDeletionProtectionResult.h + include/alibabacloud/hbase/model/ModifyDiskWarningLineRequest.h + include/alibabacloud/hbase/model/ModifyDiskWarningLineResult.h include/alibabacloud/hbase/model/ModifyInstanceMaintainTimeRequest.h include/alibabacloud/hbase/model/ModifyInstanceMaintainTimeResult.h include/alibabacloud/hbase/model/ModifyInstanceNameRequest.h include/alibabacloud/hbase/model/ModifyInstanceNameResult.h + include/alibabacloud/hbase/model/ModifyInstanceTypeRequest.h + include/alibabacloud/hbase/model/ModifyInstanceTypeResult.h include/alibabacloud/hbase/model/ModifyIpWhitelistRequest.h include/alibabacloud/hbase/model/ModifyIpWhitelistResult.h include/alibabacloud/hbase/model/ModifyMultiZoneClusterNodeTypeRequest.h @@ -129,6 +137,8 @@ set(hbase_public_header_model include/alibabacloud/hbase/model/QueryXpackRelateDBResult.h include/alibabacloud/hbase/model/RenewInstanceRequest.h include/alibabacloud/hbase/model/RenewInstanceResult.h + include/alibabacloud/hbase/model/ResizeColdStorageSizeRequest.h + include/alibabacloud/hbase/model/ResizeColdStorageSizeResult.h include/alibabacloud/hbase/model/ResizeDiskSizeRequest.h include/alibabacloud/hbase/model/ResizeDiskSizeResult.h include/alibabacloud/hbase/model/ResizeMultiZoneClusterDiskSizeRequest.h @@ -190,10 +200,14 @@ set(hbase_src src/model/DescribeBackupSummaryResult.cc src/model/DescribeBackupTablesRequest.cc src/model/DescribeBackupTablesResult.cc + src/model/DescribeClusterConnectionRequest.cc + src/model/DescribeClusterConnectionResult.cc src/model/DescribeDBInstanceUsageRequest.cc src/model/DescribeDBInstanceUsageResult.cc src/model/DescribeDeletedInstancesRequest.cc src/model/DescribeDeletedInstancesResult.cc + src/model/DescribeDiskWarningLineRequest.cc + src/model/DescribeDiskWarningLineResult.cc src/model/DescribeEndpointsRequest.cc src/model/DescribeEndpointsResult.cc src/model/DescribeInstanceRequest.cc @@ -240,10 +254,14 @@ set(hbase_src src/model/ModifyBackupPlanConfigResult.cc src/model/ModifyClusterDeletionProtectionRequest.cc src/model/ModifyClusterDeletionProtectionResult.cc + src/model/ModifyDiskWarningLineRequest.cc + src/model/ModifyDiskWarningLineResult.cc src/model/ModifyInstanceMaintainTimeRequest.cc src/model/ModifyInstanceMaintainTimeResult.cc src/model/ModifyInstanceNameRequest.cc src/model/ModifyInstanceNameResult.cc + src/model/ModifyInstanceTypeRequest.cc + src/model/ModifyInstanceTypeResult.cc src/model/ModifyIpWhitelistRequest.cc src/model/ModifyIpWhitelistResult.cc src/model/ModifyMultiZoneClusterNodeTypeRequest.cc @@ -260,6 +278,8 @@ set(hbase_src src/model/QueryXpackRelateDBResult.cc src/model/RenewInstanceRequest.cc src/model/RenewInstanceResult.cc + src/model/ResizeColdStorageSizeRequest.cc + src/model/ResizeColdStorageSizeResult.cc src/model/ResizeDiskSizeRequest.cc src/model/ResizeDiskSizeResult.cc src/model/ResizeMultiZoneClusterDiskSizeRequest.cc diff --git a/hbase/include/alibabacloud/hbase/HBaseClient.h b/hbase/include/alibabacloud/hbase/HBaseClient.h index 70db8e471..6b09d425f 100644 --- a/hbase/include/alibabacloud/hbase/HBaseClient.h +++ b/hbase/include/alibabacloud/hbase/HBaseClient.h @@ -60,10 +60,14 @@ #include "model/DescribeBackupSummaryResult.h" #include "model/DescribeBackupTablesRequest.h" #include "model/DescribeBackupTablesResult.h" +#include "model/DescribeClusterConnectionRequest.h" +#include "model/DescribeClusterConnectionResult.h" #include "model/DescribeDBInstanceUsageRequest.h" #include "model/DescribeDBInstanceUsageResult.h" #include "model/DescribeDeletedInstancesRequest.h" #include "model/DescribeDeletedInstancesResult.h" +#include "model/DescribeDiskWarningLineRequest.h" +#include "model/DescribeDiskWarningLineResult.h" #include "model/DescribeEndpointsRequest.h" #include "model/DescribeEndpointsResult.h" #include "model/DescribeInstanceRequest.h" @@ -110,10 +114,14 @@ #include "model/ModifyBackupPlanConfigResult.h" #include "model/ModifyClusterDeletionProtectionRequest.h" #include "model/ModifyClusterDeletionProtectionResult.h" +#include "model/ModifyDiskWarningLineRequest.h" +#include "model/ModifyDiskWarningLineResult.h" #include "model/ModifyInstanceMaintainTimeRequest.h" #include "model/ModifyInstanceMaintainTimeResult.h" #include "model/ModifyInstanceNameRequest.h" #include "model/ModifyInstanceNameResult.h" +#include "model/ModifyInstanceTypeRequest.h" +#include "model/ModifyInstanceTypeResult.h" #include "model/ModifyIpWhitelistRequest.h" #include "model/ModifyIpWhitelistResult.h" #include "model/ModifyMultiZoneClusterNodeTypeRequest.h" @@ -130,6 +138,8 @@ #include "model/QueryXpackRelateDBResult.h" #include "model/RenewInstanceRequest.h" #include "model/RenewInstanceResult.h" +#include "model/ResizeColdStorageSizeRequest.h" +#include "model/ResizeColdStorageSizeResult.h" #include "model/ResizeDiskSizeRequest.h" #include "model/ResizeDiskSizeResult.h" #include "model/ResizeMultiZoneClusterDiskSizeRequest.h" @@ -216,12 +226,18 @@ namespace AlibabaCloud typedef Outcome DescribeBackupTablesOutcome; typedef std::future DescribeBackupTablesOutcomeCallable; typedef std::function&)> DescribeBackupTablesAsyncHandler; + typedef Outcome DescribeClusterConnectionOutcome; + typedef std::future DescribeClusterConnectionOutcomeCallable; + typedef std::function&)> DescribeClusterConnectionAsyncHandler; typedef Outcome DescribeDBInstanceUsageOutcome; typedef std::future DescribeDBInstanceUsageOutcomeCallable; typedef std::function&)> DescribeDBInstanceUsageAsyncHandler; typedef Outcome DescribeDeletedInstancesOutcome; typedef std::future DescribeDeletedInstancesOutcomeCallable; typedef std::function&)> DescribeDeletedInstancesAsyncHandler; + typedef Outcome DescribeDiskWarningLineOutcome; + typedef std::future DescribeDiskWarningLineOutcomeCallable; + typedef std::function&)> DescribeDiskWarningLineAsyncHandler; typedef Outcome DescribeEndpointsOutcome; typedef std::future DescribeEndpointsOutcomeCallable; typedef std::function&)> DescribeEndpointsAsyncHandler; @@ -291,12 +307,18 @@ namespace AlibabaCloud typedef Outcome ModifyClusterDeletionProtectionOutcome; typedef std::future ModifyClusterDeletionProtectionOutcomeCallable; typedef std::function&)> ModifyClusterDeletionProtectionAsyncHandler; + typedef Outcome ModifyDiskWarningLineOutcome; + typedef std::future ModifyDiskWarningLineOutcomeCallable; + typedef std::function&)> ModifyDiskWarningLineAsyncHandler; typedef Outcome ModifyInstanceMaintainTimeOutcome; typedef std::future ModifyInstanceMaintainTimeOutcomeCallable; typedef std::function&)> ModifyInstanceMaintainTimeAsyncHandler; typedef Outcome ModifyInstanceNameOutcome; typedef std::future ModifyInstanceNameOutcomeCallable; typedef std::function&)> ModifyInstanceNameAsyncHandler; + typedef Outcome ModifyInstanceTypeOutcome; + typedef std::future ModifyInstanceTypeOutcomeCallable; + typedef std::function&)> ModifyInstanceTypeAsyncHandler; typedef Outcome ModifyIpWhitelistOutcome; typedef std::future ModifyIpWhitelistOutcomeCallable; typedef std::function&)> ModifyIpWhitelistAsyncHandler; @@ -321,6 +343,9 @@ namespace AlibabaCloud typedef Outcome RenewInstanceOutcome; typedef std::future RenewInstanceOutcomeCallable; typedef std::function&)> RenewInstanceAsyncHandler; + typedef Outcome ResizeColdStorageSizeOutcome; + typedef std::future ResizeColdStorageSizeOutcomeCallable; + typedef std::function&)> ResizeColdStorageSizeAsyncHandler; typedef Outcome ResizeDiskSizeOutcome; typedef std::future ResizeDiskSizeOutcomeCallable; typedef std::function&)> ResizeDiskSizeAsyncHandler; @@ -413,12 +438,18 @@ namespace AlibabaCloud DescribeBackupTablesOutcome describeBackupTables(const Model::DescribeBackupTablesRequest &request)const; void describeBackupTablesAsync(const Model::DescribeBackupTablesRequest& request, const DescribeBackupTablesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBackupTablesOutcomeCallable describeBackupTablesCallable(const Model::DescribeBackupTablesRequest& request) const; + DescribeClusterConnectionOutcome describeClusterConnection(const Model::DescribeClusterConnectionRequest &request)const; + void describeClusterConnectionAsync(const Model::DescribeClusterConnectionRequest& request, const DescribeClusterConnectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClusterConnectionOutcomeCallable describeClusterConnectionCallable(const Model::DescribeClusterConnectionRequest& request) const; DescribeDBInstanceUsageOutcome describeDBInstanceUsage(const Model::DescribeDBInstanceUsageRequest &request)const; void describeDBInstanceUsageAsync(const Model::DescribeDBInstanceUsageRequest& request, const DescribeDBInstanceUsageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDBInstanceUsageOutcomeCallable describeDBInstanceUsageCallable(const Model::DescribeDBInstanceUsageRequest& request) const; DescribeDeletedInstancesOutcome describeDeletedInstances(const Model::DescribeDeletedInstancesRequest &request)const; void describeDeletedInstancesAsync(const Model::DescribeDeletedInstancesRequest& request, const DescribeDeletedInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDeletedInstancesOutcomeCallable describeDeletedInstancesCallable(const Model::DescribeDeletedInstancesRequest& request) const; + DescribeDiskWarningLineOutcome describeDiskWarningLine(const Model::DescribeDiskWarningLineRequest &request)const; + void describeDiskWarningLineAsync(const Model::DescribeDiskWarningLineRequest& request, const DescribeDiskWarningLineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDiskWarningLineOutcomeCallable describeDiskWarningLineCallable(const Model::DescribeDiskWarningLineRequest& request) const; DescribeEndpointsOutcome describeEndpoints(const Model::DescribeEndpointsRequest &request)const; void describeEndpointsAsync(const Model::DescribeEndpointsRequest& request, const DescribeEndpointsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeEndpointsOutcomeCallable describeEndpointsCallable(const Model::DescribeEndpointsRequest& request) const; @@ -488,12 +519,18 @@ namespace AlibabaCloud ModifyClusterDeletionProtectionOutcome modifyClusterDeletionProtection(const Model::ModifyClusterDeletionProtectionRequest &request)const; void modifyClusterDeletionProtectionAsync(const Model::ModifyClusterDeletionProtectionRequest& request, const ModifyClusterDeletionProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyClusterDeletionProtectionOutcomeCallable modifyClusterDeletionProtectionCallable(const Model::ModifyClusterDeletionProtectionRequest& request) const; + ModifyDiskWarningLineOutcome modifyDiskWarningLine(const Model::ModifyDiskWarningLineRequest &request)const; + void modifyDiskWarningLineAsync(const Model::ModifyDiskWarningLineRequest& request, const ModifyDiskWarningLineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyDiskWarningLineOutcomeCallable modifyDiskWarningLineCallable(const Model::ModifyDiskWarningLineRequest& request) const; ModifyInstanceMaintainTimeOutcome modifyInstanceMaintainTime(const Model::ModifyInstanceMaintainTimeRequest &request)const; void modifyInstanceMaintainTimeAsync(const Model::ModifyInstanceMaintainTimeRequest& request, const ModifyInstanceMaintainTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceMaintainTimeOutcomeCallable modifyInstanceMaintainTimeCallable(const Model::ModifyInstanceMaintainTimeRequest& request) const; ModifyInstanceNameOutcome modifyInstanceName(const Model::ModifyInstanceNameRequest &request)const; void modifyInstanceNameAsync(const Model::ModifyInstanceNameRequest& request, const ModifyInstanceNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceNameOutcomeCallable modifyInstanceNameCallable(const Model::ModifyInstanceNameRequest& request) const; + ModifyInstanceTypeOutcome modifyInstanceType(const Model::ModifyInstanceTypeRequest &request)const; + void modifyInstanceTypeAsync(const Model::ModifyInstanceTypeRequest& request, const ModifyInstanceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyInstanceTypeOutcomeCallable modifyInstanceTypeCallable(const Model::ModifyInstanceTypeRequest& request) const; ModifyIpWhitelistOutcome modifyIpWhitelist(const Model::ModifyIpWhitelistRequest &request)const; void modifyIpWhitelistAsync(const Model::ModifyIpWhitelistRequest& request, const ModifyIpWhitelistAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyIpWhitelistOutcomeCallable modifyIpWhitelistCallable(const Model::ModifyIpWhitelistRequest& request) const; @@ -518,6 +555,9 @@ namespace AlibabaCloud RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const; void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const; + ResizeColdStorageSizeOutcome resizeColdStorageSize(const Model::ResizeColdStorageSizeRequest &request)const; + void resizeColdStorageSizeAsync(const Model::ResizeColdStorageSizeRequest& request, const ResizeColdStorageSizeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ResizeColdStorageSizeOutcomeCallable resizeColdStorageSizeCallable(const Model::ResizeColdStorageSizeRequest& request) const; ResizeDiskSizeOutcome resizeDiskSize(const Model::ResizeDiskSizeRequest &request)const; void resizeDiskSizeAsync(const Model::ResizeDiskSizeRequest& request, const ResizeDiskSizeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResizeDiskSizeOutcomeCallable resizeDiskSizeCallable(const Model::ResizeDiskSizeRequest& request) const; diff --git a/hbase/include/alibabacloud/hbase/model/DescribeClusterConnectionRequest.h b/hbase/include/alibabacloud/hbase/model/DescribeClusterConnectionRequest.h new file mode 100644 index 000000000..66310ddd2 --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/DescribeClusterConnectionRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HBASE_MODEL_DESCRIBECLUSTERCONNECTIONREQUEST_H_ +#define ALIBABACLOUD_HBASE_MODEL_DESCRIBECLUSTERCONNECTIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT DescribeClusterConnectionRequest : public RpcServiceRequest + { + + public: + DescribeClusterConnectionRequest(); + ~DescribeClusterConnectionRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + + private: + std::string clusterId_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBECLUSTERCONNECTIONREQUEST_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/DescribeClusterConnectionResult.h b/hbase/include/alibabacloud/hbase/model/DescribeClusterConnectionResult.h new file mode 100644 index 000000000..620d7c09a --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/DescribeClusterConnectionResult.h @@ -0,0 +1,109 @@ +/* + * 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_HBASE_MODEL_DESCRIBECLUSTERCONNECTIONRESULT_H_ +#define ALIBABACLOUD_HBASE_MODEL_DESCRIBECLUSTERCONNECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT DescribeClusterConnectionResult : public ServiceResult + { + public: + struct UiProxyConnAddrInfo + { + std::string connAddrPort; + std::string connAddr; + std::string netType; + }; + struct ThriftConn + { + std::string connAddrPort; + std::string connAddr; + std::string netType; + }; + struct ZkConnAddr + { + std::string connAddrPort; + std::string connAddr; + std::string netType; + }; + struct SlbConnAddr + { + struct ConnAddrInfo + { + std::string connAddrPort; + std::string connAddr; + std::string netType; + }; + ConnAddrInfo connAddrInfo; + std::string slbType; + }; + struct ServiceConnAddr + { + struct ConnAddrInfo1 + { + std::string connAddrPort; + std::string connAddr; + std::string netType; + }; + std::string connType; + ConnAddrInfo1 connAddrInfo1; + }; + + + DescribeClusterConnectionResult(); + explicit DescribeClusterConnectionResult(const std::string &payload); + ~DescribeClusterConnectionResult(); + std::string getIsMultimod()const; + UiProxyConnAddrInfo getUiProxyConnAddrInfo()const; + std::string getVpcId()const; + std::string getVSwitchId()const; + std::vector getServiceConnAddrs()const; + std::string getNetType()const; + ThriftConn getThriftConn()const; + std::string getDbType()const; + std::vector getZkConnAddrs()const; + std::vector getSlbConnAddrs()const; + + protected: + void parse(const std::string &payload); + private: + std::string isMultimod_; + UiProxyConnAddrInfo uiProxyConnAddrInfo_; + std::string vpcId_; + std::string vSwitchId_; + std::vector serviceConnAddrs_; + std::string netType_; + ThriftConn thriftConn_; + std::string dbType_; + std::vector zkConnAddrs_; + std::vector slbConnAddrs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBECLUSTERCONNECTIONRESULT_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/DescribeDiskWarningLineRequest.h b/hbase/include/alibabacloud/hbase/model/DescribeDiskWarningLineRequest.h new file mode 100644 index 000000000..26c1e2921 --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/DescribeDiskWarningLineRequest.h @@ -0,0 +1,48 @@ +/* + * 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_HBASE_MODEL_DESCRIBEDISKWARNINGLINEREQUEST_H_ +#define ALIBABACLOUD_HBASE_MODEL_DESCRIBEDISKWARNINGLINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT DescribeDiskWarningLineRequest : public RpcServiceRequest + { + + public: + DescribeDiskWarningLineRequest(); + ~DescribeDiskWarningLineRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + + private: + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBEDISKWARNINGLINEREQUEST_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/DescribeDiskWarningLineResult.h b/hbase/include/alibabacloud/hbase/model/DescribeDiskWarningLineResult.h new file mode 100644 index 000000000..257faf959 --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/DescribeDiskWarningLineResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HBASE_MODEL_DESCRIBEDISKWARNINGLINERESULT_H_ +#define ALIBABACLOUD_HBASE_MODEL_DESCRIBEDISKWARNINGLINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT DescribeDiskWarningLineResult : public ServiceResult + { + public: + + + DescribeDiskWarningLineResult(); + explicit DescribeDiskWarningLineResult(const std::string &payload); + ~DescribeDiskWarningLineResult(); + std::string getWarningLine()const; + + protected: + void parse(const std::string &payload); + private: + std::string warningLine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_DESCRIBEDISKWARNINGLINERESULT_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/ModifyDiskWarningLineRequest.h b/hbase/include/alibabacloud/hbase/model/ModifyDiskWarningLineRequest.h new file mode 100644 index 000000000..02897db8a --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/ModifyDiskWarningLineRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HBASE_MODEL_MODIFYDISKWARNINGLINEREQUEST_H_ +#define ALIBABACLOUD_HBASE_MODEL_MODIFYDISKWARNINGLINEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT ModifyDiskWarningLineRequest : public RpcServiceRequest + { + + public: + ModifyDiskWarningLineRequest(); + ~ModifyDiskWarningLineRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getWarningLine()const; + void setWarningLine(int warningLine); + + private: + std::string clusterId_; + int warningLine_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_MODIFYDISKWARNINGLINEREQUEST_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/ModifyDiskWarningLineResult.h b/hbase/include/alibabacloud/hbase/model/ModifyDiskWarningLineResult.h new file mode 100644 index 000000000..8b681f858 --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/ModifyDiskWarningLineResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HBASE_MODEL_MODIFYDISKWARNINGLINERESULT_H_ +#define ALIBABACLOUD_HBASE_MODEL_MODIFYDISKWARNINGLINERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT ModifyDiskWarningLineResult : public ServiceResult + { + public: + + + ModifyDiskWarningLineResult(); + explicit ModifyDiskWarningLineResult(const std::string &payload); + ~ModifyDiskWarningLineResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_MODIFYDISKWARNINGLINERESULT_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/ModifyInstanceTypeRequest.h b/hbase/include/alibabacloud/hbase/model/ModifyInstanceTypeRequest.h new file mode 100644 index 000000000..4dcbd4110 --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/ModifyInstanceTypeRequest.h @@ -0,0 +1,54 @@ +/* + * 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_HBASE_MODEL_MODIFYINSTANCETYPEREQUEST_H_ +#define ALIBABACLOUD_HBASE_MODEL_MODIFYINSTANCETYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT ModifyInstanceTypeRequest : public RpcServiceRequest + { + + public: + ModifyInstanceTypeRequest(); + ~ModifyInstanceTypeRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + std::string getMasterInstanceType()const; + void setMasterInstanceType(const std::string& masterInstanceType); + std::string getCoreInstanceType()const; + void setCoreInstanceType(const std::string& coreInstanceType); + + private: + std::string clusterId_; + std::string masterInstanceType_; + std::string coreInstanceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_MODIFYINSTANCETYPEREQUEST_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/ModifyInstanceTypeResult.h b/hbase/include/alibabacloud/hbase/model/ModifyInstanceTypeResult.h new file mode 100644 index 000000000..f1966d29e --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/ModifyInstanceTypeResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HBASE_MODEL_MODIFYINSTANCETYPERESULT_H_ +#define ALIBABACLOUD_HBASE_MODEL_MODIFYINSTANCETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT ModifyInstanceTypeResult : public ServiceResult + { + public: + + + ModifyInstanceTypeResult(); + explicit ModifyInstanceTypeResult(const std::string &payload); + ~ModifyInstanceTypeResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_MODIFYINSTANCETYPERESULT_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/ResizeColdStorageSizeRequest.h b/hbase/include/alibabacloud/hbase/model/ResizeColdStorageSizeRequest.h new file mode 100644 index 000000000..42eb74a8d --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/ResizeColdStorageSizeRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HBASE_MODEL_RESIZECOLDSTORAGESIZEREQUEST_H_ +#define ALIBABACLOUD_HBASE_MODEL_RESIZECOLDSTORAGESIZEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT ResizeColdStorageSizeRequest : public RpcServiceRequest + { + + public: + ResizeColdStorageSizeRequest(); + ~ResizeColdStorageSizeRequest(); + + std::string getClusterId()const; + void setClusterId(const std::string& clusterId); + int getColdStorageSize()const; + void setColdStorageSize(int coldStorageSize); + + private: + std::string clusterId_; + int coldStorageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_RESIZECOLDSTORAGESIZEREQUEST_H_ \ No newline at end of file diff --git a/hbase/include/alibabacloud/hbase/model/ResizeColdStorageSizeResult.h b/hbase/include/alibabacloud/hbase/model/ResizeColdStorageSizeResult.h new file mode 100644 index 000000000..501632866 --- /dev/null +++ b/hbase/include/alibabacloud/hbase/model/ResizeColdStorageSizeResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HBASE_MODEL_RESIZECOLDSTORAGESIZERESULT_H_ +#define ALIBABACLOUD_HBASE_MODEL_RESIZECOLDSTORAGESIZERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace HBase + { + namespace Model + { + class ALIBABACLOUD_HBASE_EXPORT ResizeColdStorageSizeResult : public ServiceResult + { + public: + + + ResizeColdStorageSizeResult(); + explicit ResizeColdStorageSizeResult(const std::string &payload); + ~ResizeColdStorageSizeResult(); + std::string getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + std::string orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HBASE_MODEL_RESIZECOLDSTORAGESIZERESULT_H_ \ No newline at end of file diff --git a/hbase/src/HBaseClient.cc b/hbase/src/HBaseClient.cc index d3dad8f31..34da02dad 100644 --- a/hbase/src/HBaseClient.cc +++ b/hbase/src/HBaseClient.cc @@ -735,6 +735,42 @@ HBaseClient::DescribeBackupTablesOutcomeCallable HBaseClient::describeBackupTabl return task->get_future(); } +HBaseClient::DescribeClusterConnectionOutcome HBaseClient::describeClusterConnection(const DescribeClusterConnectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClusterConnectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClusterConnectionOutcome(DescribeClusterConnectionResult(outcome.result())); + else + return DescribeClusterConnectionOutcome(outcome.error()); +} + +void HBaseClient::describeClusterConnectionAsync(const DescribeClusterConnectionRequest& request, const DescribeClusterConnectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClusterConnection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HBaseClient::DescribeClusterConnectionOutcomeCallable HBaseClient::describeClusterConnectionCallable(const DescribeClusterConnectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClusterConnection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + HBaseClient::DescribeDBInstanceUsageOutcome HBaseClient::describeDBInstanceUsage(const DescribeDBInstanceUsageRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +843,42 @@ HBaseClient::DescribeDeletedInstancesOutcomeCallable HBaseClient::describeDelete return task->get_future(); } +HBaseClient::DescribeDiskWarningLineOutcome HBaseClient::describeDiskWarningLine(const DescribeDiskWarningLineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDiskWarningLineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDiskWarningLineOutcome(DescribeDiskWarningLineResult(outcome.result())); + else + return DescribeDiskWarningLineOutcome(outcome.error()); +} + +void HBaseClient::describeDiskWarningLineAsync(const DescribeDiskWarningLineRequest& request, const DescribeDiskWarningLineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDiskWarningLine(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HBaseClient::DescribeDiskWarningLineOutcomeCallable HBaseClient::describeDiskWarningLineCallable(const DescribeDiskWarningLineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDiskWarningLine(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + HBaseClient::DescribeEndpointsOutcome HBaseClient::describeEndpoints(const DescribeEndpointsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +1707,42 @@ HBaseClient::ModifyClusterDeletionProtectionOutcomeCallable HBaseClient::modifyC return task->get_future(); } +HBaseClient::ModifyDiskWarningLineOutcome HBaseClient::modifyDiskWarningLine(const ModifyDiskWarningLineRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyDiskWarningLineOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyDiskWarningLineOutcome(ModifyDiskWarningLineResult(outcome.result())); + else + return ModifyDiskWarningLineOutcome(outcome.error()); +} + +void HBaseClient::modifyDiskWarningLineAsync(const ModifyDiskWarningLineRequest& request, const ModifyDiskWarningLineAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyDiskWarningLine(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HBaseClient::ModifyDiskWarningLineOutcomeCallable HBaseClient::modifyDiskWarningLineCallable(const ModifyDiskWarningLineRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyDiskWarningLine(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + HBaseClient::ModifyInstanceMaintainTimeOutcome HBaseClient::modifyInstanceMaintainTime(const ModifyInstanceMaintainTimeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1815,42 @@ HBaseClient::ModifyInstanceNameOutcomeCallable HBaseClient::modifyInstanceNameCa return task->get_future(); } +HBaseClient::ModifyInstanceTypeOutcome HBaseClient::modifyInstanceType(const ModifyInstanceTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyInstanceTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyInstanceTypeOutcome(ModifyInstanceTypeResult(outcome.result())); + else + return ModifyInstanceTypeOutcome(outcome.error()); +} + +void HBaseClient::modifyInstanceTypeAsync(const ModifyInstanceTypeRequest& request, const ModifyInstanceTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyInstanceType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HBaseClient::ModifyInstanceTypeOutcomeCallable HBaseClient::modifyInstanceTypeCallable(const ModifyInstanceTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyInstanceType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + HBaseClient::ModifyIpWhitelistOutcome HBaseClient::modifyIpWhitelist(const ModifyIpWhitelistRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1995,6 +2139,42 @@ HBaseClient::RenewInstanceOutcomeCallable HBaseClient::renewInstanceCallable(con return task->get_future(); } +HBaseClient::ResizeColdStorageSizeOutcome HBaseClient::resizeColdStorageSize(const ResizeColdStorageSizeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ResizeColdStorageSizeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ResizeColdStorageSizeOutcome(ResizeColdStorageSizeResult(outcome.result())); + else + return ResizeColdStorageSizeOutcome(outcome.error()); +} + +void HBaseClient::resizeColdStorageSizeAsync(const ResizeColdStorageSizeRequest& request, const ResizeColdStorageSizeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, resizeColdStorageSize(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HBaseClient::ResizeColdStorageSizeOutcomeCallable HBaseClient::resizeColdStorageSizeCallable(const ResizeColdStorageSizeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->resizeColdStorageSize(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + HBaseClient::ResizeDiskSizeOutcome HBaseClient::resizeDiskSize(const ResizeDiskSizeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/hbase/src/model/DescribeClusterConnectionRequest.cc b/hbase/src/model/DescribeClusterConnectionRequest.cc new file mode 100644 index 000000000..d900ce3d9 --- /dev/null +++ b/hbase/src/model/DescribeClusterConnectionRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::HBase::Model::DescribeClusterConnectionRequest; + +DescribeClusterConnectionRequest::DescribeClusterConnectionRequest() : + RpcServiceRequest("hbase", "2019-01-01", "DescribeClusterConnection") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeClusterConnectionRequest::~DescribeClusterConnectionRequest() +{} + +std::string DescribeClusterConnectionRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeClusterConnectionRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +std::string DescribeClusterConnectionRequest::getRegionId()const +{ + return regionId_; +} + +void DescribeClusterConnectionRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + diff --git a/hbase/src/model/DescribeClusterConnectionResult.cc b/hbase/src/model/DescribeClusterConnectionResult.cc new file mode 100644 index 000000000..63e881d8c --- /dev/null +++ b/hbase/src/model/DescribeClusterConnectionResult.cc @@ -0,0 +1,160 @@ +/* + * 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::HBase; +using namespace AlibabaCloud::HBase::Model; + +DescribeClusterConnectionResult::DescribeClusterConnectionResult() : + ServiceResult() +{} + +DescribeClusterConnectionResult::DescribeClusterConnectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClusterConnectionResult::~DescribeClusterConnectionResult() +{} + +void DescribeClusterConnectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allZkConnAddrsNode = value["ZkConnAddrs"]["ZkConnAddr"]; + for (auto valueZkConnAddrsZkConnAddr : allZkConnAddrsNode) + { + ZkConnAddr zkConnAddrsObject; + if(!valueZkConnAddrsZkConnAddr["ConnAddr"].isNull()) + zkConnAddrsObject.connAddr = valueZkConnAddrsZkConnAddr["ConnAddr"].asString(); + if(!valueZkConnAddrsZkConnAddr["ConnAddrPort"].isNull()) + zkConnAddrsObject.connAddrPort = valueZkConnAddrsZkConnAddr["ConnAddrPort"].asString(); + if(!valueZkConnAddrsZkConnAddr["NetType"].isNull()) + zkConnAddrsObject.netType = valueZkConnAddrsZkConnAddr["NetType"].asString(); + zkConnAddrs_.push_back(zkConnAddrsObject); + } + auto allSlbConnAddrsNode = value["SlbConnAddrs"]["SlbConnAddr"]; + for (auto valueSlbConnAddrsSlbConnAddr : allSlbConnAddrsNode) + { + SlbConnAddr slbConnAddrsObject; + if(!valueSlbConnAddrsSlbConnAddr["SlbType"].isNull()) + slbConnAddrsObject.slbType = valueSlbConnAddrsSlbConnAddr["SlbType"].asString(); + auto connAddrInfoNode = value["ConnAddrInfo"]; + if(!connAddrInfoNode["ConnAddr"].isNull()) + slbConnAddrsObject.connAddrInfo.connAddr = connAddrInfoNode["ConnAddr"].asString(); + if(!connAddrInfoNode["ConnAddrPort"].isNull()) + slbConnAddrsObject.connAddrInfo.connAddrPort = connAddrInfoNode["ConnAddrPort"].asString(); + if(!connAddrInfoNode["NetType"].isNull()) + slbConnAddrsObject.connAddrInfo.netType = connAddrInfoNode["NetType"].asString(); + slbConnAddrs_.push_back(slbConnAddrsObject); + } + auto allServiceConnAddrsNode = value["ServiceConnAddrs"]["ServiceConnAddr"]; + for (auto valueServiceConnAddrsServiceConnAddr : allServiceConnAddrsNode) + { + ServiceConnAddr serviceConnAddrsObject; + if(!valueServiceConnAddrsServiceConnAddr["ConnType"].isNull()) + serviceConnAddrsObject.connType = valueServiceConnAddrsServiceConnAddr["ConnType"].asString(); + auto connAddrInfo1Node = value["ConnAddrInfo"]; + if(!connAddrInfo1Node["ConnAddr"].isNull()) + serviceConnAddrsObject.connAddrInfo1.connAddr = connAddrInfo1Node["ConnAddr"].asString(); + if(!connAddrInfo1Node["ConnAddrPort"].isNull()) + serviceConnAddrsObject.connAddrInfo1.connAddrPort = connAddrInfo1Node["ConnAddrPort"].asString(); + if(!connAddrInfo1Node["NetType"].isNull()) + serviceConnAddrsObject.connAddrInfo1.netType = connAddrInfo1Node["NetType"].asString(); + serviceConnAddrs_.push_back(serviceConnAddrsObject); + } + auto uiProxyConnAddrInfoNode = value["UiProxyConnAddrInfo"]; + if(!uiProxyConnAddrInfoNode["ConnAddr"].isNull()) + uiProxyConnAddrInfo_.connAddr = uiProxyConnAddrInfoNode["ConnAddr"].asString(); + if(!uiProxyConnAddrInfoNode["ConnAddrPort"].isNull()) + uiProxyConnAddrInfo_.connAddrPort = uiProxyConnAddrInfoNode["ConnAddrPort"].asString(); + if(!uiProxyConnAddrInfoNode["NetType"].isNull()) + uiProxyConnAddrInfo_.netType = uiProxyConnAddrInfoNode["NetType"].asString(); + auto thriftConnNode = value["ThriftConn"]; + if(!thriftConnNode["ConnAddr"].isNull()) + thriftConn_.connAddr = thriftConnNode["ConnAddr"].asString(); + if(!thriftConnNode["ConnAddrPort"].isNull()) + thriftConn_.connAddrPort = thriftConnNode["ConnAddrPort"].asString(); + if(!thriftConnNode["NetType"].isNull()) + thriftConn_.netType = thriftConnNode["NetType"].asString(); + if(!value["NetType"].isNull()) + netType_ = value["NetType"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); + if(!value["DbType"].isNull()) + dbType_ = value["DbType"].asString(); + if(!value["IsMultimod"].isNull()) + isMultimod_ = value["IsMultimod"].asString(); + +} + +std::string DescribeClusterConnectionResult::getIsMultimod()const +{ + return isMultimod_; +} + +DescribeClusterConnectionResult::UiProxyConnAddrInfo DescribeClusterConnectionResult::getUiProxyConnAddrInfo()const +{ + return uiProxyConnAddrInfo_; +} + +std::string DescribeClusterConnectionResult::getVpcId()const +{ + return vpcId_; +} + +std::string DescribeClusterConnectionResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::vector DescribeClusterConnectionResult::getServiceConnAddrs()const +{ + return serviceConnAddrs_; +} + +std::string DescribeClusterConnectionResult::getNetType()const +{ + return netType_; +} + +DescribeClusterConnectionResult::ThriftConn DescribeClusterConnectionResult::getThriftConn()const +{ + return thriftConn_; +} + +std::string DescribeClusterConnectionResult::getDbType()const +{ + return dbType_; +} + +std::vector DescribeClusterConnectionResult::getZkConnAddrs()const +{ + return zkConnAddrs_; +} + +std::vector DescribeClusterConnectionResult::getSlbConnAddrs()const +{ + return slbConnAddrs_; +} + diff --git a/hbase/src/model/DescribeDiskWarningLineRequest.cc b/hbase/src/model/DescribeDiskWarningLineRequest.cc new file mode 100644 index 000000000..2dcd1fb7d --- /dev/null +++ b/hbase/src/model/DescribeDiskWarningLineRequest.cc @@ -0,0 +1,40 @@ +/* + * 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::HBase::Model::DescribeDiskWarningLineRequest; + +DescribeDiskWarningLineRequest::DescribeDiskWarningLineRequest() : + RpcServiceRequest("hbase", "2019-01-01", "DescribeDiskWarningLine") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDiskWarningLineRequest::~DescribeDiskWarningLineRequest() +{} + +std::string DescribeDiskWarningLineRequest::getClusterId()const +{ + return clusterId_; +} + +void DescribeDiskWarningLineRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + diff --git a/hbase/src/model/DescribeDiskWarningLineResult.cc b/hbase/src/model/DescribeDiskWarningLineResult.cc new file mode 100644 index 000000000..ed2380565 --- /dev/null +++ b/hbase/src/model/DescribeDiskWarningLineResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::HBase; +using namespace AlibabaCloud::HBase::Model; + +DescribeDiskWarningLineResult::DescribeDiskWarningLineResult() : + ServiceResult() +{} + +DescribeDiskWarningLineResult::DescribeDiskWarningLineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDiskWarningLineResult::~DescribeDiskWarningLineResult() +{} + +void DescribeDiskWarningLineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["WarningLine"].isNull()) + warningLine_ = value["WarningLine"].asString(); + +} + +std::string DescribeDiskWarningLineResult::getWarningLine()const +{ + return warningLine_; +} + diff --git a/hbase/src/model/ModifyDiskWarningLineRequest.cc b/hbase/src/model/ModifyDiskWarningLineRequest.cc new file mode 100644 index 000000000..16b157a35 --- /dev/null +++ b/hbase/src/model/ModifyDiskWarningLineRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::HBase::Model::ModifyDiskWarningLineRequest; + +ModifyDiskWarningLineRequest::ModifyDiskWarningLineRequest() : + RpcServiceRequest("hbase", "2019-01-01", "ModifyDiskWarningLine") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyDiskWarningLineRequest::~ModifyDiskWarningLineRequest() +{} + +std::string ModifyDiskWarningLineRequest::getClusterId()const +{ + return clusterId_; +} + +void ModifyDiskWarningLineRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +int ModifyDiskWarningLineRequest::getWarningLine()const +{ + return warningLine_; +} + +void ModifyDiskWarningLineRequest::setWarningLine(int warningLine) +{ + warningLine_ = warningLine; + setParameter("WarningLine", std::to_string(warningLine)); +} + diff --git a/hbase/src/model/ModifyDiskWarningLineResult.cc b/hbase/src/model/ModifyDiskWarningLineResult.cc new file mode 100644 index 000000000..22debfd44 --- /dev/null +++ b/hbase/src/model/ModifyDiskWarningLineResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::HBase; +using namespace AlibabaCloud::HBase::Model; + +ModifyDiskWarningLineResult::ModifyDiskWarningLineResult() : + ServiceResult() +{} + +ModifyDiskWarningLineResult::ModifyDiskWarningLineResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyDiskWarningLineResult::~ModifyDiskWarningLineResult() +{} + +void ModifyDiskWarningLineResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/hbase/src/model/ModifyInstanceTypeRequest.cc b/hbase/src/model/ModifyInstanceTypeRequest.cc new file mode 100644 index 000000000..1a63884b8 --- /dev/null +++ b/hbase/src/model/ModifyInstanceTypeRequest.cc @@ -0,0 +1,62 @@ +/* + * 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::HBase::Model::ModifyInstanceTypeRequest; + +ModifyInstanceTypeRequest::ModifyInstanceTypeRequest() : + RpcServiceRequest("hbase", "2019-01-01", "ModifyInstanceType") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyInstanceTypeRequest::~ModifyInstanceTypeRequest() +{} + +std::string ModifyInstanceTypeRequest::getClusterId()const +{ + return clusterId_; +} + +void ModifyInstanceTypeRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +std::string ModifyInstanceTypeRequest::getMasterInstanceType()const +{ + return masterInstanceType_; +} + +void ModifyInstanceTypeRequest::setMasterInstanceType(const std::string& masterInstanceType) +{ + masterInstanceType_ = masterInstanceType; + setParameter("MasterInstanceType", masterInstanceType); +} + +std::string ModifyInstanceTypeRequest::getCoreInstanceType()const +{ + return coreInstanceType_; +} + +void ModifyInstanceTypeRequest::setCoreInstanceType(const std::string& coreInstanceType) +{ + coreInstanceType_ = coreInstanceType; + setParameter("CoreInstanceType", coreInstanceType); +} + diff --git a/hbase/src/model/ModifyInstanceTypeResult.cc b/hbase/src/model/ModifyInstanceTypeResult.cc new file mode 100644 index 000000000..9ff66cbea --- /dev/null +++ b/hbase/src/model/ModifyInstanceTypeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::HBase; +using namespace AlibabaCloud::HBase::Model; + +ModifyInstanceTypeResult::ModifyInstanceTypeResult() : + ServiceResult() +{} + +ModifyInstanceTypeResult::ModifyInstanceTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyInstanceTypeResult::~ModifyInstanceTypeResult() +{} + +void ModifyInstanceTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string ModifyInstanceTypeResult::getOrderId()const +{ + return orderId_; +} + diff --git a/hbase/src/model/ResizeColdStorageSizeRequest.cc b/hbase/src/model/ResizeColdStorageSizeRequest.cc new file mode 100644 index 000000000..5fc4ab3c5 --- /dev/null +++ b/hbase/src/model/ResizeColdStorageSizeRequest.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::HBase::Model::ResizeColdStorageSizeRequest; + +ResizeColdStorageSizeRequest::ResizeColdStorageSizeRequest() : + RpcServiceRequest("hbase", "2019-01-01", "ResizeColdStorageSize") +{ + setMethod(HttpRequest::Method::Post); +} + +ResizeColdStorageSizeRequest::~ResizeColdStorageSizeRequest() +{} + +std::string ResizeColdStorageSizeRequest::getClusterId()const +{ + return clusterId_; +} + +void ResizeColdStorageSizeRequest::setClusterId(const std::string& clusterId) +{ + clusterId_ = clusterId; + setParameter("ClusterId", clusterId); +} + +int ResizeColdStorageSizeRequest::getColdStorageSize()const +{ + return coldStorageSize_; +} + +void ResizeColdStorageSizeRequest::setColdStorageSize(int coldStorageSize) +{ + coldStorageSize_ = coldStorageSize; + setParameter("ColdStorageSize", std::to_string(coldStorageSize)); +} + diff --git a/hbase/src/model/ResizeColdStorageSizeResult.cc b/hbase/src/model/ResizeColdStorageSizeResult.cc new file mode 100644 index 000000000..f78dbe2d8 --- /dev/null +++ b/hbase/src/model/ResizeColdStorageSizeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::HBase; +using namespace AlibabaCloud::HBase::Model; + +ResizeColdStorageSizeResult::ResizeColdStorageSizeResult() : + ServiceResult() +{} + +ResizeColdStorageSizeResult::ResizeColdStorageSizeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ResizeColdStorageSizeResult::~ResizeColdStorageSizeResult() +{} + +void ResizeColdStorageSizeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = value["OrderId"].asString(); + +} + +std::string ResizeColdStorageSizeResult::getOrderId()const +{ + return orderId_; +} +