From 377504fe8a09ad45cf3da04377edd488e8b577fd Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 19 Dec 2023 09:56:12 +0000 Subject: [PATCH] Fix some bugs. --- VERSION | 2 +- cas/include/alibabacloud/cas/model/ListCertRequest.h | 3 +++ cas/include/alibabacloud/cas/model/ListCertResult.h | 1 + cas/src/CasClient.cc | 6 +++--- cas/src/model/ListCertRequest.cc | 9 +++++++++ cas/src/model/ListCertResult.cc | 2 ++ 6 files changed, 19 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index ae3b3a939..9ad8de798 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1830 \ No newline at end of file +1.36.1831 \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/ListCertRequest.h b/cas/include/alibabacloud/cas/model/ListCertRequest.h index cd340bfee..366f7b65c 100644 --- a/cas/include/alibabacloud/cas/model/ListCertRequest.h +++ b/cas/include/alibabacloud/cas/model/ListCertRequest.h @@ -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_; diff --git a/cas/include/alibabacloud/cas/model/ListCertResult.h b/cas/include/alibabacloud/cas/model/ListCertResult.h index 9da5bf8be..019fef2f1 100644 --- a/cas/include/alibabacloud/cas/model/ListCertResult.h +++ b/cas/include/alibabacloud/cas/model/ListCertResult.h @@ -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; diff --git a/cas/src/CasClient.cc b/cas/src/CasClient.cc index 269202edd..49c02a1df 100644 --- a/cas/src/CasClient.cc +++ b/cas/src/CasClient.cc @@ -31,21 +31,21 @@ CasClient::CasClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cas"); } CasClient::CasClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) { auto locationClient = std::make_shared(credentialsProvider, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(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(accessKeyId, accessKeySecret), configuration) { auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "cas"); } CasClient::~CasClient() diff --git a/cas/src/model/ListCertRequest.cc b/cas/src/model/ListCertRequest.cc index c984dac27..4b6190226 100644 --- a/cas/src/model/ListCertRequest.cc +++ b/cas/src/model/ListCertRequest.cc @@ -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_; } diff --git a/cas/src/model/ListCertResult.cc b/cas/src/model/ListCertResult.cc index beac6bd90..37080c9f8 100644 --- a/cas/src/model/ListCertResult.cc +++ b/cas/src/model/ListCertResult.cc @@ -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())