Sfoglia il codice sorgente

Support certFilter for getUserCertificateDetail API.

sdk-team 3 anni fa
parent
commit
5ca855fea0

+ 1 - 1
VERSION

@@ -1 +1 @@
-1.36.1534
+1.36.1535

+ 3 - 0
cas/include/alibabacloud/cas/model/GetUserCertificateDetailRequest.h

@@ -34,10 +34,13 @@ public:
 	void setCertId(long certId);
 	std::string getSourceIp() const;
 	void setSourceIp(const std::string &sourceIp);
+	bool getCertFilter() const;
+	void setCertFilter(bool certFilter);
 
 private:
 	long certId_;
 	std::string sourceIp_;
+	bool certFilter_;
 };
 } // namespace Model
 } // namespace Cas

+ 2 - 0
cas/include/alibabacloud/cas/model/GetUserCertificateDetailResult.h

@@ -47,6 +47,7 @@ namespace AlibabaCloud
 				std::string getCity()const;
 				long getOrderId()const;
 				std::string getEndDate()const;
+				std::string getAlgorithm()const;
 				std::string getProvince()const;
 				std::string getName()const;
 				std::string getCommon()const;
@@ -73,6 +74,7 @@ namespace AlibabaCloud
 				std::string city_;
 				long orderId_;
 				std::string endDate_;
+				std::string algorithm_;
 				std::string province_;
 				std::string name_;
 				std::string common_;

+ 9 - 0
cas/src/model/GetUserCertificateDetailRequest.cc

@@ -43,3 +43,12 @@ void GetUserCertificateDetailRequest::setSourceIp(const std::string &sourceIp) {
   setParameter(std::string("SourceIp"), sourceIp);
 }
 
+bool GetUserCertificateDetailRequest::getCertFilter() const {
+  return certFilter_;
+}
+
+void GetUserCertificateDetailRequest::setCertFilter(bool certFilter) {
+  certFilter_ = certFilter;
+  setParameter(std::string("CertFilter"), certFilter ? "true" : "false");
+}
+

+ 7 - 0
cas/src/model/GetUserCertificateDetailResult.cc

@@ -83,6 +83,8 @@ void GetUserCertificateDetailResult::parse(const std::string &payload)
 		orderId_ = std::stol(value["OrderId"].asString());
 	if(!value["ResourceGroupId"].isNull())
 		resourceGroupId_ = value["ResourceGroupId"].asString();
+	if(!value["Algorithm"].isNull())
+		algorithm_ = value["Algorithm"].asString();
 
 }
 
@@ -136,6 +138,11 @@ std::string GetUserCertificateDetailResult::getEndDate()const
 	return endDate_;
 }
 
+std::string GetUserCertificateDetailResult::getAlgorithm()const
+{
+	return algorithm_;
+}
+
 std::string GetUserCertificateDetailResult::getProvince()const
 {
 	return province_;