Selaa lähdekoodia

Create Lindorm Open api.

sdk-team 4 vuotta sitten
vanhempi
sitoutus
41c9cd85cf

+ 3 - 0
CHANGELOG

@@ -1,3 +1,6 @@
+2021-12-30 Version: 1.36.1007
+- Create Lindorm Open api.
+
 2021-12-30 Version: 1.36.1006
 - Support AUTH for CreateEventSubscribe.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1006
+1.36.1007

+ 4 - 0
hitsdb/CMakeLists.txt

@@ -33,6 +33,8 @@ set(hitsdb_public_header_model
 	include/alibabacloud/hitsdb/model/GetLindormInstanceEngineListResult.h
 	include/alibabacloud/hitsdb/model/GetLindormInstanceListRequest.h
 	include/alibabacloud/hitsdb/model/GetLindormInstanceListResult.h
+	include/alibabacloud/hitsdb/model/GetLindormSSLCertUrlRequest.h
+	include/alibabacloud/hitsdb/model/GetLindormSSLCertUrlResult.h
 	include/alibabacloud/hitsdb/model/ReleaseLindormInstanceRequest.h
 	include/alibabacloud/hitsdb/model/ReleaseLindormInstanceResult.h
 	include/alibabacloud/hitsdb/model/UpdateInstanceIpWhiteListRequest.h
@@ -54,6 +56,8 @@ set(hitsdb_src
 	src/model/GetLindormInstanceEngineListResult.cc
 	src/model/GetLindormInstanceListRequest.cc
 	src/model/GetLindormInstanceListResult.cc
+	src/model/GetLindormSSLCertUrlRequest.cc
+	src/model/GetLindormSSLCertUrlResult.cc
 	src/model/ReleaseLindormInstanceRequest.cc
 	src/model/ReleaseLindormInstanceResult.cc
 	src/model/UpdateInstanceIpWhiteListRequest.cc

+ 8 - 0
hitsdb/include/alibabacloud/hitsdb/HitsdbClient.h

@@ -34,6 +34,8 @@
 #include "model/GetLindormInstanceEngineListResult.h"
 #include "model/GetLindormInstanceListRequest.h"
 #include "model/GetLindormInstanceListResult.h"
+#include "model/GetLindormSSLCertUrlRequest.h"
+#include "model/GetLindormSSLCertUrlResult.h"
 #include "model/ReleaseLindormInstanceRequest.h"
 #include "model/ReleaseLindormInstanceResult.h"
 #include "model/UpdateInstanceIpWhiteListRequest.h"
@@ -67,6 +69,9 @@ namespace AlibabaCloud
 			typedef Outcome<Error, Model::GetLindormInstanceListResult> GetLindormInstanceListOutcome;
 			typedef std::future<GetLindormInstanceListOutcome> GetLindormInstanceListOutcomeCallable;
 			typedef std::function<void(const HitsdbClient*, const Model::GetLindormInstanceListRequest&, const GetLindormInstanceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLindormInstanceListAsyncHandler;
+			typedef Outcome<Error, Model::GetLindormSSLCertUrlResult> GetLindormSSLCertUrlOutcome;
+			typedef std::future<GetLindormSSLCertUrlOutcome> GetLindormSSLCertUrlOutcomeCallable;
+			typedef std::function<void(const HitsdbClient*, const Model::GetLindormSSLCertUrlRequest&, const GetLindormSSLCertUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetLindormSSLCertUrlAsyncHandler;
 			typedef Outcome<Error, Model::ReleaseLindormInstanceResult> ReleaseLindormInstanceOutcome;
 			typedef std::future<ReleaseLindormInstanceOutcome> ReleaseLindormInstanceOutcomeCallable;
 			typedef std::function<void(const HitsdbClient*, const Model::ReleaseLindormInstanceRequest&, const ReleaseLindormInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ReleaseLindormInstanceAsyncHandler;
@@ -99,6 +104,9 @@ namespace AlibabaCloud
 			GetLindormInstanceListOutcome getLindormInstanceList(const Model::GetLindormInstanceListRequest &request)const;
 			void getLindormInstanceListAsync(const Model::GetLindormInstanceListRequest& request, const GetLindormInstanceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			GetLindormInstanceListOutcomeCallable getLindormInstanceListCallable(const Model::GetLindormInstanceListRequest& request) const;
+			GetLindormSSLCertUrlOutcome getLindormSSLCertUrl(const Model::GetLindormSSLCertUrlRequest &request)const;
+			void getLindormSSLCertUrlAsync(const Model::GetLindormSSLCertUrlRequest& request, const GetLindormSSLCertUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
+			GetLindormSSLCertUrlOutcomeCallable getLindormSSLCertUrlCallable(const Model::GetLindormSSLCertUrlRequest& request) const;
 			ReleaseLindormInstanceOutcome releaseLindormInstance(const Model::ReleaseLindormInstanceRequest &request)const;
 			void releaseLindormInstanceAsync(const Model::ReleaseLindormInstanceRequest& request, const ReleaseLindormInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
 			ReleaseLindormInstanceOutcomeCallable releaseLindormInstanceCallable(const Model::ReleaseLindormInstanceRequest& request) const;

+ 11 - 6
hitsdb/include/alibabacloud/hitsdb/model/GetLindormInstanceResult.h

@@ -37,6 +37,7 @@ namespace AlibabaCloud
 					std::string memorySize;
 					std::string cpuCount;
 					std::string version;
+					std::string latestVersion;
 					std::string engine;
 					bool isLastVersion;
 					std::string coreCount;
@@ -53,16 +54,18 @@ namespace AlibabaCloud
 				bool getAutoRenew()const;
 				std::string getDiskUsage()const;
 				bool getEnableFS()const;
-				std::string getInstanceAlias()const;
-				std::string getInstanceStatus()const;
+				bool getEnableCompute()const;
 				std::string getNetworkType()const;
 				std::string getServiceType()const;
+				std::string getInstanceAlias()const;
+				std::string getInstanceStatus()const;
 				int getEngineType()const;
 				long getCreateMilliseconds()const;
+				bool getEnableSSL()const;
 				std::string getInstanceStorage()const;
 				std::string getZoneId()const;
-				std::string getInstanceId()const;
 				bool getEnableKms()const;
+				std::string getInstanceId()const;
 				std::string getCreateTime()const;
 				int getColdStorage()const;
 				std::string getDiskCategory()const;
@@ -85,16 +88,18 @@ namespace AlibabaCloud
 				bool autoRenew_;
 				std::string diskUsage_;
 				bool enableFS_;
-				std::string instanceAlias_;
-				std::string instanceStatus_;
+				bool enableCompute_;
 				std::string networkType_;
 				std::string serviceType_;
+				std::string instanceAlias_;
+				std::string instanceStatus_;
 				int engineType_;
 				long createMilliseconds_;
+				bool enableSSL_;
 				std::string instanceStorage_;
 				std::string zoneId_;
-				std::string instanceId_;
 				bool enableKms_;
+				std::string instanceId_;
 				std::string createTime_;
 				int coldStorage_;
 				std::string diskCategory_;

+ 69 - 0
hitsdb/include/alibabacloud/hitsdb/model/GetLindormSSLCertUrlRequest.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_GETLINDORMSSLCERTURLREQUEST_H_
+#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLREQUEST_H_
+
+#include <string>
+#include <vector>
+#include <alibabacloud/core/RpcServiceRequest.h>
+#include <alibabacloud/hitsdb/HitsdbExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Hitsdb
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_HITSDB_EXPORT GetLindormSSLCertUrlRequest : public RpcServiceRequest
+			{
+
+			public:
+				GetLindormSSLCertUrlRequest();
+				~GetLindormSSLCertUrlRequest();
+
+				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 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);
+
+            private:
+				long resourceOwnerId_;
+				std::string accessKeyId_;
+				std::string securityToken_;
+				std::string regionId_;
+				std::string resourceOwnerAccount_;
+				std::string ownerAccount_;
+				long ownerId_;
+				std::string instanceId_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLREQUEST_H_

+ 53 - 0
hitsdb/include/alibabacloud/hitsdb/model/GetLindormSSLCertUrlResult.h

@@ -0,0 +1,53 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLRESULT_H_
+#define ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLRESULT_H_
+
+#include <string>
+#include <vector>
+#include <utility>
+#include <alibabacloud/core/ServiceResult.h>
+#include <alibabacloud/hitsdb/HitsdbExport.h>
+
+namespace AlibabaCloud
+{
+	namespace Hitsdb
+	{
+		namespace Model
+		{
+			class ALIBABACLOUD_HITSDB_EXPORT GetLindormSSLCertUrlResult : public ServiceResult
+			{
+			public:
+
+
+				GetLindormSSLCertUrlResult();
+				explicit GetLindormSSLCertUrlResult(const std::string &payload);
+				~GetLindormSSLCertUrlResult();
+				long getCertExpiresAt()const;
+				std::string getCertUrl()const;
+
+			protected:
+				void parse(const std::string &payload);
+			private:
+				long certExpiresAt_;
+				std::string certUrl_;
+
+			};
+		}
+	}
+}
+#endif // !ALIBABACLOUD_HITSDB_MODEL_GETLINDORMSSLCERTURLRESULT_H_

+ 36 - 0
hitsdb/src/HitsdbClient.cc

@@ -267,6 +267,42 @@ HitsdbClient::GetLindormInstanceListOutcomeCallable HitsdbClient::getLindormInst
 	return task->get_future();
 }
 
+HitsdbClient::GetLindormSSLCertUrlOutcome HitsdbClient::getLindormSSLCertUrl(const GetLindormSSLCertUrlRequest &request) const
+{
+	auto endpointOutcome = endpointProvider_->getEndpoint();
+	if (!endpointOutcome.isSuccess())
+		return GetLindormSSLCertUrlOutcome(endpointOutcome.error());
+
+	auto outcome = makeRequest(endpointOutcome.result(), request);
+
+	if (outcome.isSuccess())
+		return GetLindormSSLCertUrlOutcome(GetLindormSSLCertUrlResult(outcome.result()));
+	else
+		return GetLindormSSLCertUrlOutcome(outcome.error());
+}
+
+void HitsdbClient::getLindormSSLCertUrlAsync(const GetLindormSSLCertUrlRequest& request, const GetLindormSSLCertUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
+{
+	auto fn = [this, request, handler, context]()
+	{
+		handler(this, request, getLindormSSLCertUrl(request), context);
+	};
+
+	asyncExecute(new Runnable(fn));
+}
+
+HitsdbClient::GetLindormSSLCertUrlOutcomeCallable HitsdbClient::getLindormSSLCertUrlCallable(const GetLindormSSLCertUrlRequest &request) const
+{
+	auto task = std::make_shared<std::packaged_task<GetLindormSSLCertUrlOutcome()>>(
+			[this, request]()
+			{
+			return this->getLindormSSLCertUrl(request);
+			});
+
+	asyncExecute(new Runnable([task]() { (*task)(); }));
+	return task->get_future();
+}
+
 HitsdbClient::ReleaseLindormInstanceOutcome HitsdbClient::releaseLindormInstance(const ReleaseLindormInstanceRequest &request) const
 {
 	auto endpointOutcome = endpointProvider_->getEndpoint();

+ 67 - 51
hitsdb/src/model/GetLindormInstanceResult.cc

@@ -43,74 +43,80 @@ void GetLindormInstanceResult::parse(const std::string &payload)
 	for (auto valueEngineListEngine : allEngineListNode)
 	{
 		Engine engineListObject;
-		if(!valueEngineListEngine["Engine"].isNull())
-			engineListObject.engine = valueEngineListEngine["Engine"].asString();
 		if(!valueEngineListEngine["Version"].isNull())
 			engineListObject.version = valueEngineListEngine["Version"].asString();
 		if(!valueEngineListEngine["CpuCount"].isNull())
 			engineListObject.cpuCount = valueEngineListEngine["CpuCount"].asString();
-		if(!valueEngineListEngine["MemorySize"].isNull())
-			engineListObject.memorySize = valueEngineListEngine["MemorySize"].asString();
 		if(!valueEngineListEngine["CoreCount"].isNull())
 			engineListObject.coreCount = valueEngineListEngine["CoreCount"].asString();
+		if(!valueEngineListEngine["Engine"].isNull())
+			engineListObject.engine = valueEngineListEngine["Engine"].asString();
+		if(!valueEngineListEngine["MemorySize"].isNull())
+			engineListObject.memorySize = valueEngineListEngine["MemorySize"].asString();
 		if(!valueEngineListEngine["IsLastVersion"].isNull())
 			engineListObject.isLastVersion = valueEngineListEngine["IsLastVersion"].asString() == "true";
+		if(!valueEngineListEngine["LatestVersion"].isNull())
+			engineListObject.latestVersion = valueEngineListEngine["LatestVersion"].asString();
 		engineList_.push_back(engineListObject);
 	}
-	if(!value["InstanceId"].isNull())
-		instanceId_ = value["InstanceId"].asString();
-	if(!value["InstanceAlias"].isNull())
-		instanceAlias_ = value["InstanceAlias"].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["PayType"].isNull())
-		payType_ = value["PayType"].asString();
-	if(!value["NetworkType"].isNull())
-		networkType_ = value["NetworkType"].asString();
-	if(!value["CreateTime"].isNull())
-		createTime_ = value["CreateTime"].asString();
-	if(!value["ExpireTime"].isNull())
-		expireTime_ = value["ExpireTime"].asString();
-	if(!value["InstanceStorage"].isNull())
-		instanceStorage_ = value["InstanceStorage"].asString();
 	if(!value["VpcId"].isNull())
 		vpcId_ = value["VpcId"].asString();
 	if(!value["VswitchId"].isNull())
 		vswitchId_ = value["VswitchId"].asString();
-	if(!value["AutoRenew"].isNull())
-		autoRenew_ = value["AutoRenew"].asString() == "true";
-	if(!value["EngineType"].isNull())
-		engineType_ = std::stoi(value["EngineType"].asString());
+	if(!value["CreateTime"].isNull())
+		createTime_ = value["CreateTime"].asString();
+	if(!value["PayType"].isNull())
+		payType_ = value["PayType"].asString();
+	if(!value["NetworkType"].isNull())
+		networkType_ = value["NetworkType"].asString();
 	if(!value["ServiceType"].isNull())
 		serviceType_ = value["ServiceType"].asString();
-	if(!value["DeletionProtection"].isNull())
-		deletionProtection_ = value["DeletionProtection"].asString();
+	if(!value["EnableKms"].isNull())
+		enableKms_ = value["EnableKms"].asString() == "true";
+	if(!value["DiskUsage"].isNull())
+		diskUsage_ = value["DiskUsage"].asString();
 	if(!value["DiskCategory"].isNull())
 		diskCategory_ = value["DiskCategory"].asString();
 	if(!value["ColdStorage"].isNull())
 		coldStorage_ = std::stoi(value["ColdStorage"].asString());
-	if(!value["EnableBDS"].isNull())
-		enableBDS_ = value["EnableBDS"].asString() == "true";
+	if(!value["ExpiredMilliseconds"].isNull())
+		expiredMilliseconds_ = std::stol(value["ExpiredMilliseconds"].asString());
+	if(!value["EngineType"].isNull())
+		engineType_ = std::stoi(value["EngineType"].asString());
+	if(!value["ExpireTime"].isNull())
+		expireTime_ = value["ExpireTime"].asString();
+	if(!value["AutoRenew"].isNull())
+		autoRenew_ = value["AutoRenew"].asString() == "true";
+	if(!value["DeletionProtection"].isNull())
+		deletionProtection_ = value["DeletionProtection"].asString();
+	if(!value["InstanceStorage"].isNull())
+		instanceStorage_ = value["InstanceStorage"].asString();
 	if(!value["AliUid"].isNull())
 		aliUid_ = std::stol(value["AliUid"].asString());
+	if(!value["InstanceId"].isNull())
+		instanceId_ = value["InstanceId"].asString();
+	if(!value["RegionId"].isNull())
+		regionId_ = value["RegionId"].asString();
 	if(!value["EnableFS"].isNull())
 		enableFS_ = value["EnableFS"].asString() == "true";
+	if(!value["CreateMilliseconds"].isNull())
+		createMilliseconds_ = std::stol(value["CreateMilliseconds"].asString());
+	if(!value["InstanceAlias"].isNull())
+		instanceAlias_ = value["InstanceAlias"].asString();
+	if(!value["EnableBDS"].isNull())
+		enableBDS_ = value["EnableBDS"].asString() == "true";
 	if(!value["EnablePhoenix"].isNull())
 		enablePhoenix_ = value["EnablePhoenix"].asString() == "true";
-	if(!value["DiskUsage"].isNull())
-		diskUsage_ = value["DiskUsage"].asString();
 	if(!value["DiskThreshold"].isNull())
 		diskThreshold_ = value["DiskThreshold"].asString();
-	if(!value["CreateMilliseconds"].isNull())
-		createMilliseconds_ = std::stol(value["CreateMilliseconds"].asString());
-	if(!value["ExpiredMilliseconds"].isNull())
-		expiredMilliseconds_ = std::stol(value["ExpiredMilliseconds"].asString());
-	if(!value["EnableKms"].isNull())
-		enableKms_ = value["EnableKms"].asString() == "true";
+	if(!value["ZoneId"].isNull())
+		zoneId_ = value["ZoneId"].asString();
+	if(!value["InstanceStatus"].isNull())
+		instanceStatus_ = value["InstanceStatus"].asString();
+	if(!value["EnableCompute"].isNull())
+		enableCompute_ = value["EnableCompute"].asString() == "true";
+	if(!value["EnableSSL"].isNull())
+		enableSSL_ = value["EnableSSL"].asString() == "true";
 
 }
 
@@ -149,14 +155,9 @@ bool GetLindormInstanceResult::getEnableFS()const
 	return enableFS_;
 }
 
-std::string GetLindormInstanceResult::getInstanceAlias()const
-{
-	return instanceAlias_;
-}
-
-std::string GetLindormInstanceResult::getInstanceStatus()const
+bool GetLindormInstanceResult::getEnableCompute()const
 {
-	return instanceStatus_;
+	return enableCompute_;
 }
 
 std::string GetLindormInstanceResult::getNetworkType()const
@@ -169,6 +170,16 @@ std::string GetLindormInstanceResult::getServiceType()const
 	return serviceType_;
 }
 
+std::string GetLindormInstanceResult::getInstanceAlias()const
+{
+	return instanceAlias_;
+}
+
+std::string GetLindormInstanceResult::getInstanceStatus()const
+{
+	return instanceStatus_;
+}
+
 int GetLindormInstanceResult::getEngineType()const
 {
 	return engineType_;
@@ -179,6 +190,11 @@ long GetLindormInstanceResult::getCreateMilliseconds()const
 	return createMilliseconds_;
 }
 
+bool GetLindormInstanceResult::getEnableSSL()const
+{
+	return enableSSL_;
+}
+
 std::string GetLindormInstanceResult::getInstanceStorage()const
 {
 	return instanceStorage_;
@@ -189,14 +205,14 @@ std::string GetLindormInstanceResult::getZoneId()const
 	return zoneId_;
 }
 
-std::string GetLindormInstanceResult::getInstanceId()const
+bool GetLindormInstanceResult::getEnableKms()const
 {
-	return instanceId_;
+	return enableKms_;
 }
 
-bool GetLindormInstanceResult::getEnableKms()const
+std::string GetLindormInstanceResult::getInstanceId()const
 {
-	return enableKms_;
+	return instanceId_;
 }
 
 std::string GetLindormInstanceResult::getCreateTime()const

+ 117 - 0
hitsdb/src/model/GetLindormSSLCertUrlRequest.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 <alibabacloud/hitsdb/model/GetLindormSSLCertUrlRequest.h>
+
+using AlibabaCloud::Hitsdb::Model::GetLindormSSLCertUrlRequest;
+
+GetLindormSSLCertUrlRequest::GetLindormSSLCertUrlRequest() :
+	RpcServiceRequest("hitsdb", "2020-06-15", "GetLindormSSLCertUrl")
+{
+	setMethod(HttpRequest::Method::Post);
+}
+
+GetLindormSSLCertUrlRequest::~GetLindormSSLCertUrlRequest()
+{}
+
+long GetLindormSSLCertUrlRequest::getResourceOwnerId()const
+{
+	return resourceOwnerId_;
+}
+
+void GetLindormSSLCertUrlRequest::setResourceOwnerId(long resourceOwnerId)
+{
+	resourceOwnerId_ = resourceOwnerId;
+	setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
+}
+
+std::string GetLindormSSLCertUrlRequest::getAccessKeyId()const
+{
+	return accessKeyId_;
+}
+
+void GetLindormSSLCertUrlRequest::setAccessKeyId(const std::string& accessKeyId)
+{
+	accessKeyId_ = accessKeyId;
+	setParameter("AccessKeyId", accessKeyId);
+}
+
+std::string GetLindormSSLCertUrlRequest::getSecurityToken()const
+{
+	return securityToken_;
+}
+
+void GetLindormSSLCertUrlRequest::setSecurityToken(const std::string& securityToken)
+{
+	securityToken_ = securityToken;
+	setParameter("SecurityToken", securityToken);
+}
+
+std::string GetLindormSSLCertUrlRequest::getRegionId()const
+{
+	return regionId_;
+}
+
+void GetLindormSSLCertUrlRequest::setRegionId(const std::string& regionId)
+{
+	regionId_ = regionId;
+	setParameter("RegionId", regionId);
+}
+
+std::string GetLindormSSLCertUrlRequest::getResourceOwnerAccount()const
+{
+	return resourceOwnerAccount_;
+}
+
+void GetLindormSSLCertUrlRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
+{
+	resourceOwnerAccount_ = resourceOwnerAccount;
+	setParameter("ResourceOwnerAccount", resourceOwnerAccount);
+}
+
+std::string GetLindormSSLCertUrlRequest::getOwnerAccount()const
+{
+	return ownerAccount_;
+}
+
+void GetLindormSSLCertUrlRequest::setOwnerAccount(const std::string& ownerAccount)
+{
+	ownerAccount_ = ownerAccount;
+	setParameter("OwnerAccount", ownerAccount);
+}
+
+long GetLindormSSLCertUrlRequest::getOwnerId()const
+{
+	return ownerId_;
+}
+
+void GetLindormSSLCertUrlRequest::setOwnerId(long ownerId)
+{
+	ownerId_ = ownerId;
+	setParameter("OwnerId", std::to_string(ownerId));
+}
+
+std::string GetLindormSSLCertUrlRequest::getInstanceId()const
+{
+	return instanceId_;
+}
+
+void GetLindormSSLCertUrlRequest::setInstanceId(const std::string& instanceId)
+{
+	instanceId_ = instanceId;
+	setParameter("InstanceId", instanceId);
+}
+

+ 58 - 0
hitsdb/src/model/GetLindormSSLCertUrlResult.cc

@@ -0,0 +1,58 @@
+/*
+ * Copyright 2009-2017 Alibaba Cloud All rights reserved.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <alibabacloud/hitsdb/model/GetLindormSSLCertUrlResult.h>
+#include <json/json.h>
+
+using namespace AlibabaCloud::Hitsdb;
+using namespace AlibabaCloud::Hitsdb::Model;
+
+GetLindormSSLCertUrlResult::GetLindormSSLCertUrlResult() :
+	ServiceResult()
+{}
+
+GetLindormSSLCertUrlResult::GetLindormSSLCertUrlResult(const std::string &payload) :
+	ServiceResult()
+{
+	parse(payload);
+}
+
+GetLindormSSLCertUrlResult::~GetLindormSSLCertUrlResult()
+{}
+
+void GetLindormSSLCertUrlResult::parse(const std::string &payload)
+{
+	Json::Reader reader;
+	Json::Value value;
+	reader.parse(payload, value);
+	setRequestId(value["RequestId"].asString());
+	if(!value["CertUrl"].isNull())
+		certUrl_ = value["CertUrl"].asString();
+	if(!value["CertExpiresAt"].isNull())
+		certExpiresAt_ = std::stol(value["CertExpiresAt"].asString());
+
+}
+
+long GetLindormSSLCertUrlResult::getCertExpiresAt()const
+{
+	return certExpiresAt_;
+}
+
+std::string GetLindormSSLCertUrlResult::getCertUrl()const
+{
+	return certUrl_;
+}
+