Support certFilter for getUserCertificateDetail API.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user