Fix some bugs.

This commit is contained in:
sdk-team
2023-12-19 09:56:12 +00:00
parent 1884db41cf
commit 377504fe8a
6 changed files with 19 additions and 4 deletions

View File

@@ -1 +1 @@
1.36.1830
1.36.1831

View File

@@ -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_;

View File

@@ -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;

View File

@@ -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()

View File

@@ -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_;
}

View File

@@ -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())