Fix some bugs.
This commit is contained in:
@@ -34,6 +34,8 @@ public:
|
||||
void setSourceIp(const std::string &sourceIp);
|
||||
long getWarehouseId() const;
|
||||
void setWarehouseId(long warehouseId);
|
||||
std::string getCertType() const;
|
||||
void setCertType(const std::string &certType);
|
||||
std::string getSourceType() const;
|
||||
void setSourceType(const std::string &sourceType);
|
||||
std::string getKeyWord() const;
|
||||
@@ -48,6 +50,7 @@ public:
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
long warehouseId_;
|
||||
std::string certType_;
|
||||
std::string sourceType_;
|
||||
std::string keyWord_;
|
||||
long showSize_;
|
||||
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
std::string issuer;
|
||||
bool existPrivateKey;
|
||||
std::string sourceType;
|
||||
std::string certType;
|
||||
std::string whInstanceId;
|
||||
std::string commonName;
|
||||
long beforeDate;
|
||||
|
||||
@@ -31,21 +31,21 @@ CasClient::CasClient(const Credentials &credentials, const ClientConfiguration &
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cas");
|
||||
}
|
||||
|
||||
CasClient::CasClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cas");
|
||||
}
|
||||
|
||||
CasClient::CasClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cas");
|
||||
}
|
||||
|
||||
CasClient::~CasClient()
|
||||
|
||||
@@ -43,6 +43,15 @@ void ListCertRequest::setWarehouseId(long warehouseId) {
|
||||
setParameter(std::string("WarehouseId"), std::to_string(warehouseId));
|
||||
}
|
||||
|
||||
std::string ListCertRequest::getCertType() const {
|
||||
return certType_;
|
||||
}
|
||||
|
||||
void ListCertRequest::setCertType(const std::string &certType) {
|
||||
certType_ = certType;
|
||||
setParameter(std::string("CertType"), certType);
|
||||
}
|
||||
|
||||
std::string ListCertRequest::getSourceType() const {
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
@@ -53,6 +53,8 @@ void ListCertResult::parse(const std::string &payload)
|
||||
certListObject.status = valueCertListCert["Status"].asString();
|
||||
if(!valueCertListCert["SourceType"].isNull())
|
||||
certListObject.sourceType = valueCertListCert["SourceType"].asString();
|
||||
if(!valueCertListCert["CertType"].isNull())
|
||||
certListObject.certType = valueCertListCert["CertType"].asString();
|
||||
if(!valueCertListCert["CommonName"].isNull())
|
||||
certListObject.commonName = valueCertListCert["CommonName"].asString();
|
||||
if(!valueCertListCert["BeforeDate"].isNull())
|
||||
|
||||
Reference in New Issue
Block a user