Просмотр исходного кода

由颍川发起的CSB SDK自动发布, 版本号:1.5.1

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 8 лет назад
Родитель
Сommit
7f8b47c92f

+ 7 - 0
CHANGELOG

@@ -1,3 +1,10 @@
+2018-04-10 Version: 1.5.1
+1, publish Project API.
+2, publish Service API.
+3, publish Service order API.
+4, publish Credential API.
+5, publish CAS API.
+
 2018-04-08 Version: 1.5.0
 1, Add voice asynchronous scan interface.
 

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.5.0
+1.5.1

+ 3 - 3
csb/include/alibabacloud/csb/model/FindApprovalOrderListRequest.h

@@ -43,10 +43,10 @@ namespace AlibabaCloud
 				void setAlias(const std::string& alias);
 				std::string getServiceName()const;
 				void setServiceName(const std::string& serviceName);
-				int getPageNum()const;
-				void setPageNum(int pageNum);
 				long getServiceId()const;
 				void setServiceId(long serviceId);
+				int getPageNum()const;
+				void setPageNum(int pageNum);
 				bool getOnlyPending()const;
 				void setOnlyPending(bool onlyPending);
 
@@ -55,8 +55,8 @@ namespace AlibabaCloud
 				std::string regionId_;
 				std::string alias_;
 				std::string serviceName_;
-				int pageNum_;
 				long serviceId_;
+				int pageNum_;
 				bool onlyPending_;
 
 			};

+ 3 - 3
csb/include/alibabacloud/csb/model/FindApproveServiceListRequest.h

@@ -35,10 +35,10 @@ namespace AlibabaCloud
 				FindApproveServiceListRequest();
 				~FindApproveServiceListRequest();
 
-				std::string getProjectName()const;
-				void setProjectName(const std::string& projectName);
 				std::string getApproveLevel()const;
 				void setApproveLevel(const std::string& approveLevel);
+				std::string getProjectName()const;
+				void setProjectName(const std::string& projectName);
 				bool getShowDelService()const;
 				void setShowDelService(bool showDelService);
 				long getCsbId()const;
@@ -51,8 +51,8 @@ namespace AlibabaCloud
 				void setServiceName(const std::string& serviceName);
 
             private:
-				std::string projectName_;
 				std::string approveLevel_;
+				std::string projectName_;
 				bool showDelService_;
 				long csbId_;
 				std::string regionId_;

+ 3 - 3
csb/include/alibabacloud/csb/model/FindServiceListRequest.h

@@ -37,10 +37,10 @@ namespace AlibabaCloud
 
 				std::string getProjectName()const;
 				void setProjectName(const std::string& projectName);
-				bool getShowDelService()const;
-				void setShowDelService(bool showDelService);
 				int getCasShowType()const;
 				void setCasShowType(int casShowType);
+				bool getShowDelService()const;
+				void setShowDelService(bool showDelService);
 				long getCsbId()const;
 				void setCsbId(long csbId);
 				std::string getRegionId()const;
@@ -54,8 +54,8 @@ namespace AlibabaCloud
 
             private:
 				std::string projectName_;
-				bool showDelService_;
 				int casShowType_;
+				bool showDelService_;
 				long csbId_;
 				std::string regionId_;
 				std::string alias_;

+ 1 - 0
csb/include/alibabacloud/csb/model/FindServiceListResult.h

@@ -56,6 +56,7 @@ namespace AlibabaCloud
 						std::string serviceVersion;
 						std::string interfaceName;
 						long id;
+						std::string casTargets;
 					};
 					int currentPage;
 					int pageNumber;

+ 10 - 10
csb/src/model/FindApprovalOrderListRequest.cc

@@ -69,26 +69,26 @@ void FindApprovalOrderListRequest::setServiceName(const std::string& serviceName
 	setParameter("ServiceName", serviceName);
 }
 
-int FindApprovalOrderListRequest::getPageNum()const
+long FindApprovalOrderListRequest::getServiceId()const
 {
-	return pageNum_;
+	return serviceId_;
 }
 
-void FindApprovalOrderListRequest::setPageNum(int pageNum)
+void FindApprovalOrderListRequest::setServiceId(long serviceId)
 {
-	pageNum_ = pageNum;
-	setParameter("PageNum", std::to_string(pageNum));
+	serviceId_ = serviceId;
+	setParameter("ServiceId", std::to_string(serviceId));
 }
 
-long FindApprovalOrderListRequest::getServiceId()const
+int FindApprovalOrderListRequest::getPageNum()const
 {
-	return serviceId_;
+	return pageNum_;
 }
 
-void FindApprovalOrderListRequest::setServiceId(long serviceId)
+void FindApprovalOrderListRequest::setPageNum(int pageNum)
 {
-	serviceId_ = serviceId;
-	setParameter("ServiceId", std::to_string(serviceId));
+	pageNum_ = pageNum;
+	setParameter("PageNum", std::to_string(pageNum));
 }
 
 bool FindApprovalOrderListRequest::getOnlyPending()const

+ 10 - 10
csb/src/model/FindApproveServiceListRequest.cc

@@ -25,26 +25,26 @@ FindApproveServiceListRequest::FindApproveServiceListRequest() :
 FindApproveServiceListRequest::~FindApproveServiceListRequest()
 {}
 
-std::string FindApproveServiceListRequest::getProjectName()const
+std::string FindApproveServiceListRequest::getApproveLevel()const
 {
-	return projectName_;
+	return approveLevel_;
 }
 
-void FindApproveServiceListRequest::setProjectName(const std::string& projectName)
+void FindApproveServiceListRequest::setApproveLevel(const std::string& approveLevel)
 {
-	projectName_ = projectName;
-	setParameter("ProjectName", projectName);
+	approveLevel_ = approveLevel;
+	setParameter("ApproveLevel", approveLevel);
 }
 
-std::string FindApproveServiceListRequest::getApproveLevel()const
+std::string FindApproveServiceListRequest::getProjectName()const
 {
-	return approveLevel_;
+	return projectName_;
 }
 
-void FindApproveServiceListRequest::setApproveLevel(const std::string& approveLevel)
+void FindApproveServiceListRequest::setProjectName(const std::string& projectName)
 {
-	approveLevel_ = approveLevel;
-	setParameter("ApproveLevel", approveLevel);
+	projectName_ = projectName;
+	setParameter("ProjectName", projectName);
 }
 
 bool FindApproveServiceListRequest::getShowDelService()const

+ 10 - 10
csb/src/model/FindServiceListRequest.cc

@@ -36,26 +36,26 @@ void FindServiceListRequest::setProjectName(const std::string& projectName)
 	setParameter("ProjectName", projectName);
 }
 
-bool FindServiceListRequest::getShowDelService()const
+int FindServiceListRequest::getCasShowType()const
 {
-	return showDelService_;
+	return casShowType_;
 }
 
-void FindServiceListRequest::setShowDelService(bool showDelService)
+void FindServiceListRequest::setCasShowType(int casShowType)
 {
-	showDelService_ = showDelService;
-	setParameter("ShowDelService", std::to_string(showDelService));
+	casShowType_ = casShowType;
+	setParameter("CasShowType", std::to_string(casShowType));
 }
 
-int FindServiceListRequest::getCasShowType()const
+bool FindServiceListRequest::getShowDelService()const
 {
-	return casShowType_;
+	return showDelService_;
 }
 
-void FindServiceListRequest::setCasShowType(int casShowType)
+void FindServiceListRequest::setShowDelService(bool showDelService)
 {
-	casShowType_ = casShowType;
-	setParameter("CasShowType", std::to_string(casShowType));
+	showDelService_ = showDelService;
+	setParameter("ShowDelService", std::to_string(showDelService));
 }
 
 long FindServiceListRequest::getCsbId()const

+ 2 - 0
csb/src/model/FindServiceListResult.cc

@@ -91,6 +91,8 @@ void FindServiceListResult::parse(const std::string &payload)
 			serviceObject.status = std::stoi(value["Status"].asString());
 		if(!value["UserId"].isNull())
 			serviceObject.userId = value["UserId"].asString();
+		if(!value["CasTargets"].isNull())
+			serviceObject.casTargets = value["CasTargets"].asString();
 		data_.serviceList.push_back(serviceObject);
 	}
 	if(!value["Message"].isNull())