Pārlūkot izejas kodu

Fixed bugs for PauseEventStreaming and DeleteEventStreaming

sdk-team 2 gadi atpakaļ
vecāks
revīzija
c5710477dc

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1876
+1.36.1877

+ 2 - 2
eventbridge/include/alibabacloud/eventbridge/model/DeleteEventStreamingResult.h

@@ -39,7 +39,7 @@ namespace AlibabaCloud
 				~DeleteEventStreamingResult();
 				std::string getMessage()const;
 				bool getData()const;
-				bool getCode()const;
+				std::string getCode()const;
 				bool getSuccess()const;
 
 			protected:
@@ -47,7 +47,7 @@ namespace AlibabaCloud
 			private:
 				std::string message_;
 				bool data_;
-				bool code_;
+				std::string code_;
 				bool success_;
 
 			};

+ 2 - 2
eventbridge/include/alibabacloud/eventbridge/model/PauseEventStreamingResult.h

@@ -39,7 +39,7 @@ namespace AlibabaCloud
 				~PauseEventStreamingResult();
 				std::string getMessage()const;
 				bool getData()const;
-				bool getCode()const;
+				std::string getCode()const;
 				bool getSuccess()const;
 
 			protected:
@@ -47,7 +47,7 @@ namespace AlibabaCloud
 			private:
 				std::string message_;
 				bool data_;
-				bool code_;
+				std::string code_;
 				bool success_;
 
 			};

+ 2 - 2
eventbridge/src/model/DeleteEventStreamingResult.cc

@@ -44,7 +44,7 @@ void DeleteEventStreamingResult::parse(const std::string &payload)
 	if(!value["Data"].isNull())
 		data_ = value["Data"].asString() == "true";
 	if(!value["Code"].isNull())
-		code_ = value["Code"].asString() == "true";
+		code_ = value["Code"].asString();
 	if(!value["Success"].isNull())
 		success_ = value["Success"].asString() == "true";
 
@@ -60,7 +60,7 @@ bool DeleteEventStreamingResult::getData()const
 	return data_;
 }
 
-bool DeleteEventStreamingResult::getCode()const
+std::string DeleteEventStreamingResult::getCode()const
 {
 	return code_;
 }

+ 2 - 2
eventbridge/src/model/PauseEventStreamingResult.cc

@@ -44,7 +44,7 @@ void PauseEventStreamingResult::parse(const std::string &payload)
 	if(!value["Data"].isNull())
 		data_ = value["Data"].asString() == "true";
 	if(!value["Code"].isNull())
-		code_ = value["Code"].asString() == "true";
+		code_ = value["Code"].asString();
 	if(!value["Success"].isNull())
 		success_ = value["Success"].asString() == "true";
 
@@ -60,7 +60,7 @@ bool PauseEventStreamingResult::getData()const
 	return data_;
 }
 
-bool PauseEventStreamingResult::getCode()const
+std::string PauseEventStreamingResult::getCode()const
 {
 	return code_;
 }