diff --git a/CHANGELOG b/CHANGELOG index 842aabd62..1f68462ed 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,9 @@ 2020-11-24 Version: patch - Create lindorm Open api. +2020-11-24 Version: patch +- Create lindorm Open api. + 2020-11-24 Version: patch - Update SearchFace. diff --git a/hitsdb/CMakeLists.txt b/hitsdb/CMakeLists.txt index a686fa89c..b3835a5b9 100644 --- a/hitsdb/CMakeLists.txt +++ b/hitsdb/CMakeLists.txt @@ -21,25 +21,97 @@ set(hitsdb_public_header include/alibabacloud/hitsdb/HitsdbExport.h ) set(hitsdb_public_header_model - include/alibabacloud/hitsdb/model/GetInstanceIpWhiteListRequest.h - include/alibabacloud/hitsdb/model/GetInstanceIpWhiteListResult.h - include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListRequest.h - include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListResult.h - include/alibabacloud/hitsdb/model/GetLindormInstanceListRequest.h - include/alibabacloud/hitsdb/model/GetLindormInstanceListResult.h - include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListRequest.h - include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListResult.h ) + include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceRequest.h + include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceResult.h + include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceRequest.h + include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceResult.h + include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataRequest.h + include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataResult.h + include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaRequest.h + include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaResult.h + include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceRequest.h + include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceResult.h + include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlRequest.h + include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlResult.h + include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListRequest.h + include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListResult.h + include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListRequest.h + include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListResult.h + include/alibabacloud/hitsdb/model/DescribeRegionsRequest.h + include/alibabacloud/hitsdb/model/DescribeRegionsResult.h + include/alibabacloud/hitsdb/model/DescribeZonesRequest.h + include/alibabacloud/hitsdb/model/DescribeZonesResult.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataRequest.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataResult.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListRequest.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListResult.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListRequest.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListResult.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListRequest.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListResult.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListRequest.h + include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListResult.h + include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassRequest.h + include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassResult.h + include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListRequest.h + include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListResult.h + include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasRequest.h + include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasResult.h + include/alibabacloud/hitsdb/model/RenewTSDBInstanceRequest.h + include/alibabacloud/hitsdb/model/RenewTSDBInstanceResult.h + include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceRequest.h + include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceResult.h + include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetRequest.h + include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetResult.h + include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlRequest.h + include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlResult.h ) set(hitsdb_src src/HitsdbClient.cc - src/model/GetInstanceIpWhiteListRequest.cc - src/model/GetInstanceIpWhiteListResult.cc - src/model/GetLindormInstanceEngineListRequest.cc - src/model/GetLindormInstanceEngineListResult.cc - src/model/GetLindormInstanceListRequest.cc - src/model/GetLindormInstanceListResult.cc - src/model/UpdateInstanceIpWhiteListRequest.cc - src/model/UpdateInstanceIpWhiteListResult.cc ) + src/model/CreateHiTSDBInstanceRequest.cc + src/model/CreateHiTSDBInstanceResult.cc + src/model/DeleteHiTSDBInstanceRequest.cc + src/model/DeleteHiTSDBInstanceResult.cc + src/model/DeleteHiTSDBInstanceDataRequest.cc + src/model/DeleteHiTSDBInstanceDataResult.cc + src/model/DeleteHiTSDBInstanceMetaRequest.cc + src/model/DeleteHiTSDBInstanceMetaResult.cc + src/model/DescribeHiTSDBInstanceRequest.cc + src/model/DescribeHiTSDBInstanceResult.cc + src/model/DescribeHiTSDBInstanceDataTtlRequest.cc + src/model/DescribeHiTSDBInstanceDataTtlResult.cc + src/model/DescribeHiTSDBInstanceListRequest.cc + src/model/DescribeHiTSDBInstanceListResult.cc + src/model/DescribeHiTSDBInstanceSecurityIpListRequest.cc + src/model/DescribeHiTSDBInstanceSecurityIpListResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/ExploreHiTSDBInstanceDataRequest.cc + src/model/ExploreHiTSDBInstanceDataResult.cc + src/model/ExploreHiTSDBInstanceDataMetricListRequest.cc + src/model/ExploreHiTSDBInstanceDataMetricListResult.cc + src/model/ExploreHiTSDBInstanceDataTagKeyListRequest.cc + src/model/ExploreHiTSDBInstanceDataTagKeyListResult.cc + src/model/ExploreHiTSDBInstanceDataTagValueListRequest.cc + src/model/ExploreHiTSDBInstanceDataTagValueListResult.cc + src/model/ExploreHiTSDBInstanceDeletionJobListRequest.cc + src/model/ExploreHiTSDBInstanceDeletionJobListResult.cc + src/model/ModifyHiTSDBInstanceClassRequest.cc + src/model/ModifyHiTSDBInstanceClassResult.cc + src/model/ModifyHiTSDBInstanceSecurityIpListRequest.cc + src/model/ModifyHiTSDBInstanceSecurityIpListResult.cc + src/model/RenameHiTSDBInstanceAliasRequest.cc + src/model/RenameHiTSDBInstanceAliasResult.cc + src/model/RenewTSDBInstanceRequest.cc + src/model/RenewTSDBInstanceResult.cc + src/model/RestartHiTSDBInstanceRequest.cc + src/model/RestartHiTSDBInstanceResult.cc + src/model/SwitchHiTSDBInstancePublicNetRequest.cc + src/model/SwitchHiTSDBInstancePublicNetResult.cc + src/model/UpdateHiTSDBInstanceDataTtlRequest.cc + src/model/UpdateHiTSDBInstanceDataTtlResult.cc ) add_library(hitsdb ${LIB_TYPE} ${hitsdb_public_header} diff --git a/hitsdb/include/alibabacloud/hitsdb/HitsdbClient.h b/hitsdb/include/alibabacloud/hitsdb/HitsdbClient.h index 27d3cda93..e1464994d 100644 --- a/hitsdb/include/alibabacloud/hitsdb/HitsdbClient.h +++ b/hitsdb/include/alibabacloud/hitsdb/HitsdbClient.h @@ -22,14 +22,50 @@ #include #include #include "HitsdbExport.h" -#include "model/GetInstanceIpWhiteListRequest.h" -#include "model/GetInstanceIpWhiteListResult.h" -#include "model/GetLindormInstanceEngineListRequest.h" -#include "model/GetLindormInstanceEngineListResult.h" -#include "model/GetLindormInstanceListRequest.h" -#include "model/GetLindormInstanceListResult.h" -#include "model/UpdateInstanceIpWhiteListRequest.h" -#include "model/UpdateInstanceIpWhiteListResult.h" +#include "model/CreateHiTSDBInstanceRequest.h" +#include "model/CreateHiTSDBInstanceResult.h" +#include "model/DeleteHiTSDBInstanceRequest.h" +#include "model/DeleteHiTSDBInstanceResult.h" +#include "model/DeleteHiTSDBInstanceDataRequest.h" +#include "model/DeleteHiTSDBInstanceDataResult.h" +#include "model/DeleteHiTSDBInstanceMetaRequest.h" +#include "model/DeleteHiTSDBInstanceMetaResult.h" +#include "model/DescribeHiTSDBInstanceRequest.h" +#include "model/DescribeHiTSDBInstanceResult.h" +#include "model/DescribeHiTSDBInstanceDataTtlRequest.h" +#include "model/DescribeHiTSDBInstanceDataTtlResult.h" +#include "model/DescribeHiTSDBInstanceListRequest.h" +#include "model/DescribeHiTSDBInstanceListResult.h" +#include "model/DescribeHiTSDBInstanceSecurityIpListRequest.h" +#include "model/DescribeHiTSDBInstanceSecurityIpListResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/ExploreHiTSDBInstanceDataRequest.h" +#include "model/ExploreHiTSDBInstanceDataResult.h" +#include "model/ExploreHiTSDBInstanceDataMetricListRequest.h" +#include "model/ExploreHiTSDBInstanceDataMetricListResult.h" +#include "model/ExploreHiTSDBInstanceDataTagKeyListRequest.h" +#include "model/ExploreHiTSDBInstanceDataTagKeyListResult.h" +#include "model/ExploreHiTSDBInstanceDataTagValueListRequest.h" +#include "model/ExploreHiTSDBInstanceDataTagValueListResult.h" +#include "model/ExploreHiTSDBInstanceDeletionJobListRequest.h" +#include "model/ExploreHiTSDBInstanceDeletionJobListResult.h" +#include "model/ModifyHiTSDBInstanceClassRequest.h" +#include "model/ModifyHiTSDBInstanceClassResult.h" +#include "model/ModifyHiTSDBInstanceSecurityIpListRequest.h" +#include "model/ModifyHiTSDBInstanceSecurityIpListResult.h" +#include "model/RenameHiTSDBInstanceAliasRequest.h" +#include "model/RenameHiTSDBInstanceAliasResult.h" +#include "model/RenewTSDBInstanceRequest.h" +#include "model/RenewTSDBInstanceResult.h" +#include "model/RestartHiTSDBInstanceRequest.h" +#include "model/RestartHiTSDBInstanceResult.h" +#include "model/SwitchHiTSDBInstancePublicNetRequest.h" +#include "model/SwitchHiTSDBInstancePublicNetResult.h" +#include "model/UpdateHiTSDBInstanceDataTtlRequest.h" +#include "model/UpdateHiTSDBInstanceDataTtlResult.h" namespace AlibabaCloud @@ -39,35 +75,143 @@ namespace AlibabaCloud class ALIBABACLOUD_HITSDB_EXPORT HitsdbClient : public RpcServiceClient { public: - typedef Outcome GetInstanceIpWhiteListOutcome; - typedef std::future GetInstanceIpWhiteListOutcomeCallable; - typedef std::function&)> GetInstanceIpWhiteListAsyncHandler; - typedef Outcome GetLindormInstanceEngineListOutcome; - typedef std::future GetLindormInstanceEngineListOutcomeCallable; - typedef std::function&)> GetLindormInstanceEngineListAsyncHandler; - typedef Outcome GetLindormInstanceListOutcome; - typedef std::future GetLindormInstanceListOutcomeCallable; - typedef std::function&)> GetLindormInstanceListAsyncHandler; - typedef Outcome UpdateInstanceIpWhiteListOutcome; - typedef std::future UpdateInstanceIpWhiteListOutcomeCallable; - typedef std::function&)> UpdateInstanceIpWhiteListAsyncHandler; + typedef Outcome CreateHiTSDBInstanceOutcome; + typedef std::future CreateHiTSDBInstanceOutcomeCallable; + typedef std::function&)> CreateHiTSDBInstanceAsyncHandler; + typedef Outcome DeleteHiTSDBInstanceOutcome; + typedef std::future DeleteHiTSDBInstanceOutcomeCallable; + typedef std::function&)> DeleteHiTSDBInstanceAsyncHandler; + typedef Outcome DeleteHiTSDBInstanceDataOutcome; + typedef std::future DeleteHiTSDBInstanceDataOutcomeCallable; + typedef std::function&)> DeleteHiTSDBInstanceDataAsyncHandler; + typedef Outcome DeleteHiTSDBInstanceMetaOutcome; + typedef std::future DeleteHiTSDBInstanceMetaOutcomeCallable; + typedef std::function&)> DeleteHiTSDBInstanceMetaAsyncHandler; + typedef Outcome DescribeHiTSDBInstanceOutcome; + typedef std::future DescribeHiTSDBInstanceOutcomeCallable; + typedef std::function&)> DescribeHiTSDBInstanceAsyncHandler; + typedef Outcome DescribeHiTSDBInstanceDataTtlOutcome; + typedef std::future DescribeHiTSDBInstanceDataTtlOutcomeCallable; + typedef std::function&)> DescribeHiTSDBInstanceDataTtlAsyncHandler; + typedef Outcome DescribeHiTSDBInstanceListOutcome; + typedef std::future DescribeHiTSDBInstanceListOutcomeCallable; + typedef std::function&)> DescribeHiTSDBInstanceListAsyncHandler; + typedef Outcome DescribeHiTSDBInstanceSecurityIpListOutcome; + typedef std::future DescribeHiTSDBInstanceSecurityIpListOutcomeCallable; + typedef std::function&)> DescribeHiTSDBInstanceSecurityIpListAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome ExploreHiTSDBInstanceDataOutcome; + typedef std::future ExploreHiTSDBInstanceDataOutcomeCallable; + typedef std::function&)> ExploreHiTSDBInstanceDataAsyncHandler; + typedef Outcome ExploreHiTSDBInstanceDataMetricListOutcome; + typedef std::future ExploreHiTSDBInstanceDataMetricListOutcomeCallable; + typedef std::function&)> ExploreHiTSDBInstanceDataMetricListAsyncHandler; + typedef Outcome ExploreHiTSDBInstanceDataTagKeyListOutcome; + typedef std::future ExploreHiTSDBInstanceDataTagKeyListOutcomeCallable; + typedef std::function&)> ExploreHiTSDBInstanceDataTagKeyListAsyncHandler; + typedef Outcome ExploreHiTSDBInstanceDataTagValueListOutcome; + typedef std::future ExploreHiTSDBInstanceDataTagValueListOutcomeCallable; + typedef std::function&)> ExploreHiTSDBInstanceDataTagValueListAsyncHandler; + typedef Outcome ExploreHiTSDBInstanceDeletionJobListOutcome; + typedef std::future ExploreHiTSDBInstanceDeletionJobListOutcomeCallable; + typedef std::function&)> ExploreHiTSDBInstanceDeletionJobListAsyncHandler; + typedef Outcome ModifyHiTSDBInstanceClassOutcome; + typedef std::future ModifyHiTSDBInstanceClassOutcomeCallable; + typedef std::function&)> ModifyHiTSDBInstanceClassAsyncHandler; + typedef Outcome ModifyHiTSDBInstanceSecurityIpListOutcome; + typedef std::future ModifyHiTSDBInstanceSecurityIpListOutcomeCallable; + typedef std::function&)> ModifyHiTSDBInstanceSecurityIpListAsyncHandler; + typedef Outcome RenameHiTSDBInstanceAliasOutcome; + typedef std::future RenameHiTSDBInstanceAliasOutcomeCallable; + typedef std::function&)> RenameHiTSDBInstanceAliasAsyncHandler; + typedef Outcome RenewTSDBInstanceOutcome; + typedef std::future RenewTSDBInstanceOutcomeCallable; + typedef std::function&)> RenewTSDBInstanceAsyncHandler; + typedef Outcome RestartHiTSDBInstanceOutcome; + typedef std::future RestartHiTSDBInstanceOutcomeCallable; + typedef std::function&)> RestartHiTSDBInstanceAsyncHandler; + typedef Outcome SwitchHiTSDBInstancePublicNetOutcome; + typedef std::future SwitchHiTSDBInstancePublicNetOutcomeCallable; + typedef std::function&)> SwitchHiTSDBInstancePublicNetAsyncHandler; + typedef Outcome UpdateHiTSDBInstanceDataTtlOutcome; + typedef std::future UpdateHiTSDBInstanceDataTtlOutcomeCallable; + typedef std::function&)> UpdateHiTSDBInstanceDataTtlAsyncHandler; HitsdbClient(const Credentials &credentials, const ClientConfiguration &configuration); HitsdbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); HitsdbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~HitsdbClient(); - GetInstanceIpWhiteListOutcome getInstanceIpWhiteList(const Model::GetInstanceIpWhiteListRequest &request)const; - void getInstanceIpWhiteListAsync(const Model::GetInstanceIpWhiteListRequest& request, const GetInstanceIpWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetInstanceIpWhiteListOutcomeCallable getInstanceIpWhiteListCallable(const Model::GetInstanceIpWhiteListRequest& request) const; - GetLindormInstanceEngineListOutcome getLindormInstanceEngineList(const Model::GetLindormInstanceEngineListRequest &request)const; - void getLindormInstanceEngineListAsync(const Model::GetLindormInstanceEngineListRequest& request, const GetLindormInstanceEngineListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetLindormInstanceEngineListOutcomeCallable getLindormInstanceEngineListCallable(const Model::GetLindormInstanceEngineListRequest& request) const; - GetLindormInstanceListOutcome getLindormInstanceList(const Model::GetLindormInstanceListRequest &request)const; - void getLindormInstanceListAsync(const Model::GetLindormInstanceListRequest& request, const GetLindormInstanceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetLindormInstanceListOutcomeCallable getLindormInstanceListCallable(const Model::GetLindormInstanceListRequest& request) const; - UpdateInstanceIpWhiteListOutcome updateInstanceIpWhiteList(const Model::UpdateInstanceIpWhiteListRequest &request)const; - void updateInstanceIpWhiteListAsync(const Model::UpdateInstanceIpWhiteListRequest& request, const UpdateInstanceIpWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateInstanceIpWhiteListOutcomeCallable updateInstanceIpWhiteListCallable(const Model::UpdateInstanceIpWhiteListRequest& request) const; + CreateHiTSDBInstanceOutcome createHiTSDBInstance(const Model::CreateHiTSDBInstanceRequest &request)const; + void createHiTSDBInstanceAsync(const Model::CreateHiTSDBInstanceRequest& request, const CreateHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHiTSDBInstanceOutcomeCallable createHiTSDBInstanceCallable(const Model::CreateHiTSDBInstanceRequest& request) const; + DeleteHiTSDBInstanceOutcome deleteHiTSDBInstance(const Model::DeleteHiTSDBInstanceRequest &request)const; + void deleteHiTSDBInstanceAsync(const Model::DeleteHiTSDBInstanceRequest& request, const DeleteHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHiTSDBInstanceOutcomeCallable deleteHiTSDBInstanceCallable(const Model::DeleteHiTSDBInstanceRequest& request) const; + DeleteHiTSDBInstanceDataOutcome deleteHiTSDBInstanceData(const Model::DeleteHiTSDBInstanceDataRequest &request)const; + void deleteHiTSDBInstanceDataAsync(const Model::DeleteHiTSDBInstanceDataRequest& request, const DeleteHiTSDBInstanceDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHiTSDBInstanceDataOutcomeCallable deleteHiTSDBInstanceDataCallable(const Model::DeleteHiTSDBInstanceDataRequest& request) const; + DeleteHiTSDBInstanceMetaOutcome deleteHiTSDBInstanceMeta(const Model::DeleteHiTSDBInstanceMetaRequest &request)const; + void deleteHiTSDBInstanceMetaAsync(const Model::DeleteHiTSDBInstanceMetaRequest& request, const DeleteHiTSDBInstanceMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteHiTSDBInstanceMetaOutcomeCallable deleteHiTSDBInstanceMetaCallable(const Model::DeleteHiTSDBInstanceMetaRequest& request) const; + DescribeHiTSDBInstanceOutcome describeHiTSDBInstance(const Model::DescribeHiTSDBInstanceRequest &request)const; + void describeHiTSDBInstanceAsync(const Model::DescribeHiTSDBInstanceRequest& request, const DescribeHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHiTSDBInstanceOutcomeCallable describeHiTSDBInstanceCallable(const Model::DescribeHiTSDBInstanceRequest& request) const; + DescribeHiTSDBInstanceDataTtlOutcome describeHiTSDBInstanceDataTtl(const Model::DescribeHiTSDBInstanceDataTtlRequest &request)const; + void describeHiTSDBInstanceDataTtlAsync(const Model::DescribeHiTSDBInstanceDataTtlRequest& request, const DescribeHiTSDBInstanceDataTtlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHiTSDBInstanceDataTtlOutcomeCallable describeHiTSDBInstanceDataTtlCallable(const Model::DescribeHiTSDBInstanceDataTtlRequest& request) const; + DescribeHiTSDBInstanceListOutcome describeHiTSDBInstanceList(const Model::DescribeHiTSDBInstanceListRequest &request)const; + void describeHiTSDBInstanceListAsync(const Model::DescribeHiTSDBInstanceListRequest& request, const DescribeHiTSDBInstanceListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHiTSDBInstanceListOutcomeCallable describeHiTSDBInstanceListCallable(const Model::DescribeHiTSDBInstanceListRequest& request) const; + DescribeHiTSDBInstanceSecurityIpListOutcome describeHiTSDBInstanceSecurityIpList(const Model::DescribeHiTSDBInstanceSecurityIpListRequest &request)const; + void describeHiTSDBInstanceSecurityIpListAsync(const Model::DescribeHiTSDBInstanceSecurityIpListRequest& request, const DescribeHiTSDBInstanceSecurityIpListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHiTSDBInstanceSecurityIpListOutcomeCallable describeHiTSDBInstanceSecurityIpListCallable(const Model::DescribeHiTSDBInstanceSecurityIpListRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DescribeZonesOutcome describeZones(const Model::DescribeZonesRequest &request)const; + void describeZonesAsync(const Model::DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeZonesOutcomeCallable describeZonesCallable(const Model::DescribeZonesRequest& request) const; + ExploreHiTSDBInstanceDataOutcome exploreHiTSDBInstanceData(const Model::ExploreHiTSDBInstanceDataRequest &request)const; + void exploreHiTSDBInstanceDataAsync(const Model::ExploreHiTSDBInstanceDataRequest& request, const ExploreHiTSDBInstanceDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExploreHiTSDBInstanceDataOutcomeCallable exploreHiTSDBInstanceDataCallable(const Model::ExploreHiTSDBInstanceDataRequest& request) const; + ExploreHiTSDBInstanceDataMetricListOutcome exploreHiTSDBInstanceDataMetricList(const Model::ExploreHiTSDBInstanceDataMetricListRequest &request)const; + void exploreHiTSDBInstanceDataMetricListAsync(const Model::ExploreHiTSDBInstanceDataMetricListRequest& request, const ExploreHiTSDBInstanceDataMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExploreHiTSDBInstanceDataMetricListOutcomeCallable exploreHiTSDBInstanceDataMetricListCallable(const Model::ExploreHiTSDBInstanceDataMetricListRequest& request) const; + ExploreHiTSDBInstanceDataTagKeyListOutcome exploreHiTSDBInstanceDataTagKeyList(const Model::ExploreHiTSDBInstanceDataTagKeyListRequest &request)const; + void exploreHiTSDBInstanceDataTagKeyListAsync(const Model::ExploreHiTSDBInstanceDataTagKeyListRequest& request, const ExploreHiTSDBInstanceDataTagKeyListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExploreHiTSDBInstanceDataTagKeyListOutcomeCallable exploreHiTSDBInstanceDataTagKeyListCallable(const Model::ExploreHiTSDBInstanceDataTagKeyListRequest& request) const; + ExploreHiTSDBInstanceDataTagValueListOutcome exploreHiTSDBInstanceDataTagValueList(const Model::ExploreHiTSDBInstanceDataTagValueListRequest &request)const; + void exploreHiTSDBInstanceDataTagValueListAsync(const Model::ExploreHiTSDBInstanceDataTagValueListRequest& request, const ExploreHiTSDBInstanceDataTagValueListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExploreHiTSDBInstanceDataTagValueListOutcomeCallable exploreHiTSDBInstanceDataTagValueListCallable(const Model::ExploreHiTSDBInstanceDataTagValueListRequest& request) const; + ExploreHiTSDBInstanceDeletionJobListOutcome exploreHiTSDBInstanceDeletionJobList(const Model::ExploreHiTSDBInstanceDeletionJobListRequest &request)const; + void exploreHiTSDBInstanceDeletionJobListAsync(const Model::ExploreHiTSDBInstanceDeletionJobListRequest& request, const ExploreHiTSDBInstanceDeletionJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExploreHiTSDBInstanceDeletionJobListOutcomeCallable exploreHiTSDBInstanceDeletionJobListCallable(const Model::ExploreHiTSDBInstanceDeletionJobListRequest& request) const; + ModifyHiTSDBInstanceClassOutcome modifyHiTSDBInstanceClass(const Model::ModifyHiTSDBInstanceClassRequest &request)const; + void modifyHiTSDBInstanceClassAsync(const Model::ModifyHiTSDBInstanceClassRequest& request, const ModifyHiTSDBInstanceClassAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyHiTSDBInstanceClassOutcomeCallable modifyHiTSDBInstanceClassCallable(const Model::ModifyHiTSDBInstanceClassRequest& request) const; + ModifyHiTSDBInstanceSecurityIpListOutcome modifyHiTSDBInstanceSecurityIpList(const Model::ModifyHiTSDBInstanceSecurityIpListRequest &request)const; + void modifyHiTSDBInstanceSecurityIpListAsync(const Model::ModifyHiTSDBInstanceSecurityIpListRequest& request, const ModifyHiTSDBInstanceSecurityIpListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyHiTSDBInstanceSecurityIpListOutcomeCallable modifyHiTSDBInstanceSecurityIpListCallable(const Model::ModifyHiTSDBInstanceSecurityIpListRequest& request) const; + RenameHiTSDBInstanceAliasOutcome renameHiTSDBInstanceAlias(const Model::RenameHiTSDBInstanceAliasRequest &request)const; + void renameHiTSDBInstanceAliasAsync(const Model::RenameHiTSDBInstanceAliasRequest& request, const RenameHiTSDBInstanceAliasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenameHiTSDBInstanceAliasOutcomeCallable renameHiTSDBInstanceAliasCallable(const Model::RenameHiTSDBInstanceAliasRequest& request) const; + RenewTSDBInstanceOutcome renewTSDBInstance(const Model::RenewTSDBInstanceRequest &request)const; + void renewTSDBInstanceAsync(const Model::RenewTSDBInstanceRequest& request, const RenewTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RenewTSDBInstanceOutcomeCallable renewTSDBInstanceCallable(const Model::RenewTSDBInstanceRequest& request) const; + RestartHiTSDBInstanceOutcome restartHiTSDBInstance(const Model::RestartHiTSDBInstanceRequest &request)const; + void restartHiTSDBInstanceAsync(const Model::RestartHiTSDBInstanceRequest& request, const RestartHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RestartHiTSDBInstanceOutcomeCallable restartHiTSDBInstanceCallable(const Model::RestartHiTSDBInstanceRequest& request) const; + SwitchHiTSDBInstancePublicNetOutcome switchHiTSDBInstancePublicNet(const Model::SwitchHiTSDBInstancePublicNetRequest &request)const; + void switchHiTSDBInstancePublicNetAsync(const Model::SwitchHiTSDBInstancePublicNetRequest& request, const SwitchHiTSDBInstancePublicNetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SwitchHiTSDBInstancePublicNetOutcomeCallable switchHiTSDBInstancePublicNetCallable(const Model::SwitchHiTSDBInstancePublicNetRequest& request) const; + UpdateHiTSDBInstanceDataTtlOutcome updateHiTSDBInstanceDataTtl(const Model::UpdateHiTSDBInstanceDataTtlRequest &request)const; + void updateHiTSDBInstanceDataTtlAsync(const Model::UpdateHiTSDBInstanceDataTtlRequest& request, const UpdateHiTSDBInstanceDataTtlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateHiTSDBInstanceDataTtlOutcomeCallable updateHiTSDBInstanceDataTtlCallable(const Model::UpdateHiTSDBInstanceDataTtlRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/hitsdb/include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceRequest.h new file mode 100644 index 000000000..6913cab57 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceRequest.h @@ -0,0 +1,123 @@ +/* + * 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_HITSDB_MODEL_CREATEHITSDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT CreateHiTSDBInstanceRequest : public RpcServiceRequest + { + + public: + CreateHiTSDBInstanceRequest(); + ~CreateHiTSDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getConnectionString()const; + void setConnectionString(const std::string& connectionString); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getInstanceClass()const; + void setInstanceClass(const std::string& instanceClass); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getDuration()const; + void setDuration(const std::string& duration); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMaxSeriesPerDatabase()const; + void setMaxSeriesPerDatabase(const std::string& maxSeriesPerDatabase); + std::string getDiskCategory()const; + void setDiskCategory(const std::string& diskCategory); + std::string getMaxTimelineLimit()const; + void setMaxTimelineLimit(const std::string& maxTimelineLimit); + std::string getInstanceStorage()const; + void setInstanceStorage(const std::string& instanceStorage); + std::string getEngineType()const; + void setEngineType(const std::string& engineType); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceAlias()const; + void setInstanceAlias(const std::string& instanceAlias); + std::string getMaxDatabaseLimit()const; + void setMaxDatabaseLimit(const std::string& maxDatabaseLimit); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getVSwitchId()const; + void setVSwitchId(const std::string& vSwitchId); + std::string getInstanceName()const; + void setInstanceName(const std::string& instanceName); + std::string getInstanceTps()const; + void setInstanceTps(const std::string& instanceTps); + std::string getVPCId()const; + void setVPCId(const std::string& vPCId); + std::string getZoneId()const; + void setZoneId(const std::string& zoneId); + std::string getTSDBVersion()const; + void setTSDBVersion(const std::string& tSDBVersion); + std::string getPayType()const; + void setPayType(const std::string& payType); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + + private: + long resourceOwnerId_; + std::string connectionString_; + std::string clientToken_; + std::string instanceClass_; + std::string accessKeyId_; + std::string duration_; + std::string securityToken_; + std::string regionId_; + std::string maxSeriesPerDatabase_; + std::string diskCategory_; + std::string maxTimelineLimit_; + std::string instanceStorage_; + std::string engineType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceAlias_; + std::string maxDatabaseLimit_; + long ownerId_; + std::string vSwitchId_; + std::string instanceName_; + std::string instanceTps_; + std::string vPCId_; + std::string zoneId_; + std::string tSDBVersion_; + std::string payType_; + std::string pricingCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/GetInstanceIpWhiteListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceResult.h similarity index 66% rename from hitsdb/include/alibabacloud/hitsdb/model/GetInstanceIpWhiteListResult.h rename to hitsdb/include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceResult.h index 1e6b4b5ab..f1b38ec90 100644 --- a/hitsdb/include/alibabacloud/hitsdb/model/GetInstanceIpWhiteListResult.h +++ b/hitsdb/include/alibabacloud/hitsdb/model/CreateHiTSDBInstanceResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_HITSDB_MODEL_GETINSTANCEIPWHITELISTRESULT_H_ -#define ALIBABACLOUD_HITSDB_MODEL_GETINSTANCEIPWHITELISTRESULT_H_ +#ifndef ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCERESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCERESULT_H_ #include #include @@ -29,25 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_HITSDB_EXPORT GetInstanceIpWhiteListResult : public ServiceResult + class ALIBABACLOUD_HITSDB_EXPORT CreateHiTSDBInstanceResult : public ServiceResult { public: - GetInstanceIpWhiteListResult(); - explicit GetInstanceIpWhiteListResult(const std::string &payload); - ~GetInstanceIpWhiteListResult(); - std::vector getIpList()const; + CreateHiTSDBInstanceResult(); + explicit CreateHiTSDBInstanceResult(const std::string &payload); + ~CreateHiTSDBInstanceResult(); std::string getInstanceId()const; + long getOrderId()const; protected: void parse(const std::string &payload); private: - std::vector ipList_; std::string instanceId_; + long orderId_; }; } } } -#endif // !ALIBABACLOUD_HITSDB_MODEL_GETINSTANCEIPWHITELISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_HITSDB_MODEL_CREATEHITSDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataRequest.h new file mode 100644 index 000000000..2782bafd0 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataRequest.h @@ -0,0 +1,90 @@ +/* + * 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_HITSDB_MODEL_DELETEHITSDBINSTANCEDATAREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceDataRequest : public RpcServiceRequest + { + + public: + DeleteHiTSDBInstanceDataRequest(); + ~DeleteHiTSDBInstanceDataRequest(); + + std::string getReverseVpcIp()const; + void setReverseVpcIp(const std::string& reverseVpcIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getReverseVpcPort()const; + void setReverseVpcPort(int reverseVpcPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + long getEnd()const; + void setEnd(long end); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getStart()const; + void setStart(long start); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getMetric()const; + void setMetric(const std::string& metric); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string reverseVpcIp_; + long resourceOwnerId_; + int reverseVpcPort_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + long end_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long start_; + long ownerId_; + std::string tags_; + std::string instanceId_; + std::string metric_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATAREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataResult.h new file mode 100644 index 000000000..7bc2160a1 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceDataResult.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_HITSDB_MODEL_DELETEHITSDBINSTANCEDATARESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceDataResult : public ServiceResult + { + public: + + + DeleteHiTSDBInstanceDataResult(); + explicit DeleteHiTSDBInstanceDataResult(const std::string &payload); + ~DeleteHiTSDBInstanceDataResult(); + long getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + long taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEDATARESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaRequest.h new file mode 100644 index 000000000..08dc2d0a3 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaRequest.h @@ -0,0 +1,84 @@ +/* + * 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_HITSDB_MODEL_DELETEHITSDBINSTANCEMETAREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceMetaRequest : public RpcServiceRequest + { + + public: + DeleteHiTSDBInstanceMetaRequest(); + ~DeleteHiTSDBInstanceMetaRequest(); + + std::string getReverseVpcIp()const; + void setReverseVpcIp(const std::string& reverseVpcIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getReverseVpcPort()const; + void setReverseVpcPort(int reverseVpcPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTags()const; + void setTags(const std::string& tags); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getMetric()const; + void setMetric(const std::string& metric); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string reverseVpcIp_; + long resourceOwnerId_; + int reverseVpcPort_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string instanceId_; + std::string metric_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETAREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaResult.h new file mode 100644 index 000000000..2a4d71d9e --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceMetaResult.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_HITSDB_MODEL_DELETEHITSDBINSTANCEMETARESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceMetaResult : public ServiceResult + { + public: + + + DeleteHiTSDBInstanceMetaResult(); + explicit DeleteHiTSDBInstanceMetaResult(const std::string &payload); + ~DeleteHiTSDBInstanceMetaResult(); + long getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + long taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEMETARESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceRequest.h similarity index 80% rename from hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListRequest.h rename to hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceRequest.h index 7a09df662..35d8e2291 100644 --- a/hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListRequest.h +++ b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTREQUEST_H_ -#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTREQUEST_H_ +#ifndef ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_HITSDB_EXPORT GetLindormInstanceEngineListRequest : public RpcServiceRequest + class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceRequest : public RpcServiceRequest { public: - GetLindormInstanceEngineListRequest(); - ~GetLindormInstanceEngineListRequest(); + DeleteHiTSDBInstanceRequest(); + ~DeleteHiTSDBInstanceRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); @@ -63,4 +63,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceResult.h new file mode 100644 index 000000000..b9880b42f --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DeleteHiTSDBInstanceResult.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_HITSDB_MODEL_DELETEHITSDBINSTANCERESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DeleteHiTSDBInstanceResult : public ServiceResult + { + public: + + + DeleteHiTSDBInstanceResult(); + explicit DeleteHiTSDBInstanceResult(const std::string &payload); + ~DeleteHiTSDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DELETEHITSDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlRequest.h new file mode 100644 index 000000000..bd8b39d98 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlRequest.h @@ -0,0 +1,78 @@ +/* + * 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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceDataTtlRequest : public RpcServiceRequest + { + + public: + DescribeHiTSDBInstanceDataTtlRequest(); + ~DescribeHiTSDBInstanceDataTtlRequest(); + + std::string getReverseVpcIp()const; + void setReverseVpcIp(const std::string& reverseVpcIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getReverseVpcPort()const; + void setReverseVpcPort(int reverseVpcPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string reverseVpcIp_; + long resourceOwnerId_; + int reverseVpcPort_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlResult.h new file mode 100644 index 000000000..6ccc256ce --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceDataTtlResult.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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceDataTtlResult : public ServiceResult + { + public: + + + DescribeHiTSDBInstanceDataTtlResult(); + explicit DescribeHiTSDBInstanceDataTtlResult(const std::string &payload); + ~DescribeHiTSDBInstanceDataTtlResult(); + long getTtl()const; + + protected: + void parse(const std::string &payload); + private: + long ttl_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEDATATTLRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListRequest.h similarity index 74% rename from hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceListRequest.h rename to hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListRequest.h index 9050c62a9..c83589582 100644 --- a/hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceListRequest.h +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCELISTREQUEST_H_ -#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCELISTREQUEST_H_ +#ifndef ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTREQUEST_H_ #include #include @@ -28,17 +28,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_HITSDB_EXPORT GetLindormInstanceListRequest : public RpcServiceRequest + class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceListRequest : public RpcServiceRequest { public: - GetLindormInstanceListRequest(); - ~GetLindormInstanceListRequest(); + DescribeHiTSDBInstanceListRequest(); + ~DescribeHiTSDBInstanceListRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); - int getSupportEngine()const; - void setSupportEngine(int supportEngine); + std::string getStatusList()const; + void setStatusList(const std::string& statusList); int getPageNumber()const; void setPageNumber(int pageNumber); std::string getAccessKeyId()const; @@ -49,30 +49,30 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getQueryStr()const; void setQueryStr(const std::string& queryStr); + std::string getEngineType()const; + void setEngineType(const std::string& engineType); std::string getResourceOwnerAccount()const; void setResourceOwnerAccount(const std::string& resourceOwnerAccount); std::string getOwnerAccount()const; void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getServiceType()const; - void setServiceType(const std::string& serviceType); private: long resourceOwnerId_; - int supportEngine_; + std::string statusList_; int pageNumber_; std::string accessKeyId_; std::string securityToken_; int pageSize_; std::string queryStr_; + std::string engineType_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string serviceType_; }; } } } -#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCELISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListResult.h similarity index 59% rename from hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceListResult.h rename to hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListResult.h index ed6dc66da..4786de088 100644 --- a/hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceListResult.h +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCELISTRESULT_H_ -#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCELISTRESULT_H_ +#ifndef ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTRESULT_H_ #include #include @@ -29,35 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_HITSDB_EXPORT GetLindormInstanceListResult : public ServiceResult + class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceListResult : public ServiceResult { public: - struct LindormInstanceSummary + struct Instance { std::string instanceStorage; std::string zoneId; std::string instanceId; - std::string createTime; - std::string payType; + std::string maxSeriesPerDatabase; + std::string instanceClass; + std::string maxDatabaseLimit; + std::string gmtCreated; + std::string lockMode; + std::string vswitchId; + std::string instanceIdInVpc; std::string vpcId; std::string instanceAlias; + std::string userId; std::string instanceStatus; + std::string chargeType; std::string networkType; - std::string serviceType; + std::string gmtExpire; + std::string instanceDescription; std::string engineType; std::string regionId; - std::string expireTime; - long aliUid; + std::string instanceTps; }; - GetLindormInstanceListResult(); - explicit GetLindormInstanceListResult(const std::string &payload); - ~GetLindormInstanceListResult(); + DescribeHiTSDBInstanceListResult(); + explicit DescribeHiTSDBInstanceListResult(const std::string &payload); + ~DescribeHiTSDBInstanceListResult(); int getPageSize()const; int getPageNumber()const; int getTotal()const; - std::vector getInstanceList()const; + std::vector getInstanceList()const; protected: void parse(const std::string &payload); @@ -65,10 +72,10 @@ namespace AlibabaCloud int pageSize_; int pageNumber_; int total_; - std::vector instanceList_; + std::vector instanceList_; }; } } } -#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCELISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCELISTRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/GetInstanceIpWhiteListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceRequest.h similarity index 79% rename from hitsdb/include/alibabacloud/hitsdb/model/GetInstanceIpWhiteListRequest.h rename to hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceRequest.h index c160f02df..77bb25002 100644 --- a/hitsdb/include/alibabacloud/hitsdb/model/GetInstanceIpWhiteListRequest.h +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_HITSDB_MODEL_GETINSTANCEIPWHITELISTREQUEST_H_ -#define ALIBABACLOUD_HITSDB_MODEL_GETINSTANCEIPWHITELISTREQUEST_H_ +#ifndef ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_HITSDB_EXPORT GetInstanceIpWhiteListRequest : public RpcServiceRequest + class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceRequest : public RpcServiceRequest { public: - GetInstanceIpWhiteListRequest(); - ~GetInstanceIpWhiteListRequest(); + DescribeHiTSDBInstanceRequest(); + ~DescribeHiTSDBInstanceRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); @@ -47,8 +47,6 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); @@ -59,11 +57,10 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string groupName_; std::string instanceId_; }; } } } -#endif // !ALIBABACLOUD_HITSDB_MODEL_GETINSTANCEIPWHITELISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceResult.h new file mode 100644 index 000000000..b10192034 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceResult.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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCERESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceResult : public ServiceResult + { + public: + struct SecurityIp + { + std::string ip; + }; + + + DescribeHiTSDBInstanceResult(); + explicit DescribeHiTSDBInstanceResult(const std::string &payload); + ~DescribeHiTSDBInstanceResult(); + bool getAutoRenew()const; + std::string getGmtCreated()const; + std::string getCpuNumber()const; + std::string getInstanceAlias()const; + std::string getInstanceStatus()const; + std::string getNetworkType()const; + std::string getGmtExpire()const; + std::string getMemSize()const; + std::string getMaxTimelineLimit()const; + std::string getReverseVpcPort()const; + std::string getPublicConnectionString()const; + std::string getEngineType()const; + std::string getInstanceTps()const; + std::string getRDSStatus()const; + std::string getInstanceStorage()const; + std::string getZoneId()const; + std::string getInstanceId()const; + std::string getDiskCategory()const; + std::string getInstanceClass()const; + std::string getVswitchId()const; + int getSeries()const; + std::string getVpcId()const; + std::vector getSecurityIpList()const; + std::string getChargeType()const; + std::string getReverseVpcIp()const; + std::string getInstanceDescription()const; + std::string getRegionId()const; + std::string getConnectionString()const; + + protected: + void parse(const std::string &payload); + private: + bool autoRenew_; + std::string gmtCreated_; + std::string cpuNumber_; + std::string instanceAlias_; + std::string instanceStatus_; + std::string networkType_; + std::string gmtExpire_; + std::string memSize_; + std::string maxTimelineLimit_; + std::string reverseVpcPort_; + std::string publicConnectionString_; + std::string engineType_; + std::string instanceTps_; + std::string rDSStatus_; + std::string instanceStorage_; + std::string zoneId_; + std::string instanceId_; + std::string diskCategory_; + std::string instanceClass_; + std::string vswitchId_; + int series_; + std::string vpcId_; + std::vector securityIpList_; + std::string chargeType_; + std::string reverseVpcIp_; + std::string instanceDescription_; + std::string regionId_; + std::string connectionString_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListRequest.h new file mode 100644 index 000000000..f2cb909c8 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceSecurityIpListRequest : public RpcServiceRequest + { + + public: + DescribeHiTSDBInstanceSecurityIpListRequest(); + ~DescribeHiTSDBInstanceSecurityIpListRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListResult.h new file mode 100644 index 000000000..851910771 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeHiTSDBInstanceSecurityIpListResult.h @@ -0,0 +1,55 @@ +/* + * 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_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeHiTSDBInstanceSecurityIpListResult : public ServiceResult + { + public: + struct SecurityIp + { + std::string ip; + }; + + + DescribeHiTSDBInstanceSecurityIpListResult(); + explicit DescribeHiTSDBInstanceSecurityIpListResult(const std::string &payload); + ~DescribeHiTSDBInstanceSecurityIpListResult(); + std::vector getSecurityIpList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector securityIpList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEHITSDBINSTANCESECURITYIPLISTRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeRegionsRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..8eac39bff --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeRegionsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getAcceptLanguage()const; + void setAcceptLanguage(const std::string& acceptLanguage); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string acceptLanguage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeRegionsResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeRegionsResult.h new file mode 100644 index 000000000..7618087ea --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeRegionsResult.h @@ -0,0 +1,57 @@ +/* + * 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_HITSDB_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string regionEndpoint; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeZonesRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeZonesRequest.h new file mode 100644 index 000000000..aa97bf220 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeZonesRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeZonesRequest : public RpcServiceRequest + { + + public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getLanguage()const; + void setLanguage(const std::string& language); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + + private: + long resourceOwnerId_; + std::string language_; + std::string accessKeyId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/DescribeZonesResult.h b/hitsdb/include/alibabacloud/hitsdb/model/DescribeZonesResult.h new file mode 100644 index 000000000..b686effb3 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/DescribeZonesResult.h @@ -0,0 +1,56 @@ +/* + * 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_HITSDB_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT DescribeZonesResult : public ServiceResult + { + public: + struct ZoneModel + { + std::string zoneId; + std::string localName; + }; + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); + std::vector getZoneList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector zoneList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListRequest.h new file mode 100644 index 000000000..c4eb20a62 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListRequest.h @@ -0,0 +1,84 @@ +/* + * 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataMetricListRequest : public RpcServiceRequest + { + + public: + ExploreHiTSDBInstanceDataMetricListRequest(); + ~ExploreHiTSDBInstanceDataMetricListRequest(); + + std::string getReverseVpcIp()const; + void setReverseVpcIp(const std::string& reverseVpcIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPrefix()const; + void setPrefix(const std::string& prefix); + int getReverseVpcPort()const; + void setReverseVpcPort(int reverseVpcPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getMax()const; + void setMax(long max); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string reverseVpcIp_; + long resourceOwnerId_; + std::string prefix_; + int reverseVpcPort_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + std::string resourceOwnerAccount_; + long max_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListResult.h similarity index 56% rename from hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListResult.h rename to hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListResult.h index da83ec5cf..7841bdf27 100644 --- a/hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListResult.h +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataMetricListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTRESULT_H_ -#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTRESULT_H_ +#ifndef ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTRESULT_H_ #include #include @@ -29,37 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_HITSDB_EXPORT GetLindormInstanceEngineListResult : public ServiceResult + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataMetricListResult : public ServiceResult { public: - struct EngineInfo + struct Data { - struct NetInfo - { - int port; - std::string connectionString; - std::string netType; - int accessType; - }; - std::vector netInfoList; - std::string engineType; + std::string metric; }; - GetLindormInstanceEngineListResult(); - explicit GetLindormInstanceEngineListResult(const std::string &payload); - ~GetLindormInstanceEngineListResult(); - std::vector getEngineList()const; + ExploreHiTSDBInstanceDataMetricListResult(); + explicit ExploreHiTSDBInstanceDataMetricListResult(const std::string &payload); + ~ExploreHiTSDBInstanceDataMetricListResult(); std::string getInstanceId()const; + std::vector getMetricList()const; protected: void parse(const std::string &payload); private: - std::vector engineList_; std::string instanceId_; + std::vector metricList_; }; } } } -#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMINSTANCEENGINELISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAMETRICLISTRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataRequest.h new file mode 100644 index 000000000..0bd7c5794 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataRequest.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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataRequest : public RpcServiceRequest + { + + public: + ExploreHiTSDBInstanceDataRequest(); + ~ExploreHiTSDBInstanceDataRequest(); + + std::string getReverseVpcIp()const; + void setReverseVpcIp(const std::string& reverseVpcIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getReverseVpcPort()const; + void setReverseVpcPort(int reverseVpcPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + long getEnd()const; + void setEnd(long end); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getAggregator()const; + void setAggregator(const std::string& aggregator); + long getStart()const; + void setStart(long start); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getTagFilter()const; + void setTagFilter(const std::string& tagFilter); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getMetric()const; + void setMetric(const std::string& metric); + std::string getDownSampleAggregator()const; + void setDownSampleAggregator(const std::string& downSampleAggregator); + std::string getDownSampleTime()const; + void setDownSampleTime(const std::string& downSampleTime); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string reverseVpcIp_; + long resourceOwnerId_; + int reverseVpcPort_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + long end_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string aggregator_; + long start_; + long ownerId_; + std::string tagFilter_; + std::string instanceId_; + std::string metric_; + std::string downSampleAggregator_; + std::string downSampleTime_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATAREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataResult.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataResult.h new file mode 100644 index 000000000..e997e4a30 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataResult.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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATARESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataResult : public ServiceResult + { + public: + struct TimeLine + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + struct Point + { + float value; + std::string timestamp; + }; + std::vector series; + std::vector tags; + }; + + + ExploreHiTSDBInstanceDataResult(); + explicit ExploreHiTSDBInstanceDataResult(const std::string &payload); + ~ExploreHiTSDBInstanceDataResult(); + std::vector getTimeLines()const; + std::string getStart()const; + std::string getEnd()const; + std::string getMetric()const; + + protected: + void parse(const std::string &payload); + private: + std::vector timeLines_; + std::string start_; + std::string end_; + std::string metric_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATARESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListRequest.h new file mode 100644 index 000000000..c5a4e2cca --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListRequest.h @@ -0,0 +1,87 @@ +/* + * 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagKeyListRequest : public RpcServiceRequest + { + + public: + ExploreHiTSDBInstanceDataTagKeyListRequest(); + ~ExploreHiTSDBInstanceDataTagKeyListRequest(); + + std::string getReverseVpcIp()const; + void setReverseVpcIp(const std::string& reverseVpcIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPrefix()const; + void setPrefix(const std::string& prefix); + int getReverseVpcPort()const; + void setReverseVpcPort(int reverseVpcPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getMax()const; + void setMax(long max); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getMetric()const; + void setMetric(const std::string& metric); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string reverseVpcIp_; + long resourceOwnerId_; + std::string prefix_; + int reverseVpcPort_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + std::string resourceOwnerAccount_; + long max_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string metric_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListResult.h new file mode 100644 index 000000000..d6a85a3d5 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagKeyListResult.h @@ -0,0 +1,57 @@ +/* + * 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagKeyListResult : public ServiceResult + { + public: + struct Data + { + std::string tagKey; + }; + + + ExploreHiTSDBInstanceDataTagKeyListResult(); + explicit ExploreHiTSDBInstanceDataTagKeyListResult(const std::string &payload); + ~ExploreHiTSDBInstanceDataTagKeyListResult(); + std::string getInstanceId()const; + std::vector getTagKeyList()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + std::vector tagKeyList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGKEYLISTRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListRequest.h new file mode 100644 index 000000000..0c236c6c6 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListRequest.h @@ -0,0 +1,87 @@ +/* + * 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagValueListRequest : public RpcServiceRequest + { + + public: + ExploreHiTSDBInstanceDataTagValueListRequest(); + ~ExploreHiTSDBInstanceDataTagValueListRequest(); + + std::string getReverseVpcIp()const; + void setReverseVpcIp(const std::string& reverseVpcIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPrefix()const; + void setPrefix(const std::string& prefix); + int getReverseVpcPort()const; + void setReverseVpcPort(int reverseVpcPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + long getMax()const; + void setMax(long max); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTagKey()const; + void setTagKey(const std::string& tagKey); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string reverseVpcIp_; + long resourceOwnerId_; + std::string prefix_; + int reverseVpcPort_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + std::string resourceOwnerAccount_; + long max_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string tagKey_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListResult.h new file mode 100644 index 000000000..a99c9d19c --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDataTagValueListResult.h @@ -0,0 +1,57 @@ +/* + * 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDataTagValueListResult : public ServiceResult + { + public: + struct Data + { + std::string tagValue; + }; + + + ExploreHiTSDBInstanceDataTagValueListResult(); + explicit ExploreHiTSDBInstanceDataTagValueListResult(const std::string &payload); + ~ExploreHiTSDBInstanceDataTagValueListResult(); + std::string getInstanceId()const; + std::vector getTagValueList()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + std::vector tagValueList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDATATAGVALUELISTRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListRequest.h new file mode 100644 index 000000000..d45f8022f --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListRequest.h @@ -0,0 +1,81 @@ +/* + * 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_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDeletionJobListRequest : public RpcServiceRequest + { + + public: + ExploreHiTSDBInstanceDeletionJobListRequest(); + ~ExploreHiTSDBInstanceDeletionJobListRequest(); + + 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 getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getJobType()const; + void setJobType(const std::string& jobType); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + long resourceOwnerId_; + int pageNumber_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string jobType_; + std::string instanceId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListResult.h new file mode 100644 index 000000000..3acc941b4 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ExploreHiTSDBInstanceDeletionJobListResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ExploreHiTSDBInstanceDeletionJobListResult : public ServiceResult + { + public: + struct JobItem + { + std::string status; + long endTime; + std::string instanceId; + std::string ip; + int port; + long startTime; + long jobEndTime; + std::string metric; + long jobCreationTime; + long jobStartTime; + long id; + std::string tags; + std::string jobTyp; + }; + + + ExploreHiTSDBInstanceDeletionJobListResult(); + explicit ExploreHiTSDBInstanceDeletionJobListResult(const std::string &payload); + ~ExploreHiTSDBInstanceDeletionJobListResult(); + int getPageSize()const; + int getPageNumber()const; + long getTotal()const; + std::vector getJobList()const; + + protected: + void parse(const std::string &payload); + private: + int pageSize_; + int pageNumber_; + long total_; + std::vector jobList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_EXPLOREHITSDBINSTANCEDELETIONJOBLISTRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassRequest.h new file mode 100644 index 000000000..d277d0787 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassRequest.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_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ModifyHiTSDBInstanceClassRequest : public RpcServiceRequest + { + + public: + ModifyHiTSDBInstanceClassRequest(); + ~ModifyHiTSDBInstanceClassRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getInstanceClass()const; + void setInstanceClass(const std::string& instanceClass); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getInstanceStorage()const; + void setInstanceStorage(const std::string& instanceStorage); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long resourceOwnerId_; + std::string instanceClass_; + std::string accessKeyId_; + std::string securityToken_; + std::string instanceStorage_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassResult.h similarity index 71% rename from hitsdb/include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListResult.h rename to hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassResult.h index fae95b775..dff31f4a7 100644 --- a/hitsdb/include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListResult.h +++ b/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceClassResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_HITSDB_MODEL_UPDATEINSTANCEIPWHITELISTRESULT_H_ -#define ALIBABACLOUD_HITSDB_MODEL_UPDATEINSTANCEIPWHITELISTRESULT_H_ +#ifndef ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_HITSDB_EXPORT UpdateInstanceIpWhiteListResult : public ServiceResult + class ALIBABACLOUD_HITSDB_EXPORT ModifyHiTSDBInstanceClassResult : public ServiceResult { public: - UpdateInstanceIpWhiteListResult(); - explicit UpdateInstanceIpWhiteListResult(const std::string &payload); - ~UpdateInstanceIpWhiteListResult(); + ModifyHiTSDBInstanceClassResult(); + explicit ModifyHiTSDBInstanceClassResult(const std::string &payload); + ~ModifyHiTSDBInstanceClassResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_HITSDB_MODEL_UPDATEINSTANCEIPWHITELISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCECLASSRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListRequest.h similarity index 77% rename from hitsdb/include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListRequest.h rename to hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListRequest.h index 27f188901..c6327f6fa 100644 --- a/hitsdb/include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListRequest.h +++ b/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_HITSDB_MODEL_UPDATEINSTANCEIPWHITELISTREQUEST_H_ -#define ALIBABACLOUD_HITSDB_MODEL_UPDATEINSTANCEIPWHITELISTREQUEST_H_ +#ifndef ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCESECURITYIPLISTREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCESECURITYIPLISTREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_HITSDB_EXPORT UpdateInstanceIpWhiteListRequest : public RpcServiceRequest + class ALIBABACLOUD_HITSDB_EXPORT ModifyHiTSDBInstanceSecurityIpListRequest : public RpcServiceRequest { public: - UpdateInstanceIpWhiteListRequest(); - ~UpdateInstanceIpWhiteListRequest(); + ModifyHiTSDBInstanceSecurityIpListRequest(); + ~ModifyHiTSDBInstanceSecurityIpListRequest(); long getResourceOwnerId()const; void setResourceOwnerId(long resourceOwnerId); @@ -47,8 +47,6 @@ namespace AlibabaCloud void setOwnerAccount(const std::string& ownerAccount); long getOwnerId()const; void setOwnerId(long ownerId); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); std::string getSecurityIpList()const; void setSecurityIpList(const std::string& securityIpList); std::string getInstanceId()const; @@ -61,7 +59,6 @@ namespace AlibabaCloud std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string groupName_; std::string securityIpList_; std::string instanceId_; @@ -69,4 +66,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_HITSDB_MODEL_UPDATEINSTANCEIPWHITELISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCESECURITYIPLISTREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListResult.h b/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListResult.h new file mode 100644 index 000000000..a3ce7d91b --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/ModifyHiTSDBInstanceSecurityIpListResult.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_HITSDB_MODEL_MODIFYHITSDBINSTANCESECURITYIPLISTRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCESECURITYIPLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT ModifyHiTSDBInstanceSecurityIpListResult : public ServiceResult + { + public: + + + ModifyHiTSDBInstanceSecurityIpListResult(); + explicit ModifyHiTSDBInstanceSecurityIpListResult(const std::string &payload); + ~ModifyHiTSDBInstanceSecurityIpListResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_MODIFYHITSDBINSTANCESECURITYIPLISTRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasRequest.h new file mode 100644 index 000000000..7108802c8 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HITSDB_MODEL_RENAMEHITSDBINSTANCEALIASREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_RENAMEHITSDBINSTANCEALIASREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT RenameHiTSDBInstanceAliasRequest : public RpcServiceRequest + { + + public: + RenameHiTSDBInstanceAliasRequest(); + ~RenameHiTSDBInstanceAliasRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + std::string getInstanceAlias()const; + void setInstanceAlias(const std::string& instanceAlias); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string instanceAlias_; + long ownerId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_RENAMEHITSDBINSTANCEALIASREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasResult.h b/hitsdb/include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasResult.h new file mode 100644 index 000000000..7f5fecb5a --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/RenameHiTSDBInstanceAliasResult.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_HITSDB_MODEL_RENAMEHITSDBINSTANCEALIASRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_RENAMEHITSDBINSTANCEALIASRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT RenameHiTSDBInstanceAliasResult : public ServiceResult + { + public: + + + RenameHiTSDBInstanceAliasResult(); + explicit RenameHiTSDBInstanceAliasResult(const std::string &payload); + ~RenameHiTSDBInstanceAliasResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_RENAMEHITSDBINSTANCEALIASRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/RenewTSDBInstanceRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/RenewTSDBInstanceRequest.h new file mode 100644 index 000000000..ad6e5dd40 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/RenewTSDBInstanceRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT RenewTSDBInstanceRequest : public RpcServiceRequest + { + + public: + RenewTSDBInstanceRequest(); + ~RenewTSDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getDuration()const; + void setDuration(int duration); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getPricingCycle()const; + void setPricingCycle(const std::string& pricingCycle); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + int duration_; + std::string securityToken_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + std::string pricingCycle_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/RenewTSDBInstanceResult.h b/hitsdb/include/alibabacloud/hitsdb/model/RenewTSDBInstanceResult.h new file mode 100644 index 000000000..1a732fc09 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/RenewTSDBInstanceResult.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_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT RenewTSDBInstanceResult : public ServiceResult + { + public: + + + RenewTSDBInstanceResult(); + explicit RenewTSDBInstanceResult(const std::string &payload); + ~RenewTSDBInstanceResult(); + long getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_RENEWTSDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceRequest.h new file mode 100644 index 000000000..d96dc2d2d --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCEREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT RestartHiTSDBInstanceRequest : public RpcServiceRequest + { + + public: + RestartHiTSDBInstanceRequest(); + ~RestartHiTSDBInstanceRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCEREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceResult.h b/hitsdb/include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceResult.h new file mode 100644 index 000000000..17ae3c173 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/RestartHiTSDBInstanceResult.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_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT RestartHiTSDBInstanceResult : public ServiceResult + { + public: + + + RestartHiTSDBInstanceResult(); + explicit RestartHiTSDBInstanceResult(const std::string &payload); + ~RestartHiTSDBInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_RESTARTHITSDBINSTANCERESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetRequest.h new file mode 100644 index 000000000..56201fd5e --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_HITSDB_MODEL_SWITCHHITSDBINSTANCEPUBLICNETREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_SWITCHHITSDBINSTANCEPUBLICNETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT SwitchHiTSDBInstancePublicNetRequest : public RpcServiceRequest + { + + public: + SwitchHiTSDBInstancePublicNetRequest(); + ~SwitchHiTSDBInstancePublicNetRequest(); + + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + long getSwitchAction()const; + void setSwitchAction(long switchAction); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string securityToken_; + long switchAction_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_SWITCHHITSDBINSTANCEPUBLICNETREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetResult.h b/hitsdb/include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetResult.h new file mode 100644 index 000000000..85a62ff69 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/SwitchHiTSDBInstancePublicNetResult.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_HITSDB_MODEL_SWITCHHITSDBINSTANCEPUBLICNETRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_SWITCHHITSDBINSTANCEPUBLICNETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT SwitchHiTSDBInstancePublicNetResult : public ServiceResult + { + public: + + + SwitchHiTSDBInstancePublicNetResult(); + explicit SwitchHiTSDBInstancePublicNetResult(const std::string &payload); + ~SwitchHiTSDBInstancePublicNetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_SWITCHHITSDBINSTANCEPUBLICNETRESULT_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlRequest.h b/hitsdb/include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlRequest.h new file mode 100644 index 000000000..d219925f7 --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlRequest.h @@ -0,0 +1,81 @@ +/* + * 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_HITSDB_MODEL_UPDATEHITSDBINSTANCEDATATTLREQUEST_H_ +#define ALIBABACLOUD_HITSDB_MODEL_UPDATEHITSDBINSTANCEDATATTLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT UpdateHiTSDBInstanceDataTtlRequest : public RpcServiceRequest + { + + public: + UpdateHiTSDBInstanceDataTtlRequest(); + ~UpdateHiTSDBInstanceDataTtlRequest(); + + std::string getReverseVpcIp()const; + void setReverseVpcIp(const std::string& reverseVpcIp); + long getResourceOwnerId()const; + void setResourceOwnerId(long resourceOwnerId); + int getReverseVpcPort()const; + void setReverseVpcPort(int reverseVpcPort); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassWord()const; + void setPassWord(const std::string& passWord); + std::string getSecurityToken()const; + void setSecurityToken(const std::string& securityToken); + std::string getResourceOwnerAccount()const; + void setResourceOwnerAccount(const std::string& resourceOwnerAccount); + std::string getOwnerAccount()const; + void setOwnerAccount(const std::string& ownerAccount); + long getOwnerId()const; + void setOwnerId(long ownerId); + long getTtl()const; + void setTtl(long ttl); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getUserName()const; + void setUserName(const std::string& userName); + + private: + std::string reverseVpcIp_; + long resourceOwnerId_; + int reverseVpcPort_; + std::string accessKeyId_; + std::string passWord_; + std::string securityToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + long ttl_; + std::string instanceId_; + std::string userName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_UPDATEHITSDBINSTANCEDATATTLREQUEST_H_ \ No newline at end of file diff --git a/hitsdb/include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlResult.h b/hitsdb/include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlResult.h new file mode 100644 index 000000000..68a73d7ac --- /dev/null +++ b/hitsdb/include/alibabacloud/hitsdb/model/UpdateHiTSDBInstanceDataTtlResult.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_HITSDB_MODEL_UPDATEHITSDBINSTANCEDATATTLRESULT_H_ +#define ALIBABACLOUD_HITSDB_MODEL_UPDATEHITSDBINSTANCEDATATTLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Hitsdb + { + namespace Model + { + class ALIBABACLOUD_HITSDB_EXPORT UpdateHiTSDBInstanceDataTtlResult : public ServiceResult + { + public: + + + UpdateHiTSDBInstanceDataTtlResult(); + explicit UpdateHiTSDBInstanceDataTtlResult(const std::string &payload); + ~UpdateHiTSDBInstanceDataTtlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_HITSDB_MODEL_UPDATEHITSDBINSTANCEDATATTLRESULT_H_ \ No newline at end of file diff --git a/hitsdb/src/HitsdbClient.cc b/hitsdb/src/HitsdbClient.cc index a0269efda..6e1ded5ea 100644 --- a/hitsdb/src/HitsdbClient.cc +++ b/hitsdb/src/HitsdbClient.cc @@ -31,164 +31,812 @@ HitsdbClient::HitsdbClient(const Credentials &credentials, const ClientConfigura RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "hitsdb"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "tsdb"); } HitsdbClient::HitsdbClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "hitsdb"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "tsdb"); } HitsdbClient::HitsdbClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "hitsdb"); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "tsdb"); } HitsdbClient::~HitsdbClient() {} -HitsdbClient::GetInstanceIpWhiteListOutcome HitsdbClient::getInstanceIpWhiteList(const GetInstanceIpWhiteListRequest &request) const +HitsdbClient::CreateHiTSDBInstanceOutcome HitsdbClient::createHiTSDBInstance(const CreateHiTSDBInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetInstanceIpWhiteListOutcome(endpointOutcome.error()); + return CreateHiTSDBInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetInstanceIpWhiteListOutcome(GetInstanceIpWhiteListResult(outcome.result())); + return CreateHiTSDBInstanceOutcome(CreateHiTSDBInstanceResult(outcome.result())); else - return GetInstanceIpWhiteListOutcome(outcome.error()); + return CreateHiTSDBInstanceOutcome(outcome.error()); } -void HitsdbClient::getInstanceIpWhiteListAsync(const GetInstanceIpWhiteListRequest& request, const GetInstanceIpWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +void HitsdbClient::createHiTSDBInstanceAsync(const CreateHiTSDBInstanceRequest& request, const CreateHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getInstanceIpWhiteList(request), context); + handler(this, request, createHiTSDBInstance(request), context); }; asyncExecute(new Runnable(fn)); } -HitsdbClient::GetInstanceIpWhiteListOutcomeCallable HitsdbClient::getInstanceIpWhiteListCallable(const GetInstanceIpWhiteListRequest &request) const +HitsdbClient::CreateHiTSDBInstanceOutcomeCallable HitsdbClient::createHiTSDBInstanceCallable(const CreateHiTSDBInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getInstanceIpWhiteList(request); + return this->createHiTSDBInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -HitsdbClient::GetLindormInstanceEngineListOutcome HitsdbClient::getLindormInstanceEngineList(const GetLindormInstanceEngineListRequest &request) const +HitsdbClient::DeleteHiTSDBInstanceOutcome HitsdbClient::deleteHiTSDBInstance(const DeleteHiTSDBInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetLindormInstanceEngineListOutcome(endpointOutcome.error()); + return DeleteHiTSDBInstanceOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetLindormInstanceEngineListOutcome(GetLindormInstanceEngineListResult(outcome.result())); + return DeleteHiTSDBInstanceOutcome(DeleteHiTSDBInstanceResult(outcome.result())); else - return GetLindormInstanceEngineListOutcome(outcome.error()); + return DeleteHiTSDBInstanceOutcome(outcome.error()); } -void HitsdbClient::getLindormInstanceEngineListAsync(const GetLindormInstanceEngineListRequest& request, const GetLindormInstanceEngineListAsyncHandler& handler, const std::shared_ptr& context) const +void HitsdbClient::deleteHiTSDBInstanceAsync(const DeleteHiTSDBInstanceRequest& request, const DeleteHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getLindormInstanceEngineList(request), context); + handler(this, request, deleteHiTSDBInstance(request), context); }; asyncExecute(new Runnable(fn)); } -HitsdbClient::GetLindormInstanceEngineListOutcomeCallable HitsdbClient::getLindormInstanceEngineListCallable(const GetLindormInstanceEngineListRequest &request) const +HitsdbClient::DeleteHiTSDBInstanceOutcomeCallable HitsdbClient::deleteHiTSDBInstanceCallable(const DeleteHiTSDBInstanceRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getLindormInstanceEngineList(request); + return this->deleteHiTSDBInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -HitsdbClient::GetLindormInstanceListOutcome HitsdbClient::getLindormInstanceList(const GetLindormInstanceListRequest &request) const +HitsdbClient::DeleteHiTSDBInstanceDataOutcome HitsdbClient::deleteHiTSDBInstanceData(const DeleteHiTSDBInstanceDataRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetLindormInstanceListOutcome(endpointOutcome.error()); + return DeleteHiTSDBInstanceDataOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetLindormInstanceListOutcome(GetLindormInstanceListResult(outcome.result())); + return DeleteHiTSDBInstanceDataOutcome(DeleteHiTSDBInstanceDataResult(outcome.result())); else - return GetLindormInstanceListOutcome(outcome.error()); + return DeleteHiTSDBInstanceDataOutcome(outcome.error()); } -void HitsdbClient::getLindormInstanceListAsync(const GetLindormInstanceListRequest& request, const GetLindormInstanceListAsyncHandler& handler, const std::shared_ptr& context) const +void HitsdbClient::deleteHiTSDBInstanceDataAsync(const DeleteHiTSDBInstanceDataRequest& request, const DeleteHiTSDBInstanceDataAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getLindormInstanceList(request), context); + handler(this, request, deleteHiTSDBInstanceData(request), context); }; asyncExecute(new Runnable(fn)); } -HitsdbClient::GetLindormInstanceListOutcomeCallable HitsdbClient::getLindormInstanceListCallable(const GetLindormInstanceListRequest &request) const +HitsdbClient::DeleteHiTSDBInstanceDataOutcomeCallable HitsdbClient::deleteHiTSDBInstanceDataCallable(const DeleteHiTSDBInstanceDataRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getLindormInstanceList(request); + return this->deleteHiTSDBInstanceData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -HitsdbClient::UpdateInstanceIpWhiteListOutcome HitsdbClient::updateInstanceIpWhiteList(const UpdateInstanceIpWhiteListRequest &request) const +HitsdbClient::DeleteHiTSDBInstanceMetaOutcome HitsdbClient::deleteHiTSDBInstanceMeta(const DeleteHiTSDBInstanceMetaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return UpdateInstanceIpWhiteListOutcome(endpointOutcome.error()); + return DeleteHiTSDBInstanceMetaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return UpdateInstanceIpWhiteListOutcome(UpdateInstanceIpWhiteListResult(outcome.result())); + return DeleteHiTSDBInstanceMetaOutcome(DeleteHiTSDBInstanceMetaResult(outcome.result())); else - return UpdateInstanceIpWhiteListOutcome(outcome.error()); + return DeleteHiTSDBInstanceMetaOutcome(outcome.error()); } -void HitsdbClient::updateInstanceIpWhiteListAsync(const UpdateInstanceIpWhiteListRequest& request, const UpdateInstanceIpWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +void HitsdbClient::deleteHiTSDBInstanceMetaAsync(const DeleteHiTSDBInstanceMetaRequest& request, const DeleteHiTSDBInstanceMetaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, updateInstanceIpWhiteList(request), context); + handler(this, request, deleteHiTSDBInstanceMeta(request), context); }; asyncExecute(new Runnable(fn)); } -HitsdbClient::UpdateInstanceIpWhiteListOutcomeCallable HitsdbClient::updateInstanceIpWhiteListCallable(const UpdateInstanceIpWhiteListRequest &request) const +HitsdbClient::DeleteHiTSDBInstanceMetaOutcomeCallable HitsdbClient::deleteHiTSDBInstanceMetaCallable(const DeleteHiTSDBInstanceMetaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->updateInstanceIpWhiteList(request); + return this->deleteHiTSDBInstanceMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::DescribeHiTSDBInstanceOutcome HitsdbClient::describeHiTSDBInstance(const DescribeHiTSDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHiTSDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHiTSDBInstanceOutcome(DescribeHiTSDBInstanceResult(outcome.result())); + else + return DescribeHiTSDBInstanceOutcome(outcome.error()); +} + +void HitsdbClient::describeHiTSDBInstanceAsync(const DescribeHiTSDBInstanceRequest& request, const DescribeHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHiTSDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::DescribeHiTSDBInstanceOutcomeCallable HitsdbClient::describeHiTSDBInstanceCallable(const DescribeHiTSDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHiTSDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::DescribeHiTSDBInstanceDataTtlOutcome HitsdbClient::describeHiTSDBInstanceDataTtl(const DescribeHiTSDBInstanceDataTtlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHiTSDBInstanceDataTtlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHiTSDBInstanceDataTtlOutcome(DescribeHiTSDBInstanceDataTtlResult(outcome.result())); + else + return DescribeHiTSDBInstanceDataTtlOutcome(outcome.error()); +} + +void HitsdbClient::describeHiTSDBInstanceDataTtlAsync(const DescribeHiTSDBInstanceDataTtlRequest& request, const DescribeHiTSDBInstanceDataTtlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHiTSDBInstanceDataTtl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::DescribeHiTSDBInstanceDataTtlOutcomeCallable HitsdbClient::describeHiTSDBInstanceDataTtlCallable(const DescribeHiTSDBInstanceDataTtlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHiTSDBInstanceDataTtl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::DescribeHiTSDBInstanceListOutcome HitsdbClient::describeHiTSDBInstanceList(const DescribeHiTSDBInstanceListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHiTSDBInstanceListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHiTSDBInstanceListOutcome(DescribeHiTSDBInstanceListResult(outcome.result())); + else + return DescribeHiTSDBInstanceListOutcome(outcome.error()); +} + +void HitsdbClient::describeHiTSDBInstanceListAsync(const DescribeHiTSDBInstanceListRequest& request, const DescribeHiTSDBInstanceListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHiTSDBInstanceList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::DescribeHiTSDBInstanceListOutcomeCallable HitsdbClient::describeHiTSDBInstanceListCallable(const DescribeHiTSDBInstanceListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHiTSDBInstanceList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::DescribeHiTSDBInstanceSecurityIpListOutcome HitsdbClient::describeHiTSDBInstanceSecurityIpList(const DescribeHiTSDBInstanceSecurityIpListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHiTSDBInstanceSecurityIpListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHiTSDBInstanceSecurityIpListOutcome(DescribeHiTSDBInstanceSecurityIpListResult(outcome.result())); + else + return DescribeHiTSDBInstanceSecurityIpListOutcome(outcome.error()); +} + +void HitsdbClient::describeHiTSDBInstanceSecurityIpListAsync(const DescribeHiTSDBInstanceSecurityIpListRequest& request, const DescribeHiTSDBInstanceSecurityIpListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHiTSDBInstanceSecurityIpList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::DescribeHiTSDBInstanceSecurityIpListOutcomeCallable HitsdbClient::describeHiTSDBInstanceSecurityIpListCallable(const DescribeHiTSDBInstanceSecurityIpListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHiTSDBInstanceSecurityIpList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::DescribeRegionsOutcome HitsdbClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void HitsdbClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::DescribeRegionsOutcomeCallable HitsdbClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::DescribeZonesOutcome HitsdbClient::describeZones(const DescribeZonesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeZonesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeZonesOutcome(DescribeZonesResult(outcome.result())); + else + return DescribeZonesOutcome(outcome.error()); +} + +void HitsdbClient::describeZonesAsync(const DescribeZonesRequest& request, const DescribeZonesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeZones(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::DescribeZonesOutcomeCallable HitsdbClient::describeZonesCallable(const DescribeZonesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeZones(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::ExploreHiTSDBInstanceDataOutcome HitsdbClient::exploreHiTSDBInstanceData(const ExploreHiTSDBInstanceDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExploreHiTSDBInstanceDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExploreHiTSDBInstanceDataOutcome(ExploreHiTSDBInstanceDataResult(outcome.result())); + else + return ExploreHiTSDBInstanceDataOutcome(outcome.error()); +} + +void HitsdbClient::exploreHiTSDBInstanceDataAsync(const ExploreHiTSDBInstanceDataRequest& request, const ExploreHiTSDBInstanceDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exploreHiTSDBInstanceData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::ExploreHiTSDBInstanceDataOutcomeCallable HitsdbClient::exploreHiTSDBInstanceDataCallable(const ExploreHiTSDBInstanceDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exploreHiTSDBInstanceData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::ExploreHiTSDBInstanceDataMetricListOutcome HitsdbClient::exploreHiTSDBInstanceDataMetricList(const ExploreHiTSDBInstanceDataMetricListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExploreHiTSDBInstanceDataMetricListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExploreHiTSDBInstanceDataMetricListOutcome(ExploreHiTSDBInstanceDataMetricListResult(outcome.result())); + else + return ExploreHiTSDBInstanceDataMetricListOutcome(outcome.error()); +} + +void HitsdbClient::exploreHiTSDBInstanceDataMetricListAsync(const ExploreHiTSDBInstanceDataMetricListRequest& request, const ExploreHiTSDBInstanceDataMetricListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exploreHiTSDBInstanceDataMetricList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::ExploreHiTSDBInstanceDataMetricListOutcomeCallable HitsdbClient::exploreHiTSDBInstanceDataMetricListCallable(const ExploreHiTSDBInstanceDataMetricListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exploreHiTSDBInstanceDataMetricList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::ExploreHiTSDBInstanceDataTagKeyListOutcome HitsdbClient::exploreHiTSDBInstanceDataTagKeyList(const ExploreHiTSDBInstanceDataTagKeyListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExploreHiTSDBInstanceDataTagKeyListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExploreHiTSDBInstanceDataTagKeyListOutcome(ExploreHiTSDBInstanceDataTagKeyListResult(outcome.result())); + else + return ExploreHiTSDBInstanceDataTagKeyListOutcome(outcome.error()); +} + +void HitsdbClient::exploreHiTSDBInstanceDataTagKeyListAsync(const ExploreHiTSDBInstanceDataTagKeyListRequest& request, const ExploreHiTSDBInstanceDataTagKeyListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exploreHiTSDBInstanceDataTagKeyList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::ExploreHiTSDBInstanceDataTagKeyListOutcomeCallable HitsdbClient::exploreHiTSDBInstanceDataTagKeyListCallable(const ExploreHiTSDBInstanceDataTagKeyListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exploreHiTSDBInstanceDataTagKeyList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::ExploreHiTSDBInstanceDataTagValueListOutcome HitsdbClient::exploreHiTSDBInstanceDataTagValueList(const ExploreHiTSDBInstanceDataTagValueListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExploreHiTSDBInstanceDataTagValueListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExploreHiTSDBInstanceDataTagValueListOutcome(ExploreHiTSDBInstanceDataTagValueListResult(outcome.result())); + else + return ExploreHiTSDBInstanceDataTagValueListOutcome(outcome.error()); +} + +void HitsdbClient::exploreHiTSDBInstanceDataTagValueListAsync(const ExploreHiTSDBInstanceDataTagValueListRequest& request, const ExploreHiTSDBInstanceDataTagValueListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exploreHiTSDBInstanceDataTagValueList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::ExploreHiTSDBInstanceDataTagValueListOutcomeCallable HitsdbClient::exploreHiTSDBInstanceDataTagValueListCallable(const ExploreHiTSDBInstanceDataTagValueListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exploreHiTSDBInstanceDataTagValueList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::ExploreHiTSDBInstanceDeletionJobListOutcome HitsdbClient::exploreHiTSDBInstanceDeletionJobList(const ExploreHiTSDBInstanceDeletionJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExploreHiTSDBInstanceDeletionJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExploreHiTSDBInstanceDeletionJobListOutcome(ExploreHiTSDBInstanceDeletionJobListResult(outcome.result())); + else + return ExploreHiTSDBInstanceDeletionJobListOutcome(outcome.error()); +} + +void HitsdbClient::exploreHiTSDBInstanceDeletionJobListAsync(const ExploreHiTSDBInstanceDeletionJobListRequest& request, const ExploreHiTSDBInstanceDeletionJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, exploreHiTSDBInstanceDeletionJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::ExploreHiTSDBInstanceDeletionJobListOutcomeCallable HitsdbClient::exploreHiTSDBInstanceDeletionJobListCallable(const ExploreHiTSDBInstanceDeletionJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->exploreHiTSDBInstanceDeletionJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::ModifyHiTSDBInstanceClassOutcome HitsdbClient::modifyHiTSDBInstanceClass(const ModifyHiTSDBInstanceClassRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyHiTSDBInstanceClassOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyHiTSDBInstanceClassOutcome(ModifyHiTSDBInstanceClassResult(outcome.result())); + else + return ModifyHiTSDBInstanceClassOutcome(outcome.error()); +} + +void HitsdbClient::modifyHiTSDBInstanceClassAsync(const ModifyHiTSDBInstanceClassRequest& request, const ModifyHiTSDBInstanceClassAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyHiTSDBInstanceClass(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::ModifyHiTSDBInstanceClassOutcomeCallable HitsdbClient::modifyHiTSDBInstanceClassCallable(const ModifyHiTSDBInstanceClassRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyHiTSDBInstanceClass(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::ModifyHiTSDBInstanceSecurityIpListOutcome HitsdbClient::modifyHiTSDBInstanceSecurityIpList(const ModifyHiTSDBInstanceSecurityIpListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyHiTSDBInstanceSecurityIpListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyHiTSDBInstanceSecurityIpListOutcome(ModifyHiTSDBInstanceSecurityIpListResult(outcome.result())); + else + return ModifyHiTSDBInstanceSecurityIpListOutcome(outcome.error()); +} + +void HitsdbClient::modifyHiTSDBInstanceSecurityIpListAsync(const ModifyHiTSDBInstanceSecurityIpListRequest& request, const ModifyHiTSDBInstanceSecurityIpListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyHiTSDBInstanceSecurityIpList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::ModifyHiTSDBInstanceSecurityIpListOutcomeCallable HitsdbClient::modifyHiTSDBInstanceSecurityIpListCallable(const ModifyHiTSDBInstanceSecurityIpListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyHiTSDBInstanceSecurityIpList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::RenameHiTSDBInstanceAliasOutcome HitsdbClient::renameHiTSDBInstanceAlias(const RenameHiTSDBInstanceAliasRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenameHiTSDBInstanceAliasOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenameHiTSDBInstanceAliasOutcome(RenameHiTSDBInstanceAliasResult(outcome.result())); + else + return RenameHiTSDBInstanceAliasOutcome(outcome.error()); +} + +void HitsdbClient::renameHiTSDBInstanceAliasAsync(const RenameHiTSDBInstanceAliasRequest& request, const RenameHiTSDBInstanceAliasAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renameHiTSDBInstanceAlias(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::RenameHiTSDBInstanceAliasOutcomeCallable HitsdbClient::renameHiTSDBInstanceAliasCallable(const RenameHiTSDBInstanceAliasRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renameHiTSDBInstanceAlias(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::RenewTSDBInstanceOutcome HitsdbClient::renewTSDBInstance(const RenewTSDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RenewTSDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RenewTSDBInstanceOutcome(RenewTSDBInstanceResult(outcome.result())); + else + return RenewTSDBInstanceOutcome(outcome.error()); +} + +void HitsdbClient::renewTSDBInstanceAsync(const RenewTSDBInstanceRequest& request, const RenewTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, renewTSDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::RenewTSDBInstanceOutcomeCallable HitsdbClient::renewTSDBInstanceCallable(const RenewTSDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->renewTSDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::RestartHiTSDBInstanceOutcome HitsdbClient::restartHiTSDBInstance(const RestartHiTSDBInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RestartHiTSDBInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RestartHiTSDBInstanceOutcome(RestartHiTSDBInstanceResult(outcome.result())); + else + return RestartHiTSDBInstanceOutcome(outcome.error()); +} + +void HitsdbClient::restartHiTSDBInstanceAsync(const RestartHiTSDBInstanceRequest& request, const RestartHiTSDBInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, restartHiTSDBInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::RestartHiTSDBInstanceOutcomeCallable HitsdbClient::restartHiTSDBInstanceCallable(const RestartHiTSDBInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->restartHiTSDBInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::SwitchHiTSDBInstancePublicNetOutcome HitsdbClient::switchHiTSDBInstancePublicNet(const SwitchHiTSDBInstancePublicNetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SwitchHiTSDBInstancePublicNetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SwitchHiTSDBInstancePublicNetOutcome(SwitchHiTSDBInstancePublicNetResult(outcome.result())); + else + return SwitchHiTSDBInstancePublicNetOutcome(outcome.error()); +} + +void HitsdbClient::switchHiTSDBInstancePublicNetAsync(const SwitchHiTSDBInstancePublicNetRequest& request, const SwitchHiTSDBInstancePublicNetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, switchHiTSDBInstancePublicNet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::SwitchHiTSDBInstancePublicNetOutcomeCallable HitsdbClient::switchHiTSDBInstancePublicNetCallable(const SwitchHiTSDBInstancePublicNetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->switchHiTSDBInstancePublicNet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +HitsdbClient::UpdateHiTSDBInstanceDataTtlOutcome HitsdbClient::updateHiTSDBInstanceDataTtl(const UpdateHiTSDBInstanceDataTtlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateHiTSDBInstanceDataTtlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateHiTSDBInstanceDataTtlOutcome(UpdateHiTSDBInstanceDataTtlResult(outcome.result())); + else + return UpdateHiTSDBInstanceDataTtlOutcome(outcome.error()); +} + +void HitsdbClient::updateHiTSDBInstanceDataTtlAsync(const UpdateHiTSDBInstanceDataTtlRequest& request, const UpdateHiTSDBInstanceDataTtlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateHiTSDBInstanceDataTtl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +HitsdbClient::UpdateHiTSDBInstanceDataTtlOutcomeCallable HitsdbClient::updateHiTSDBInstanceDataTtlCallable(const UpdateHiTSDBInstanceDataTtlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateHiTSDBInstanceDataTtl(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/hitsdb/src/model/CreateHiTSDBInstanceRequest.cc b/hitsdb/src/model/CreateHiTSDBInstanceRequest.cc new file mode 100644 index 000000000..021b18960 --- /dev/null +++ b/hitsdb/src/model/CreateHiTSDBInstanceRequest.cc @@ -0,0 +1,315 @@ +/* + * 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::Hitsdb::Model::CreateHiTSDBInstanceRequest; + +CreateHiTSDBInstanceRequest::CreateHiTSDBInstanceRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "CreateHiTSDBInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateHiTSDBInstanceRequest::~CreateHiTSDBInstanceRequest() +{} + +long CreateHiTSDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void CreateHiTSDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string CreateHiTSDBInstanceRequest::getConnectionString()const +{ + return connectionString_; +} + +void CreateHiTSDBInstanceRequest::setConnectionString(const std::string& connectionString) +{ + connectionString_ = connectionString; + setParameter("ConnectionString", connectionString); +} + +std::string CreateHiTSDBInstanceRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateHiTSDBInstanceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setParameter("ClientToken", clientToken); +} + +std::string CreateHiTSDBInstanceRequest::getInstanceClass()const +{ + return instanceClass_; +} + +void CreateHiTSDBInstanceRequest::setInstanceClass(const std::string& instanceClass) +{ + instanceClass_ = instanceClass; + setParameter("InstanceClass", instanceClass); +} + +std::string CreateHiTSDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void CreateHiTSDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string CreateHiTSDBInstanceRequest::getDuration()const +{ + return duration_; +} + +void CreateHiTSDBInstanceRequest::setDuration(const std::string& duration) +{ + duration_ = duration; + setParameter("Duration", duration); +} + +std::string CreateHiTSDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void CreateHiTSDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string CreateHiTSDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void CreateHiTSDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string CreateHiTSDBInstanceRequest::getMaxSeriesPerDatabase()const +{ + return maxSeriesPerDatabase_; +} + +void CreateHiTSDBInstanceRequest::setMaxSeriesPerDatabase(const std::string& maxSeriesPerDatabase) +{ + maxSeriesPerDatabase_ = maxSeriesPerDatabase; + setParameter("MaxSeriesPerDatabase", maxSeriesPerDatabase); +} + +std::string CreateHiTSDBInstanceRequest::getDiskCategory()const +{ + return diskCategory_; +} + +void CreateHiTSDBInstanceRequest::setDiskCategory(const std::string& diskCategory) +{ + diskCategory_ = diskCategory; + setParameter("DiskCategory", diskCategory); +} + +std::string CreateHiTSDBInstanceRequest::getMaxTimelineLimit()const +{ + return maxTimelineLimit_; +} + +void CreateHiTSDBInstanceRequest::setMaxTimelineLimit(const std::string& maxTimelineLimit) +{ + maxTimelineLimit_ = maxTimelineLimit; + setParameter("MaxTimelineLimit", maxTimelineLimit); +} + +std::string CreateHiTSDBInstanceRequest::getInstanceStorage()const +{ + return instanceStorage_; +} + +void CreateHiTSDBInstanceRequest::setInstanceStorage(const std::string& instanceStorage) +{ + instanceStorage_ = instanceStorage; + setParameter("InstanceStorage", instanceStorage); +} + +std::string CreateHiTSDBInstanceRequest::getEngineType()const +{ + return engineType_; +} + +void CreateHiTSDBInstanceRequest::setEngineType(const std::string& engineType) +{ + engineType_ = engineType; + setParameter("EngineType", engineType); +} + +std::string CreateHiTSDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void CreateHiTSDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string CreateHiTSDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void CreateHiTSDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string CreateHiTSDBInstanceRequest::getInstanceAlias()const +{ + return instanceAlias_; +} + +void CreateHiTSDBInstanceRequest::setInstanceAlias(const std::string& instanceAlias) +{ + instanceAlias_ = instanceAlias; + setParameter("InstanceAlias", instanceAlias); +} + +std::string CreateHiTSDBInstanceRequest::getMaxDatabaseLimit()const +{ + return maxDatabaseLimit_; +} + +void CreateHiTSDBInstanceRequest::setMaxDatabaseLimit(const std::string& maxDatabaseLimit) +{ + maxDatabaseLimit_ = maxDatabaseLimit; + setParameter("MaxDatabaseLimit", maxDatabaseLimit); +} + +long CreateHiTSDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void CreateHiTSDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string CreateHiTSDBInstanceRequest::getVSwitchId()const +{ + return vSwitchId_; +} + +void CreateHiTSDBInstanceRequest::setVSwitchId(const std::string& vSwitchId) +{ + vSwitchId_ = vSwitchId; + setParameter("VSwitchId", vSwitchId); +} + +std::string CreateHiTSDBInstanceRequest::getInstanceName()const +{ + return instanceName_; +} + +void CreateHiTSDBInstanceRequest::setInstanceName(const std::string& instanceName) +{ + instanceName_ = instanceName; + setParameter("InstanceName", instanceName); +} + +std::string CreateHiTSDBInstanceRequest::getInstanceTps()const +{ + return instanceTps_; +} + +void CreateHiTSDBInstanceRequest::setInstanceTps(const std::string& instanceTps) +{ + instanceTps_ = instanceTps; + setParameter("InstanceTps", instanceTps); +} + +std::string CreateHiTSDBInstanceRequest::getVPCId()const +{ + return vPCId_; +} + +void CreateHiTSDBInstanceRequest::setVPCId(const std::string& vPCId) +{ + vPCId_ = vPCId; + setParameter("VPCId", vPCId); +} + +std::string CreateHiTSDBInstanceRequest::getZoneId()const +{ + return zoneId_; +} + +void CreateHiTSDBInstanceRequest::setZoneId(const std::string& zoneId) +{ + zoneId_ = zoneId; + setParameter("ZoneId", zoneId); +} + +std::string CreateHiTSDBInstanceRequest::getTSDBVersion()const +{ + return tSDBVersion_; +} + +void CreateHiTSDBInstanceRequest::setTSDBVersion(const std::string& tSDBVersion) +{ + tSDBVersion_ = tSDBVersion; + setParameter("TSDBVersion", tSDBVersion); +} + +std::string CreateHiTSDBInstanceRequest::getPayType()const +{ + return payType_; +} + +void CreateHiTSDBInstanceRequest::setPayType(const std::string& payType) +{ + payType_ = payType; + setParameter("PayType", payType); +} + +std::string CreateHiTSDBInstanceRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void CreateHiTSDBInstanceRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/hitsdb/src/model/GetInstanceIpWhiteListResult.cc b/hitsdb/src/model/CreateHiTSDBInstanceResult.cc similarity index 62% rename from hitsdb/src/model/GetInstanceIpWhiteListResult.cc rename to hitsdb/src/model/CreateHiTSDBInstanceResult.cc index 963146ef9..158037562 100644 --- a/hitsdb/src/model/GetInstanceIpWhiteListResult.cc +++ b/hitsdb/src/model/CreateHiTSDBInstanceResult.cc @@ -14,46 +14,45 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Hitsdb; using namespace AlibabaCloud::Hitsdb::Model; -GetInstanceIpWhiteListResult::GetInstanceIpWhiteListResult() : +CreateHiTSDBInstanceResult::CreateHiTSDBInstanceResult() : ServiceResult() {} -GetInstanceIpWhiteListResult::GetInstanceIpWhiteListResult(const std::string &payload) : +CreateHiTSDBInstanceResult::CreateHiTSDBInstanceResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetInstanceIpWhiteListResult::~GetInstanceIpWhiteListResult() +CreateHiTSDBInstanceResult::~CreateHiTSDBInstanceResult() {} -void GetInstanceIpWhiteListResult::parse(const std::string &payload) +void CreateHiTSDBInstanceResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allIpList = value["IpList"]["IpList"]; - for (const auto &item : allIpList) - ipList_.push_back(item.asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); } -std::vector GetInstanceIpWhiteListResult::getIpList()const -{ - return ipList_; -} - -std::string GetInstanceIpWhiteListResult::getInstanceId()const +std::string CreateHiTSDBInstanceResult::getInstanceId()const { return instanceId_; } +long CreateHiTSDBInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/hitsdb/src/model/DeleteHiTSDBInstanceDataRequest.cc b/hitsdb/src/model/DeleteHiTSDBInstanceDataRequest.cc new file mode 100644 index 000000000..2f77d3a9a --- /dev/null +++ b/hitsdb/src/model/DeleteHiTSDBInstanceDataRequest.cc @@ -0,0 +1,194 @@ +/* + * 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::Hitsdb::Model::DeleteHiTSDBInstanceDataRequest; + +DeleteHiTSDBInstanceDataRequest::DeleteHiTSDBInstanceDataRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DeleteHiTSDBInstanceData") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteHiTSDBInstanceDataRequest::~DeleteHiTSDBInstanceDataRequest() +{} + +std::string DeleteHiTSDBInstanceDataRequest::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +void DeleteHiTSDBInstanceDataRequest::setReverseVpcIp(const std::string& reverseVpcIp) +{ + reverseVpcIp_ = reverseVpcIp; + setParameter("ReverseVpcIp", reverseVpcIp); +} + +long DeleteHiTSDBInstanceDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteHiTSDBInstanceDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DeleteHiTSDBInstanceDataRequest::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +void DeleteHiTSDBInstanceDataRequest::setReverseVpcPort(int reverseVpcPort) +{ + reverseVpcPort_ = reverseVpcPort; + setParameter("ReverseVpcPort", std::to_string(reverseVpcPort)); +} + +std::string DeleteHiTSDBInstanceDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteHiTSDBInstanceDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteHiTSDBInstanceDataRequest::getPassWord()const +{ + return passWord_; +} + +void DeleteHiTSDBInstanceDataRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string DeleteHiTSDBInstanceDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteHiTSDBInstanceDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +long DeleteHiTSDBInstanceDataRequest::getEnd()const +{ + return end_; +} + +void DeleteHiTSDBInstanceDataRequest::setEnd(long end) +{ + end_ = end; + setParameter("End", std::to_string(end)); +} + +std::string DeleteHiTSDBInstanceDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteHiTSDBInstanceDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteHiTSDBInstanceDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteHiTSDBInstanceDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteHiTSDBInstanceDataRequest::getStart()const +{ + return start_; +} + +void DeleteHiTSDBInstanceDataRequest::setStart(long start) +{ + start_ = start; + setParameter("Start", std::to_string(start)); +} + +long DeleteHiTSDBInstanceDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteHiTSDBInstanceDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteHiTSDBInstanceDataRequest::getTags()const +{ + return tags_; +} + +void DeleteHiTSDBInstanceDataRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DeleteHiTSDBInstanceDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteHiTSDBInstanceDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteHiTSDBInstanceDataRequest::getMetric()const +{ + return metric_; +} + +void DeleteHiTSDBInstanceDataRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +std::string DeleteHiTSDBInstanceDataRequest::getUserName()const +{ + return userName_; +} + +void DeleteHiTSDBInstanceDataRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/DeleteHiTSDBInstanceDataResult.cc b/hitsdb/src/model/DeleteHiTSDBInstanceDataResult.cc new file mode 100644 index 000000000..6b65116fb --- /dev/null +++ b/hitsdb/src/model/DeleteHiTSDBInstanceDataResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DeleteHiTSDBInstanceDataResult::DeleteHiTSDBInstanceDataResult() : + ServiceResult() +{} + +DeleteHiTSDBInstanceDataResult::DeleteHiTSDBInstanceDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHiTSDBInstanceDataResult::~DeleteHiTSDBInstanceDataResult() +{} + +void DeleteHiTSDBInstanceDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = std::stol(value["TaskId"].asString()); + +} + +long DeleteHiTSDBInstanceDataResult::getTaskId()const +{ + return taskId_; +} + diff --git a/hitsdb/src/model/DeleteHiTSDBInstanceMetaRequest.cc b/hitsdb/src/model/DeleteHiTSDBInstanceMetaRequest.cc new file mode 100644 index 000000000..651d7ce57 --- /dev/null +++ b/hitsdb/src/model/DeleteHiTSDBInstanceMetaRequest.cc @@ -0,0 +1,172 @@ +/* + * 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::Hitsdb::Model::DeleteHiTSDBInstanceMetaRequest; + +DeleteHiTSDBInstanceMetaRequest::DeleteHiTSDBInstanceMetaRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DeleteHiTSDBInstanceMeta") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteHiTSDBInstanceMetaRequest::~DeleteHiTSDBInstanceMetaRequest() +{} + +std::string DeleteHiTSDBInstanceMetaRequest::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +void DeleteHiTSDBInstanceMetaRequest::setReverseVpcIp(const std::string& reverseVpcIp) +{ + reverseVpcIp_ = reverseVpcIp; + setParameter("ReverseVpcIp", reverseVpcIp); +} + +long DeleteHiTSDBInstanceMetaRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteHiTSDBInstanceMetaRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DeleteHiTSDBInstanceMetaRequest::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +void DeleteHiTSDBInstanceMetaRequest::setReverseVpcPort(int reverseVpcPort) +{ + reverseVpcPort_ = reverseVpcPort; + setParameter("ReverseVpcPort", std::to_string(reverseVpcPort)); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteHiTSDBInstanceMetaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getPassWord()const +{ + return passWord_; +} + +void DeleteHiTSDBInstanceMetaRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteHiTSDBInstanceMetaRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteHiTSDBInstanceMetaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteHiTSDBInstanceMetaRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteHiTSDBInstanceMetaRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteHiTSDBInstanceMetaRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getTags()const +{ + return tags_; +} + +void DeleteHiTSDBInstanceMetaRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setParameter("Tags", tags); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteHiTSDBInstanceMetaRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getMetric()const +{ + return metric_; +} + +void DeleteHiTSDBInstanceMetaRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +std::string DeleteHiTSDBInstanceMetaRequest::getUserName()const +{ + return userName_; +} + +void DeleteHiTSDBInstanceMetaRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/DeleteHiTSDBInstanceMetaResult.cc b/hitsdb/src/model/DeleteHiTSDBInstanceMetaResult.cc new file mode 100644 index 000000000..15e753b1a --- /dev/null +++ b/hitsdb/src/model/DeleteHiTSDBInstanceMetaResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DeleteHiTSDBInstanceMetaResult::DeleteHiTSDBInstanceMetaResult() : + ServiceResult() +{} + +DeleteHiTSDBInstanceMetaResult::DeleteHiTSDBInstanceMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHiTSDBInstanceMetaResult::~DeleteHiTSDBInstanceMetaResult() +{} + +void DeleteHiTSDBInstanceMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = std::stol(value["TaskId"].asString()); + +} + +long DeleteHiTSDBInstanceMetaResult::getTaskId()const +{ + return taskId_; +} + diff --git a/hitsdb/src/model/DeleteHiTSDBInstanceRequest.cc b/hitsdb/src/model/DeleteHiTSDBInstanceRequest.cc new file mode 100644 index 000000000..12326829d --- /dev/null +++ b/hitsdb/src/model/DeleteHiTSDBInstanceRequest.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::Hitsdb::Model::DeleteHiTSDBInstanceRequest; + +DeleteHiTSDBInstanceRequest::DeleteHiTSDBInstanceRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DeleteHiTSDBInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteHiTSDBInstanceRequest::~DeleteHiTSDBInstanceRequest() +{} + +long DeleteHiTSDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DeleteHiTSDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DeleteHiTSDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DeleteHiTSDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DeleteHiTSDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DeleteHiTSDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DeleteHiTSDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DeleteHiTSDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DeleteHiTSDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DeleteHiTSDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DeleteHiTSDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void DeleteHiTSDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DeleteHiTSDBInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteHiTSDBInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/hitsdb/src/model/DeleteHiTSDBInstanceResult.cc b/hitsdb/src/model/DeleteHiTSDBInstanceResult.cc new file mode 100644 index 000000000..2e80bc876 --- /dev/null +++ b/hitsdb/src/model/DeleteHiTSDBInstanceResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DeleteHiTSDBInstanceResult::DeleteHiTSDBInstanceResult() : + ServiceResult() +{} + +DeleteHiTSDBInstanceResult::DeleteHiTSDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHiTSDBInstanceResult::~DeleteHiTSDBInstanceResult() +{} + +void DeleteHiTSDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/hitsdb/src/model/DescribeHiTSDBInstanceDataTtlRequest.cc b/hitsdb/src/model/DescribeHiTSDBInstanceDataTtlRequest.cc new file mode 100644 index 000000000..61e5ab64c --- /dev/null +++ b/hitsdb/src/model/DescribeHiTSDBInstanceDataTtlRequest.cc @@ -0,0 +1,150 @@ +/* + * 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::Hitsdb::Model::DescribeHiTSDBInstanceDataTtlRequest; + +DescribeHiTSDBInstanceDataTtlRequest::DescribeHiTSDBInstanceDataTtlRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DescribeHiTSDBInstanceDataTtl") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeHiTSDBInstanceDataTtlRequest::~DescribeHiTSDBInstanceDataTtlRequest() +{} + +std::string DescribeHiTSDBInstanceDataTtlRequest::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setReverseVpcIp(const std::string& reverseVpcIp) +{ + reverseVpcIp_ = reverseVpcIp; + setParameter("ReverseVpcIp", reverseVpcIp); +} + +long DescribeHiTSDBInstanceDataTtlRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int DescribeHiTSDBInstanceDataTtlRequest::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setReverseVpcPort(int reverseVpcPort) +{ + reverseVpcPort_ = reverseVpcPort; + setParameter("ReverseVpcPort", std::to_string(reverseVpcPort)); +} + +std::string DescribeHiTSDBInstanceDataTtlRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeHiTSDBInstanceDataTtlRequest::getPassWord()const +{ + return passWord_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string DescribeHiTSDBInstanceDataTtlRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeHiTSDBInstanceDataTtlRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeHiTSDBInstanceDataTtlRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeHiTSDBInstanceDataTtlRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeHiTSDBInstanceDataTtlRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeHiTSDBInstanceDataTtlRequest::getUserName()const +{ + return userName_; +} + +void DescribeHiTSDBInstanceDataTtlRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/DescribeHiTSDBInstanceDataTtlResult.cc b/hitsdb/src/model/DescribeHiTSDBInstanceDataTtlResult.cc new file mode 100644 index 000000000..c795a64e8 --- /dev/null +++ b/hitsdb/src/model/DescribeHiTSDBInstanceDataTtlResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DescribeHiTSDBInstanceDataTtlResult::DescribeHiTSDBInstanceDataTtlResult() : + ServiceResult() +{} + +DescribeHiTSDBInstanceDataTtlResult::DescribeHiTSDBInstanceDataTtlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHiTSDBInstanceDataTtlResult::~DescribeHiTSDBInstanceDataTtlResult() +{} + +void DescribeHiTSDBInstanceDataTtlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Ttl"].isNull()) + ttl_ = std::stol(value["Ttl"].asString()); + +} + +long DescribeHiTSDBInstanceDataTtlResult::getTtl()const +{ + return ttl_; +} + diff --git a/hitsdb/src/model/DescribeHiTSDBInstanceListRequest.cc b/hitsdb/src/model/DescribeHiTSDBInstanceListRequest.cc new file mode 100644 index 000000000..8af031ad7 --- /dev/null +++ b/hitsdb/src/model/DescribeHiTSDBInstanceListRequest.cc @@ -0,0 +1,150 @@ +/* + * 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::Hitsdb::Model::DescribeHiTSDBInstanceListRequest; + +DescribeHiTSDBInstanceListRequest::DescribeHiTSDBInstanceListRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DescribeHiTSDBInstanceList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeHiTSDBInstanceListRequest::~DescribeHiTSDBInstanceListRequest() +{} + +long DescribeHiTSDBInstanceListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeHiTSDBInstanceListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeHiTSDBInstanceListRequest::getStatusList()const +{ + return statusList_; +} + +void DescribeHiTSDBInstanceListRequest::setStatusList(const std::string& statusList) +{ + statusList_ = statusList; + setParameter("StatusList", statusList); +} + +int DescribeHiTSDBInstanceListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeHiTSDBInstanceListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeHiTSDBInstanceListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeHiTSDBInstanceListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeHiTSDBInstanceListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeHiTSDBInstanceListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int DescribeHiTSDBInstanceListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeHiTSDBInstanceListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeHiTSDBInstanceListRequest::getQueryStr()const +{ + return queryStr_; +} + +void DescribeHiTSDBInstanceListRequest::setQueryStr(const std::string& queryStr) +{ + queryStr_ = queryStr; + setParameter("QueryStr", queryStr); +} + +std::string DescribeHiTSDBInstanceListRequest::getEngineType()const +{ + return engineType_; +} + +void DescribeHiTSDBInstanceListRequest::setEngineType(const std::string& engineType) +{ + engineType_ = engineType; + setParameter("EngineType", engineType); +} + +std::string DescribeHiTSDBInstanceListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeHiTSDBInstanceListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeHiTSDBInstanceListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeHiTSDBInstanceListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeHiTSDBInstanceListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeHiTSDBInstanceListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/hitsdb/src/model/DescribeHiTSDBInstanceListResult.cc b/hitsdb/src/model/DescribeHiTSDBInstanceListResult.cc new file mode 100644 index 000000000..603a4f689 --- /dev/null +++ b/hitsdb/src/model/DescribeHiTSDBInstanceListResult.cc @@ -0,0 +1,118 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DescribeHiTSDBInstanceListResult::DescribeHiTSDBInstanceListResult() : + ServiceResult() +{} + +DescribeHiTSDBInstanceListResult::DescribeHiTSDBInstanceListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHiTSDBInstanceListResult::~DescribeHiTSDBInstanceListResult() +{} + +void DescribeHiTSDBInstanceListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceListNode = value["InstanceList"]["Instance"]; + for (auto valueInstanceListInstance : allInstanceListNode) + { + Instance instanceListObject; + if(!valueInstanceListInstance["InstanceId"].isNull()) + instanceListObject.instanceId = valueInstanceListInstance["InstanceId"].asString(); + if(!valueInstanceListInstance["InstanceAlias"].isNull()) + instanceListObject.instanceAlias = valueInstanceListInstance["InstanceAlias"].asString(); + if(!valueInstanceListInstance["InstanceDescription"].isNull()) + instanceListObject.instanceDescription = valueInstanceListInstance["InstanceDescription"].asString(); + if(!valueInstanceListInstance["UserId"].isNull()) + instanceListObject.userId = valueInstanceListInstance["UserId"].asString(); + if(!valueInstanceListInstance["RegionId"].isNull()) + instanceListObject.regionId = valueInstanceListInstance["RegionId"].asString(); + if(!valueInstanceListInstance["ZoneId"].isNull()) + instanceListObject.zoneId = valueInstanceListInstance["ZoneId"].asString(); + if(!valueInstanceListInstance["InstanceStatus"].isNull()) + instanceListObject.instanceStatus = valueInstanceListInstance["InstanceStatus"].asString(); + if(!valueInstanceListInstance["ChargeType"].isNull()) + instanceListObject.chargeType = valueInstanceListInstance["ChargeType"].asString(); + if(!valueInstanceListInstance["NetworkType"].isNull()) + instanceListObject.networkType = valueInstanceListInstance["NetworkType"].asString(); + if(!valueInstanceListInstance["GmtCreated"].isNull()) + instanceListObject.gmtCreated = valueInstanceListInstance["GmtCreated"].asString(); + if(!valueInstanceListInstance["GmtExpire"].isNull()) + instanceListObject.gmtExpire = valueInstanceListInstance["GmtExpire"].asString(); + if(!valueInstanceListInstance["InstanceClass"].isNull()) + instanceListObject.instanceClass = valueInstanceListInstance["InstanceClass"].asString(); + if(!valueInstanceListInstance["InstanceStorage"].isNull()) + instanceListObject.instanceStorage = valueInstanceListInstance["InstanceStorage"].asString(); + if(!valueInstanceListInstance["InstanceTps"].isNull()) + instanceListObject.instanceTps = valueInstanceListInstance["InstanceTps"].asString(); + if(!valueInstanceListInstance["LockMode"].isNull()) + instanceListObject.lockMode = valueInstanceListInstance["LockMode"].asString(); + if(!valueInstanceListInstance["InstanceIdInVpc"].isNull()) + instanceListObject.instanceIdInVpc = valueInstanceListInstance["InstanceIdInVpc"].asString(); + if(!valueInstanceListInstance["EngineType"].isNull()) + instanceListObject.engineType = valueInstanceListInstance["EngineType"].asString(); + if(!valueInstanceListInstance["MaxDatabaseLimit"].isNull()) + instanceListObject.maxDatabaseLimit = valueInstanceListInstance["MaxDatabaseLimit"].asString(); + if(!valueInstanceListInstance["MaxSeriesPerDatabase"].isNull()) + instanceListObject.maxSeriesPerDatabase = valueInstanceListInstance["MaxSeriesPerDatabase"].asString(); + if(!valueInstanceListInstance["VpcId"].isNull()) + instanceListObject.vpcId = valueInstanceListInstance["VpcId"].asString(); + if(!valueInstanceListInstance["VswitchId"].isNull()) + instanceListObject.vswitchId = valueInstanceListInstance["VswitchId"].asString(); + instanceList_.push_back(instanceListObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +int DescribeHiTSDBInstanceListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeHiTSDBInstanceListResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeHiTSDBInstanceListResult::getTotal()const +{ + return total_; +} + +std::vector DescribeHiTSDBInstanceListResult::getInstanceList()const +{ + return instanceList_; +} + diff --git a/hitsdb/src/model/GetInstanceIpWhiteListRequest.cc b/hitsdb/src/model/DescribeHiTSDBInstanceRequest.cc similarity index 51% rename from hitsdb/src/model/GetInstanceIpWhiteListRequest.cc rename to hitsdb/src/model/DescribeHiTSDBInstanceRequest.cc index 8ae2b6c80..37c1b6115 100644 --- a/hitsdb/src/model/GetInstanceIpWhiteListRequest.cc +++ b/hitsdb/src/model/DescribeHiTSDBInstanceRequest.cc @@ -14,102 +14,91 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Hitsdb::Model::GetInstanceIpWhiteListRequest; +using AlibabaCloud::Hitsdb::Model::DescribeHiTSDBInstanceRequest; -GetInstanceIpWhiteListRequest::GetInstanceIpWhiteListRequest() : - RpcServiceRequest("hitsdb", "2020-06-15", "GetInstanceIpWhiteList") +DescribeHiTSDBInstanceRequest::DescribeHiTSDBInstanceRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DescribeHiTSDBInstance") { setMethod(HttpRequest::Method::Post); } -GetInstanceIpWhiteListRequest::~GetInstanceIpWhiteListRequest() +DescribeHiTSDBInstanceRequest::~DescribeHiTSDBInstanceRequest() {} -long GetInstanceIpWhiteListRequest::getResourceOwnerId()const +long DescribeHiTSDBInstanceRequest::getResourceOwnerId()const { return resourceOwnerId_; } -void GetInstanceIpWhiteListRequest::setResourceOwnerId(long resourceOwnerId) +void DescribeHiTSDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) { resourceOwnerId_ = resourceOwnerId; setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); } -std::string GetInstanceIpWhiteListRequest::getAccessKeyId()const +std::string DescribeHiTSDBInstanceRequest::getAccessKeyId()const { return accessKeyId_; } -void GetInstanceIpWhiteListRequest::setAccessKeyId(const std::string& accessKeyId) +void DescribeHiTSDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) { accessKeyId_ = accessKeyId; setParameter("AccessKeyId", accessKeyId); } -std::string GetInstanceIpWhiteListRequest::getSecurityToken()const +std::string DescribeHiTSDBInstanceRequest::getSecurityToken()const { return securityToken_; } -void GetInstanceIpWhiteListRequest::setSecurityToken(const std::string& securityToken) +void DescribeHiTSDBInstanceRequest::setSecurityToken(const std::string& securityToken) { securityToken_ = securityToken; setParameter("SecurityToken", securityToken); } -std::string GetInstanceIpWhiteListRequest::getResourceOwnerAccount()const +std::string DescribeHiTSDBInstanceRequest::getResourceOwnerAccount()const { return resourceOwnerAccount_; } -void GetInstanceIpWhiteListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +void DescribeHiTSDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) { resourceOwnerAccount_ = resourceOwnerAccount; setParameter("ResourceOwnerAccount", resourceOwnerAccount); } -std::string GetInstanceIpWhiteListRequest::getOwnerAccount()const +std::string DescribeHiTSDBInstanceRequest::getOwnerAccount()const { return ownerAccount_; } -void GetInstanceIpWhiteListRequest::setOwnerAccount(const std::string& ownerAccount) +void DescribeHiTSDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) { ownerAccount_ = ownerAccount; setParameter("OwnerAccount", ownerAccount); } -long GetInstanceIpWhiteListRequest::getOwnerId()const +long DescribeHiTSDBInstanceRequest::getOwnerId()const { return ownerId_; } -void GetInstanceIpWhiteListRequest::setOwnerId(long ownerId) +void DescribeHiTSDBInstanceRequest::setOwnerId(long ownerId) { ownerId_ = ownerId; setParameter("OwnerId", std::to_string(ownerId)); } -std::string GetInstanceIpWhiteListRequest::getGroupName()const -{ - return groupName_; -} - -void GetInstanceIpWhiteListRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); -} - -std::string GetInstanceIpWhiteListRequest::getInstanceId()const +std::string DescribeHiTSDBInstanceRequest::getInstanceId()const { return instanceId_; } -void GetInstanceIpWhiteListRequest::setInstanceId(const std::string& instanceId) +void DescribeHiTSDBInstanceRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); diff --git a/hitsdb/src/model/DescribeHiTSDBInstanceResult.cc b/hitsdb/src/model/DescribeHiTSDBInstanceResult.cc new file mode 100644 index 000000000..10ca5ab42 --- /dev/null +++ b/hitsdb/src/model/DescribeHiTSDBInstanceResult.cc @@ -0,0 +1,246 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DescribeHiTSDBInstanceResult::DescribeHiTSDBInstanceResult() : + ServiceResult() +{} + +DescribeHiTSDBInstanceResult::DescribeHiTSDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHiTSDBInstanceResult::~DescribeHiTSDBInstanceResult() +{} + +void DescribeHiTSDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityIpListNode = value["SecurityIpList"]["SecurityIp"]; + for (auto valueSecurityIpListSecurityIp : allSecurityIpListNode) + { + SecurityIp securityIpListObject; + if(!valueSecurityIpListSecurityIp["Ip"].isNull()) + securityIpListObject.ip = valueSecurityIpListSecurityIp["Ip"].asString(); + securityIpList_.push_back(securityIpListObject); + } + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["InstanceAlias"].isNull()) + instanceAlias_ = value["InstanceAlias"].asString(); + if(!value["InstanceDescription"].isNull()) + instanceDescription_ = value["InstanceDescription"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["ZoneId"].isNull()) + zoneId_ = value["ZoneId"].asString(); + if(!value["InstanceStatus"].isNull()) + instanceStatus_ = value["InstanceStatus"].asString(); + if(!value["ChargeType"].isNull()) + chargeType_ = value["ChargeType"].asString(); + if(!value["NetworkType"].isNull()) + networkType_ = value["NetworkType"].asString(); + if(!value["GmtCreated"].isNull()) + gmtCreated_ = value["GmtCreated"].asString(); + if(!value["GmtExpire"].isNull()) + gmtExpire_ = value["GmtExpire"].asString(); + if(!value["InstanceClass"].isNull()) + instanceClass_ = value["InstanceClass"].asString(); + if(!value["MaxTimelineLimit"].isNull()) + maxTimelineLimit_ = value["MaxTimelineLimit"].asString(); + if(!value["InstanceStorage"].isNull()) + instanceStorage_ = value["InstanceStorage"].asString(); + if(!value["InstanceTps"].isNull()) + instanceTps_ = value["InstanceTps"].asString(); + if(!value["ReverseVpcIp"].isNull()) + reverseVpcIp_ = value["ReverseVpcIp"].asString(); + if(!value["ReverseVpcPort"].isNull()) + reverseVpcPort_ = value["ReverseVpcPort"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["VswitchId"].isNull()) + vswitchId_ = value["VswitchId"].asString(); + if(!value["ConnectionString"].isNull()) + connectionString_ = value["ConnectionString"].asString(); + if(!value["PublicConnectionString"].isNull()) + publicConnectionString_ = value["PublicConnectionString"].asString(); + if(!value["AutoRenew"].isNull()) + autoRenew_ = value["AutoRenew"].asString() == "true"; + if(!value["EngineType"].isNull()) + engineType_ = value["EngineType"].asString(); + if(!value["CpuNumber"].isNull()) + cpuNumber_ = value["CpuNumber"].asString(); + if(!value["MemSize"].isNull()) + memSize_ = value["MemSize"].asString(); + if(!value["Series"].isNull()) + series_ = std::stoi(value["Series"].asString()); + if(!value["RDSStatus"].isNull()) + rDSStatus_ = value["RDSStatus"].asString(); + if(!value["DiskCategory"].isNull()) + diskCategory_ = value["DiskCategory"].asString(); + +} + +bool DescribeHiTSDBInstanceResult::getAutoRenew()const +{ + return autoRenew_; +} + +std::string DescribeHiTSDBInstanceResult::getGmtCreated()const +{ + return gmtCreated_; +} + +std::string DescribeHiTSDBInstanceResult::getCpuNumber()const +{ + return cpuNumber_; +} + +std::string DescribeHiTSDBInstanceResult::getInstanceAlias()const +{ + return instanceAlias_; +} + +std::string DescribeHiTSDBInstanceResult::getInstanceStatus()const +{ + return instanceStatus_; +} + +std::string DescribeHiTSDBInstanceResult::getNetworkType()const +{ + return networkType_; +} + +std::string DescribeHiTSDBInstanceResult::getGmtExpire()const +{ + return gmtExpire_; +} + +std::string DescribeHiTSDBInstanceResult::getMemSize()const +{ + return memSize_; +} + +std::string DescribeHiTSDBInstanceResult::getMaxTimelineLimit()const +{ + return maxTimelineLimit_; +} + +std::string DescribeHiTSDBInstanceResult::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +std::string DescribeHiTSDBInstanceResult::getPublicConnectionString()const +{ + return publicConnectionString_; +} + +std::string DescribeHiTSDBInstanceResult::getEngineType()const +{ + return engineType_; +} + +std::string DescribeHiTSDBInstanceResult::getInstanceTps()const +{ + return instanceTps_; +} + +std::string DescribeHiTSDBInstanceResult::getRDSStatus()const +{ + return rDSStatus_; +} + +std::string DescribeHiTSDBInstanceResult::getInstanceStorage()const +{ + return instanceStorage_; +} + +std::string DescribeHiTSDBInstanceResult::getZoneId()const +{ + return zoneId_; +} + +std::string DescribeHiTSDBInstanceResult::getInstanceId()const +{ + return instanceId_; +} + +std::string DescribeHiTSDBInstanceResult::getDiskCategory()const +{ + return diskCategory_; +} + +std::string DescribeHiTSDBInstanceResult::getInstanceClass()const +{ + return instanceClass_; +} + +std::string DescribeHiTSDBInstanceResult::getVswitchId()const +{ + return vswitchId_; +} + +int DescribeHiTSDBInstanceResult::getSeries()const +{ + return series_; +} + +std::string DescribeHiTSDBInstanceResult::getVpcId()const +{ + return vpcId_; +} + +std::vector DescribeHiTSDBInstanceResult::getSecurityIpList()const +{ + return securityIpList_; +} + +std::string DescribeHiTSDBInstanceResult::getChargeType()const +{ + return chargeType_; +} + +std::string DescribeHiTSDBInstanceResult::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +std::string DescribeHiTSDBInstanceResult::getInstanceDescription()const +{ + return instanceDescription_; +} + +std::string DescribeHiTSDBInstanceResult::getRegionId()const +{ + return regionId_; +} + +std::string DescribeHiTSDBInstanceResult::getConnectionString()const +{ + return connectionString_; +} + diff --git a/hitsdb/src/model/DescribeHiTSDBInstanceSecurityIpListRequest.cc b/hitsdb/src/model/DescribeHiTSDBInstanceSecurityIpListRequest.cc new file mode 100644 index 000000000..1ef6bf835 --- /dev/null +++ b/hitsdb/src/model/DescribeHiTSDBInstanceSecurityIpListRequest.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::Hitsdb::Model::DescribeHiTSDBInstanceSecurityIpListRequest; + +DescribeHiTSDBInstanceSecurityIpListRequest::DescribeHiTSDBInstanceSecurityIpListRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DescribeHiTSDBInstanceSecurityIpList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeHiTSDBInstanceSecurityIpListRequest::~DescribeHiTSDBInstanceSecurityIpListRequest() +{} + +long DescribeHiTSDBInstanceSecurityIpListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeHiTSDBInstanceSecurityIpListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeHiTSDBInstanceSecurityIpListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeHiTSDBInstanceSecurityIpListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeHiTSDBInstanceSecurityIpListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeHiTSDBInstanceSecurityIpListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeHiTSDBInstanceSecurityIpListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeHiTSDBInstanceSecurityIpListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeHiTSDBInstanceSecurityIpListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeHiTSDBInstanceSecurityIpListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeHiTSDBInstanceSecurityIpListRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeHiTSDBInstanceSecurityIpListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeHiTSDBInstanceSecurityIpListRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeHiTSDBInstanceSecurityIpListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/hitsdb/src/model/DescribeHiTSDBInstanceSecurityIpListResult.cc b/hitsdb/src/model/DescribeHiTSDBInstanceSecurityIpListResult.cc new file mode 100644 index 000000000..613f5f97e --- /dev/null +++ b/hitsdb/src/model/DescribeHiTSDBInstanceSecurityIpListResult.cc @@ -0,0 +1,57 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DescribeHiTSDBInstanceSecurityIpListResult::DescribeHiTSDBInstanceSecurityIpListResult() : + ServiceResult() +{} + +DescribeHiTSDBInstanceSecurityIpListResult::DescribeHiTSDBInstanceSecurityIpListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHiTSDBInstanceSecurityIpListResult::~DescribeHiTSDBInstanceSecurityIpListResult() +{} + +void DescribeHiTSDBInstanceSecurityIpListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityIpListNode = value["SecurityIpList"]["SecurityIp"]; + for (auto valueSecurityIpListSecurityIp : allSecurityIpListNode) + { + SecurityIp securityIpListObject; + if(!valueSecurityIpListSecurityIp["Ip"].isNull()) + securityIpListObject.ip = valueSecurityIpListSecurityIp["Ip"].asString(); + securityIpList_.push_back(securityIpListObject); + } + +} + +std::vector DescribeHiTSDBInstanceSecurityIpListResult::getSecurityIpList()const +{ + return securityIpList_; +} + diff --git a/hitsdb/src/model/DescribeRegionsRequest.cc b/hitsdb/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..867771ed0 --- /dev/null +++ b/hitsdb/src/model/DescribeRegionsRequest.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::Hitsdb::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DescribeRegions") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +long DescribeRegionsRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeRegionsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeRegionsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeRegionsRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeRegionsRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeRegionsRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeRegionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeRegionsRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeRegionsRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeRegionsRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeRegionsRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string DescribeRegionsRequest::getAcceptLanguage()const +{ + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) +{ + acceptLanguage_ = acceptLanguage; + setParameter("AcceptLanguage", acceptLanguage); +} + diff --git a/hitsdb/src/model/DescribeRegionsResult.cc b/hitsdb/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..1f56382b0 --- /dev/null +++ b/hitsdb/src/model/DescribeRegionsResult.cc @@ -0,0 +1,61 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRegionsNode = value["Regions"]["Region"]; + for (auto valueRegionsRegion : allRegionsNode) + { + Region regionsObject; + if(!valueRegionsRegion["RegionId"].isNull()) + regionsObject.regionId = valueRegionsRegion["RegionId"].asString(); + if(!valueRegionsRegion["LocalName"].isNull()) + regionsObject.localName = valueRegionsRegion["LocalName"].asString(); + if(!valueRegionsRegion["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/hitsdb/src/model/DescribeZonesRequest.cc b/hitsdb/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..48dceb066 --- /dev/null +++ b/hitsdb/src/model/DescribeZonesRequest.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::Hitsdb::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "DescribeZones") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeZonesRequest::~DescribeZonesRequest() +{} + +long DescribeZonesRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string DescribeZonesRequest::getLanguage()const +{ + return language_; +} + +void DescribeZonesRequest::setLanguage(const std::string& language) +{ + language_ = language; + setParameter("Language", language); +} + +std::string DescribeZonesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void DescribeZonesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string DescribeZonesRequest::getSecurityToken()const +{ + return securityToken_; +} + +void DescribeZonesRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string DescribeZonesRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void DescribeZonesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string DescribeZonesRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void DescribeZonesRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long DescribeZonesRequest::getOwnerId()const +{ + return ownerId_; +} + +void DescribeZonesRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + diff --git a/hitsdb/src/model/DescribeZonesResult.cc b/hitsdb/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..8ae43f2e9 --- /dev/null +++ b/hitsdb/src/model/DescribeZonesResult.cc @@ -0,0 +1,59 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +DescribeZonesResult::DescribeZonesResult() : + ServiceResult() +{} + +DescribeZonesResult::DescribeZonesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeZonesResult::~DescribeZonesResult() +{} + +void DescribeZonesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allZoneListNode = value["ZoneList"]["ZoneModel"]; + for (auto valueZoneListZoneModel : allZoneListNode) + { + ZoneModel zoneListObject; + if(!valueZoneListZoneModel["ZoneId"].isNull()) + zoneListObject.zoneId = valueZoneListZoneModel["ZoneId"].asString(); + if(!valueZoneListZoneModel["LocalName"].isNull()) + zoneListObject.localName = valueZoneListZoneModel["LocalName"].asString(); + zoneList_.push_back(zoneListObject); + } + +} + +std::vector DescribeZonesResult::getZoneList()const +{ + return zoneList_; +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDataMetricListRequest.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDataMetricListRequest.cc new file mode 100644 index 000000000..f7d7b7f0e --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDataMetricListRequest.cc @@ -0,0 +1,172 @@ +/* + * 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::Hitsdb::Model::ExploreHiTSDBInstanceDataMetricListRequest; + +ExploreHiTSDBInstanceDataMetricListRequest::ExploreHiTSDBInstanceDataMetricListRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "ExploreHiTSDBInstanceDataMetricList") +{ + setMethod(HttpRequest::Method::Post); +} + +ExploreHiTSDBInstanceDataMetricListRequest::~ExploreHiTSDBInstanceDataMetricListRequest() +{} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setReverseVpcIp(const std::string& reverseVpcIp) +{ + reverseVpcIp_ = reverseVpcIp; + setParameter("ReverseVpcIp", reverseVpcIp); +} + +long ExploreHiTSDBInstanceDataMetricListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getPrefix()const +{ + return prefix_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setPrefix(const std::string& prefix) +{ + prefix_ = prefix; + setParameter("Prefix", prefix); +} + +int ExploreHiTSDBInstanceDataMetricListRequest::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setReverseVpcPort(int reverseVpcPort) +{ + reverseVpcPort_ = reverseVpcPort; + setParameter("ReverseVpcPort", std::to_string(reverseVpcPort)); +} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getPassWord()const +{ + return passWord_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long ExploreHiTSDBInstanceDataMetricListRequest::getMax()const +{ + return max_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setMax(long max) +{ + max_ = max; + setParameter("Max", std::to_string(max)); +} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ExploreHiTSDBInstanceDataMetricListRequest::getOwnerId()const +{ + return ownerId_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getInstanceId()const +{ + return instanceId_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ExploreHiTSDBInstanceDataMetricListRequest::getUserName()const +{ + return userName_; +} + +void ExploreHiTSDBInstanceDataMetricListRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDataMetricListResult.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDataMetricListResult.cc new file mode 100644 index 000000000..bf3c78f54 --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDataMetricListResult.cc @@ -0,0 +1,64 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +ExploreHiTSDBInstanceDataMetricListResult::ExploreHiTSDBInstanceDataMetricListResult() : + ServiceResult() +{} + +ExploreHiTSDBInstanceDataMetricListResult::ExploreHiTSDBInstanceDataMetricListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExploreHiTSDBInstanceDataMetricListResult::~ExploreHiTSDBInstanceDataMetricListResult() +{} + +void ExploreHiTSDBInstanceDataMetricListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMetricListNode = value["MetricList"]["Data"]; + for (auto valueMetricListData : allMetricListNode) + { + Data metricListObject; + if(!valueMetricListData["Metric"].isNull()) + metricListObject.metric = valueMetricListData["Metric"].asString(); + metricList_.push_back(metricListObject); + } + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string ExploreHiTSDBInstanceDataMetricListResult::getInstanceId()const +{ + return instanceId_; +} + +std::vector ExploreHiTSDBInstanceDataMetricListResult::getMetricList()const +{ + return metricList_; +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDataRequest.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDataRequest.cc new file mode 100644 index 000000000..467ca1037 --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDataRequest.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::Hitsdb::Model::ExploreHiTSDBInstanceDataRequest; + +ExploreHiTSDBInstanceDataRequest::ExploreHiTSDBInstanceDataRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "ExploreHiTSDBInstanceData") +{ + setMethod(HttpRequest::Method::Post); +} + +ExploreHiTSDBInstanceDataRequest::~ExploreHiTSDBInstanceDataRequest() +{} + +std::string ExploreHiTSDBInstanceDataRequest::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +void ExploreHiTSDBInstanceDataRequest::setReverseVpcIp(const std::string& reverseVpcIp) +{ + reverseVpcIp_ = reverseVpcIp; + setParameter("ReverseVpcIp", reverseVpcIp); +} + +long ExploreHiTSDBInstanceDataRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ExploreHiTSDBInstanceDataRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ExploreHiTSDBInstanceDataRequest::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +void ExploreHiTSDBInstanceDataRequest::setReverseVpcPort(int reverseVpcPort) +{ + reverseVpcPort_ = reverseVpcPort; + setParameter("ReverseVpcPort", std::to_string(reverseVpcPort)); +} + +std::string ExploreHiTSDBInstanceDataRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ExploreHiTSDBInstanceDataRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ExploreHiTSDBInstanceDataRequest::getPassWord()const +{ + return passWord_; +} + +void ExploreHiTSDBInstanceDataRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string ExploreHiTSDBInstanceDataRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ExploreHiTSDBInstanceDataRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +long ExploreHiTSDBInstanceDataRequest::getEnd()const +{ + return end_; +} + +void ExploreHiTSDBInstanceDataRequest::setEnd(long end) +{ + end_ = end; + setParameter("End", std::to_string(end)); +} + +std::string ExploreHiTSDBInstanceDataRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ExploreHiTSDBInstanceDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ExploreHiTSDBInstanceDataRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ExploreHiTSDBInstanceDataRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string ExploreHiTSDBInstanceDataRequest::getAggregator()const +{ + return aggregator_; +} + +void ExploreHiTSDBInstanceDataRequest::setAggregator(const std::string& aggregator) +{ + aggregator_ = aggregator; + setParameter("Aggregator", aggregator); +} + +long ExploreHiTSDBInstanceDataRequest::getStart()const +{ + return start_; +} + +void ExploreHiTSDBInstanceDataRequest::setStart(long start) +{ + start_ = start; + setParameter("Start", std::to_string(start)); +} + +long ExploreHiTSDBInstanceDataRequest::getOwnerId()const +{ + return ownerId_; +} + +void ExploreHiTSDBInstanceDataRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ExploreHiTSDBInstanceDataRequest::getTagFilter()const +{ + return tagFilter_; +} + +void ExploreHiTSDBInstanceDataRequest::setTagFilter(const std::string& tagFilter) +{ + tagFilter_ = tagFilter; + setParameter("TagFilter", tagFilter); +} + +std::string ExploreHiTSDBInstanceDataRequest::getInstanceId()const +{ + return instanceId_; +} + +void ExploreHiTSDBInstanceDataRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ExploreHiTSDBInstanceDataRequest::getMetric()const +{ + return metric_; +} + +void ExploreHiTSDBInstanceDataRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +std::string ExploreHiTSDBInstanceDataRequest::getDownSampleAggregator()const +{ + return downSampleAggregator_; +} + +void ExploreHiTSDBInstanceDataRequest::setDownSampleAggregator(const std::string& downSampleAggregator) +{ + downSampleAggregator_ = downSampleAggregator; + setParameter("DownSampleAggregator", downSampleAggregator); +} + +std::string ExploreHiTSDBInstanceDataRequest::getDownSampleTime()const +{ + return downSampleTime_; +} + +void ExploreHiTSDBInstanceDataRequest::setDownSampleTime(const std::string& downSampleTime) +{ + downSampleTime_ = downSampleTime; + setParameter("DownSampleTime", downSampleTime); +} + +std::string ExploreHiTSDBInstanceDataRequest::getUserName()const +{ + return userName_; +} + +void ExploreHiTSDBInstanceDataRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDataResult.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDataResult.cc new file mode 100644 index 000000000..a1f442583 --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDataResult.cc @@ -0,0 +1,96 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +ExploreHiTSDBInstanceDataResult::ExploreHiTSDBInstanceDataResult() : + ServiceResult() +{} + +ExploreHiTSDBInstanceDataResult::ExploreHiTSDBInstanceDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExploreHiTSDBInstanceDataResult::~ExploreHiTSDBInstanceDataResult() +{} + +void ExploreHiTSDBInstanceDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTimeLinesNode = value["TimeLines"]["TimeLine"]; + for (auto valueTimeLinesTimeLine : allTimeLinesNode) + { + TimeLine timeLinesObject; + auto allTagsNode = valueTimeLinesTimeLine["Tags"]["Tag"]; + for (auto valueTimeLinesTimeLineTagsTag : allTagsNode) + { + TimeLine::Tag tagsObject; + if(!valueTimeLinesTimeLineTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueTimeLinesTimeLineTagsTag["TagKey"].asString(); + if(!valueTimeLinesTimeLineTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueTimeLinesTimeLineTagsTag["TagValue"].asString(); + timeLinesObject.tags.push_back(tagsObject); + } + auto allSeriesNode = valueTimeLinesTimeLine["Series"]["Point"]; + for (auto valueTimeLinesTimeLineSeriesPoint : allSeriesNode) + { + TimeLine::Point seriesObject; + if(!valueTimeLinesTimeLineSeriesPoint["Timestamp"].isNull()) + seriesObject.timestamp = valueTimeLinesTimeLineSeriesPoint["Timestamp"].asString(); + if(!valueTimeLinesTimeLineSeriesPoint["Value"].isNull()) + seriesObject.value = std::stof(valueTimeLinesTimeLineSeriesPoint["Value"].asString()); + timeLinesObject.series.push_back(seriesObject); + } + timeLines_.push_back(timeLinesObject); + } + if(!value["Start"].isNull()) + start_ = value["Start"].asString(); + if(!value["End"].isNull()) + end_ = value["End"].asString(); + if(!value["Metric"].isNull()) + metric_ = value["Metric"].asString(); + +} + +std::vector ExploreHiTSDBInstanceDataResult::getTimeLines()const +{ + return timeLines_; +} + +std::string ExploreHiTSDBInstanceDataResult::getStart()const +{ + return start_; +} + +std::string ExploreHiTSDBInstanceDataResult::getEnd()const +{ + return end_; +} + +std::string ExploreHiTSDBInstanceDataResult::getMetric()const +{ + return metric_; +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDataTagKeyListRequest.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDataTagKeyListRequest.cc new file mode 100644 index 000000000..9f2921800 --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDataTagKeyListRequest.cc @@ -0,0 +1,183 @@ +/* + * 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::Hitsdb::Model::ExploreHiTSDBInstanceDataTagKeyListRequest; + +ExploreHiTSDBInstanceDataTagKeyListRequest::ExploreHiTSDBInstanceDataTagKeyListRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "ExploreHiTSDBInstanceDataTagKeyList") +{ + setMethod(HttpRequest::Method::Post); +} + +ExploreHiTSDBInstanceDataTagKeyListRequest::~ExploreHiTSDBInstanceDataTagKeyListRequest() +{} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setReverseVpcIp(const std::string& reverseVpcIp) +{ + reverseVpcIp_ = reverseVpcIp; + setParameter("ReverseVpcIp", reverseVpcIp); +} + +long ExploreHiTSDBInstanceDataTagKeyListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getPrefix()const +{ + return prefix_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setPrefix(const std::string& prefix) +{ + prefix_ = prefix; + setParameter("Prefix", prefix); +} + +int ExploreHiTSDBInstanceDataTagKeyListRequest::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setReverseVpcPort(int reverseVpcPort) +{ + reverseVpcPort_ = reverseVpcPort; + setParameter("ReverseVpcPort", std::to_string(reverseVpcPort)); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getPassWord()const +{ + return passWord_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long ExploreHiTSDBInstanceDataTagKeyListRequest::getMax()const +{ + return max_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setMax(long max) +{ + max_ = max; + setParameter("Max", std::to_string(max)); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ExploreHiTSDBInstanceDataTagKeyListRequest::getOwnerId()const +{ + return ownerId_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getInstanceId()const +{ + return instanceId_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getMetric()const +{ + return metric_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setMetric(const std::string& metric) +{ + metric_ = metric; + setParameter("Metric", metric); +} + +std::string ExploreHiTSDBInstanceDataTagKeyListRequest::getUserName()const +{ + return userName_; +} + +void ExploreHiTSDBInstanceDataTagKeyListRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDataTagKeyListResult.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDataTagKeyListResult.cc new file mode 100644 index 000000000..1c6946e7a --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDataTagKeyListResult.cc @@ -0,0 +1,64 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +ExploreHiTSDBInstanceDataTagKeyListResult::ExploreHiTSDBInstanceDataTagKeyListResult() : + ServiceResult() +{} + +ExploreHiTSDBInstanceDataTagKeyListResult::ExploreHiTSDBInstanceDataTagKeyListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExploreHiTSDBInstanceDataTagKeyListResult::~ExploreHiTSDBInstanceDataTagKeyListResult() +{} + +void ExploreHiTSDBInstanceDataTagKeyListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagKeyListNode = value["TagKeyList"]["Data"]; + for (auto valueTagKeyListData : allTagKeyListNode) + { + Data tagKeyListObject; + if(!valueTagKeyListData["TagKey"].isNull()) + tagKeyListObject.tagKey = valueTagKeyListData["TagKey"].asString(); + tagKeyList_.push_back(tagKeyListObject); + } + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string ExploreHiTSDBInstanceDataTagKeyListResult::getInstanceId()const +{ + return instanceId_; +} + +std::vector ExploreHiTSDBInstanceDataTagKeyListResult::getTagKeyList()const +{ + return tagKeyList_; +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDataTagValueListRequest.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDataTagValueListRequest.cc new file mode 100644 index 000000000..33e1d7c71 --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDataTagValueListRequest.cc @@ -0,0 +1,183 @@ +/* + * 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::Hitsdb::Model::ExploreHiTSDBInstanceDataTagValueListRequest; + +ExploreHiTSDBInstanceDataTagValueListRequest::ExploreHiTSDBInstanceDataTagValueListRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "ExploreHiTSDBInstanceDataTagValueList") +{ + setMethod(HttpRequest::Method::Post); +} + +ExploreHiTSDBInstanceDataTagValueListRequest::~ExploreHiTSDBInstanceDataTagValueListRequest() +{} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setReverseVpcIp(const std::string& reverseVpcIp) +{ + reverseVpcIp_ = reverseVpcIp; + setParameter("ReverseVpcIp", reverseVpcIp); +} + +long ExploreHiTSDBInstanceDataTagValueListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getPrefix()const +{ + return prefix_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setPrefix(const std::string& prefix) +{ + prefix_ = prefix; + setParameter("Prefix", prefix); +} + +int ExploreHiTSDBInstanceDataTagValueListRequest::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setReverseVpcPort(int reverseVpcPort) +{ + reverseVpcPort_ = reverseVpcPort; + setParameter("ReverseVpcPort", std::to_string(reverseVpcPort)); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getPassWord()const +{ + return passWord_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +long ExploreHiTSDBInstanceDataTagValueListRequest::getMax()const +{ + return max_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setMax(long max) +{ + max_ = max; + setParameter("Max", std::to_string(max)); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ExploreHiTSDBInstanceDataTagValueListRequest::getOwnerId()const +{ + return ownerId_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getInstanceId()const +{ + return instanceId_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getTagKey()const +{ + return tagKey_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setTagKey(const std::string& tagKey) +{ + tagKey_ = tagKey; + setParameter("TagKey", tagKey); +} + +std::string ExploreHiTSDBInstanceDataTagValueListRequest::getUserName()const +{ + return userName_; +} + +void ExploreHiTSDBInstanceDataTagValueListRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDataTagValueListResult.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDataTagValueListResult.cc new file mode 100644 index 000000000..fc88ac6ec --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDataTagValueListResult.cc @@ -0,0 +1,64 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +ExploreHiTSDBInstanceDataTagValueListResult::ExploreHiTSDBInstanceDataTagValueListResult() : + ServiceResult() +{} + +ExploreHiTSDBInstanceDataTagValueListResult::ExploreHiTSDBInstanceDataTagValueListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExploreHiTSDBInstanceDataTagValueListResult::~ExploreHiTSDBInstanceDataTagValueListResult() +{} + +void ExploreHiTSDBInstanceDataTagValueListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagValueListNode = value["TagValueList"]["Data"]; + for (auto valueTagValueListData : allTagValueListNode) + { + Data tagValueListObject; + if(!valueTagValueListData["TagValue"].isNull()) + tagValueListObject.tagValue = valueTagValueListData["TagValue"].asString(); + tagValueList_.push_back(tagValueListObject); + } + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string ExploreHiTSDBInstanceDataTagValueListResult::getInstanceId()const +{ + return instanceId_; +} + +std::vector ExploreHiTSDBInstanceDataTagValueListResult::getTagValueList()const +{ + return tagValueList_; +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDeletionJobListRequest.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDeletionJobListRequest.cc new file mode 100644 index 000000000..91289a76c --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDeletionJobListRequest.cc @@ -0,0 +1,161 @@ +/* + * 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::Hitsdb::Model::ExploreHiTSDBInstanceDeletionJobListRequest; + +ExploreHiTSDBInstanceDeletionJobListRequest::ExploreHiTSDBInstanceDeletionJobListRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "ExploreHiTSDBInstanceDeletionJobList") +{ + setMethod(HttpRequest::Method::Post); +} + +ExploreHiTSDBInstanceDeletionJobListRequest::~ExploreHiTSDBInstanceDeletionJobListRequest() +{} + +long ExploreHiTSDBInstanceDeletionJobListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int ExploreHiTSDBInstanceDeletionJobListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string ExploreHiTSDBInstanceDeletionJobListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ExploreHiTSDBInstanceDeletionJobListRequest::getPassWord()const +{ + return passWord_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string ExploreHiTSDBInstanceDeletionJobListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +int ExploreHiTSDBInstanceDeletionJobListRequest::getPageSize()const +{ + return pageSize_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string ExploreHiTSDBInstanceDeletionJobListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ExploreHiTSDBInstanceDeletionJobListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ExploreHiTSDBInstanceDeletionJobListRequest::getOwnerId()const +{ + return ownerId_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ExploreHiTSDBInstanceDeletionJobListRequest::getJobType()const +{ + return jobType_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setJobType(const std::string& jobType) +{ + jobType_ = jobType; + setParameter("JobType", jobType); +} + +std::string ExploreHiTSDBInstanceDeletionJobListRequest::getInstanceId()const +{ + return instanceId_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string ExploreHiTSDBInstanceDeletionJobListRequest::getUserName()const +{ + return userName_; +} + +void ExploreHiTSDBInstanceDeletionJobListRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/ExploreHiTSDBInstanceDeletionJobListResult.cc b/hitsdb/src/model/ExploreHiTSDBInstanceDeletionJobListResult.cc new file mode 100644 index 000000000..5c7c0205c --- /dev/null +++ b/hitsdb/src/model/ExploreHiTSDBInstanceDeletionJobListResult.cc @@ -0,0 +1,102 @@ +/* + * 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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +ExploreHiTSDBInstanceDeletionJobListResult::ExploreHiTSDBInstanceDeletionJobListResult() : + ServiceResult() +{} + +ExploreHiTSDBInstanceDeletionJobListResult::ExploreHiTSDBInstanceDeletionJobListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExploreHiTSDBInstanceDeletionJobListResult::~ExploreHiTSDBInstanceDeletionJobListResult() +{} + +void ExploreHiTSDBInstanceDeletionJobListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allJobListNode = value["JobList"]["JobItem"]; + for (auto valueJobListJobItem : allJobListNode) + { + JobItem jobListObject; + if(!valueJobListJobItem["Id"].isNull()) + jobListObject.id = std::stol(valueJobListJobItem["Id"].asString()); + if(!valueJobListJobItem["InstanceId"].isNull()) + jobListObject.instanceId = valueJobListJobItem["InstanceId"].asString(); + if(!valueJobListJobItem["Ip"].isNull()) + jobListObject.ip = valueJobListJobItem["Ip"].asString(); + if(!valueJobListJobItem["Port"].isNull()) + jobListObject.port = std::stoi(valueJobListJobItem["Port"].asString()); + if(!valueJobListJobItem["Metric"].isNull()) + jobListObject.metric = valueJobListJobItem["Metric"].asString(); + if(!valueJobListJobItem["Tags"].isNull()) + jobListObject.tags = valueJobListJobItem["Tags"].asString(); + if(!valueJobListJobItem["StartTime"].isNull()) + jobListObject.startTime = std::stol(valueJobListJobItem["StartTime"].asString()); + if(!valueJobListJobItem["EndTime"].isNull()) + jobListObject.endTime = std::stol(valueJobListJobItem["EndTime"].asString()); + if(!valueJobListJobItem["Status"].isNull()) + jobListObject.status = valueJobListJobItem["Status"].asString(); + if(!valueJobListJobItem["JobTyp"].isNull()) + jobListObject.jobTyp = valueJobListJobItem["JobTyp"].asString(); + if(!valueJobListJobItem["JobCreationTime"].isNull()) + jobListObject.jobCreationTime = std::stol(valueJobListJobItem["JobCreationTime"].asString()); + if(!valueJobListJobItem["JobStartTime"].isNull()) + jobListObject.jobStartTime = std::stol(valueJobListJobItem["JobStartTime"].asString()); + if(!valueJobListJobItem["JobEndTime"].isNull()) + jobListObject.jobEndTime = std::stol(valueJobListJobItem["JobEndTime"].asString()); + jobList_.push_back(jobListObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Total"].isNull()) + total_ = std::stol(value["Total"].asString()); + +} + +int ExploreHiTSDBInstanceDeletionJobListResult::getPageSize()const +{ + return pageSize_; +} + +int ExploreHiTSDBInstanceDeletionJobListResult::getPageNumber()const +{ + return pageNumber_; +} + +long ExploreHiTSDBInstanceDeletionJobListResult::getTotal()const +{ + return total_; +} + +std::vector ExploreHiTSDBInstanceDeletionJobListResult::getJobList()const +{ + return jobList_; +} + diff --git a/hitsdb/src/model/GetLindormInstanceEngineListRequest.cc b/hitsdb/src/model/GetLindormInstanceEngineListRequest.cc deleted file mode 100644 index eee103d7d..000000000 --- a/hitsdb/src/model/GetLindormInstanceEngineListRequest.cc +++ /dev/null @@ -1,106 +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::Hitsdb::Model::GetLindormInstanceEngineListRequest; - -GetLindormInstanceEngineListRequest::GetLindormInstanceEngineListRequest() : - RpcServiceRequest("hitsdb", "2020-06-15", "GetLindormInstanceEngineList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetLindormInstanceEngineListRequest::~GetLindormInstanceEngineListRequest() -{} - -long GetLindormInstanceEngineListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void GetLindormInstanceEngineListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string GetLindormInstanceEngineListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetLindormInstanceEngineListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetLindormInstanceEngineListRequest::getSecurityToken()const -{ - return securityToken_; -} - -void GetLindormInstanceEngineListRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -std::string GetLindormInstanceEngineListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void GetLindormInstanceEngineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string GetLindormInstanceEngineListRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void GetLindormInstanceEngineListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long GetLindormInstanceEngineListRequest::getOwnerId()const -{ - return ownerId_; -} - -void GetLindormInstanceEngineListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string GetLindormInstanceEngineListRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetLindormInstanceEngineListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/hitsdb/src/model/GetLindormInstanceEngineListResult.cc b/hitsdb/src/model/GetLindormInstanceEngineListResult.cc deleted file mode 100644 index 033ba6806..000000000 --- a/hitsdb/src/model/GetLindormInstanceEngineListResult.cc +++ /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. - */ - -#include -#include - -using namespace AlibabaCloud::Hitsdb; -using namespace AlibabaCloud::Hitsdb::Model; - -GetLindormInstanceEngineListResult::GetLindormInstanceEngineListResult() : - ServiceResult() -{} - -GetLindormInstanceEngineListResult::GetLindormInstanceEngineListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetLindormInstanceEngineListResult::~GetLindormInstanceEngineListResult() -{} - -void GetLindormInstanceEngineListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allEngineListNode = value["EngineList"]["EngineInfo"]; - for (auto valueEngineListEngineInfo : allEngineListNode) - { - EngineInfo engineListObject; - if(!valueEngineListEngineInfo["EngineType"].isNull()) - engineListObject.engineType = valueEngineListEngineInfo["EngineType"].asString(); - auto allNetInfoListNode = valueEngineListEngineInfo["NetInfoList"]["NetInfo"]; - for (auto valueEngineListEngineInfoNetInfoListNetInfo : allNetInfoListNode) - { - EngineInfo::NetInfo netInfoListObject; - if(!valueEngineListEngineInfoNetInfoListNetInfo["NetType"].isNull()) - netInfoListObject.netType = valueEngineListEngineInfoNetInfoListNetInfo["NetType"].asString(); - if(!valueEngineListEngineInfoNetInfoListNetInfo["ConnectionString"].isNull()) - netInfoListObject.connectionString = valueEngineListEngineInfoNetInfoListNetInfo["ConnectionString"].asString(); - if(!valueEngineListEngineInfoNetInfoListNetInfo["Port"].isNull()) - netInfoListObject.port = std::stoi(valueEngineListEngineInfoNetInfoListNetInfo["Port"].asString()); - if(!valueEngineListEngineInfoNetInfoListNetInfo["AccessType"].isNull()) - netInfoListObject.accessType = std::stoi(valueEngineListEngineInfoNetInfoListNetInfo["AccessType"].asString()); - engineListObject.netInfoList.push_back(netInfoListObject); - } - engineList_.push_back(engineListObject); - } - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - -} - -std::vector GetLindormInstanceEngineListResult::getEngineList()const -{ - return engineList_; -} - -std::string GetLindormInstanceEngineListResult::getInstanceId()const -{ - return instanceId_; -} - diff --git a/hitsdb/src/model/GetLindormInstanceListRequest.cc b/hitsdb/src/model/GetLindormInstanceListRequest.cc deleted file mode 100644 index 73d62b432..000000000 --- a/hitsdb/src/model/GetLindormInstanceListRequest.cc +++ /dev/null @@ -1,150 +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::Hitsdb::Model::GetLindormInstanceListRequest; - -GetLindormInstanceListRequest::GetLindormInstanceListRequest() : - RpcServiceRequest("hitsdb", "2020-06-15", "GetLindormInstanceList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetLindormInstanceListRequest::~GetLindormInstanceListRequest() -{} - -long GetLindormInstanceListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void GetLindormInstanceListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -int GetLindormInstanceListRequest::getSupportEngine()const -{ - return supportEngine_; -} - -void GetLindormInstanceListRequest::setSupportEngine(int supportEngine) -{ - supportEngine_ = supportEngine; - setParameter("SupportEngine", std::to_string(supportEngine)); -} - -int GetLindormInstanceListRequest::getPageNumber()const -{ - return pageNumber_; -} - -void GetLindormInstanceListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string GetLindormInstanceListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetLindormInstanceListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string GetLindormInstanceListRequest::getSecurityToken()const -{ - return securityToken_; -} - -void GetLindormInstanceListRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -int GetLindormInstanceListRequest::getPageSize()const -{ - return pageSize_; -} - -void GetLindormInstanceListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string GetLindormInstanceListRequest::getQueryStr()const -{ - return queryStr_; -} - -void GetLindormInstanceListRequest::setQueryStr(const std::string& queryStr) -{ - queryStr_ = queryStr; - setParameter("QueryStr", queryStr); -} - -std::string GetLindormInstanceListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void GetLindormInstanceListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string GetLindormInstanceListRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void GetLindormInstanceListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long GetLindormInstanceListRequest::getOwnerId()const -{ - return ownerId_; -} - -void GetLindormInstanceListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string GetLindormInstanceListRequest::getServiceType()const -{ - return serviceType_; -} - -void GetLindormInstanceListRequest::setServiceType(const std::string& serviceType) -{ - serviceType_ = serviceType; - setParameter("ServiceType", serviceType); -} - diff --git a/hitsdb/src/model/GetLindormInstanceListResult.cc b/hitsdb/src/model/GetLindormInstanceListResult.cc deleted file mode 100644 index ee32d2bfd..000000000 --- a/hitsdb/src/model/GetLindormInstanceListResult.cc +++ /dev/null @@ -1,104 +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::Hitsdb; -using namespace AlibabaCloud::Hitsdb::Model; - -GetLindormInstanceListResult::GetLindormInstanceListResult() : - ServiceResult() -{} - -GetLindormInstanceListResult::GetLindormInstanceListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetLindormInstanceListResult::~GetLindormInstanceListResult() -{} - -void GetLindormInstanceListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allInstanceListNode = value["InstanceList"]["LindormInstanceSummary"]; - for (auto valueInstanceListLindormInstanceSummary : allInstanceListNode) - { - LindormInstanceSummary instanceListObject; - if(!valueInstanceListLindormInstanceSummary["InstanceId"].isNull()) - instanceListObject.instanceId = valueInstanceListLindormInstanceSummary["InstanceId"].asString(); - if(!valueInstanceListLindormInstanceSummary["InstanceAlias"].isNull()) - instanceListObject.instanceAlias = valueInstanceListLindormInstanceSummary["InstanceAlias"].asString(); - if(!valueInstanceListLindormInstanceSummary["RegionId"].isNull()) - instanceListObject.regionId = valueInstanceListLindormInstanceSummary["RegionId"].asString(); - if(!valueInstanceListLindormInstanceSummary["ZoneId"].isNull()) - instanceListObject.zoneId = valueInstanceListLindormInstanceSummary["ZoneId"].asString(); - if(!valueInstanceListLindormInstanceSummary["InstanceStatus"].isNull()) - instanceListObject.instanceStatus = valueInstanceListLindormInstanceSummary["InstanceStatus"].asString(); - if(!valueInstanceListLindormInstanceSummary["PayType"].isNull()) - instanceListObject.payType = valueInstanceListLindormInstanceSummary["PayType"].asString(); - if(!valueInstanceListLindormInstanceSummary["NetworkType"].isNull()) - instanceListObject.networkType = valueInstanceListLindormInstanceSummary["NetworkType"].asString(); - if(!valueInstanceListLindormInstanceSummary["CreateTime"].isNull()) - instanceListObject.createTime = valueInstanceListLindormInstanceSummary["CreateTime"].asString(); - if(!valueInstanceListLindormInstanceSummary["ExpireTime"].isNull()) - instanceListObject.expireTime = valueInstanceListLindormInstanceSummary["ExpireTime"].asString(); - if(!valueInstanceListLindormInstanceSummary["InstanceStorage"].isNull()) - instanceListObject.instanceStorage = valueInstanceListLindormInstanceSummary["InstanceStorage"].asString(); - if(!valueInstanceListLindormInstanceSummary["ServiceType"].isNull()) - instanceListObject.serviceType = valueInstanceListLindormInstanceSummary["ServiceType"].asString(); - if(!valueInstanceListLindormInstanceSummary["EngineType"].isNull()) - instanceListObject.engineType = valueInstanceListLindormInstanceSummary["EngineType"].asString(); - if(!valueInstanceListLindormInstanceSummary["AliUid"].isNull()) - instanceListObject.aliUid = std::stol(valueInstanceListLindormInstanceSummary["AliUid"].asString()); - if(!valueInstanceListLindormInstanceSummary["VpcId"].isNull()) - instanceListObject.vpcId = valueInstanceListLindormInstanceSummary["VpcId"].asString(); - instanceList_.push_back(instanceListObject); - } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); - -} - -int GetLindormInstanceListResult::getPageSize()const -{ - return pageSize_; -} - -int GetLindormInstanceListResult::getPageNumber()const -{ - return pageNumber_; -} - -int GetLindormInstanceListResult::getTotal()const -{ - return total_; -} - -std::vector GetLindormInstanceListResult::getInstanceList()const -{ - return instanceList_; -} - diff --git a/hitsdb/src/model/ModifyHiTSDBInstanceClassRequest.cc b/hitsdb/src/model/ModifyHiTSDBInstanceClassRequest.cc new file mode 100644 index 000000000..8ca19a8f0 --- /dev/null +++ b/hitsdb/src/model/ModifyHiTSDBInstanceClassRequest.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::Hitsdb::Model::ModifyHiTSDBInstanceClassRequest; + +ModifyHiTSDBInstanceClassRequest::ModifyHiTSDBInstanceClassRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "ModifyHiTSDBInstanceClass") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyHiTSDBInstanceClassRequest::~ModifyHiTSDBInstanceClassRequest() +{} + +long ModifyHiTSDBInstanceClassRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyHiTSDBInstanceClassRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyHiTSDBInstanceClassRequest::getInstanceClass()const +{ + return instanceClass_; +} + +void ModifyHiTSDBInstanceClassRequest::setInstanceClass(const std::string& instanceClass) +{ + instanceClass_ = instanceClass; + setParameter("InstanceClass", instanceClass); +} + +std::string ModifyHiTSDBInstanceClassRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyHiTSDBInstanceClassRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyHiTSDBInstanceClassRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyHiTSDBInstanceClassRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyHiTSDBInstanceClassRequest::getInstanceStorage()const +{ + return instanceStorage_; +} + +void ModifyHiTSDBInstanceClassRequest::setInstanceStorage(const std::string& instanceStorage) +{ + instanceStorage_ = instanceStorage; + setParameter("InstanceStorage", instanceStorage); +} + +std::string ModifyHiTSDBInstanceClassRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyHiTSDBInstanceClassRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyHiTSDBInstanceClassRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyHiTSDBInstanceClassRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyHiTSDBInstanceClassRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyHiTSDBInstanceClassRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyHiTSDBInstanceClassRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyHiTSDBInstanceClassRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/hitsdb/src/model/UpdateInstanceIpWhiteListResult.cc b/hitsdb/src/model/ModifyHiTSDBInstanceClassResult.cc similarity index 75% rename from hitsdb/src/model/UpdateInstanceIpWhiteListResult.cc rename to hitsdb/src/model/ModifyHiTSDBInstanceClassResult.cc index f6c8658f0..d9403369c 100644 --- a/hitsdb/src/model/UpdateInstanceIpWhiteListResult.cc +++ b/hitsdb/src/model/ModifyHiTSDBInstanceClassResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Hitsdb; using namespace AlibabaCloud::Hitsdb::Model; -UpdateInstanceIpWhiteListResult::UpdateInstanceIpWhiteListResult() : +ModifyHiTSDBInstanceClassResult::ModifyHiTSDBInstanceClassResult() : ServiceResult() {} -UpdateInstanceIpWhiteListResult::UpdateInstanceIpWhiteListResult(const std::string &payload) : +ModifyHiTSDBInstanceClassResult::ModifyHiTSDBInstanceClassResult(const std::string &payload) : ServiceResult() { parse(payload); } -UpdateInstanceIpWhiteListResult::~UpdateInstanceIpWhiteListResult() +ModifyHiTSDBInstanceClassResult::~ModifyHiTSDBInstanceClassResult() {} -void UpdateInstanceIpWhiteListResult::parse(const std::string &payload) +void ModifyHiTSDBInstanceClassResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/hitsdb/src/model/ModifyHiTSDBInstanceSecurityIpListRequest.cc b/hitsdb/src/model/ModifyHiTSDBInstanceSecurityIpListRequest.cc new file mode 100644 index 000000000..0abf65fb9 --- /dev/null +++ b/hitsdb/src/model/ModifyHiTSDBInstanceSecurityIpListRequest.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::Hitsdb::Model::ModifyHiTSDBInstanceSecurityIpListRequest; + +ModifyHiTSDBInstanceSecurityIpListRequest::ModifyHiTSDBInstanceSecurityIpListRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "ModifyHiTSDBInstanceSecurityIpList") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyHiTSDBInstanceSecurityIpListRequest::~ModifyHiTSDBInstanceSecurityIpListRequest() +{} + +long ModifyHiTSDBInstanceSecurityIpListRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void ModifyHiTSDBInstanceSecurityIpListRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string ModifyHiTSDBInstanceSecurityIpListRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ModifyHiTSDBInstanceSecurityIpListRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string ModifyHiTSDBInstanceSecurityIpListRequest::getSecurityToken()const +{ + return securityToken_; +} + +void ModifyHiTSDBInstanceSecurityIpListRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string ModifyHiTSDBInstanceSecurityIpListRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void ModifyHiTSDBInstanceSecurityIpListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string ModifyHiTSDBInstanceSecurityIpListRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void ModifyHiTSDBInstanceSecurityIpListRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long ModifyHiTSDBInstanceSecurityIpListRequest::getOwnerId()const +{ + return ownerId_; +} + +void ModifyHiTSDBInstanceSecurityIpListRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string ModifyHiTSDBInstanceSecurityIpListRequest::getSecurityIpList()const +{ + return securityIpList_; +} + +void ModifyHiTSDBInstanceSecurityIpListRequest::setSecurityIpList(const std::string& securityIpList) +{ + securityIpList_ = securityIpList; + setParameter("SecurityIpList", securityIpList); +} + +std::string ModifyHiTSDBInstanceSecurityIpListRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyHiTSDBInstanceSecurityIpListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/hitsdb/src/model/ModifyHiTSDBInstanceSecurityIpListResult.cc b/hitsdb/src/model/ModifyHiTSDBInstanceSecurityIpListResult.cc new file mode 100644 index 000000000..086fa3c4c --- /dev/null +++ b/hitsdb/src/model/ModifyHiTSDBInstanceSecurityIpListResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +ModifyHiTSDBInstanceSecurityIpListResult::ModifyHiTSDBInstanceSecurityIpListResult() : + ServiceResult() +{} + +ModifyHiTSDBInstanceSecurityIpListResult::ModifyHiTSDBInstanceSecurityIpListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHiTSDBInstanceSecurityIpListResult::~ModifyHiTSDBInstanceSecurityIpListResult() +{} + +void ModifyHiTSDBInstanceSecurityIpListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/hitsdb/src/model/RenameHiTSDBInstanceAliasRequest.cc b/hitsdb/src/model/RenameHiTSDBInstanceAliasRequest.cc new file mode 100644 index 000000000..5cc1b09d4 --- /dev/null +++ b/hitsdb/src/model/RenameHiTSDBInstanceAliasRequest.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::Hitsdb::Model::RenameHiTSDBInstanceAliasRequest; + +RenameHiTSDBInstanceAliasRequest::RenameHiTSDBInstanceAliasRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "RenameHiTSDBInstanceAlias") +{ + setMethod(HttpRequest::Method::Post); +} + +RenameHiTSDBInstanceAliasRequest::~RenameHiTSDBInstanceAliasRequest() +{} + +long RenameHiTSDBInstanceAliasRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RenameHiTSDBInstanceAliasRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RenameHiTSDBInstanceAliasRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RenameHiTSDBInstanceAliasRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RenameHiTSDBInstanceAliasRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RenameHiTSDBInstanceAliasRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string RenameHiTSDBInstanceAliasRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RenameHiTSDBInstanceAliasRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RenameHiTSDBInstanceAliasRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RenameHiTSDBInstanceAliasRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +std::string RenameHiTSDBInstanceAliasRequest::getInstanceAlias()const +{ + return instanceAlias_; +} + +void RenameHiTSDBInstanceAliasRequest::setInstanceAlias(const std::string& instanceAlias) +{ + instanceAlias_ = instanceAlias; + setParameter("InstanceAlias", instanceAlias); +} + +long RenameHiTSDBInstanceAliasRequest::getOwnerId()const +{ + return ownerId_; +} + +void RenameHiTSDBInstanceAliasRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RenameHiTSDBInstanceAliasRequest::getInstanceId()const +{ + return instanceId_; +} + +void RenameHiTSDBInstanceAliasRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/hitsdb/src/model/RenameHiTSDBInstanceAliasResult.cc b/hitsdb/src/model/RenameHiTSDBInstanceAliasResult.cc new file mode 100644 index 000000000..4d05c7255 --- /dev/null +++ b/hitsdb/src/model/RenameHiTSDBInstanceAliasResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +RenameHiTSDBInstanceAliasResult::RenameHiTSDBInstanceAliasResult() : + ServiceResult() +{} + +RenameHiTSDBInstanceAliasResult::RenameHiTSDBInstanceAliasResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenameHiTSDBInstanceAliasResult::~RenameHiTSDBInstanceAliasResult() +{} + +void RenameHiTSDBInstanceAliasResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/hitsdb/src/model/RenewTSDBInstanceRequest.cc b/hitsdb/src/model/RenewTSDBInstanceRequest.cc new file mode 100644 index 000000000..52340736d --- /dev/null +++ b/hitsdb/src/model/RenewTSDBInstanceRequest.cc @@ -0,0 +1,139 @@ +/* + * 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::Hitsdb::Model::RenewTSDBInstanceRequest; + +RenewTSDBInstanceRequest::RenewTSDBInstanceRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "RenewTSDBInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +RenewTSDBInstanceRequest::~RenewTSDBInstanceRequest() +{} + +long RenewTSDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RenewTSDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RenewTSDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RenewTSDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int RenewTSDBInstanceRequest::getDuration()const +{ + return duration_; +} + +void RenewTSDBInstanceRequest::setDuration(int duration) +{ + duration_ = duration; + setParameter("Duration", std::to_string(duration)); +} + +std::string RenewTSDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RenewTSDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string RenewTSDBInstanceRequest::getRegionId()const +{ + return regionId_; +} + +void RenewTSDBInstanceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string RenewTSDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RenewTSDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RenewTSDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RenewTSDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long RenewTSDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RenewTSDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RenewTSDBInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void RenewTSDBInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string RenewTSDBInstanceRequest::getPricingCycle()const +{ + return pricingCycle_; +} + +void RenewTSDBInstanceRequest::setPricingCycle(const std::string& pricingCycle) +{ + pricingCycle_ = pricingCycle; + setParameter("PricingCycle", pricingCycle); +} + diff --git a/hitsdb/src/model/RenewTSDBInstanceResult.cc b/hitsdb/src/model/RenewTSDBInstanceResult.cc new file mode 100644 index 000000000..c2bb4fc5b --- /dev/null +++ b/hitsdb/src/model/RenewTSDBInstanceResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +RenewTSDBInstanceResult::RenewTSDBInstanceResult() : + ServiceResult() +{} + +RenewTSDBInstanceResult::RenewTSDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RenewTSDBInstanceResult::~RenewTSDBInstanceResult() +{} + +void RenewTSDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + +} + +long RenewTSDBInstanceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/hitsdb/src/model/RestartHiTSDBInstanceRequest.cc b/hitsdb/src/model/RestartHiTSDBInstanceRequest.cc new file mode 100644 index 000000000..e05439680 --- /dev/null +++ b/hitsdb/src/model/RestartHiTSDBInstanceRequest.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::Hitsdb::Model::RestartHiTSDBInstanceRequest; + +RestartHiTSDBInstanceRequest::RestartHiTSDBInstanceRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "RestartHiTSDBInstance") +{ + setMethod(HttpRequest::Method::Post); +} + +RestartHiTSDBInstanceRequest::~RestartHiTSDBInstanceRequest() +{} + +long RestartHiTSDBInstanceRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void RestartHiTSDBInstanceRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string RestartHiTSDBInstanceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RestartHiTSDBInstanceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string RestartHiTSDBInstanceRequest::getSecurityToken()const +{ + return securityToken_; +} + +void RestartHiTSDBInstanceRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string RestartHiTSDBInstanceRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void RestartHiTSDBInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string RestartHiTSDBInstanceRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void RestartHiTSDBInstanceRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long RestartHiTSDBInstanceRequest::getOwnerId()const +{ + return ownerId_; +} + +void RestartHiTSDBInstanceRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string RestartHiTSDBInstanceRequest::getInstanceId()const +{ + return instanceId_; +} + +void RestartHiTSDBInstanceRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/hitsdb/src/model/RestartHiTSDBInstanceResult.cc b/hitsdb/src/model/RestartHiTSDBInstanceResult.cc new file mode 100644 index 000000000..1d4d7426e --- /dev/null +++ b/hitsdb/src/model/RestartHiTSDBInstanceResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +RestartHiTSDBInstanceResult::RestartHiTSDBInstanceResult() : + ServiceResult() +{} + +RestartHiTSDBInstanceResult::RestartHiTSDBInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RestartHiTSDBInstanceResult::~RestartHiTSDBInstanceResult() +{} + +void RestartHiTSDBInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/hitsdb/src/model/SwitchHiTSDBInstancePublicNetRequest.cc b/hitsdb/src/model/SwitchHiTSDBInstancePublicNetRequest.cc new file mode 100644 index 000000000..17e1de682 --- /dev/null +++ b/hitsdb/src/model/SwitchHiTSDBInstancePublicNetRequest.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::Hitsdb::Model::SwitchHiTSDBInstancePublicNetRequest; + +SwitchHiTSDBInstancePublicNetRequest::SwitchHiTSDBInstancePublicNetRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "SwitchHiTSDBInstancePublicNet") +{ + setMethod(HttpRequest::Method::Post); +} + +SwitchHiTSDBInstancePublicNetRequest::~SwitchHiTSDBInstancePublicNetRequest() +{} + +long SwitchHiTSDBInstancePublicNetRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void SwitchHiTSDBInstancePublicNetRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +std::string SwitchHiTSDBInstancePublicNetRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SwitchHiTSDBInstancePublicNetRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string SwitchHiTSDBInstancePublicNetRequest::getSecurityToken()const +{ + return securityToken_; +} + +void SwitchHiTSDBInstancePublicNetRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +long SwitchHiTSDBInstancePublicNetRequest::getSwitchAction()const +{ + return switchAction_; +} + +void SwitchHiTSDBInstancePublicNetRequest::setSwitchAction(long switchAction) +{ + switchAction_ = switchAction; + setParameter("SwitchAction", std::to_string(switchAction)); +} + +std::string SwitchHiTSDBInstancePublicNetRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void SwitchHiTSDBInstancePublicNetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string SwitchHiTSDBInstancePublicNetRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void SwitchHiTSDBInstancePublicNetRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long SwitchHiTSDBInstancePublicNetRequest::getOwnerId()const +{ + return ownerId_; +} + +void SwitchHiTSDBInstancePublicNetRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +std::string SwitchHiTSDBInstancePublicNetRequest::getInstanceId()const +{ + return instanceId_; +} + +void SwitchHiTSDBInstancePublicNetRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/hitsdb/src/model/SwitchHiTSDBInstancePublicNetResult.cc b/hitsdb/src/model/SwitchHiTSDBInstancePublicNetResult.cc new file mode 100644 index 000000000..afff27c49 --- /dev/null +++ b/hitsdb/src/model/SwitchHiTSDBInstancePublicNetResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +SwitchHiTSDBInstancePublicNetResult::SwitchHiTSDBInstancePublicNetResult() : + ServiceResult() +{} + +SwitchHiTSDBInstancePublicNetResult::SwitchHiTSDBInstancePublicNetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SwitchHiTSDBInstancePublicNetResult::~SwitchHiTSDBInstancePublicNetResult() +{} + +void SwitchHiTSDBInstancePublicNetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/hitsdb/src/model/UpdateHiTSDBInstanceDataTtlRequest.cc b/hitsdb/src/model/UpdateHiTSDBInstanceDataTtlRequest.cc new file mode 100644 index 000000000..1146046e1 --- /dev/null +++ b/hitsdb/src/model/UpdateHiTSDBInstanceDataTtlRequest.cc @@ -0,0 +1,161 @@ +/* + * 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::Hitsdb::Model::UpdateHiTSDBInstanceDataTtlRequest; + +UpdateHiTSDBInstanceDataTtlRequest::UpdateHiTSDBInstanceDataTtlRequest() : + RpcServiceRequest("hitsdb", "2017-06-01", "UpdateHiTSDBInstanceDataTtl") +{ + setMethod(HttpRequest::Method::Post); +} + +UpdateHiTSDBInstanceDataTtlRequest::~UpdateHiTSDBInstanceDataTtlRequest() +{} + +std::string UpdateHiTSDBInstanceDataTtlRequest::getReverseVpcIp()const +{ + return reverseVpcIp_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setReverseVpcIp(const std::string& reverseVpcIp) +{ + reverseVpcIp_ = reverseVpcIp; + setParameter("ReverseVpcIp", reverseVpcIp); +} + +long UpdateHiTSDBInstanceDataTtlRequest::getResourceOwnerId()const +{ + return resourceOwnerId_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setResourceOwnerId(long resourceOwnerId) +{ + resourceOwnerId_ = resourceOwnerId; + setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +} + +int UpdateHiTSDBInstanceDataTtlRequest::getReverseVpcPort()const +{ + return reverseVpcPort_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setReverseVpcPort(int reverseVpcPort) +{ + reverseVpcPort_ = reverseVpcPort; + setParameter("ReverseVpcPort", std::to_string(reverseVpcPort)); +} + +std::string UpdateHiTSDBInstanceDataTtlRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UpdateHiTSDBInstanceDataTtlRequest::getPassWord()const +{ + return passWord_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setPassWord(const std::string& passWord) +{ + passWord_ = passWord; + setParameter("PassWord", passWord); +} + +std::string UpdateHiTSDBInstanceDataTtlRequest::getSecurityToken()const +{ + return securityToken_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setSecurityToken(const std::string& securityToken) +{ + securityToken_ = securityToken; + setParameter("SecurityToken", securityToken); +} + +std::string UpdateHiTSDBInstanceDataTtlRequest::getResourceOwnerAccount()const +{ + return resourceOwnerAccount_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) +{ + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter("ResourceOwnerAccount", resourceOwnerAccount); +} + +std::string UpdateHiTSDBInstanceDataTtlRequest::getOwnerAccount()const +{ + return ownerAccount_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setOwnerAccount(const std::string& ownerAccount) +{ + ownerAccount_ = ownerAccount; + setParameter("OwnerAccount", ownerAccount); +} + +long UpdateHiTSDBInstanceDataTtlRequest::getOwnerId()const +{ + return ownerId_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setOwnerId(long ownerId) +{ + ownerId_ = ownerId; + setParameter("OwnerId", std::to_string(ownerId)); +} + +long UpdateHiTSDBInstanceDataTtlRequest::getTtl()const +{ + return ttl_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setTtl(long ttl) +{ + ttl_ = ttl; + setParameter("Ttl", std::to_string(ttl)); +} + +std::string UpdateHiTSDBInstanceDataTtlRequest::getInstanceId()const +{ + return instanceId_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string UpdateHiTSDBInstanceDataTtlRequest::getUserName()const +{ + return userName_; +} + +void UpdateHiTSDBInstanceDataTtlRequest::setUserName(const std::string& userName) +{ + userName_ = userName; + setParameter("UserName", userName); +} + diff --git a/hitsdb/src/model/UpdateHiTSDBInstanceDataTtlResult.cc b/hitsdb/src/model/UpdateHiTSDBInstanceDataTtlResult.cc new file mode 100644 index 000000000..4f129d6f0 --- /dev/null +++ b/hitsdb/src/model/UpdateHiTSDBInstanceDataTtlResult.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::Hitsdb; +using namespace AlibabaCloud::Hitsdb::Model; + +UpdateHiTSDBInstanceDataTtlResult::UpdateHiTSDBInstanceDataTtlResult() : + ServiceResult() +{} + +UpdateHiTSDBInstanceDataTtlResult::UpdateHiTSDBInstanceDataTtlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateHiTSDBInstanceDataTtlResult::~UpdateHiTSDBInstanceDataTtlResult() +{} + +void UpdateHiTSDBInstanceDataTtlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/hitsdb/src/model/UpdateInstanceIpWhiteListRequest.cc b/hitsdb/src/model/UpdateInstanceIpWhiteListRequest.cc deleted file mode 100644 index 5455b744a..000000000 --- a/hitsdb/src/model/UpdateInstanceIpWhiteListRequest.cc +++ /dev/null @@ -1,128 +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::Hitsdb::Model::UpdateInstanceIpWhiteListRequest; - -UpdateInstanceIpWhiteListRequest::UpdateInstanceIpWhiteListRequest() : - RpcServiceRequest("hitsdb", "2020-06-15", "UpdateInstanceIpWhiteList") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateInstanceIpWhiteListRequest::~UpdateInstanceIpWhiteListRequest() -{} - -long UpdateInstanceIpWhiteListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void UpdateInstanceIpWhiteListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string UpdateInstanceIpWhiteListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void UpdateInstanceIpWhiteListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); -} - -std::string UpdateInstanceIpWhiteListRequest::getSecurityToken()const -{ - return securityToken_; -} - -void UpdateInstanceIpWhiteListRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); -} - -std::string UpdateInstanceIpWhiteListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; -} - -void UpdateInstanceIpWhiteListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); -} - -std::string UpdateInstanceIpWhiteListRequest::getOwnerAccount()const -{ - return ownerAccount_; -} - -void UpdateInstanceIpWhiteListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); -} - -long UpdateInstanceIpWhiteListRequest::getOwnerId()const -{ - return ownerId_; -} - -void UpdateInstanceIpWhiteListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); -} - -std::string UpdateInstanceIpWhiteListRequest::getGroupName()const -{ - return groupName_; -} - -void UpdateInstanceIpWhiteListRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setParameter("GroupName", groupName); -} - -std::string UpdateInstanceIpWhiteListRequest::getSecurityIpList()const -{ - return securityIpList_; -} - -void UpdateInstanceIpWhiteListRequest::setSecurityIpList(const std::string& securityIpList) -{ - securityIpList_ = securityIpList; - setParameter("SecurityIpList", securityIpList); -} - -std::string UpdateInstanceIpWhiteListRequest::getInstanceId()const -{ - return instanceId_; -} - -void UpdateInstanceIpWhiteListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} -