diff --git a/VERSION b/VERSION index 722eb3afd..b121dff48 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.2106 \ No newline at end of file +1.36.2107 \ No newline at end of file diff --git a/cas/CMakeLists.txt b/cas/CMakeLists.txt index bb23c1bbf..6d4e1fabe 100644 --- a/cas/CMakeLists.txt +++ b/cas/CMakeLists.txt @@ -21,105 +21,101 @@ set(cas_public_header include/alibabacloud/cas/CasExport.h ) set(cas_public_header_model - include/alibabacloud/cas/model/CancelCertificateForPackageRequestRequest.h - include/alibabacloud/cas/model/CancelCertificateForPackageRequestResult.h - include/alibabacloud/cas/model/CancelOrderRequestRequest.h - include/alibabacloud/cas/model/CancelOrderRequestResult.h - include/alibabacloud/cas/model/CreateCertificateForPackageRequestRequest.h - include/alibabacloud/cas/model/CreateCertificateForPackageRequestResult.h - include/alibabacloud/cas/model/CreateCertificateRequestRequest.h - include/alibabacloud/cas/model/CreateCertificateRequestResult.h - include/alibabacloud/cas/model/CreateCertificateWithCsrRequestRequest.h - include/alibabacloud/cas/model/CreateCertificateWithCsrRequestResult.h - include/alibabacloud/cas/model/CreateWHClientCertificateRequest.h - include/alibabacloud/cas/model/CreateWHClientCertificateResult.h - include/alibabacloud/cas/model/DecryptRequest.h - include/alibabacloud/cas/model/DecryptResult.h - include/alibabacloud/cas/model/DeleteCertificateRequestRequest.h - include/alibabacloud/cas/model/DeleteCertificateRequestResult.h - include/alibabacloud/cas/model/DeletePCACertRequest.h - include/alibabacloud/cas/model/DeletePCACertResult.h - include/alibabacloud/cas/model/DeleteUserCertificateRequest.h - include/alibabacloud/cas/model/DeleteUserCertificateResult.h - include/alibabacloud/cas/model/DescribeCertificateStateRequest.h - include/alibabacloud/cas/model/DescribeCertificateStateResult.h - include/alibabacloud/cas/model/DescribePackageStateRequest.h - include/alibabacloud/cas/model/DescribePackageStateResult.h - include/alibabacloud/cas/model/EncryptRequest.h - include/alibabacloud/cas/model/EncryptResult.h - include/alibabacloud/cas/model/GetCertWarehouseQuotaRequest.h - include/alibabacloud/cas/model/GetCertWarehouseQuotaResult.h - include/alibabacloud/cas/model/GetUserCertificateDetailRequest.h - include/alibabacloud/cas/model/GetUserCertificateDetailResult.h + include/alibabacloud/cas/model/CreateClientCertificateRequest.h + include/alibabacloud/cas/model/CreateClientCertificateResult.h + include/alibabacloud/cas/model/CreateClientCertificateWithCsrRequest.h + include/alibabacloud/cas/model/CreateClientCertificateWithCsrResult.h + include/alibabacloud/cas/model/CreateCustomCertificateRequest.h + include/alibabacloud/cas/model/CreateCustomCertificateResult.h + include/alibabacloud/cas/model/CreateExternalCACertificateRequest.h + include/alibabacloud/cas/model/CreateExternalCACertificateResult.h + include/alibabacloud/cas/model/CreateRevokeClientCertificateRequest.h + include/alibabacloud/cas/model/CreateRevokeClientCertificateResult.h + include/alibabacloud/cas/model/CreateRootCACertificateRequest.h + include/alibabacloud/cas/model/CreateRootCACertificateResult.h + include/alibabacloud/cas/model/CreateServerCertificateRequest.h + include/alibabacloud/cas/model/CreateServerCertificateResult.h + include/alibabacloud/cas/model/CreateServerCertificateWithCsrRequest.h + include/alibabacloud/cas/model/CreateServerCertificateWithCsrResult.h + include/alibabacloud/cas/model/CreateSubCACertificateRequest.h + include/alibabacloud/cas/model/CreateSubCACertificateResult.h + include/alibabacloud/cas/model/DeleteClientCertificateRequest.h + include/alibabacloud/cas/model/DeleteClientCertificateResult.h + include/alibabacloud/cas/model/DescribeCACertificateRequest.h + include/alibabacloud/cas/model/DescribeCACertificateResult.h + include/alibabacloud/cas/model/DescribeCACertificateCountRequest.h + include/alibabacloud/cas/model/DescribeCACertificateCountResult.h + include/alibabacloud/cas/model/DescribeCACertificateListRequest.h + include/alibabacloud/cas/model/DescribeCACertificateListResult.h + include/alibabacloud/cas/model/DescribeCertificatePrivateKeyRequest.h + include/alibabacloud/cas/model/DescribeCertificatePrivateKeyResult.h + include/alibabacloud/cas/model/DescribeClientCertificateRequest.h + include/alibabacloud/cas/model/DescribeClientCertificateResult.h + include/alibabacloud/cas/model/DescribeClientCertificateStatusRequest.h + include/alibabacloud/cas/model/DescribeClientCertificateStatusResult.h + include/alibabacloud/cas/model/GetCAInstanceStatusRequest.h + include/alibabacloud/cas/model/GetCAInstanceStatusResult.h include/alibabacloud/cas/model/ListCertRequest.h include/alibabacloud/cas/model/ListCertResult.h - include/alibabacloud/cas/model/ListCertWarehouseRequest.h - include/alibabacloud/cas/model/ListCertWarehouseResult.h - include/alibabacloud/cas/model/ListUserCertificateOrderRequest.h - include/alibabacloud/cas/model/ListUserCertificateOrderResult.h - include/alibabacloud/cas/model/RenewCertificateOrderForPackageRequestRequest.h - include/alibabacloud/cas/model/RenewCertificateOrderForPackageRequestResult.h - include/alibabacloud/cas/model/RevokeWHClientCertificateRequest.h - include/alibabacloud/cas/model/RevokeWHClientCertificateResult.h - include/alibabacloud/cas/model/SignRequest.h - include/alibabacloud/cas/model/SignResult.h - include/alibabacloud/cas/model/UploadPCACertRequest.h - include/alibabacloud/cas/model/UploadPCACertResult.h - include/alibabacloud/cas/model/UploadUserCertificateRequest.h - include/alibabacloud/cas/model/UploadUserCertificateResult.h - include/alibabacloud/cas/model/VerifyRequest.h - include/alibabacloud/cas/model/VerifyResult.h ) + include/alibabacloud/cas/model/ListClientCertificateRequest.h + include/alibabacloud/cas/model/ListClientCertificateResult.h + include/alibabacloud/cas/model/ListPcaCaCertificateRequest.h + include/alibabacloud/cas/model/ListPcaCaCertificateResult.h + include/alibabacloud/cas/model/ListRevokeCertificateRequest.h + include/alibabacloud/cas/model/ListRevokeCertificateResult.h + include/alibabacloud/cas/model/UpdateCACertificateStatusRequest.h + include/alibabacloud/cas/model/UpdateCACertificateStatusResult.h + include/alibabacloud/cas/model/UploadPcaCertToCasRequest.h + include/alibabacloud/cas/model/UploadPcaCertToCasResult.h ) set(cas_src src/CasClient.cc - src/model/CancelCertificateForPackageRequestRequest.cc - src/model/CancelCertificateForPackageRequestResult.cc - src/model/CancelOrderRequestRequest.cc - src/model/CancelOrderRequestResult.cc - src/model/CreateCertificateForPackageRequestRequest.cc - src/model/CreateCertificateForPackageRequestResult.cc - src/model/CreateCertificateRequestRequest.cc - src/model/CreateCertificateRequestResult.cc - src/model/CreateCertificateWithCsrRequestRequest.cc - src/model/CreateCertificateWithCsrRequestResult.cc - src/model/CreateWHClientCertificateRequest.cc - src/model/CreateWHClientCertificateResult.cc - src/model/DecryptRequest.cc - src/model/DecryptResult.cc - src/model/DeleteCertificateRequestRequest.cc - src/model/DeleteCertificateRequestResult.cc - src/model/DeletePCACertRequest.cc - src/model/DeletePCACertResult.cc - src/model/DeleteUserCertificateRequest.cc - src/model/DeleteUserCertificateResult.cc - src/model/DescribeCertificateStateRequest.cc - src/model/DescribeCertificateStateResult.cc - src/model/DescribePackageStateRequest.cc - src/model/DescribePackageStateResult.cc - src/model/EncryptRequest.cc - src/model/EncryptResult.cc - src/model/GetCertWarehouseQuotaRequest.cc - src/model/GetCertWarehouseQuotaResult.cc - src/model/GetUserCertificateDetailRequest.cc - src/model/GetUserCertificateDetailResult.cc + src/model/CreateClientCertificateRequest.cc + src/model/CreateClientCertificateResult.cc + src/model/CreateClientCertificateWithCsrRequest.cc + src/model/CreateClientCertificateWithCsrResult.cc + src/model/CreateCustomCertificateRequest.cc + src/model/CreateCustomCertificateResult.cc + src/model/CreateExternalCACertificateRequest.cc + src/model/CreateExternalCACertificateResult.cc + src/model/CreateRevokeClientCertificateRequest.cc + src/model/CreateRevokeClientCertificateResult.cc + src/model/CreateRootCACertificateRequest.cc + src/model/CreateRootCACertificateResult.cc + src/model/CreateServerCertificateRequest.cc + src/model/CreateServerCertificateResult.cc + src/model/CreateServerCertificateWithCsrRequest.cc + src/model/CreateServerCertificateWithCsrResult.cc + src/model/CreateSubCACertificateRequest.cc + src/model/CreateSubCACertificateResult.cc + src/model/DeleteClientCertificateRequest.cc + src/model/DeleteClientCertificateResult.cc + src/model/DescribeCACertificateRequest.cc + src/model/DescribeCACertificateResult.cc + src/model/DescribeCACertificateCountRequest.cc + src/model/DescribeCACertificateCountResult.cc + src/model/DescribeCACertificateListRequest.cc + src/model/DescribeCACertificateListResult.cc + src/model/DescribeCertificatePrivateKeyRequest.cc + src/model/DescribeCertificatePrivateKeyResult.cc + src/model/DescribeClientCertificateRequest.cc + src/model/DescribeClientCertificateResult.cc + src/model/DescribeClientCertificateStatusRequest.cc + src/model/DescribeClientCertificateStatusResult.cc + src/model/GetCAInstanceStatusRequest.cc + src/model/GetCAInstanceStatusResult.cc src/model/ListCertRequest.cc src/model/ListCertResult.cc - src/model/ListCertWarehouseRequest.cc - src/model/ListCertWarehouseResult.cc - src/model/ListUserCertificateOrderRequest.cc - src/model/ListUserCertificateOrderResult.cc - src/model/RenewCertificateOrderForPackageRequestRequest.cc - src/model/RenewCertificateOrderForPackageRequestResult.cc - src/model/RevokeWHClientCertificateRequest.cc - src/model/RevokeWHClientCertificateResult.cc - src/model/SignRequest.cc - src/model/SignResult.cc - src/model/UploadPCACertRequest.cc - src/model/UploadPCACertResult.cc - src/model/UploadUserCertificateRequest.cc - src/model/UploadUserCertificateResult.cc - src/model/VerifyRequest.cc - src/model/VerifyResult.cc ) + src/model/ListClientCertificateRequest.cc + src/model/ListClientCertificateResult.cc + src/model/ListPcaCaCertificateRequest.cc + src/model/ListPcaCaCertificateResult.cc + src/model/ListRevokeCertificateRequest.cc + src/model/ListRevokeCertificateResult.cc + src/model/UpdateCACertificateStatusRequest.cc + src/model/UpdateCACertificateStatusResult.cc + src/model/UploadPcaCertToCasRequest.cc + src/model/UploadPcaCertToCasResult.cc ) add_library(cas ${LIB_TYPE} ${cas_public_header} diff --git a/cas/include/alibabacloud/cas/CasClient.h b/cas/include/alibabacloud/cas/CasClient.h index 5e5d16482..cec66bf2e 100644 --- a/cas/include/alibabacloud/cas/CasClient.h +++ b/cas/include/alibabacloud/cas/CasClient.h @@ -22,54 +22,52 @@ #include #include #include "CasExport.h" -#include "model/CancelCertificateForPackageRequestRequest.h" -#include "model/CancelCertificateForPackageRequestResult.h" -#include "model/CancelOrderRequestRequest.h" -#include "model/CancelOrderRequestResult.h" -#include "model/CreateCertificateForPackageRequestRequest.h" -#include "model/CreateCertificateForPackageRequestResult.h" -#include "model/CreateCertificateRequestRequest.h" -#include "model/CreateCertificateRequestResult.h" -#include "model/CreateCertificateWithCsrRequestRequest.h" -#include "model/CreateCertificateWithCsrRequestResult.h" -#include "model/CreateWHClientCertificateRequest.h" -#include "model/CreateWHClientCertificateResult.h" -#include "model/DecryptRequest.h" -#include "model/DecryptResult.h" -#include "model/DeleteCertificateRequestRequest.h" -#include "model/DeleteCertificateRequestResult.h" -#include "model/DeletePCACertRequest.h" -#include "model/DeletePCACertResult.h" -#include "model/DeleteUserCertificateRequest.h" -#include "model/DeleteUserCertificateResult.h" -#include "model/DescribeCertificateStateRequest.h" -#include "model/DescribeCertificateStateResult.h" -#include "model/DescribePackageStateRequest.h" -#include "model/DescribePackageStateResult.h" -#include "model/EncryptRequest.h" -#include "model/EncryptResult.h" -#include "model/GetCertWarehouseQuotaRequest.h" -#include "model/GetCertWarehouseQuotaResult.h" -#include "model/GetUserCertificateDetailRequest.h" -#include "model/GetUserCertificateDetailResult.h" +#include "model/CreateClientCertificateRequest.h" +#include "model/CreateClientCertificateResult.h" +#include "model/CreateClientCertificateWithCsrRequest.h" +#include "model/CreateClientCertificateWithCsrResult.h" +#include "model/CreateCustomCertificateRequest.h" +#include "model/CreateCustomCertificateResult.h" +#include "model/CreateExternalCACertificateRequest.h" +#include "model/CreateExternalCACertificateResult.h" +#include "model/CreateRevokeClientCertificateRequest.h" +#include "model/CreateRevokeClientCertificateResult.h" +#include "model/CreateRootCACertificateRequest.h" +#include "model/CreateRootCACertificateResult.h" +#include "model/CreateServerCertificateRequest.h" +#include "model/CreateServerCertificateResult.h" +#include "model/CreateServerCertificateWithCsrRequest.h" +#include "model/CreateServerCertificateWithCsrResult.h" +#include "model/CreateSubCACertificateRequest.h" +#include "model/CreateSubCACertificateResult.h" +#include "model/DeleteClientCertificateRequest.h" +#include "model/DeleteClientCertificateResult.h" +#include "model/DescribeCACertificateRequest.h" +#include "model/DescribeCACertificateResult.h" +#include "model/DescribeCACertificateCountRequest.h" +#include "model/DescribeCACertificateCountResult.h" +#include "model/DescribeCACertificateListRequest.h" +#include "model/DescribeCACertificateListResult.h" +#include "model/DescribeCertificatePrivateKeyRequest.h" +#include "model/DescribeCertificatePrivateKeyResult.h" +#include "model/DescribeClientCertificateRequest.h" +#include "model/DescribeClientCertificateResult.h" +#include "model/DescribeClientCertificateStatusRequest.h" +#include "model/DescribeClientCertificateStatusResult.h" +#include "model/GetCAInstanceStatusRequest.h" +#include "model/GetCAInstanceStatusResult.h" #include "model/ListCertRequest.h" #include "model/ListCertResult.h" -#include "model/ListCertWarehouseRequest.h" -#include "model/ListCertWarehouseResult.h" -#include "model/ListUserCertificateOrderRequest.h" -#include "model/ListUserCertificateOrderResult.h" -#include "model/RenewCertificateOrderForPackageRequestRequest.h" -#include "model/RenewCertificateOrderForPackageRequestResult.h" -#include "model/RevokeWHClientCertificateRequest.h" -#include "model/RevokeWHClientCertificateResult.h" -#include "model/SignRequest.h" -#include "model/SignResult.h" -#include "model/UploadPCACertRequest.h" -#include "model/UploadPCACertResult.h" -#include "model/UploadUserCertificateRequest.h" -#include "model/UploadUserCertificateResult.h" -#include "model/VerifyRequest.h" -#include "model/VerifyResult.h" +#include "model/ListClientCertificateRequest.h" +#include "model/ListClientCertificateResult.h" +#include "model/ListPcaCaCertificateRequest.h" +#include "model/ListPcaCaCertificateResult.h" +#include "model/ListRevokeCertificateRequest.h" +#include "model/ListRevokeCertificateResult.h" +#include "model/UpdateCACertificateStatusRequest.h" +#include "model/UpdateCACertificateStatusResult.h" +#include "model/UploadPcaCertToCasRequest.h" +#include "model/UploadPcaCertToCasResult.h" namespace AlibabaCloud @@ -79,155 +77,149 @@ namespace AlibabaCloud class ALIBABACLOUD_CAS_EXPORT CasClient : public RpcServiceClient { public: - typedef Outcome CancelCertificateForPackageRequestOutcome; - typedef std::future CancelCertificateForPackageRequestOutcomeCallable; - typedef std::function&)> CancelCertificateForPackageRequestAsyncHandler; - typedef Outcome CancelOrderRequestOutcome; - typedef std::future CancelOrderRequestOutcomeCallable; - typedef std::function&)> CancelOrderRequestAsyncHandler; - typedef Outcome CreateCertificateForPackageRequestOutcome; - typedef std::future CreateCertificateForPackageRequestOutcomeCallable; - typedef std::function&)> CreateCertificateForPackageRequestAsyncHandler; - typedef Outcome CreateCertificateRequestOutcome; - typedef std::future CreateCertificateRequestOutcomeCallable; - typedef std::function&)> CreateCertificateRequestAsyncHandler; - typedef Outcome CreateCertificateWithCsrRequestOutcome; - typedef std::future CreateCertificateWithCsrRequestOutcomeCallable; - typedef std::function&)> CreateCertificateWithCsrRequestAsyncHandler; - typedef Outcome CreateWHClientCertificateOutcome; - typedef std::future CreateWHClientCertificateOutcomeCallable; - typedef std::function&)> CreateWHClientCertificateAsyncHandler; - typedef Outcome DecryptOutcome; - typedef std::future DecryptOutcomeCallable; - typedef std::function&)> DecryptAsyncHandler; - typedef Outcome DeleteCertificateRequestOutcome; - typedef std::future DeleteCertificateRequestOutcomeCallable; - typedef std::function&)> DeleteCertificateRequestAsyncHandler; - typedef Outcome DeletePCACertOutcome; - typedef std::future DeletePCACertOutcomeCallable; - typedef std::function&)> DeletePCACertAsyncHandler; - typedef Outcome DeleteUserCertificateOutcome; - typedef std::future DeleteUserCertificateOutcomeCallable; - typedef std::function&)> DeleteUserCertificateAsyncHandler; - typedef Outcome DescribeCertificateStateOutcome; - typedef std::future DescribeCertificateStateOutcomeCallable; - typedef std::function&)> DescribeCertificateStateAsyncHandler; - typedef Outcome DescribePackageStateOutcome; - typedef std::future DescribePackageStateOutcomeCallable; - typedef std::function&)> DescribePackageStateAsyncHandler; - typedef Outcome EncryptOutcome; - typedef std::future EncryptOutcomeCallable; - typedef std::function&)> EncryptAsyncHandler; - typedef Outcome GetCertWarehouseQuotaOutcome; - typedef std::future GetCertWarehouseQuotaOutcomeCallable; - typedef std::function&)> GetCertWarehouseQuotaAsyncHandler; - typedef Outcome GetUserCertificateDetailOutcome; - typedef std::future GetUserCertificateDetailOutcomeCallable; - typedef std::function&)> GetUserCertificateDetailAsyncHandler; + typedef Outcome CreateClientCertificateOutcome; + typedef std::future CreateClientCertificateOutcomeCallable; + typedef std::function&)> CreateClientCertificateAsyncHandler; + typedef Outcome CreateClientCertificateWithCsrOutcome; + typedef std::future CreateClientCertificateWithCsrOutcomeCallable; + typedef std::function&)> CreateClientCertificateWithCsrAsyncHandler; + typedef Outcome CreateCustomCertificateOutcome; + typedef std::future CreateCustomCertificateOutcomeCallable; + typedef std::function&)> CreateCustomCertificateAsyncHandler; + typedef Outcome CreateExternalCACertificateOutcome; + typedef std::future CreateExternalCACertificateOutcomeCallable; + typedef std::function&)> CreateExternalCACertificateAsyncHandler; + typedef Outcome CreateRevokeClientCertificateOutcome; + typedef std::future CreateRevokeClientCertificateOutcomeCallable; + typedef std::function&)> CreateRevokeClientCertificateAsyncHandler; + typedef Outcome CreateRootCACertificateOutcome; + typedef std::future CreateRootCACertificateOutcomeCallable; + typedef std::function&)> CreateRootCACertificateAsyncHandler; + typedef Outcome CreateServerCertificateOutcome; + typedef std::future CreateServerCertificateOutcomeCallable; + typedef std::function&)> CreateServerCertificateAsyncHandler; + typedef Outcome CreateServerCertificateWithCsrOutcome; + typedef std::future CreateServerCertificateWithCsrOutcomeCallable; + typedef std::function&)> CreateServerCertificateWithCsrAsyncHandler; + typedef Outcome CreateSubCACertificateOutcome; + typedef std::future CreateSubCACertificateOutcomeCallable; + typedef std::function&)> CreateSubCACertificateAsyncHandler; + typedef Outcome DeleteClientCertificateOutcome; + typedef std::future DeleteClientCertificateOutcomeCallable; + typedef std::function&)> DeleteClientCertificateAsyncHandler; + typedef Outcome DescribeCACertificateOutcome; + typedef std::future DescribeCACertificateOutcomeCallable; + typedef std::function&)> DescribeCACertificateAsyncHandler; + typedef Outcome DescribeCACertificateCountOutcome; + typedef std::future DescribeCACertificateCountOutcomeCallable; + typedef std::function&)> DescribeCACertificateCountAsyncHandler; + typedef Outcome DescribeCACertificateListOutcome; + typedef std::future DescribeCACertificateListOutcomeCallable; + typedef std::function&)> DescribeCACertificateListAsyncHandler; + typedef Outcome DescribeCertificatePrivateKeyOutcome; + typedef std::future DescribeCertificatePrivateKeyOutcomeCallable; + typedef std::function&)> DescribeCertificatePrivateKeyAsyncHandler; + typedef Outcome DescribeClientCertificateOutcome; + typedef std::future DescribeClientCertificateOutcomeCallable; + typedef std::function&)> DescribeClientCertificateAsyncHandler; + typedef Outcome DescribeClientCertificateStatusOutcome; + typedef std::future DescribeClientCertificateStatusOutcomeCallable; + typedef std::function&)> DescribeClientCertificateStatusAsyncHandler; + typedef Outcome GetCAInstanceStatusOutcome; + typedef std::future GetCAInstanceStatusOutcomeCallable; + typedef std::function&)> GetCAInstanceStatusAsyncHandler; typedef Outcome ListCertOutcome; typedef std::future ListCertOutcomeCallable; typedef std::function&)> ListCertAsyncHandler; - typedef Outcome ListCertWarehouseOutcome; - typedef std::future ListCertWarehouseOutcomeCallable; - typedef std::function&)> ListCertWarehouseAsyncHandler; - typedef Outcome ListUserCertificateOrderOutcome; - typedef std::future ListUserCertificateOrderOutcomeCallable; - typedef std::function&)> ListUserCertificateOrderAsyncHandler; - typedef Outcome RenewCertificateOrderForPackageRequestOutcome; - typedef std::future RenewCertificateOrderForPackageRequestOutcomeCallable; - typedef std::function&)> RenewCertificateOrderForPackageRequestAsyncHandler; - typedef Outcome RevokeWHClientCertificateOutcome; - typedef std::future RevokeWHClientCertificateOutcomeCallable; - typedef std::function&)> RevokeWHClientCertificateAsyncHandler; - typedef Outcome SignOutcome; - typedef std::future SignOutcomeCallable; - typedef std::function&)> SignAsyncHandler; - typedef Outcome UploadPCACertOutcome; - typedef std::future UploadPCACertOutcomeCallable; - typedef std::function&)> UploadPCACertAsyncHandler; - typedef Outcome UploadUserCertificateOutcome; - typedef std::future UploadUserCertificateOutcomeCallable; - typedef std::function&)> UploadUserCertificateAsyncHandler; - typedef Outcome VerifyOutcome; - typedef std::future VerifyOutcomeCallable; - typedef std::function&)> VerifyAsyncHandler; + typedef Outcome ListClientCertificateOutcome; + typedef std::future ListClientCertificateOutcomeCallable; + typedef std::function&)> ListClientCertificateAsyncHandler; + typedef Outcome ListPcaCaCertificateOutcome; + typedef std::future ListPcaCaCertificateOutcomeCallable; + typedef std::function&)> ListPcaCaCertificateAsyncHandler; + typedef Outcome ListRevokeCertificateOutcome; + typedef std::future ListRevokeCertificateOutcomeCallable; + typedef std::function&)> ListRevokeCertificateAsyncHandler; + typedef Outcome UpdateCACertificateStatusOutcome; + typedef std::future UpdateCACertificateStatusOutcomeCallable; + typedef std::function&)> UpdateCACertificateStatusAsyncHandler; + typedef Outcome UploadPcaCertToCasOutcome; + typedef std::future UploadPcaCertToCasOutcomeCallable; + typedef std::function&)> UploadPcaCertToCasAsyncHandler; CasClient(const Credentials &credentials, const ClientConfiguration &configuration); CasClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CasClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CasClient(); - CancelCertificateForPackageRequestOutcome cancelCertificateForPackageRequest(const Model::CancelCertificateForPackageRequestRequest &request)const; - void cancelCertificateForPackageRequestAsync(const Model::CancelCertificateForPackageRequestRequest& request, const CancelCertificateForPackageRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CancelCertificateForPackageRequestOutcomeCallable cancelCertificateForPackageRequestCallable(const Model::CancelCertificateForPackageRequestRequest& request) const; - CancelOrderRequestOutcome cancelOrderRequest(const Model::CancelOrderRequestRequest &request)const; - void cancelOrderRequestAsync(const Model::CancelOrderRequestRequest& request, const CancelOrderRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CancelOrderRequestOutcomeCallable cancelOrderRequestCallable(const Model::CancelOrderRequestRequest& request) const; - CreateCertificateForPackageRequestOutcome createCertificateForPackageRequest(const Model::CreateCertificateForPackageRequestRequest &request)const; - void createCertificateForPackageRequestAsync(const Model::CreateCertificateForPackageRequestRequest& request, const CreateCertificateForPackageRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCertificateForPackageRequestOutcomeCallable createCertificateForPackageRequestCallable(const Model::CreateCertificateForPackageRequestRequest& request) const; - CreateCertificateRequestOutcome createCertificateRequest(const Model::CreateCertificateRequestRequest &request)const; - void createCertificateRequestAsync(const Model::CreateCertificateRequestRequest& request, const CreateCertificateRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCertificateRequestOutcomeCallable createCertificateRequestCallable(const Model::CreateCertificateRequestRequest& request) const; - CreateCertificateWithCsrRequestOutcome createCertificateWithCsrRequest(const Model::CreateCertificateWithCsrRequestRequest &request)const; - void createCertificateWithCsrRequestAsync(const Model::CreateCertificateWithCsrRequestRequest& request, const CreateCertificateWithCsrRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateCertificateWithCsrRequestOutcomeCallable createCertificateWithCsrRequestCallable(const Model::CreateCertificateWithCsrRequestRequest& request) const; - CreateWHClientCertificateOutcome createWHClientCertificate(const Model::CreateWHClientCertificateRequest &request)const; - void createWHClientCertificateAsync(const Model::CreateWHClientCertificateRequest& request, const CreateWHClientCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateWHClientCertificateOutcomeCallable createWHClientCertificateCallable(const Model::CreateWHClientCertificateRequest& request) const; - DecryptOutcome decrypt(const Model::DecryptRequest &request)const; - void decryptAsync(const Model::DecryptRequest& request, const DecryptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DecryptOutcomeCallable decryptCallable(const Model::DecryptRequest& request) const; - DeleteCertificateRequestOutcome deleteCertificateRequest(const Model::DeleteCertificateRequestRequest &request)const; - void deleteCertificateRequestAsync(const Model::DeleteCertificateRequestRequest& request, const DeleteCertificateRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteCertificateRequestOutcomeCallable deleteCertificateRequestCallable(const Model::DeleteCertificateRequestRequest& request) const; - DeletePCACertOutcome deletePCACert(const Model::DeletePCACertRequest &request)const; - void deletePCACertAsync(const Model::DeletePCACertRequest& request, const DeletePCACertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeletePCACertOutcomeCallable deletePCACertCallable(const Model::DeletePCACertRequest& request) const; - DeleteUserCertificateOutcome deleteUserCertificate(const Model::DeleteUserCertificateRequest &request)const; - void deleteUserCertificateAsync(const Model::DeleteUserCertificateRequest& request, const DeleteUserCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteUserCertificateOutcomeCallable deleteUserCertificateCallable(const Model::DeleteUserCertificateRequest& request) const; - DescribeCertificateStateOutcome describeCertificateState(const Model::DescribeCertificateStateRequest &request)const; - void describeCertificateStateAsync(const Model::DescribeCertificateStateRequest& request, const DescribeCertificateStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeCertificateStateOutcomeCallable describeCertificateStateCallable(const Model::DescribeCertificateStateRequest& request) const; - DescribePackageStateOutcome describePackageState(const Model::DescribePackageStateRequest &request)const; - void describePackageStateAsync(const Model::DescribePackageStateRequest& request, const DescribePackageStateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribePackageStateOutcomeCallable describePackageStateCallable(const Model::DescribePackageStateRequest& request) const; - EncryptOutcome encrypt(const Model::EncryptRequest &request)const; - void encryptAsync(const Model::EncryptRequest& request, const EncryptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EncryptOutcomeCallable encryptCallable(const Model::EncryptRequest& request) const; - GetCertWarehouseQuotaOutcome getCertWarehouseQuota(const Model::GetCertWarehouseQuotaRequest &request)const; - void getCertWarehouseQuotaAsync(const Model::GetCertWarehouseQuotaRequest& request, const GetCertWarehouseQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetCertWarehouseQuotaOutcomeCallable getCertWarehouseQuotaCallable(const Model::GetCertWarehouseQuotaRequest& request) const; - GetUserCertificateDetailOutcome getUserCertificateDetail(const Model::GetUserCertificateDetailRequest &request)const; - void getUserCertificateDetailAsync(const Model::GetUserCertificateDetailRequest& request, const GetUserCertificateDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetUserCertificateDetailOutcomeCallable getUserCertificateDetailCallable(const Model::GetUserCertificateDetailRequest& request) const; + CreateClientCertificateOutcome createClientCertificate(const Model::CreateClientCertificateRequest &request)const; + void createClientCertificateAsync(const Model::CreateClientCertificateRequest& request, const CreateClientCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClientCertificateOutcomeCallable createClientCertificateCallable(const Model::CreateClientCertificateRequest& request) const; + CreateClientCertificateWithCsrOutcome createClientCertificateWithCsr(const Model::CreateClientCertificateWithCsrRequest &request)const; + void createClientCertificateWithCsrAsync(const Model::CreateClientCertificateWithCsrRequest& request, const CreateClientCertificateWithCsrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateClientCertificateWithCsrOutcomeCallable createClientCertificateWithCsrCallable(const Model::CreateClientCertificateWithCsrRequest& request) const; + CreateCustomCertificateOutcome createCustomCertificate(const Model::CreateCustomCertificateRequest &request)const; + void createCustomCertificateAsync(const Model::CreateCustomCertificateRequest& request, const CreateCustomCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCustomCertificateOutcomeCallable createCustomCertificateCallable(const Model::CreateCustomCertificateRequest& request) const; + CreateExternalCACertificateOutcome createExternalCACertificate(const Model::CreateExternalCACertificateRequest &request)const; + void createExternalCACertificateAsync(const Model::CreateExternalCACertificateRequest& request, const CreateExternalCACertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateExternalCACertificateOutcomeCallable createExternalCACertificateCallable(const Model::CreateExternalCACertificateRequest& request) const; + CreateRevokeClientCertificateOutcome createRevokeClientCertificate(const Model::CreateRevokeClientCertificateRequest &request)const; + void createRevokeClientCertificateAsync(const Model::CreateRevokeClientCertificateRequest& request, const CreateRevokeClientCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRevokeClientCertificateOutcomeCallable createRevokeClientCertificateCallable(const Model::CreateRevokeClientCertificateRequest& request) const; + CreateRootCACertificateOutcome createRootCACertificate(const Model::CreateRootCACertificateRequest &request)const; + void createRootCACertificateAsync(const Model::CreateRootCACertificateRequest& request, const CreateRootCACertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRootCACertificateOutcomeCallable createRootCACertificateCallable(const Model::CreateRootCACertificateRequest& request) const; + CreateServerCertificateOutcome createServerCertificate(const Model::CreateServerCertificateRequest &request)const; + void createServerCertificateAsync(const Model::CreateServerCertificateRequest& request, const CreateServerCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServerCertificateOutcomeCallable createServerCertificateCallable(const Model::CreateServerCertificateRequest& request) const; + CreateServerCertificateWithCsrOutcome createServerCertificateWithCsr(const Model::CreateServerCertificateWithCsrRequest &request)const; + void createServerCertificateWithCsrAsync(const Model::CreateServerCertificateWithCsrRequest& request, const CreateServerCertificateWithCsrAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateServerCertificateWithCsrOutcomeCallable createServerCertificateWithCsrCallable(const Model::CreateServerCertificateWithCsrRequest& request) const; + CreateSubCACertificateOutcome createSubCACertificate(const Model::CreateSubCACertificateRequest &request)const; + void createSubCACertificateAsync(const Model::CreateSubCACertificateRequest& request, const CreateSubCACertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSubCACertificateOutcomeCallable createSubCACertificateCallable(const Model::CreateSubCACertificateRequest& request) const; + DeleteClientCertificateOutcome deleteClientCertificate(const Model::DeleteClientCertificateRequest &request)const; + void deleteClientCertificateAsync(const Model::DeleteClientCertificateRequest& request, const DeleteClientCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteClientCertificateOutcomeCallable deleteClientCertificateCallable(const Model::DeleteClientCertificateRequest& request) const; + DescribeCACertificateOutcome describeCACertificate(const Model::DescribeCACertificateRequest &request)const; + void describeCACertificateAsync(const Model::DescribeCACertificateRequest& request, const DescribeCACertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCACertificateOutcomeCallable describeCACertificateCallable(const Model::DescribeCACertificateRequest& request) const; + DescribeCACertificateCountOutcome describeCACertificateCount(const Model::DescribeCACertificateCountRequest &request)const; + void describeCACertificateCountAsync(const Model::DescribeCACertificateCountRequest& request, const DescribeCACertificateCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCACertificateCountOutcomeCallable describeCACertificateCountCallable(const Model::DescribeCACertificateCountRequest& request) const; + DescribeCACertificateListOutcome describeCACertificateList(const Model::DescribeCACertificateListRequest &request)const; + void describeCACertificateListAsync(const Model::DescribeCACertificateListRequest& request, const DescribeCACertificateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCACertificateListOutcomeCallable describeCACertificateListCallable(const Model::DescribeCACertificateListRequest& request) const; + DescribeCertificatePrivateKeyOutcome describeCertificatePrivateKey(const Model::DescribeCertificatePrivateKeyRequest &request)const; + void describeCertificatePrivateKeyAsync(const Model::DescribeCertificatePrivateKeyRequest& request, const DescribeCertificatePrivateKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCertificatePrivateKeyOutcomeCallable describeCertificatePrivateKeyCallable(const Model::DescribeCertificatePrivateKeyRequest& request) const; + DescribeClientCertificateOutcome describeClientCertificate(const Model::DescribeClientCertificateRequest &request)const; + void describeClientCertificateAsync(const Model::DescribeClientCertificateRequest& request, const DescribeClientCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClientCertificateOutcomeCallable describeClientCertificateCallable(const Model::DescribeClientCertificateRequest& request) const; + DescribeClientCertificateStatusOutcome describeClientCertificateStatus(const Model::DescribeClientCertificateStatusRequest &request)const; + void describeClientCertificateStatusAsync(const Model::DescribeClientCertificateStatusRequest& request, const DescribeClientCertificateStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeClientCertificateStatusOutcomeCallable describeClientCertificateStatusCallable(const Model::DescribeClientCertificateStatusRequest& request) const; + GetCAInstanceStatusOutcome getCAInstanceStatus(const Model::GetCAInstanceStatusRequest &request)const; + void getCAInstanceStatusAsync(const Model::GetCAInstanceStatusRequest& request, const GetCAInstanceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCAInstanceStatusOutcomeCallable getCAInstanceStatusCallable(const Model::GetCAInstanceStatusRequest& request) const; ListCertOutcome listCert(const Model::ListCertRequest &request)const; void listCertAsync(const Model::ListCertRequest& request, const ListCertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCertOutcomeCallable listCertCallable(const Model::ListCertRequest& request) const; - ListCertWarehouseOutcome listCertWarehouse(const Model::ListCertWarehouseRequest &request)const; - void listCertWarehouseAsync(const Model::ListCertWarehouseRequest& request, const ListCertWarehouseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCertWarehouseOutcomeCallable listCertWarehouseCallable(const Model::ListCertWarehouseRequest& request) const; - ListUserCertificateOrderOutcome listUserCertificateOrder(const Model::ListUserCertificateOrderRequest &request)const; - void listUserCertificateOrderAsync(const Model::ListUserCertificateOrderRequest& request, const ListUserCertificateOrderAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListUserCertificateOrderOutcomeCallable listUserCertificateOrderCallable(const Model::ListUserCertificateOrderRequest& request) const; - RenewCertificateOrderForPackageRequestOutcome renewCertificateOrderForPackageRequest(const Model::RenewCertificateOrderForPackageRequestRequest &request)const; - void renewCertificateOrderForPackageRequestAsync(const Model::RenewCertificateOrderForPackageRequestRequest& request, const RenewCertificateOrderForPackageRequestAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RenewCertificateOrderForPackageRequestOutcomeCallable renewCertificateOrderForPackageRequestCallable(const Model::RenewCertificateOrderForPackageRequestRequest& request) const; - RevokeWHClientCertificateOutcome revokeWHClientCertificate(const Model::RevokeWHClientCertificateRequest &request)const; - void revokeWHClientCertificateAsync(const Model::RevokeWHClientCertificateRequest& request, const RevokeWHClientCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RevokeWHClientCertificateOutcomeCallable revokeWHClientCertificateCallable(const Model::RevokeWHClientCertificateRequest& request) const; - SignOutcome sign(const Model::SignRequest &request)const; - void signAsync(const Model::SignRequest& request, const SignAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SignOutcomeCallable signCallable(const Model::SignRequest& request) const; - UploadPCACertOutcome uploadPCACert(const Model::UploadPCACertRequest &request)const; - void uploadPCACertAsync(const Model::UploadPCACertRequest& request, const UploadPCACertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UploadPCACertOutcomeCallable uploadPCACertCallable(const Model::UploadPCACertRequest& request) const; - UploadUserCertificateOutcome uploadUserCertificate(const Model::UploadUserCertificateRequest &request)const; - void uploadUserCertificateAsync(const Model::UploadUserCertificateRequest& request, const UploadUserCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UploadUserCertificateOutcomeCallable uploadUserCertificateCallable(const Model::UploadUserCertificateRequest& request) const; - VerifyOutcome verify(const Model::VerifyRequest &request)const; - void verifyAsync(const Model::VerifyRequest& request, const VerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - VerifyOutcomeCallable verifyCallable(const Model::VerifyRequest& request) const; + ListClientCertificateOutcome listClientCertificate(const Model::ListClientCertificateRequest &request)const; + void listClientCertificateAsync(const Model::ListClientCertificateRequest& request, const ListClientCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClientCertificateOutcomeCallable listClientCertificateCallable(const Model::ListClientCertificateRequest& request) const; + ListPcaCaCertificateOutcome listPcaCaCertificate(const Model::ListPcaCaCertificateRequest &request)const; + void listPcaCaCertificateAsync(const Model::ListPcaCaCertificateRequest& request, const ListPcaCaCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPcaCaCertificateOutcomeCallable listPcaCaCertificateCallable(const Model::ListPcaCaCertificateRequest& request) const; + ListRevokeCertificateOutcome listRevokeCertificate(const Model::ListRevokeCertificateRequest &request)const; + void listRevokeCertificateAsync(const Model::ListRevokeCertificateRequest& request, const ListRevokeCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListRevokeCertificateOutcomeCallable listRevokeCertificateCallable(const Model::ListRevokeCertificateRequest& request) const; + UpdateCACertificateStatusOutcome updateCACertificateStatus(const Model::UpdateCACertificateStatusRequest &request)const; + void updateCACertificateStatusAsync(const Model::UpdateCACertificateStatusRequest& request, const UpdateCACertificateStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateCACertificateStatusOutcomeCallable updateCACertificateStatusCallable(const Model::UpdateCACertificateStatusRequest& request) const; + UploadPcaCertToCasOutcome uploadPcaCertToCas(const Model::UploadPcaCertToCasRequest &request)const; + void uploadPcaCertToCasAsync(const Model::UploadPcaCertToCasRequest& request, const UploadPcaCertToCasAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadPcaCertToCasOutcomeCallable uploadPcaCertToCasCallable(const Model::UploadPcaCertToCasRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/cas/include/alibabacloud/cas/model/CancelCertificateForPackageRequestRequest.h b/cas/include/alibabacloud/cas/model/CancelCertificateForPackageRequestRequest.h deleted file mode 100644 index 846dc379c..000000000 --- a/cas/include/alibabacloud/cas/model/CancelCertificateForPackageRequestRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_CANCELCERTIFICATEFORPACKAGEREQUESTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_CANCELCERTIFICATEFORPACKAGEREQUESTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT CancelCertificateForPackageRequestRequest : public RpcServiceRequest { -public: - CancelCertificateForPackageRequestRequest(); - ~CancelCertificateForPackageRequestRequest(); - long getOrderId() const; - void setOrderId(long orderId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - -private: - long orderId_; - std::string sourceIp_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_CANCELCERTIFICATEFORPACKAGEREQUESTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateCertificateForPackageRequestRequest.h b/cas/include/alibabacloud/cas/model/CreateCertificateForPackageRequestRequest.h deleted file mode 100644 index e64543439..000000000 --- a/cas/include/alibabacloud/cas/model/CreateCertificateForPackageRequestRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEFORPACKAGEREQUESTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEFORPACKAGEREQUESTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT CreateCertificateForPackageRequestRequest : public RpcServiceRequest { -public: - CreateCertificateForPackageRequestRequest(); - ~CreateCertificateForPackageRequestRequest(); - std::string getProductCode() const; - void setProductCode(const std::string &productCode); - std::string getCsr() const; - void setCsr(const std::string &csr); - std::string getValidateType() const; - void setValidateType(const std::string &validateType); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getEmail() const; - void setEmail(const std::string &email); - std::string getPhone() const; - void setPhone(const std::string &phone); - std::string getCompanyName() const; - void setCompanyName(const std::string &companyName); - std::string getDomain() const; - void setDomain(const std::string &domain); - std::string getUsername() const; - void setUsername(const std::string &username); - -private: - std::string productCode_; - std::string csr_; - std::string validateType_; - std::string sourceIp_; - std::string email_; - std::string phone_; - std::string companyName_; - std::string domain_; - std::string username_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEFORPACKAGEREQUESTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateCertificateForPackageRequestResult.h b/cas/include/alibabacloud/cas/model/CreateCertificateForPackageRequestResult.h deleted file mode 100644 index 7f108e88c..000000000 --- a/cas/include/alibabacloud/cas/model/CreateCertificateForPackageRequestResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEFORPACKAGEREQUESTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEFORPACKAGEREQUESTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT CreateCertificateForPackageRequestResult : public ServiceResult - { - public: - - - CreateCertificateForPackageRequestResult(); - explicit CreateCertificateForPackageRequestResult(const std::string &payload); - ~CreateCertificateForPackageRequestResult(); - long getOrderId()const; - - protected: - void parse(const std::string &payload); - private: - long orderId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEFORPACKAGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateCertificateRequestRequest.h b/cas/include/alibabacloud/cas/model/CreateCertificateRequestRequest.h deleted file mode 100644 index e7be677c1..000000000 --- a/cas/include/alibabacloud/cas/model/CreateCertificateRequestRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEREQUESTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEREQUESTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT CreateCertificateRequestRequest : public RpcServiceRequest { -public: - CreateCertificateRequestRequest(); - ~CreateCertificateRequestRequest(); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getProductCode() const; - void setProductCode(const std::string &productCode); - std::string getUsername() const; - void setUsername(const std::string &username); - std::string getPhone() const; - void setPhone(const std::string &phone); - std::string getEmail() const; - void setEmail(const std::string &email); - std::string getDomain() const; - void setDomain(const std::string &domain); - std::string getValidateType() const; - void setValidateType(const std::string &validateType); - -private: - std::string sourceIp_; - std::string productCode_; - std::string username_; - std::string phone_; - std::string email_; - std::string domain_; - std::string validateType_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEREQUESTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateCertificateWithCsrRequestRequest.h b/cas/include/alibabacloud/cas/model/CreateCertificateWithCsrRequestRequest.h deleted file mode 100644 index 4c1a8577e..000000000 --- a/cas/include/alibabacloud/cas/model/CreateCertificateWithCsrRequestRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEWITHCSRREQUESTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEWITHCSRREQUESTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT CreateCertificateWithCsrRequestRequest : public RpcServiceRequest { -public: - CreateCertificateWithCsrRequestRequest(); - ~CreateCertificateWithCsrRequestRequest(); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getCsr() const; - void setCsr(const std::string &csr); - std::string getProductCode() const; - void setProductCode(const std::string &productCode); - std::string getUsername() const; - void setUsername(const std::string &username); - std::string getPhone() const; - void setPhone(const std::string &phone); - std::string getEmail() const; - void setEmail(const std::string &email); - std::string getValidateType() const; - void setValidateType(const std::string &validateType); - -private: - std::string sourceIp_; - std::string csr_; - std::string productCode_; - std::string username_; - std::string phone_; - std::string email_; - std::string validateType_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEWITHCSRREQUESTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateClientCertificateRequest.h b/cas/include/alibabacloud/cas/model/CreateClientCertificateRequest.h new file mode 100644 index 000000000..e8e9e9138 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateClientCertificateRequest.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT CreateClientCertificateRequest : public RpcServiceRequest { +public: + CreateClientCertificateRequest(); + ~CreateClientCertificateRequest(); + std::string getCountry() const; + void setCountry(const std::string &country); + int getMonths() const; + void setMonths(int months); + long getEnableCrl() const; + void setEnableCrl(long enableCrl); + long getAfterTime() const; + void setAfterTime(long afterTime); + std::string getLocality() const; + void setLocality(const std::string &locality); + int getImmediately() const; + void setImmediately(int immediately); + int getYears() const; + void setYears(int years); + std::string getCommonName() const; + void setCommonName(const std::string &commonName); + std::string getOrganization() const; + void setOrganization(const std::string &organization); + int getDays() const; + void setDays(int days); + long getBeforeTime() const; + void setBeforeTime(long beforeTime); + std::string getState() const; + void setState(const std::string &state); + std::string getParentIdentifier() const; + void setParentIdentifier(const std::string &parentIdentifier); + std::string getOrganizationUnit() const; + void setOrganizationUnit(const std::string &organizationUnit); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + int getSanType() const; + void setSanType(int sanType); + std::string getSanValue() const; + void setSanValue(const std::string &sanValue); + +private: + std::string country_; + int months_; + long enableCrl_; + long afterTime_; + std::string locality_; + int immediately_; + int years_; + std::string commonName_; + std::string organization_; + int days_; + long beforeTime_; + std::string state_; + std::string parentIdentifier_; + std::string organizationUnit_; + std::string algorithm_; + int sanType_; + std::string sanValue_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateWHClientCertificateResult.h b/cas/include/alibabacloud/cas/model/CreateClientCertificateResult.h similarity index 72% rename from cas/include/alibabacloud/cas/model/CreateWHClientCertificateResult.h rename to cas/include/alibabacloud/cas/model/CreateClientCertificateResult.h index 8aaa6db9e..52d8b863e 100644 --- a/cas/include/alibabacloud/cas/model/CreateWHClientCertificateResult.h +++ b/cas/include/alibabacloud/cas/model/CreateClientCertificateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_CREATEWHCLIENTCERTIFICATERESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_CREATEWHCLIENTCERTIFICATERESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATERESULT_H_ #include #include @@ -29,15 +29,16 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT CreateWHClientCertificateResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT CreateClientCertificateResult : public ServiceResult { public: - CreateWHClientCertificateResult(); - explicit CreateWHClientCertificateResult(const std::string &payload); - ~CreateWHClientCertificateResult(); + CreateClientCertificateResult(); + explicit CreateClientCertificateResult(const std::string &payload); + ~CreateClientCertificateResult(); std::string getIdentifier()const; + std::string getSerialNumber()const; std::string getParentX509Certificate()const; std::string getCertificateChain()const; std::string getRootX509Certificate()const; @@ -47,6 +48,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string identifier_; + std::string serialNumber_; std::string parentX509Certificate_; std::string certificateChain_; std::string rootX509Certificate_; @@ -56,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CAS_MODEL_CREATEWHCLIENTCERTIFICATERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateWHClientCertificateRequest.h b/cas/include/alibabacloud/cas/model/CreateClientCertificateWithCsrRequest.h similarity index 70% rename from cas/include/alibabacloud/cas/model/CreateWHClientCertificateRequest.h rename to cas/include/alibabacloud/cas/model/CreateClientCertificateWithCsrRequest.h index 75f7add37..e8f2e835e 100644 --- a/cas/include/alibabacloud/cas/model/CreateWHClientCertificateRequest.h +++ b/cas/include/alibabacloud/cas/model/CreateClientCertificateWithCsrRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_CREATEWHCLIENTCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_CREATEWHCLIENTCERTIFICATEREQUEST_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEWITHCSRREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEWITHCSRREQUEST_H_ #include #include @@ -26,68 +26,68 @@ namespace AlibabaCloud { namespace Cas { namespace Model { -class ALIBABACLOUD_CAS_EXPORT CreateWHClientCertificateRequest : public RpcServiceRequest { +class ALIBABACLOUD_CAS_EXPORT CreateClientCertificateWithCsrRequest : public RpcServiceRequest { public: - CreateWHClientCertificateRequest(); - ~CreateWHClientCertificateRequest(); + CreateClientCertificateWithCsrRequest(); + ~CreateClientCertificateWithCsrRequest(); std::string getCountry() const; void setCountry(const std::string &country); - std::string getCsr() const; - void setCsr(const std::string &csr); - long getImmediately() const; - void setImmediately(long immediately); - long getYears() const; - void setYears(long years); - std::string getCommonName() const; - void setCommonName(const std::string &commonName); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getSanValue() const; - void setSanValue(const std::string &sanValue); - std::string getState() const; - void setState(const std::string &state); - std::string getAlgorithm() const; - void setAlgorithm(const std::string &algorithm); - long getMonths() const; - void setMonths(long months); + int getMonths() const; + void setMonths(int months); + long getEnableCrl() const; + void setEnableCrl(long enableCrl); long getAfterTime() const; void setAfterTime(long afterTime); std::string getLocality() const; void setLocality(const std::string &locality); - long getSanType() const; - void setSanType(long sanType); + int getImmediately() const; + void setImmediately(int immediately); + int getYears() const; + void setYears(int years); + std::string getCommonName() const; + void setCommonName(const std::string &commonName); std::string getOrganization() const; void setOrganization(const std::string &organization); - long getDays() const; - void setDays(long days); + int getDays() const; + void setDays(int days); long getBeforeTime() const; void setBeforeTime(long beforeTime); + std::string getState() const; + void setState(const std::string &state); std::string getParentIdentifier() const; void setParentIdentifier(const std::string &parentIdentifier); std::string getOrganizationUnit() const; void setOrganizationUnit(const std::string &organizationUnit); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + std::string getCsr() const; + void setCsr(const std::string &csr); + int getSanType() const; + void setSanType(int sanType); + std::string getSanValue() const; + void setSanValue(const std::string &sanValue); private: std::string country_; - std::string csr_; - long immediately_; - long years_; - std::string commonName_; - std::string sourceIp_; - std::string sanValue_; - std::string state_; - std::string algorithm_; - long months_; + int months_; + long enableCrl_; long afterTime_; std::string locality_; - long sanType_; + int immediately_; + int years_; + std::string commonName_; std::string organization_; - long days_; + int days_; long beforeTime_; + std::string state_; std::string parentIdentifier_; std::string organizationUnit_; + std::string algorithm_; + std::string csr_; + int sanType_; + std::string sanValue_; }; } // namespace Model } // namespace Cas } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_CREATEWHCLIENTCERTIFICATEREQUEST_H_ +#endif // !ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEWITHCSRREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateClientCertificateWithCsrResult.h b/cas/include/alibabacloud/cas/model/CreateClientCertificateWithCsrResult.h new file mode 100644 index 000000000..966195500 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateClientCertificateWithCsrResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEWITHCSRRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEWITHCSRRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT CreateClientCertificateWithCsrResult : public ServiceResult + { + public: + + + CreateClientCertificateWithCsrResult(); + explicit CreateClientCertificateWithCsrResult(const std::string &payload); + ~CreateClientCertificateWithCsrResult(); + std::string getCertKmcRep1()const; + std::string getIdentifier()const; + std::string getSerialNumber()const; + std::string getParentX509Certificate()const; + std::string getCertificateChain()const; + std::string getRootX509Certificate()const; + std::string getX509Certificate()const; + std::string getCertSignBufKmc()const; + + protected: + void parse(const std::string &payload); + private: + std::string certKmcRep1_; + std::string identifier_; + std::string serialNumber_; + std::string parentX509Certificate_; + std::string certificateChain_; + std::string rootX509Certificate_; + std::string x509Certificate_; + std::string certSignBufKmc_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATEWITHCSRRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateCustomCertificateRequest.h b/cas/include/alibabacloud/cas/model/CreateCustomCertificateRequest.h new file mode 100644 index 000000000..41ff69e25 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateCustomCertificateRequest.h @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATECUSTOMCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATECUSTOMCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT CreateCustomCertificateRequest : public RpcServiceRequest { +public: + struct ApiPassthrough { + struct Subject { + std::string country; + std::string state; + std::string locality; + std::string organization; + std::string organizationUnit; + std::string commonName; + struct CustomAttributesItem { + std::string objectIdentifier; + std::string value; + }; + CustomAttributesItem customAttributesItem; + std::vector customAttributes; + }; + Subject subject; + struct Extensions { + struct KeyUsage { + bool digitalSignature; + bool contentCommitment; + bool nonRepudiation; + bool keyEncipherment; + bool dataEncipherment; + bool keyAgreement; + bool encipherOnly; + bool decipherOnly; + }; + KeyUsage keyUsage; + std::string string; + std::vector extendedKeyUsages; + struct SubjectAlternativeNamesItem { + std::string type; + std::string value; + }; + SubjectAlternativeNamesItem subjectAlternativeNamesItem; + std::vector subjectAlternativeNames; + std::string string; + std::vector criticals; + }; + Extensions extensions; + std::string serialNumber; + }; + CreateCustomCertificateRequest(); + ~CreateCustomCertificateRequest(); + std::string getCsr() const; + void setCsr(const std::string &csr); + long getEnableCrl() const; + void setEnableCrl(long enableCrl); + int getImmediately() const; + void setImmediately(int immediately); + std::string getParentIdentifier() const; + void setParentIdentifier(const std::string &parentIdentifier); + std::string getValidity() const; + void setValidity(const std::string &validity); + ApiPassthrough getApiPassthrough() const; + void setApiPassthrough(const ApiPassthrough &apiPassthrough); + +private: + std::string csr_; + long enableCrl_; + int immediately_; + std::string parentIdentifier_; + std::string validity_; + ApiPassthrough apiPassthrough_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_CREATECUSTOMCERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateCustomCertificateResult.h b/cas/include/alibabacloud/cas/model/CreateCustomCertificateResult.h new file mode 100644 index 000000000..220a3578e --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateCustomCertificateResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATECUSTOMCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATECUSTOMCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT CreateCustomCertificateResult : public ServiceResult + { + public: + + + CreateCustomCertificateResult(); + explicit CreateCustomCertificateResult(const std::string &payload); + ~CreateCustomCertificateResult(); + std::string getIdentifier()const; + std::string getSerialNumber()const; + std::string getCertificateChain()const; + std::string getCertificate()const; + + protected: + void parse(const std::string &payload); + private: + std::string identifier_; + std::string serialNumber_; + std::string certificateChain_; + std::string certificate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_CREATECUSTOMCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateExternalCACertificateRequest.h b/cas/include/alibabacloud/cas/model/CreateExternalCACertificateRequest.h new file mode 100644 index 000000000..6c2433909 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateExternalCACertificateRequest.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATEEXTERNALCACERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATEEXTERNALCACERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT CreateExternalCACertificateRequest : public RpcServiceRequest { +public: + struct ApiPassthrough { + struct Subject { + std::string country; + std::string state; + std::string locality; + std::string organization; + std::string organizationUnit; + std::string commonName; + }; + Subject subject; + struct Extensions { + int pathLenConstraint; + std::string string; + std::vector extendedKeyUsages; + }; + Extensions extensions; + }; + CreateExternalCACertificateRequest(); + ~CreateExternalCACertificateRequest(); + std::string getCsr() const; + void setCsr(const std::string &csr); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAutoTesting() const; + void setAutoTesting(const std::string &autoTesting); + std::string getValidity() const; + void setValidity(const std::string &validity); + ApiPassthrough getApiPassthrough() const; + void setApiPassthrough(const ApiPassthrough &apiPassthrough); + +private: + std::string csr_; + std::string instanceId_; + std::string autoTesting_; + std::string validity_; + ApiPassthrough apiPassthrough_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_CREATEEXTERNALCACERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateExternalCACertificateResult.h b/cas/include/alibabacloud/cas/model/CreateExternalCACertificateResult.h new file mode 100644 index 000000000..3dedfea7a --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateExternalCACertificateResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATEEXTERNALCACERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATEEXTERNALCACERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT CreateExternalCACertificateResult : public ServiceResult + { + public: + + + CreateExternalCACertificateResult(); + explicit CreateExternalCACertificateResult(const std::string &payload); + ~CreateExternalCACertificateResult(); + std::string getIdentifier()const; + std::string getCertificateChain()const; + std::string getCertificate()const; + + protected: + void parse(const std::string &payload); + private: + std::string identifier_; + std::string certificateChain_; + std::string certificate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_CREATEEXTERNALCACERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DeletePCACertRequest.h b/cas/include/alibabacloud/cas/model/CreateRevokeClientCertificateRequest.h similarity index 70% rename from cas/include/alibabacloud/cas/model/DeletePCACertRequest.h rename to cas/include/alibabacloud/cas/model/CreateRevokeClientCertificateRequest.h index c39a3a144..a1b208589 100644 --- a/cas/include/alibabacloud/cas/model/DeletePCACertRequest.h +++ b/cas/include/alibabacloud/cas/model/CreateRevokeClientCertificateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_DELETEPCACERTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_DELETEPCACERTREQUEST_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_CREATEREVOKECLIENTCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATEREVOKECLIENTCERTIFICATEREQUEST_H_ #include #include @@ -26,20 +26,17 @@ namespace AlibabaCloud { namespace Cas { namespace Model { -class ALIBABACLOUD_CAS_EXPORT DeletePCACertRequest : public RpcServiceRequest { +class ALIBABACLOUD_CAS_EXPORT CreateRevokeClientCertificateRequest : public RpcServiceRequest { public: - DeletePCACertRequest(); - ~DeletePCACertRequest(); + CreateRevokeClientCertificateRequest(); + ~CreateRevokeClientCertificateRequest(); std::string getIdentifier() const; void setIdentifier(const std::string &identifier); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); private: std::string identifier_; - std::string sourceIp_; }; } // namespace Model } // namespace Cas } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_DELETEPCACERTREQUEST_H_ +#endif // !ALIBABACLOUD_CAS_MODEL_CREATEREVOKECLIENTCERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DecryptResult.h b/cas/include/alibabacloud/cas/model/CreateRevokeClientCertificateResult.h similarity index 66% rename from cas/include/alibabacloud/cas/model/DecryptResult.h rename to cas/include/alibabacloud/cas/model/CreateRevokeClientCertificateResult.h index d1ce51a7a..4e9dd5b6c 100644 --- a/cas/include/alibabacloud/cas/model/DecryptResult.h +++ b/cas/include/alibabacloud/cas/model/CreateRevokeClientCertificateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_DECRYPTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_DECRYPTRESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_CREATEREVOKECLIENTCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATEREVOKECLIENTCERTIFICATERESULT_H_ #include #include @@ -29,25 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT DecryptResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT CreateRevokeClientCertificateResult : public ServiceResult { public: - DecryptResult(); - explicit DecryptResult(const std::string &payload); - ~DecryptResult(); - std::string getPlaintext()const; - std::string getCertIdentifier()const; + CreateRevokeClientCertificateResult(); + explicit CreateRevokeClientCertificateResult(const std::string &payload); + ~CreateRevokeClientCertificateResult(); protected: void parse(const std::string &payload); private: - std::string plaintext_; - std::string certIdentifier_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_DECRYPTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_CREATEREVOKECLIENTCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateRootCACertificateRequest.h b/cas/include/alibabacloud/cas/model/CreateRootCACertificateRequest.h new file mode 100644 index 000000000..77929f74a --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateRootCACertificateRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATEROOTCACERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATEROOTCACERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT CreateRootCACertificateRequest : public RpcServiceRequest { +public: + CreateRootCACertificateRequest(); + ~CreateRootCACertificateRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCountryCode() const; + void setCountryCode(const std::string &countryCode); + std::string getLocality() const; + void setLocality(const std::string &locality); + int getYears() const; + void setYears(int years); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCommonName() const; + void setCommonName(const std::string &commonName); + std::string getOrganization() const; + void setOrganization(const std::string &organization); + std::string getState() const; + void setState(const std::string &state); + std::string getOrganizationUnit() const; + void setOrganizationUnit(const std::string &organizationUnit); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::string clientToken_; + std::string countryCode_; + std::string locality_; + int years_; + std::string instanceId_; + std::string commonName_; + std::string organization_; + std::string state_; + std::string organizationUnit_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_CREATEROOTCACERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateCertificateRequestResult.h b/cas/include/alibabacloud/cas/model/CreateRootCACertificateResult.h similarity index 59% rename from cas/include/alibabacloud/cas/model/CreateCertificateRequestResult.h rename to cas/include/alibabacloud/cas/model/CreateRootCACertificateResult.h index cab73501e..f94c03aeb 100644 --- a/cas/include/alibabacloud/cas/model/CreateCertificateRequestResult.h +++ b/cas/include/alibabacloud/cas/model/CreateRootCACertificateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEREQUESTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEREQUESTRESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_CREATEROOTCACERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATEROOTCACERTIFICATERESULT_H_ #include #include @@ -29,23 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT CreateCertificateRequestResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT CreateRootCACertificateResult : public ServiceResult { public: - CreateCertificateRequestResult(); - explicit CreateCertificateRequestResult(const std::string &payload); - ~CreateCertificateRequestResult(); - long getOrderId()const; + CreateRootCACertificateResult(); + explicit CreateRootCACertificateResult(const std::string &payload); + ~CreateRootCACertificateResult(); + std::string getIdentifier()const; + std::string getCertificateChain()const; + std::string getCertificate()const; protected: void parse(const std::string &payload); private: - long orderId_; + std::string identifier_; + std::string certificateChain_; + std::string certificate_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEREQUESTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_CREATEROOTCACERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateServerCertificateRequest.h b/cas/include/alibabacloud/cas/model/CreateServerCertificateRequest.h new file mode 100644 index 000000000..1fcb5ecce --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateServerCertificateRequest.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT CreateServerCertificateRequest : public RpcServiceRequest { +public: + CreateServerCertificateRequest(); + ~CreateServerCertificateRequest(); + std::string getCountry() const; + void setCountry(const std::string &country); + int getMonths() const; + void setMonths(int months); + long getEnableCrl() const; + void setEnableCrl(long enableCrl); + long getAfterTime() const; + void setAfterTime(long afterTime); + std::string getLocality() const; + void setLocality(const std::string &locality); + int getImmediately() const; + void setImmediately(int immediately); + int getYears() const; + void setYears(int years); + std::string getCommonName() const; + void setCommonName(const std::string &commonName); + std::string getOrganization() const; + void setOrganization(const std::string &organization); + int getDays() const; + void setDays(int days); + long getBeforeTime() const; + void setBeforeTime(long beforeTime); + std::string getState() const; + void setState(const std::string &state); + std::string getParentIdentifier() const; + void setParentIdentifier(const std::string &parentIdentifier); + std::string getOrganizationUnit() const; + void setOrganizationUnit(const std::string &organizationUnit); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + std::string getDomain() const; + void setDomain(const std::string &domain); + +private: + std::string country_; + int months_; + long enableCrl_; + long afterTime_; + std::string locality_; + int immediately_; + int years_; + std::string commonName_; + std::string organization_; + int days_; + long beforeTime_; + std::string state_; + std::string parentIdentifier_; + std::string organizationUnit_; + std::string algorithm_; + std::string domain_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateServerCertificateResult.h b/cas/include/alibabacloud/cas/model/CreateServerCertificateResult.h new file mode 100644 index 000000000..2f21a82d1 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateServerCertificateResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT CreateServerCertificateResult : public ServiceResult + { + public: + + + CreateServerCertificateResult(); + explicit CreateServerCertificateResult(const std::string &payload); + ~CreateServerCertificateResult(); + std::string getIdentifier()const; + std::string getSerialNumber()const; + std::string getParentX509Certificate()const; + std::string getCertificateChain()const; + std::string getRootX509Certificate()const; + std::string getX509Certificate()const; + + protected: + void parse(const std::string &payload); + private: + std::string identifier_; + std::string serialNumber_; + std::string parentX509Certificate_; + std::string certificateChain_; + std::string rootX509Certificate_; + std::string x509Certificate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateServerCertificateWithCsrRequest.h b/cas/include/alibabacloud/cas/model/CreateServerCertificateWithCsrRequest.h new file mode 100644 index 000000000..a28b41c4f --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateServerCertificateWithCsrRequest.h @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEWITHCSRREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEWITHCSRREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT CreateServerCertificateWithCsrRequest : public RpcServiceRequest { +public: + CreateServerCertificateWithCsrRequest(); + ~CreateServerCertificateWithCsrRequest(); + std::string getCountry() const; + void setCountry(const std::string &country); + int getMonths() const; + void setMonths(int months); + long getEnableCrl() const; + void setEnableCrl(long enableCrl); + long getAfterTime() const; + void setAfterTime(long afterTime); + std::string getLocality() const; + void setLocality(const std::string &locality); + int getImmediately() const; + void setImmediately(int immediately); + int getYears() const; + void setYears(int years); + std::string getCommonName() const; + void setCommonName(const std::string &commonName); + std::string getOrganization() const; + void setOrganization(const std::string &organization); + int getDays() const; + void setDays(int days); + long getBeforeTime() const; + void setBeforeTime(long beforeTime); + std::string getState() const; + void setState(const std::string &state); + std::string getParentIdentifier() const; + void setParentIdentifier(const std::string &parentIdentifier); + std::string getOrganizationUnit() const; + void setOrganizationUnit(const std::string &organizationUnit); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + std::string getCsr() const; + void setCsr(const std::string &csr); + std::string getDomain() const; + void setDomain(const std::string &domain); + +private: + std::string country_; + int months_; + long enableCrl_; + long afterTime_; + std::string locality_; + int immediately_; + int years_; + std::string commonName_; + std::string organization_; + int days_; + long beforeTime_; + std::string state_; + std::string parentIdentifier_; + std::string organizationUnit_; + std::string algorithm_; + std::string csr_; + std::string domain_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEWITHCSRREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/VerifyResult.h b/cas/include/alibabacloud/cas/model/CreateServerCertificateWithCsrResult.h similarity index 52% rename from cas/include/alibabacloud/cas/model/VerifyResult.h rename to cas/include/alibabacloud/cas/model/CreateServerCertificateWithCsrResult.h index 39a2e429f..bf62462ce 100644 --- a/cas/include/alibabacloud/cas/model/VerifyResult.h +++ b/cas/include/alibabacloud/cas/model/CreateServerCertificateWithCsrResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_VERIFYRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_VERIFYRESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEWITHCSRRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEWITHCSRRESULT_H_ #include #include @@ -29,23 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT VerifyResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT CreateServerCertificateWithCsrResult : public ServiceResult { public: - VerifyResult(); - explicit VerifyResult(const std::string &payload); - ~VerifyResult(); - bool getSignatureValid()const; + CreateServerCertificateWithCsrResult(); + explicit CreateServerCertificateWithCsrResult(const std::string &payload); + ~CreateServerCertificateWithCsrResult(); + std::string getIdentifier()const; + std::string getSerialNumber()const; + std::string getParentX509Certificate()const; + std::string getCertificateChain()const; + std::string getRootX509Certificate()const; + std::string getX509Certificate()const; protected: void parse(const std::string &payload); private: - bool signatureValid_; + std::string identifier_; + std::string serialNumber_; + std::string parentX509Certificate_; + std::string certificateChain_; + std::string rootX509Certificate_; + std::string x509Certificate_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_VERIFYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEWITHCSRRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/CreateSubCACertificateRequest.h b/cas/include/alibabacloud/cas/model/CreateSubCACertificateRequest.h new file mode 100644 index 000000000..9a23fe571 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/CreateSubCACertificateRequest.h @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_CREATESUBCACERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATESUBCACERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT CreateSubCACertificateRequest : public RpcServiceRequest { +public: + CreateSubCACertificateRequest(); + ~CreateSubCACertificateRequest(); + std::vector getExtendedKeyUsages() const; + void setExtendedKeyUsages(const std::vector &extendedKeyUsages); + bool getEnableCrl() const; + void setEnableCrl(bool enableCrl); + std::string getCountryCode() const; + void setCountryCode(const std::string &countryCode); + std::string getLocality() const; + void setLocality(const std::string &locality); + int getPathLenConstraint() const; + void setPathLenConstraint(int pathLenConstraint); + int getYears() const; + void setYears(int years); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCommonName() const; + void setCommonName(const std::string &commonName); + std::string getOrganization() const; + void setOrganization(const std::string &organization); + int getCrlDay() const; + void setCrlDay(int crlDay); + std::string getParentIdentifier() const; + void setParentIdentifier(const std::string &parentIdentifier); + std::string getState() const; + void setState(const std::string &state); + std::string getOrganizationUnit() const; + void setOrganizationUnit(const std::string &organizationUnit); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::vector extendedKeyUsages_; + bool enableCrl_; + std::string countryCode_; + std::string locality_; + int pathLenConstraint_; + int years_; + std::string instanceId_; + std::string commonName_; + std::string organization_; + int crlDay_; + std::string parentIdentifier_; + std::string state_; + std::string organizationUnit_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_CREATESUBCACERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/UploadPCACertResult.h b/cas/include/alibabacloud/cas/model/CreateSubCACertificateResult.h similarity index 63% rename from cas/include/alibabacloud/cas/model/UploadPCACertResult.h rename to cas/include/alibabacloud/cas/model/CreateSubCACertificateResult.h index a36cc95b7..2acdeb456 100644 --- a/cas/include/alibabacloud/cas/model/UploadPCACertResult.h +++ b/cas/include/alibabacloud/cas/model/CreateSubCACertificateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTRESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_CREATESUBCACERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_CREATESUBCACERTIFICATERESULT_H_ #include #include @@ -29,23 +29,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT UploadPCACertResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT CreateSubCACertificateResult : public ServiceResult { public: - UploadPCACertResult(); - explicit UploadPCACertResult(const std::string &payload); - ~UploadPCACertResult(); + CreateSubCACertificateResult(); + explicit CreateSubCACertificateResult(const std::string &payload); + ~CreateSubCACertificateResult(); std::string getIdentifier()const; + std::string getCertificateChain()const; + std::string getCertificate()const; protected: void parse(const std::string &payload); private: std::string identifier_; + std::string certificateChain_; + std::string certificate_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_CREATESUBCACERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DecryptRequest.h b/cas/include/alibabacloud/cas/model/DecryptRequest.h deleted file mode 100644 index 7fffeeefd..000000000 --- a/cas/include/alibabacloud/cas/model/DecryptRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_DECRYPTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_DECRYPTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT DecryptRequest : public RpcServiceRequest { -public: - DecryptRequest(); - ~DecryptRequest(); - std::string getMessageType() const; - void setMessageType(const std::string &messageType); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getCertIdentifier() const; - void setCertIdentifier(const std::string &certIdentifier); - std::string getAlgorithm() const; - void setAlgorithm(const std::string &algorithm); - std::string getCiphertextBlob() const; - void setCiphertextBlob(const std::string &ciphertextBlob); - -private: - std::string messageType_; - std::string sourceIp_; - std::string certIdentifier_; - std::string algorithm_; - std::string ciphertextBlob_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_DECRYPTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DeleteClientCertificateRequest.h b/cas/include/alibabacloud/cas/model/DeleteClientCertificateRequest.h new file mode 100644 index 000000000..446417a5d --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DeleteClientCertificateRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_DELETECLIENTCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DELETECLIENTCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT DeleteClientCertificateRequest : public RpcServiceRequest { +public: + DeleteClientCertificateRequest(); + ~DeleteClientCertificateRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + +private: + std::string identifier_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_DELETECLIENTCERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DeleteUserCertificateResult.h b/cas/include/alibabacloud/cas/model/DeleteClientCertificateResult.h similarity index 68% rename from cas/include/alibabacloud/cas/model/DeleteUserCertificateResult.h rename to cas/include/alibabacloud/cas/model/DeleteClientCertificateResult.h index 4a95b5e7a..bd2080492 100644 --- a/cas/include/alibabacloud/cas/model/DeleteUserCertificateResult.h +++ b/cas/include/alibabacloud/cas/model/DeleteClientCertificateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_DELETEUSERCERTIFICATERESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_DELETEUSERCERTIFICATERESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_DELETECLIENTCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DELETECLIENTCERTIFICATERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT DeleteUserCertificateResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT DeleteClientCertificateResult : public ServiceResult { public: - DeleteUserCertificateResult(); - explicit DeleteUserCertificateResult(const std::string &payload); - ~DeleteUserCertificateResult(); + DeleteClientCertificateResult(); + explicit DeleteClientCertificateResult(const std::string &payload); + ~DeleteClientCertificateResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CAS_MODEL_DELETEUSERCERTIFICATERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_DELETECLIENTCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DeletePCACertResult.h b/cas/include/alibabacloud/cas/model/DeletePCACertResult.h deleted file mode 100644 index d4bb0fde5..000000000 --- a/cas/include/alibabacloud/cas/model/DeletePCACertResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_DELETEPCACERTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_DELETEPCACERTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT DeletePCACertResult : public ServiceResult - { - public: - - - DeletePCACertResult(); - explicit DeletePCACertResult(const std::string &payload); - ~DeletePCACertResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_DELETEPCACERTRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeCACertificateCountRequest.h b/cas/include/alibabacloud/cas/model/DescribeCACertificateCountRequest.h new file mode 100644 index 000000000..b9f9dc952 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeCACertificateCountRequest.h @@ -0,0 +1,39 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATECOUNTREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATECOUNTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT DescribeCACertificateCountRequest : public RpcServiceRequest { +public: + DescribeCACertificateCountRequest(); + ~DescribeCACertificateCountRequest(); + +private: +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATECOUNTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DeleteCertificateRequestResult.h b/cas/include/alibabacloud/cas/model/DescribeCACertificateCountResult.h similarity index 65% rename from cas/include/alibabacloud/cas/model/DeleteCertificateRequestResult.h rename to cas/include/alibabacloud/cas/model/DescribeCACertificateCountResult.h index d22ac2171..6e9711f27 100644 --- a/cas/include/alibabacloud/cas/model/DeleteCertificateRequestResult.h +++ b/cas/include/alibabacloud/cas/model/DescribeCACertificateCountResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_DELETECERTIFICATEREQUESTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_DELETECERTIFICATEREQUESTRESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATECOUNTRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATECOUNTRESULT_H_ #include #include @@ -29,21 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT DeleteCertificateRequestResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT DescribeCACertificateCountResult : public ServiceResult { public: - DeleteCertificateRequestResult(); - explicit DeleteCertificateRequestResult(const std::string &payload); - ~DeleteCertificateRequestResult(); + DescribeCACertificateCountResult(); + explicit DescribeCACertificateCountResult(const std::string &payload); + ~DescribeCACertificateCountResult(); + int getTotalCount()const; protected: void parse(const std::string &payload); private: + int totalCount_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_DELETECERTIFICATEREQUESTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATECOUNTRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeCACertificateListRequest.h b/cas/include/alibabacloud/cas/model/DescribeCACertificateListRequest.h new file mode 100644 index 000000000..b53cdc486 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeCACertificateListRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATELISTREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT DescribeCACertificateListRequest : public RpcServiceRequest { +public: + DescribeCACertificateListRequest(); + ~DescribeCACertificateListRequest(); + std::string getCaStatus() const; + void setCaStatus(const std::string &caStatus); + std::string getCertType() const; + void setCertType(const std::string &certType); + std::string getValidStatus() const; + void setValidStatus(const std::string &validStatus); + std::string getIssuerType() const; + void setIssuerType(const std::string &issuerType); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + int getShowSize() const; + void setShowSize(int showSize); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + +private: + std::string caStatus_; + std::string certType_; + std::string validStatus_; + std::string issuerType_; + std::string identifier_; + int showSize_; + int currentPage_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATELISTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DescribeCACertificateListResult.h b/cas/include/alibabacloud/cas/model/DescribeCACertificateListResult.h new file mode 100644 index 000000000..50b5c0a36 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeCACertificateListResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATELISTRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeCACertificateListResult : public ServiceResult + { + public: + struct Certificate + { + std::string sha2; + std::string organization; + std::string subjectDN; + std::string identifier; + std::string sans; + std::string countryCode; + std::string signAlgorithm; + std::string commonName; + std::string md5; + long beforeDate; + std::string status; + long afterDate; + int years; + int trial; + std::string locality; + std::string algorithm; + std::string parentIdentifier; + std::string x509Certificate; + std::string certificateType; + int gift; + std::string serialNumber; + std::string state; + std::string organizationUnit; + std::string alias; + int keySize; + }; + + + DescribeCACertificateListResult(); + explicit DescribeCACertificateListResult(const std::string &payload); + ~DescribeCACertificateListResult(); + int getTotalCount()const; + int getPageCount()const; + int getCurrentPage()const; + std::vector getCertificateList()const; + int getShowSize()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageCount_; + int currentPage_; + std::vector certificateList_; + int showSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATELISTRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/GetCertWarehouseQuotaRequest.h b/cas/include/alibabacloud/cas/model/DescribeCACertificateRequest.h similarity index 67% rename from cas/include/alibabacloud/cas/model/GetCertWarehouseQuotaRequest.h rename to cas/include/alibabacloud/cas/model/DescribeCACertificateRequest.h index e925dc2be..f4c438531 100644 --- a/cas/include/alibabacloud/cas/model/GetCertWarehouseQuotaRequest.h +++ b/cas/include/alibabacloud/cas/model/DescribeCACertificateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_GETCERTWAREHOUSEQUOTAREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_GETCERTWAREHOUSEQUOTAREQUEST_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATEREQUEST_H_ #include #include @@ -26,17 +26,17 @@ namespace AlibabaCloud { namespace Cas { namespace Model { -class ALIBABACLOUD_CAS_EXPORT GetCertWarehouseQuotaRequest : public RpcServiceRequest { +class ALIBABACLOUD_CAS_EXPORT DescribeCACertificateRequest : public RpcServiceRequest { public: - GetCertWarehouseQuotaRequest(); - ~GetCertWarehouseQuotaRequest(); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); + DescribeCACertificateRequest(); + ~DescribeCACertificateRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); private: - std::string sourceIp_; + std::string identifier_; }; } // namespace Model } // namespace Cas } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_GETCERTWAREHOUSEQUOTAREQUEST_H_ +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DescribeCACertificateResult.h b/cas/include/alibabacloud/cas/model/DescribeCACertificateResult.h new file mode 100644 index 000000000..b3f694fbf --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeCACertificateResult.h @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeCACertificateResult : public ServiceResult + { + public: + struct Certificate + { + std::string sha2; + std::string organization; + std::string subjectDN; + std::string crlStatus; + long certRemainingCount; + int crlDay; + std::string identifier; + std::string sans; + std::string caCertChain; + std::string countryCode; + std::string fullAlgorithm; + std::string commonName; + std::string signAlgorithm; + long beforeDate; + std::string md5; + std::string status; + long afterDate; + int years; + std::string issuerType; + std::string locality; + std::string algorithm; + std::string parentIdentifier; + std::string x509Certificate; + std::string certificateType; + std::string serialNumber; + std::string organizationUnit; + std::string state; + long certTotalCount; + int keySize; + std::string crlUrl; + long certIssuedCount; + }; + + + DescribeCACertificateResult(); + explicit DescribeCACertificateResult(const std::string &payload); + ~DescribeCACertificateResult(); + int getYears()const; + Certificate getCertificate()const; + + protected: + void parse(const std::string &payload); + private: + int years_; + Certificate certificate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeCertificatePrivateKeyRequest.h b/cas/include/alibabacloud/cas/model/DescribeCertificatePrivateKeyRequest.h new file mode 100644 index 000000000..e9db1b0b4 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeCertificatePrivateKeyRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATEPRIVATEKEYREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATEPRIVATEKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT DescribeCertificatePrivateKeyRequest : public RpcServiceRequest { +public: + DescribeCertificatePrivateKeyRequest(); + ~DescribeCertificatePrivateKeyRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + std::string getEncryptedCode() const; + void setEncryptedCode(const std::string &encryptedCode); + +private: + std::string identifier_; + std::string encryptedCode_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATEPRIVATEKEYREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CreateCertificateWithCsrRequestResult.h b/cas/include/alibabacloud/cas/model/DescribeCertificatePrivateKeyResult.h similarity index 63% rename from cas/include/alibabacloud/cas/model/CreateCertificateWithCsrRequestResult.h rename to cas/include/alibabacloud/cas/model/DescribeCertificatePrivateKeyResult.h index c3c566534..cfd0d7901 100644 --- a/cas/include/alibabacloud/cas/model/CreateCertificateWithCsrRequestResult.h +++ b/cas/include/alibabacloud/cas/model/DescribeCertificatePrivateKeyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEWITHCSRREQUESTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEWITHCSRREQUESTRESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATEPRIVATEKEYRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATEPRIVATEKEYRESULT_H_ #include #include @@ -29,23 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT CreateCertificateWithCsrRequestResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT DescribeCertificatePrivateKeyResult : public ServiceResult { public: - CreateCertificateWithCsrRequestResult(); - explicit CreateCertificateWithCsrRequestResult(const std::string &payload); - ~CreateCertificateWithCsrRequestResult(); - long getOrderId()const; + DescribeCertificatePrivateKeyResult(); + explicit DescribeCertificatePrivateKeyResult(const std::string &payload); + ~DescribeCertificatePrivateKeyResult(); + std::string getEncryptedData()const; protected: void parse(const std::string &payload); private: - long orderId_; + std::string encryptedData_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_CREATECERTIFICATEWITHCSRREQUESTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATEPRIVATEKEYRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeCertificateStateRequest.h b/cas/include/alibabacloud/cas/model/DescribeCertificateStateRequest.h deleted file mode 100644 index 30f88e9e8..000000000 --- a/cas/include/alibabacloud/cas/model/DescribeCertificateStateRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATESTATEREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATESTATEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT DescribeCertificateStateRequest : public RpcServiceRequest { -public: - DescribeCertificateStateRequest(); - ~DescribeCertificateStateRequest(); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - long getOrderId() const; - void setOrderId(long orderId); - -private: - std::string sourceIp_; - long orderId_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATESTATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DescribeCertificateStateResult.h b/cas/include/alibabacloud/cas/model/DescribeCertificateStateResult.h deleted file mode 100644 index 503275951..000000000 --- a/cas/include/alibabacloud/cas/model/DescribeCertificateStateResult.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATESTATERESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATESTATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT DescribeCertificateStateResult : public ServiceResult - { - public: - - - DescribeCertificateStateResult(); - explicit DescribeCertificateStateResult(const std::string &payload); - ~DescribeCertificateStateResult(); - std::string getType()const; - std::string getPrivateKey()const; - std::string getRecordType()const; - std::string getContent()const; - std::string getRecordDomain()const; - std::string getRecordValue()const; - std::string getDomain()const; - std::string getValidateType()const; - std::string getUri()const; - std::string getCertificate()const; - - protected: - void parse(const std::string &payload); - private: - std::string type_; - std::string privateKey_; - std::string recordType_; - std::string content_; - std::string recordDomain_; - std::string recordValue_; - std::string domain_; - std::string validateType_; - std::string uri_; - std::string certificate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATESTATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/RevokeWHClientCertificateRequest.h b/cas/include/alibabacloud/cas/model/DescribeClientCertificateRequest.h similarity index 69% rename from cas/include/alibabacloud/cas/model/RevokeWHClientCertificateRequest.h rename to cas/include/alibabacloud/cas/model/DescribeClientCertificateRequest.h index 6327095b4..ce9a918de 100644 --- a/cas/include/alibabacloud/cas/model/RevokeWHClientCertificateRequest.h +++ b/cas/include/alibabacloud/cas/model/DescribeClientCertificateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_REVOKEWHCLIENTCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_REVOKEWHCLIENTCERTIFICATEREQUEST_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATEREQUEST_H_ #include #include @@ -26,20 +26,17 @@ namespace AlibabaCloud { namespace Cas { namespace Model { -class ALIBABACLOUD_CAS_EXPORT RevokeWHClientCertificateRequest : public RpcServiceRequest { +class ALIBABACLOUD_CAS_EXPORT DescribeClientCertificateRequest : public RpcServiceRequest { public: - RevokeWHClientCertificateRequest(); - ~RevokeWHClientCertificateRequest(); + DescribeClientCertificateRequest(); + ~DescribeClientCertificateRequest(); std::string getIdentifier() const; void setIdentifier(const std::string &identifier); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); private: std::string identifier_; - std::string sourceIp_; }; } // namespace Model } // namespace Cas } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_REVOKEWHCLIENTCERTIFICATEREQUEST_H_ +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DescribeClientCertificateResult.h b/cas/include/alibabacloud/cas/model/DescribeClientCertificateResult.h new file mode 100644 index 000000000..1cd0ad0e9 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeClientCertificateResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT DescribeClientCertificateResult : public ServiceResult + { + public: + struct Certificate + { + std::string status; + long afterDate; + std::string sha2; + std::string organization; + std::string locality; + std::string subjectDN; + std::string algorithm; + std::string parentIdentifier; + std::string x509Certificate; + std::string certificateType; + std::string identifier; + std::string serialNumber; + std::string sans; + std::string organizationUnit; + std::string state; + int days; + std::string countryCode; + int keySize; + std::string commonName; + long beforeDate; + std::string signAlgorithm; + std::string md5; + }; + + + DescribeClientCertificateResult(); + explicit DescribeClientCertificateResult(const std::string &payload); + ~DescribeClientCertificateResult(); + Certificate getCertificate()const; + + protected: + void parse(const std::string &payload); + private: + Certificate certificate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribeClientCertificateStatusRequest.h b/cas/include/alibabacloud/cas/model/DescribeClientCertificateStatusRequest.h new file mode 100644 index 000000000..38184d676 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/DescribeClientCertificateStatusRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATESTATUSREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT DescribeClientCertificateStatusRequest : public RpcServiceRequest { +public: + DescribeClientCertificateStatusRequest(); + ~DescribeClientCertificateStatusRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + +private: + std::string identifier_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATESTATUSREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CancelCertificateForPackageRequestResult.h b/cas/include/alibabacloud/cas/model/DescribeClientCertificateStatusResult.h similarity index 56% rename from cas/include/alibabacloud/cas/model/CancelCertificateForPackageRequestResult.h rename to cas/include/alibabacloud/cas/model/DescribeClientCertificateStatusResult.h index 9f5567151..0948635d1 100644 --- a/cas/include/alibabacloud/cas/model/CancelCertificateForPackageRequestResult.h +++ b/cas/include/alibabacloud/cas/model/DescribeClientCertificateStatusResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_CANCELCERTIFICATEFORPACKAGEREQUESTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_CANCELCERTIFICATEFORPACKAGEREQUESTRESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATESTATUSRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATESTATUSRESULT_H_ #include #include @@ -29,21 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT CancelCertificateForPackageRequestResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT DescribeClientCertificateStatusResult : public ServiceResult { public: + struct CertificateStatusItem + { + std::string status; + long revokeTime; + std::string serialNumber; + }; - CancelCertificateForPackageRequestResult(); - explicit CancelCertificateForPackageRequestResult(const std::string &payload); - ~CancelCertificateForPackageRequestResult(); + DescribeClientCertificateStatusResult(); + explicit DescribeClientCertificateStatusResult(const std::string &payload); + ~DescribeClientCertificateStatusResult(); + std::vector getCertificateStatus()const; protected: void parse(const std::string &payload); private: + std::vector certificateStatus_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_CANCELCERTIFICATEFORPACKAGEREQUESTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATESTATUSRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/EncryptRequest.h b/cas/include/alibabacloud/cas/model/EncryptRequest.h deleted file mode 100644 index 7215c4a95..000000000 --- a/cas/include/alibabacloud/cas/model/EncryptRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_ENCRYPTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_ENCRYPTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT EncryptRequest : public RpcServiceRequest { -public: - EncryptRequest(); - ~EncryptRequest(); - std::string getMessageType() const; - void setMessageType(const std::string &messageType); - std::string getPlaintext() const; - void setPlaintext(const std::string &plaintext); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getCertIdentifier() const; - void setCertIdentifier(const std::string &certIdentifier); - std::string getAlgorithm() const; - void setAlgorithm(const std::string &algorithm); - -private: - std::string messageType_; - std::string plaintext_; - std::string sourceIp_; - std::string certIdentifier_; - std::string algorithm_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_ENCRYPTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/EncryptResult.h b/cas/include/alibabacloud/cas/model/EncryptResult.h deleted file mode 100644 index 17e91137a..000000000 --- a/cas/include/alibabacloud/cas/model/EncryptResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_ENCRYPTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_ENCRYPTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT EncryptResult : public ServiceResult - { - public: - - - EncryptResult(); - explicit EncryptResult(const std::string &payload); - ~EncryptResult(); - std::string getCiphertextBlob()const; - std::string getCertIdentifier()const; - - protected: - void parse(const std::string &payload); - private: - std::string ciphertextBlob_; - std::string certIdentifier_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_ENCRYPTRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DeleteCertificateRequestRequest.h b/cas/include/alibabacloud/cas/model/GetCAInstanceStatusRequest.h similarity index 60% rename from cas/include/alibabacloud/cas/model/DeleteCertificateRequestRequest.h rename to cas/include/alibabacloud/cas/model/GetCAInstanceStatusRequest.h index 853f43c21..a46b5da3e 100644 --- a/cas/include/alibabacloud/cas/model/DeleteCertificateRequestRequest.h +++ b/cas/include/alibabacloud/cas/model/GetCAInstanceStatusRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_DELETECERTIFICATEREQUESTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_DELETECERTIFICATEREQUESTREQUEST_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_GETCAINSTANCESTATUSREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_GETCAINSTANCESTATUSREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace Cas { namespace Model { -class ALIBABACLOUD_CAS_EXPORT DeleteCertificateRequestRequest : public RpcServiceRequest { +class ALIBABACLOUD_CAS_EXPORT GetCAInstanceStatusRequest : public RpcServiceRequest { public: - DeleteCertificateRequestRequest(); - ~DeleteCertificateRequestRequest(); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - long getOrderId() const; - void setOrderId(long orderId); + GetCAInstanceStatusRequest(); + ~GetCAInstanceStatusRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); private: - std::string sourceIp_; - long orderId_; + std::string identifier_; + std::string instanceId_; }; } // namespace Model } // namespace Cas } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_DELETECERTIFICATEREQUESTREQUEST_H_ +#endif // !ALIBABACLOUD_CAS_MODEL_GETCAINSTANCESTATUSREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/ListCertWarehouseResult.h b/cas/include/alibabacloud/cas/model/GetCAInstanceStatusResult.h similarity index 55% rename from cas/include/alibabacloud/cas/model/ListCertWarehouseResult.h rename to cas/include/alibabacloud/cas/model/GetCAInstanceStatusResult.h index 68de6cc8f..78478dfa1 100644 --- a/cas/include/alibabacloud/cas/model/ListCertWarehouseResult.h +++ b/cas/include/alibabacloud/cas/model/GetCAInstanceStatusResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_LISTCERTWAREHOUSERESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_LISTCERTWAREHOUSERESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_GETCAINSTANCESTATUSRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_GETCAINSTANCESTATUSRESULT_H_ #include #include @@ -29,40 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT ListCertWarehouseResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT GetCAInstanceStatusResult : public ServiceResult { public: - struct CertWarehouse + struct InstanceStatus { - bool isExpired; + std::string status; std::string type; - long endTime; - long whId; + std::string identifier; std::string instanceId; - long qps; - std::string pcaInstanceId; - std::string name; + long beforeTime; + long useExpireTime; + long afterTime; + int certTotalCount; + int certIssuedCount; }; - ListCertWarehouseResult(); - explicit ListCertWarehouseResult(const std::string &payload); - ~ListCertWarehouseResult(); - long getTotalCount()const; - long getCurrentPage()const; - long getShowSize()const; - std::vector getCertWarehouseList()const; + GetCAInstanceStatusResult(); + explicit GetCAInstanceStatusResult(const std::string &payload); + ~GetCAInstanceStatusResult(); + std::vector getInstanceStatusList()const; protected: void parse(const std::string &payload); private: - long totalCount_; - long currentPage_; - long showSize_; - std::vector certWarehouseList_; + std::vector instanceStatusList_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_LISTCERTWAREHOUSERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_GETCAINSTANCESTATUSRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/GetCertWarehouseQuotaResult.h b/cas/include/alibabacloud/cas/model/GetCertWarehouseQuotaResult.h deleted file mode 100644 index 67166373b..000000000 --- a/cas/include/alibabacloud/cas/model/GetCertWarehouseQuotaResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_GETCERTWAREHOUSEQUOTARESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_GETCERTWAREHOUSEQUOTARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT GetCertWarehouseQuotaResult : public ServiceResult - { - public: - - - GetCertWarehouseQuotaResult(); - explicit GetCertWarehouseQuotaResult(const std::string &payload); - ~GetCertWarehouseQuotaResult(); - long getTotalQuota()const; - long getUseCount()const; - - protected: - void parse(const std::string &payload); - private: - long totalQuota_; - long useCount_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_GETCERTWAREHOUSEQUOTARESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/GetUserCertificateDetailRequest.h b/cas/include/alibabacloud/cas/model/GetUserCertificateDetailRequest.h deleted file mode 100644 index 9b8e9eefb..000000000 --- a/cas/include/alibabacloud/cas/model/GetUserCertificateDetailRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_GETUSERCERTIFICATEDETAILREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_GETUSERCERTIFICATEDETAILREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT GetUserCertificateDetailRequest : public RpcServiceRequest { -public: - GetUserCertificateDetailRequest(); - ~GetUserCertificateDetailRequest(); - long getCertId() const; - 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 -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_GETUSERCERTIFICATEDETAILREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/GetUserCertificateDetailResult.h b/cas/include/alibabacloud/cas/model/GetUserCertificateDetailResult.h deleted file mode 100644 index 7876ca546..000000000 --- a/cas/include/alibabacloud/cas/model/GetUserCertificateDetailResult.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_GETUSERCERTIFICATEDETAILRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_GETUSERCERTIFICATEDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT GetUserCertificateDetailResult : public ServiceResult - { - public: - - - GetUserCertificateDetailResult(); - explicit GetUserCertificateDetailResult(const std::string &payload); - ~GetUserCertificateDetailResult(); - std::string getSignCert()const; - std::string getFingerprint()const; - std::string getResourceGroupId()const; - std::string getIssuer()const; - std::string getEncryptCert()const; - std::string getOrgName()const; - bool getExpired()const; - 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; - bool getBuyInAliyun()const; - std::string getStartDate()const; - std::string getSans()const; - std::string getCountry()const; - std::string getSignPrivateKey()const; - std::string getCert()const; - std::string getEncryptPrivateKey()const; - long getId()const; - std::string getKey()const; - - protected: - void parse(const std::string &payload); - private: - std::string signCert_; - std::string fingerprint_; - std::string resourceGroupId_; - std::string issuer_; - std::string encryptCert_; - std::string orgName_; - bool expired_; - std::string city_; - long orderId_; - std::string endDate_; - std::string algorithm_; - std::string province_; - std::string name_; - std::string common_; - bool buyInAliyun_; - std::string startDate_; - std::string sans_; - std::string country_; - std::string signPrivateKey_; - std::string cert_; - std::string encryptPrivateKey_; - long id_; - std::string key_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_GETUSERCERTIFICATEDETAILRESULT_H_ \ 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 366f7b65c..2bb43b5fc 100644 --- a/cas/include/alibabacloud/cas/model/ListCertRequest.h +++ b/cas/include/alibabacloud/cas/model/ListCertRequest.h @@ -30,31 +30,34 @@ class ALIBABACLOUD_CAS_EXPORT ListCertRequest : public RpcServiceRequest { public: ListCertRequest(); ~ListCertRequest(); - std::string getSourceIp() const; - 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; - void setKeyWord(const std::string &keyWord); - long getShowSize() const; - void setShowSize(long showSize); - long getCurrentPage() const; - void setCurrentPage(long currentPage); + std::string getBeforeDate() const; + void setBeforeDate(const std::string &beforeDate); + int getShowSize() const; + void setShowSize(int showSize); + std::string getInstanceUuid() const; + void setInstanceUuid(const std::string &instanceUuid); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getType() const; + void setType(const std::string &type); + std::string getAfterDate() const; + void setAfterDate(const std::string &afterDate); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); std::string getStatus() const; void setStatus(const std::string &status); private: - std::string sourceIp_; - long warehouseId_; - std::string certType_; - std::string sourceType_; - std::string keyWord_; - long showSize_; - long currentPage_; + std::string beforeDate_; + int showSize_; + std::string instanceUuid_; + int currentPage_; + std::string type_; + std::string afterDate_; + std::string nextToken_; + int maxResults_; std::string status_; }; } // namespace Model diff --git a/cas/include/alibabacloud/cas/model/ListCertResult.h b/cas/include/alibabacloud/cas/model/ListCertResult.h index 019fef2f1..b4ac7e1e7 100644 --- a/cas/include/alibabacloud/cas/model/ListCertResult.h +++ b/cas/include/alibabacloud/cas/model/ListCertResult.h @@ -32,38 +32,50 @@ namespace AlibabaCloud class ALIBABACLOUD_CAS_EXPORT ListCertResult : public ServiceResult { public: - struct Cert + struct ListItem { std::string status; - long afterDate; + std::string afterDate; + std::string organization; + bool keyExportable; + std::string subjectDn; + std::string algorithm; + std::string certificateType; std::string identifier; - std::string sans; - long whId; - std::string issuer; - bool existPrivateKey; - std::string sourceType; - std::string certType; - std::string whInstanceId; + std::string serialNumber; + std::string extra; + std::string organizationUnit; + long beforeTime; + std::string aliasName; + long afterTime; + std::string id; + std::vector tags; std::string commonName; - long beforeDate; + std::string beforeDate; }; ListCertResult(); explicit ListCertResult(const std::string &payload); ~ListCertResult(); - std::vector getCertList()const; long getTotalCount()const; - long getCurrentPage()const; - long getShowSize()const; + int getPageCount()const; + std::string getNextToken()const; + int getCurrentPage()const; + int getMaxResults()const; + int getShowSize()const; + std::vector getList()const; protected: void parse(const std::string &payload); private: - std::vector certList_; long totalCount_; - long currentPage_; - long showSize_; + int pageCount_; + std::string nextToken_; + int currentPage_; + int maxResults_; + int showSize_; + std::vector list_; }; } diff --git a/cas/include/alibabacloud/cas/model/ListCertWarehouseRequest.h b/cas/include/alibabacloud/cas/model/ListCertWarehouseRequest.h deleted file mode 100644 index 5a50e9ac5..000000000 --- a/cas/include/alibabacloud/cas/model/ListCertWarehouseRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_LISTCERTWAREHOUSEREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_LISTCERTWAREHOUSEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT ListCertWarehouseRequest : public RpcServiceRequest { -public: - ListCertWarehouseRequest(); - ~ListCertWarehouseRequest(); - long getShowSize() const; - void setShowSize(long showSize); - long getCurrentPage() const; - void setCurrentPage(long currentPage); - std::string getType() const; - void setType(const std::string &type); - std::string getInstanceId() const; - void setInstanceId(const std::string &instanceId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getName() const; - void setName(const std::string &name); - -private: - long showSize_; - long currentPage_; - std::string type_; - std::string instanceId_; - std::string sourceIp_; - std::string name_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_LISTCERTWAREHOUSEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/ListClientCertificateRequest.h b/cas/include/alibabacloud/cas/model/ListClientCertificateRequest.h new file mode 100644 index 000000000..ff6a94911 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/ListClientCertificateRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_LISTCLIENTCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTCLIENTCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT ListClientCertificateRequest : public RpcServiceRequest { +public: + ListClientCertificateRequest(); + ~ListClientCertificateRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + int getShowSize() const; + void setShowSize(int showSize); + +private: + std::string identifier_; + int currentPage_; + int showSize_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_LISTCLIENTCERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/ListClientCertificateResult.h b/cas/include/alibabacloud/cas/model/ListClientCertificateResult.h new file mode 100644 index 000000000..565b574e3 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/ListClientCertificateResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_LISTCLIENTCERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTCLIENTCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT ListClientCertificateResult : public ServiceResult + { + public: + struct Certificate + { + std::string status; + long afterDate; + std::string sha2; + std::string organization; + std::string locality; + std::string subjectDN; + std::string algorithm; + std::string parentIdentifier; + std::string x509Certificate; + std::string certificateType; + std::string identifier; + std::string serialNumber; + std::string sans; + std::string organizationUnit; + std::string state; + int days; + std::string countryCode; + int keySize; + std::string commonName; + long beforeDate; + std::string signAlgorithm; + std::string md5; + }; + + + ListClientCertificateResult(); + explicit ListClientCertificateResult(const std::string &payload); + ~ListClientCertificateResult(); + long getTotalCount()const; + int getPageCount()const; + int getCurrentPage()const; + std::vector getCertificateList()const; + int getShowSize()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageCount_; + int currentPage_; + std::vector certificateList_; + int showSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_LISTCLIENTCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DescribePackageStateRequest.h b/cas/include/alibabacloud/cas/model/ListPcaCaCertificateRequest.h similarity index 57% rename from cas/include/alibabacloud/cas/model/DescribePackageStateRequest.h rename to cas/include/alibabacloud/cas/model/ListPcaCaCertificateRequest.h index b73111c7a..1ac51b508 100644 --- a/cas/include/alibabacloud/cas/model/DescribePackageStateRequest.h +++ b/cas/include/alibabacloud/cas/model/ListPcaCaCertificateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBEPACKAGESTATEREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_DESCRIBEPACKAGESTATEREQUEST_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_LISTPCACACERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTPCACACERTIFICATEREQUEST_H_ #include #include @@ -26,20 +26,23 @@ namespace AlibabaCloud { namespace Cas { namespace Model { -class ALIBABACLOUD_CAS_EXPORT DescribePackageStateRequest : public RpcServiceRequest { +class ALIBABACLOUD_CAS_EXPORT ListPcaCaCertificateRequest : public RpcServiceRequest { public: - DescribePackageStateRequest(); - ~DescribePackageStateRequest(); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getProductCode() const; - void setProductCode(const std::string &productCode); + ListPcaCaCertificateRequest(); + ~ListPcaCaCertificateRequest(); + std::string getInnerAccessToken() const; + void setInnerAccessToken(const std::string &innerAccessToken); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); private: - std::string sourceIp_; - std::string productCode_; + std::string innerAccessToken_; + std::string nextToken_; + int maxResults_; }; } // namespace Model } // namespace Cas } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBEPACKAGESTATEREQUEST_H_ +#endif // !ALIBABACLOUD_CAS_MODEL_LISTPCACACERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/DescribePackageStateResult.h b/cas/include/alibabacloud/cas/model/ListPcaCaCertificateResult.h similarity index 54% rename from cas/include/alibabacloud/cas/model/DescribePackageStateResult.h rename to cas/include/alibabacloud/cas/model/ListPcaCaCertificateResult.h index 81e170980..abb5e979e 100644 --- a/cas/include/alibabacloud/cas/model/DescribePackageStateResult.h +++ b/cas/include/alibabacloud/cas/model/ListPcaCaCertificateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_DESCRIBEPACKAGESTATERESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_DESCRIBEPACKAGESTATERESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_LISTPCACACERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTPCACACERTIFICATERESULT_H_ #include #include @@ -29,29 +29,40 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT DescribePackageStateResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT ListPcaCaCertificateResult : public ServiceResult { public: + struct ListItem + { + std::string status; + std::string issuerIdentifier; + std::string userId; + std::string certIdentifier; + std::string privateCaInstanceId; + std::string privateCaRegionId; + ObjectOfAny innerResult; + std::string commonName; + }; - DescribePackageStateResult(); - explicit DescribePackageStateResult(const std::string &payload); - ~DescribePackageStateResult(); + ListPcaCaCertificateResult(); + explicit ListPcaCaCertificateResult(const std::string &payload); + ~ListPcaCaCertificateResult(); long getTotalCount()const; - std::string getProductCode()const; - long getUsedCount()const; - long getIssuedCount()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getList()const; protected: void parse(const std::string &payload); private: long totalCount_; - std::string productCode_; - long usedCount_; - long issuedCount_; + std::string nextToken_; + int maxResults_; + std::vector list_; }; } } } -#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBEPACKAGESTATERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_LISTPCACACERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/DeleteUserCertificateRequest.h b/cas/include/alibabacloud/cas/model/ListRevokeCertificateRequest.h similarity index 64% rename from cas/include/alibabacloud/cas/model/DeleteUserCertificateRequest.h rename to cas/include/alibabacloud/cas/model/ListRevokeCertificateRequest.h index 43b01aa7c..2c1fb0a17 100644 --- a/cas/include/alibabacloud/cas/model/DeleteUserCertificateRequest.h +++ b/cas/include/alibabacloud/cas/model/ListRevokeCertificateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_DELETEUSERCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_DELETEUSERCERTIFICATEREQUEST_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_LISTREVOKECERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTREVOKECERTIFICATEREQUEST_H_ #include #include @@ -26,20 +26,20 @@ namespace AlibabaCloud { namespace Cas { namespace Model { -class ALIBABACLOUD_CAS_EXPORT DeleteUserCertificateRequest : public RpcServiceRequest { +class ALIBABACLOUD_CAS_EXPORT ListRevokeCertificateRequest : public RpcServiceRequest { public: - DeleteUserCertificateRequest(); - ~DeleteUserCertificateRequest(); - long getCertId() const; - void setCertId(long certId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); + ListRevokeCertificateRequest(); + ~ListRevokeCertificateRequest(); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + int getShowSize() const; + void setShowSize(int showSize); private: - long certId_; - std::string sourceIp_; + int currentPage_; + int showSize_; }; } // namespace Model } // namespace Cas } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_DELETEUSERCERTIFICATEREQUEST_H_ +#endif // !ALIBABACLOUD_CAS_MODEL_LISTREVOKECERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/ListRevokeCertificateResult.h b/cas/include/alibabacloud/cas/model/ListRevokeCertificateResult.h new file mode 100644 index 000000000..7768f6213 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/ListRevokeCertificateResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_LISTREVOKECERTIFICATERESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_LISTREVOKECERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cas + { + namespace Model + { + class ALIBABACLOUD_CAS_EXPORT ListRevokeCertificateResult : public ServiceResult + { + public: + struct Certificate + { + std::string status; + std::string afterDate; + std::string sha2; + std::string organization; + std::string locality; + std::string subjectDN; + std::string algorithm; + std::string parentIdentifier; + std::string certificateType; + std::string identifier; + std::string serialNumber; + std::string sans; + std::string organizationUnit; + std::string state; + std::string countryCode; + int keySize; + std::string revokeDate; + std::string commonName; + std::string beforeDate; + std::string signAlgorithm; + std::string md5; + }; + + + ListRevokeCertificateResult(); + explicit ListRevokeCertificateResult(const std::string &payload); + ~ListRevokeCertificateResult(); + long getTotalCount()const; + int getPageCount()const; + int getCurrentPage()const; + std::vector getCertificateList()const; + int getShowSize()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + int pageCount_; + int currentPage_; + std::vector certificateList_; + int showSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CAS_MODEL_LISTREVOKECERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/ListUserCertificateOrderRequest.h b/cas/include/alibabacloud/cas/model/ListUserCertificateOrderRequest.h deleted file mode 100644 index 8ab448c05..000000000 --- a/cas/include/alibabacloud/cas/model/ListUserCertificateOrderRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_LISTUSERCERTIFICATEORDERREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_LISTUSERCERTIFICATEORDERREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT ListUserCertificateOrderRequest : public RpcServiceRequest { -public: - ListUserCertificateOrderRequest(); - ~ListUserCertificateOrderRequest(); - std::string getResourceGroupId() const; - void setResourceGroupId(const std::string &resourceGroupId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getKeyword() const; - void setKeyword(const std::string &keyword); - long getShowSize() const; - void setShowSize(long showSize); - long getCurrentPage() const; - void setCurrentPage(long currentPage); - std::string getStatus() const; - void setStatus(const std::string &status); - std::string getOrderType() const; - void setOrderType(const std::string &orderType); - -private: - std::string resourceGroupId_; - std::string sourceIp_; - std::string keyword_; - long showSize_; - long currentPage_; - std::string status_; - std::string orderType_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_LISTUSERCERTIFICATEORDERREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/ListUserCertificateOrderResult.h b/cas/include/alibabacloud/cas/model/ListUserCertificateOrderResult.h deleted file mode 100644 index 9d8a4a09d..000000000 --- a/cas/include/alibabacloud/cas/model/ListUserCertificateOrderResult.h +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_LISTUSERCERTIFICATEORDERRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_LISTUSERCERTIFICATEORDERRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT ListUserCertificateOrderResult : public ServiceResult - { - public: - struct CertificateOrderListItem - { - std::string sha2; - std::string productName; - std::string resourceGroupId; - std::string issuer; - long certificateId; - std::string sourceType; - std::string certType; - bool upload; - std::string partnerOrderId; - std::string orgName; - std::string rootBrand; - std::string name; - std::string startDate; - long aliyunOrderId; - std::string domainType; - std::string trusteeStatus; - std::string sans; - long domainCount; - std::string commonName; - std::string status; - std::string serialNo; - std::string fingerprint; - std::string instanceId; - std::string productCode; - long certEndTime; - long wildDomainCount; - bool expired; - std::string city; - long certStartTime; - long orderId; - std::string algorithm; - std::string endDate; - std::string province; - std::string country; - std::string domain; - long buyDate; - }; - - - ListUserCertificateOrderResult(); - explicit ListUserCertificateOrderResult(const std::string &payload); - ~ListUserCertificateOrderResult(); - long getTotalCount()const; - long getCurrentPage()const; - long getShowSize()const; - std::vector getCertificateOrderList()const; - - protected: - void parse(const std::string &payload); - private: - long totalCount_; - long currentPage_; - long showSize_; - std::vector certificateOrderList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_LISTUSERCERTIFICATEORDERRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/RenewCertificateOrderForPackageRequestRequest.h b/cas/include/alibabacloud/cas/model/RenewCertificateOrderForPackageRequestRequest.h deleted file mode 100644 index ffab20cf6..000000000 --- a/cas/include/alibabacloud/cas/model/RenewCertificateOrderForPackageRequestRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_RENEWCERTIFICATEORDERFORPACKAGEREQUESTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_RENEWCERTIFICATEORDERFORPACKAGEREQUESTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT RenewCertificateOrderForPackageRequestRequest : public RpcServiceRequest { -public: - RenewCertificateOrderForPackageRequestRequest(); - ~RenewCertificateOrderForPackageRequestRequest(); - std::string getCsr() const; - void setCsr(const std::string &csr); - long getOrderId() const; - void setOrderId(long orderId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - -private: - std::string csr_; - long orderId_; - std::string sourceIp_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_RENEWCERTIFICATEORDERFORPACKAGEREQUESTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/RenewCertificateOrderForPackageRequestResult.h b/cas/include/alibabacloud/cas/model/RenewCertificateOrderForPackageRequestResult.h deleted file mode 100644 index e99311c23..000000000 --- a/cas/include/alibabacloud/cas/model/RenewCertificateOrderForPackageRequestResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_RENEWCERTIFICATEORDERFORPACKAGEREQUESTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_RENEWCERTIFICATEORDERFORPACKAGEREQUESTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT RenewCertificateOrderForPackageRequestResult : public ServiceResult - { - public: - - - RenewCertificateOrderForPackageRequestResult(); - explicit RenewCertificateOrderForPackageRequestResult(const std::string &payload); - ~RenewCertificateOrderForPackageRequestResult(); - long getOrderId()const; - - protected: - void parse(const std::string &payload); - private: - long orderId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_RENEWCERTIFICATEORDERFORPACKAGEREQUESTRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/SignRequest.h b/cas/include/alibabacloud/cas/model/SignRequest.h deleted file mode 100644 index a5a61e04a..000000000 --- a/cas/include/alibabacloud/cas/model/SignRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_SIGNREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_SIGNREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT SignRequest : public RpcServiceRequest { -public: - SignRequest(); - ~SignRequest(); - std::string getMessageType() const; - void setMessageType(const std::string &messageType); - std::string getSigningAlgorithm() const; - void setSigningAlgorithm(const std::string &signingAlgorithm); - std::string getMessage() const; - void setMessage(const std::string &message); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getCertIdentifier() const; - void setCertIdentifier(const std::string &certIdentifier); - -private: - std::string messageType_; - std::string signingAlgorithm_; - std::string message_; - std::string sourceIp_; - std::string certIdentifier_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_SIGNREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/SignResult.h b/cas/include/alibabacloud/cas/model/SignResult.h deleted file mode 100644 index 7f6da6a40..000000000 --- a/cas/include/alibabacloud/cas/model/SignResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_SIGNRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_SIGNRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT SignResult : public ServiceResult - { - public: - - - SignResult(); - explicit SignResult(const std::string &payload); - ~SignResult(); - std::string getSignature()const; - - protected: - void parse(const std::string &payload); - private: - std::string signature_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_SIGNRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/UpdateCACertificateStatusRequest.h b/cas/include/alibabacloud/cas/model/UpdateCACertificateStatusRequest.h new file mode 100644 index 000000000..1caded7d9 --- /dev/null +++ b/cas/include/alibabacloud/cas/model/UpdateCACertificateStatusRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CAS_MODEL_UPDATECACERTIFICATESTATUSREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_UPDATECACERTIFICATESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cas { +namespace Model { +class ALIBABACLOUD_CAS_EXPORT UpdateCACertificateStatusRequest : public RpcServiceRequest { +public: + UpdateCACertificateStatusRequest(); + ~UpdateCACertificateStatusRequest(); + std::string getIdentifier() const; + void setIdentifier(const std::string &identifier); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string identifier_; + std::string clientToken_; + std::string status_; +}; +} // namespace Model +} // namespace Cas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CAS_MODEL_UPDATECACERTIFICATESTATUSREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/RevokeWHClientCertificateResult.h b/cas/include/alibabacloud/cas/model/UpdateCACertificateStatusResult.h similarity index 71% rename from cas/include/alibabacloud/cas/model/RevokeWHClientCertificateResult.h rename to cas/include/alibabacloud/cas/model/UpdateCACertificateStatusResult.h index 75c6b8bf7..222159dc6 100644 --- a/cas/include/alibabacloud/cas/model/RevokeWHClientCertificateResult.h +++ b/cas/include/alibabacloud/cas/model/UpdateCACertificateStatusResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_REVOKEWHCLIENTCERTIFICATERESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_REVOKEWHCLIENTCERTIFICATERESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_UPDATECACERTIFICATESTATUSRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_UPDATECACERTIFICATESTATUSRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT RevokeWHClientCertificateResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT UpdateCACertificateStatusResult : public ServiceResult { public: - RevokeWHClientCertificateResult(); - explicit RevokeWHClientCertificateResult(const std::string &payload); - ~RevokeWHClientCertificateResult(); + UpdateCACertificateStatusResult(); + explicit UpdateCACertificateStatusResult(const std::string &payload); + ~UpdateCACertificateStatusResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CAS_MODEL_REVOKEWHCLIENTCERTIFICATERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_UPDATECACERTIFICATESTATUSRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/UploadPCACertRequest.h b/cas/include/alibabacloud/cas/model/UploadPCACertRequest.h deleted file mode 100644 index f47415a96..000000000 --- a/cas/include/alibabacloud/cas/model/UploadPCACertRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT UploadPCACertRequest : public RpcServiceRequest { -public: - UploadPCACertRequest(); - ~UploadPCACertRequest(); - std::string getCert() const; - void setCert(const std::string &cert); - std::string getPrivateKey() const; - void setPrivateKey(const std::string &privateKey); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - long getWarehouseId() const; - void setWarehouseId(long warehouseId); - std::string getName() const; - void setName(const std::string &name); - -private: - std::string cert_; - std::string privateKey_; - std::string sourceIp_; - long warehouseId_; - std::string name_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CancelOrderRequestRequest.h b/cas/include/alibabacloud/cas/model/UploadPcaCertToCasRequest.h similarity index 64% rename from cas/include/alibabacloud/cas/model/CancelOrderRequestRequest.h rename to cas/include/alibabacloud/cas/model/UploadPcaCertToCasRequest.h index e11d1eb76..960ca3847 100644 --- a/cas/include/alibabacloud/cas/model/CancelOrderRequestRequest.h +++ b/cas/include/alibabacloud/cas/model/UploadPcaCertToCasRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_CANCELORDERREQUESTREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_CANCELORDERREQUESTREQUEST_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTTOCASREQUEST_H_ +#define ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTTOCASREQUEST_H_ #include #include @@ -26,20 +26,17 @@ namespace AlibabaCloud { namespace Cas { namespace Model { -class ALIBABACLOUD_CAS_EXPORT CancelOrderRequestRequest : public RpcServiceRequest { +class ALIBABACLOUD_CAS_EXPORT UploadPcaCertToCasRequest : public RpcServiceRequest { public: - CancelOrderRequestRequest(); - ~CancelOrderRequestRequest(); - long getOrderId() const; - void setOrderId(long orderId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); + UploadPcaCertToCasRequest(); + ~UploadPcaCertToCasRequest(); + std::string getIds() const; + void setIds(const std::string &ids); private: - long orderId_; - std::string sourceIp_; + std::string ids_; }; } // namespace Model } // namespace Cas } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_CANCELORDERREQUESTREQUEST_H_ +#endif // !ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTTOCASREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/CancelOrderRequestResult.h b/cas/include/alibabacloud/cas/model/UploadPcaCertToCasResult.h similarity index 72% rename from cas/include/alibabacloud/cas/model/CancelOrderRequestResult.h rename to cas/include/alibabacloud/cas/model/UploadPcaCertToCasResult.h index 4c2c9cab4..3c71e5b63 100644 --- a/cas/include/alibabacloud/cas/model/CancelOrderRequestResult.h +++ b/cas/include/alibabacloud/cas/model/UploadPcaCertToCasResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CAS_MODEL_CANCELORDERREQUESTRESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_CANCELORDERREQUESTRESULT_H_ +#ifndef ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTTOCASRESULT_H_ +#define ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTTOCASRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CAS_EXPORT CancelOrderRequestResult : public ServiceResult + class ALIBABACLOUD_CAS_EXPORT UploadPcaCertToCasResult : public ServiceResult { public: - CancelOrderRequestResult(); - explicit CancelOrderRequestResult(const std::string &payload); - ~CancelOrderRequestResult(); + UploadPcaCertToCasResult(); + explicit UploadPcaCertToCasResult(const std::string &payload); + ~UploadPcaCertToCasResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CAS_MODEL_CANCELORDERREQUESTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTTOCASRESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/UploadUserCertificateRequest.h b/cas/include/alibabacloud/cas/model/UploadUserCertificateRequest.h deleted file mode 100644 index 4d456766f..000000000 --- a/cas/include/alibabacloud/cas/model/UploadUserCertificateRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_UPLOADUSERCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_UPLOADUSERCERTIFICATEREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT UploadUserCertificateRequest : public RpcServiceRequest { -public: - UploadUserCertificateRequest(); - ~UploadUserCertificateRequest(); - std::string getEncryptCert() const; - void setEncryptCert(const std::string &encryptCert); - std::string getCert() const; - void setCert(const std::string &cert); - std::string getResourceGroupId() const; - void setResourceGroupId(const std::string &resourceGroupId); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getKey() const; - void setKey(const std::string &key); - std::string getEncryptPrivateKey() const; - void setEncryptPrivateKey(const std::string &encryptPrivateKey); - std::string getSignPrivateKey() const; - void setSignPrivateKey(const std::string &signPrivateKey); - std::string getSignCert() const; - void setSignCert(const std::string &signCert); - std::string getName() const; - void setName(const std::string &name); - -private: - std::string encryptCert_; - std::string cert_; - std::string resourceGroupId_; - std::string sourceIp_; - std::string key_; - std::string encryptPrivateKey_; - std::string signPrivateKey_; - std::string signCert_; - std::string name_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_UPLOADUSERCERTIFICATEREQUEST_H_ diff --git a/cas/include/alibabacloud/cas/model/UploadUserCertificateResult.h b/cas/include/alibabacloud/cas/model/UploadUserCertificateResult.h deleted file mode 100644 index 039056433..000000000 --- a/cas/include/alibabacloud/cas/model/UploadUserCertificateResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_UPLOADUSERCERTIFICATERESULT_H_ -#define ALIBABACLOUD_CAS_MODEL_UPLOADUSERCERTIFICATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cas - { - namespace Model - { - class ALIBABACLOUD_CAS_EXPORT UploadUserCertificateResult : public ServiceResult - { - public: - - - UploadUserCertificateResult(); - explicit UploadUserCertificateResult(const std::string &payload); - ~UploadUserCertificateResult(); - long getCertId()const; - - protected: - void parse(const std::string &payload); - private: - long certId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CAS_MODEL_UPLOADUSERCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/cas/include/alibabacloud/cas/model/VerifyRequest.h b/cas/include/alibabacloud/cas/model/VerifyRequest.h deleted file mode 100644 index 16fbb4f5e..000000000 --- a/cas/include/alibabacloud/cas/model/VerifyRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CAS_MODEL_VERIFYREQUEST_H_ -#define ALIBABACLOUD_CAS_MODEL_VERIFYREQUEST_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud { -namespace Cas { -namespace Model { -class ALIBABACLOUD_CAS_EXPORT VerifyRequest : public RpcServiceRequest { -public: - VerifyRequest(); - ~VerifyRequest(); - std::string getMessageType() const; - void setMessageType(const std::string &messageType); - std::string getSigningAlgorithm() const; - void setSigningAlgorithm(const std::string &signingAlgorithm); - std::string getMessage() const; - void setMessage(const std::string &message); - std::string getSignatureValue() const; - void setSignatureValue(const std::string &signatureValue); - std::string getSourceIp() const; - void setSourceIp(const std::string &sourceIp); - std::string getCertIdentifier() const; - void setCertIdentifier(const std::string &certIdentifier); - -private: - std::string messageType_; - std::string signingAlgorithm_; - std::string message_; - std::string signatureValue_; - std::string sourceIp_; - std::string certIdentifier_; -}; -} // namespace Model -} // namespace Cas -} // namespace AlibabaCloud -#endif // !ALIBABACLOUD_CAS_MODEL_VERIFYREQUEST_H_ diff --git a/cas/src/CasClient.cc b/cas/src/CasClient.cc index 49c02a1df..a4531a2c3 100644 --- a/cas/src/CasClient.cc +++ b/cas/src/CasClient.cc @@ -51,540 +51,612 @@ CasClient::CasClient(const std::string & accessKeyId, const std::string & access CasClient::~CasClient() {} -CasClient::CancelCertificateForPackageRequestOutcome CasClient::cancelCertificateForPackageRequest(const CancelCertificateForPackageRequestRequest &request) const +CasClient::CreateClientCertificateOutcome CasClient::createClientCertificate(const CreateClientCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CancelCertificateForPackageRequestOutcome(endpointOutcome.error()); + return CreateClientCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CancelCertificateForPackageRequestOutcome(CancelCertificateForPackageRequestResult(outcome.result())); + return CreateClientCertificateOutcome(CreateClientCertificateResult(outcome.result())); else - return CancelCertificateForPackageRequestOutcome(outcome.error()); + return CreateClientCertificateOutcome(outcome.error()); } -void CasClient::cancelCertificateForPackageRequestAsync(const CancelCertificateForPackageRequestRequest& request, const CancelCertificateForPackageRequestAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createClientCertificateAsync(const CreateClientCertificateRequest& request, const CreateClientCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, cancelCertificateForPackageRequest(request), context); + handler(this, request, createClientCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::CancelCertificateForPackageRequestOutcomeCallable CasClient::cancelCertificateForPackageRequestCallable(const CancelCertificateForPackageRequestRequest &request) const +CasClient::CreateClientCertificateOutcomeCallable CasClient::createClientCertificateCallable(const CreateClientCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->cancelCertificateForPackageRequest(request); + return this->createClientCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::CancelOrderRequestOutcome CasClient::cancelOrderRequest(const CancelOrderRequestRequest &request) const +CasClient::CreateClientCertificateWithCsrOutcome CasClient::createClientCertificateWithCsr(const CreateClientCertificateWithCsrRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CancelOrderRequestOutcome(endpointOutcome.error()); + return CreateClientCertificateWithCsrOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CancelOrderRequestOutcome(CancelOrderRequestResult(outcome.result())); + return CreateClientCertificateWithCsrOutcome(CreateClientCertificateWithCsrResult(outcome.result())); else - return CancelOrderRequestOutcome(outcome.error()); + return CreateClientCertificateWithCsrOutcome(outcome.error()); } -void CasClient::cancelOrderRequestAsync(const CancelOrderRequestRequest& request, const CancelOrderRequestAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createClientCertificateWithCsrAsync(const CreateClientCertificateWithCsrRequest& request, const CreateClientCertificateWithCsrAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, cancelOrderRequest(request), context); + handler(this, request, createClientCertificateWithCsr(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::CancelOrderRequestOutcomeCallable CasClient::cancelOrderRequestCallable(const CancelOrderRequestRequest &request) const +CasClient::CreateClientCertificateWithCsrOutcomeCallable CasClient::createClientCertificateWithCsrCallable(const CreateClientCertificateWithCsrRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->cancelOrderRequest(request); + return this->createClientCertificateWithCsr(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::CreateCertificateForPackageRequestOutcome CasClient::createCertificateForPackageRequest(const CreateCertificateForPackageRequestRequest &request) const +CasClient::CreateCustomCertificateOutcome CasClient::createCustomCertificate(const CreateCustomCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateCertificateForPackageRequestOutcome(endpointOutcome.error()); + return CreateCustomCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateCertificateForPackageRequestOutcome(CreateCertificateForPackageRequestResult(outcome.result())); + return CreateCustomCertificateOutcome(CreateCustomCertificateResult(outcome.result())); else - return CreateCertificateForPackageRequestOutcome(outcome.error()); + return CreateCustomCertificateOutcome(outcome.error()); } -void CasClient::createCertificateForPackageRequestAsync(const CreateCertificateForPackageRequestRequest& request, const CreateCertificateForPackageRequestAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createCustomCertificateAsync(const CreateCustomCertificateRequest& request, const CreateCustomCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createCertificateForPackageRequest(request), context); + handler(this, request, createCustomCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::CreateCertificateForPackageRequestOutcomeCallable CasClient::createCertificateForPackageRequestCallable(const CreateCertificateForPackageRequestRequest &request) const +CasClient::CreateCustomCertificateOutcomeCallable CasClient::createCustomCertificateCallable(const CreateCustomCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createCertificateForPackageRequest(request); + return this->createCustomCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::CreateCertificateRequestOutcome CasClient::createCertificateRequest(const CreateCertificateRequestRequest &request) const +CasClient::CreateExternalCACertificateOutcome CasClient::createExternalCACertificate(const CreateExternalCACertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateCertificateRequestOutcome(endpointOutcome.error()); + return CreateExternalCACertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateCertificateRequestOutcome(CreateCertificateRequestResult(outcome.result())); + return CreateExternalCACertificateOutcome(CreateExternalCACertificateResult(outcome.result())); else - return CreateCertificateRequestOutcome(outcome.error()); + return CreateExternalCACertificateOutcome(outcome.error()); } -void CasClient::createCertificateRequestAsync(const CreateCertificateRequestRequest& request, const CreateCertificateRequestAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createExternalCACertificateAsync(const CreateExternalCACertificateRequest& request, const CreateExternalCACertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createCertificateRequest(request), context); + handler(this, request, createExternalCACertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::CreateCertificateRequestOutcomeCallable CasClient::createCertificateRequestCallable(const CreateCertificateRequestRequest &request) const +CasClient::CreateExternalCACertificateOutcomeCallable CasClient::createExternalCACertificateCallable(const CreateExternalCACertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createCertificateRequest(request); + return this->createExternalCACertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::CreateCertificateWithCsrRequestOutcome CasClient::createCertificateWithCsrRequest(const CreateCertificateWithCsrRequestRequest &request) const +CasClient::CreateRevokeClientCertificateOutcome CasClient::createRevokeClientCertificate(const CreateRevokeClientCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateCertificateWithCsrRequestOutcome(endpointOutcome.error()); + return CreateRevokeClientCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateCertificateWithCsrRequestOutcome(CreateCertificateWithCsrRequestResult(outcome.result())); + return CreateRevokeClientCertificateOutcome(CreateRevokeClientCertificateResult(outcome.result())); else - return CreateCertificateWithCsrRequestOutcome(outcome.error()); + return CreateRevokeClientCertificateOutcome(outcome.error()); } -void CasClient::createCertificateWithCsrRequestAsync(const CreateCertificateWithCsrRequestRequest& request, const CreateCertificateWithCsrRequestAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createRevokeClientCertificateAsync(const CreateRevokeClientCertificateRequest& request, const CreateRevokeClientCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createCertificateWithCsrRequest(request), context); + handler(this, request, createRevokeClientCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::CreateCertificateWithCsrRequestOutcomeCallable CasClient::createCertificateWithCsrRequestCallable(const CreateCertificateWithCsrRequestRequest &request) const +CasClient::CreateRevokeClientCertificateOutcomeCallable CasClient::createRevokeClientCertificateCallable(const CreateRevokeClientCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createCertificateWithCsrRequest(request); + return this->createRevokeClientCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::CreateWHClientCertificateOutcome CasClient::createWHClientCertificate(const CreateWHClientCertificateRequest &request) const +CasClient::CreateRootCACertificateOutcome CasClient::createRootCACertificate(const CreateRootCACertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateWHClientCertificateOutcome(endpointOutcome.error()); + return CreateRootCACertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateWHClientCertificateOutcome(CreateWHClientCertificateResult(outcome.result())); + return CreateRootCACertificateOutcome(CreateRootCACertificateResult(outcome.result())); else - return CreateWHClientCertificateOutcome(outcome.error()); + return CreateRootCACertificateOutcome(outcome.error()); } -void CasClient::createWHClientCertificateAsync(const CreateWHClientCertificateRequest& request, const CreateWHClientCertificateAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createRootCACertificateAsync(const CreateRootCACertificateRequest& request, const CreateRootCACertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createWHClientCertificate(request), context); + handler(this, request, createRootCACertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::CreateWHClientCertificateOutcomeCallable CasClient::createWHClientCertificateCallable(const CreateWHClientCertificateRequest &request) const +CasClient::CreateRootCACertificateOutcomeCallable CasClient::createRootCACertificateCallable(const CreateRootCACertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createWHClientCertificate(request); + return this->createRootCACertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::DecryptOutcome CasClient::decrypt(const DecryptRequest &request) const +CasClient::CreateServerCertificateOutcome CasClient::createServerCertificate(const CreateServerCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DecryptOutcome(endpointOutcome.error()); + return CreateServerCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DecryptOutcome(DecryptResult(outcome.result())); + return CreateServerCertificateOutcome(CreateServerCertificateResult(outcome.result())); else - return DecryptOutcome(outcome.error()); + return CreateServerCertificateOutcome(outcome.error()); } -void CasClient::decryptAsync(const DecryptRequest& request, const DecryptAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createServerCertificateAsync(const CreateServerCertificateRequest& request, const CreateServerCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, decrypt(request), context); + handler(this, request, createServerCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DecryptOutcomeCallable CasClient::decryptCallable(const DecryptRequest &request) const +CasClient::CreateServerCertificateOutcomeCallable CasClient::createServerCertificateCallable(const CreateServerCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->decrypt(request); + return this->createServerCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::DeleteCertificateRequestOutcome CasClient::deleteCertificateRequest(const DeleteCertificateRequestRequest &request) const +CasClient::CreateServerCertificateWithCsrOutcome CasClient::createServerCertificateWithCsr(const CreateServerCertificateWithCsrRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteCertificateRequestOutcome(endpointOutcome.error()); + return CreateServerCertificateWithCsrOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteCertificateRequestOutcome(DeleteCertificateRequestResult(outcome.result())); + return CreateServerCertificateWithCsrOutcome(CreateServerCertificateWithCsrResult(outcome.result())); else - return DeleteCertificateRequestOutcome(outcome.error()); + return CreateServerCertificateWithCsrOutcome(outcome.error()); } -void CasClient::deleteCertificateRequestAsync(const DeleteCertificateRequestRequest& request, const DeleteCertificateRequestAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createServerCertificateWithCsrAsync(const CreateServerCertificateWithCsrRequest& request, const CreateServerCertificateWithCsrAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteCertificateRequest(request), context); + handler(this, request, createServerCertificateWithCsr(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DeleteCertificateRequestOutcomeCallable CasClient::deleteCertificateRequestCallable(const DeleteCertificateRequestRequest &request) const +CasClient::CreateServerCertificateWithCsrOutcomeCallable CasClient::createServerCertificateWithCsrCallable(const CreateServerCertificateWithCsrRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteCertificateRequest(request); + return this->createServerCertificateWithCsr(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::DeletePCACertOutcome CasClient::deletePCACert(const DeletePCACertRequest &request) const +CasClient::CreateSubCACertificateOutcome CasClient::createSubCACertificate(const CreateSubCACertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeletePCACertOutcome(endpointOutcome.error()); + return CreateSubCACertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeletePCACertOutcome(DeletePCACertResult(outcome.result())); + return CreateSubCACertificateOutcome(CreateSubCACertificateResult(outcome.result())); else - return DeletePCACertOutcome(outcome.error()); + return CreateSubCACertificateOutcome(outcome.error()); } -void CasClient::deletePCACertAsync(const DeletePCACertRequest& request, const DeletePCACertAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::createSubCACertificateAsync(const CreateSubCACertificateRequest& request, const CreateSubCACertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deletePCACert(request), context); + handler(this, request, createSubCACertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DeletePCACertOutcomeCallable CasClient::deletePCACertCallable(const DeletePCACertRequest &request) const +CasClient::CreateSubCACertificateOutcomeCallable CasClient::createSubCACertificateCallable(const CreateSubCACertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deletePCACert(request); + return this->createSubCACertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::DeleteUserCertificateOutcome CasClient::deleteUserCertificate(const DeleteUserCertificateRequest &request) const +CasClient::DeleteClientCertificateOutcome CasClient::deleteClientCertificate(const DeleteClientCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteUserCertificateOutcome(endpointOutcome.error()); + return DeleteClientCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteUserCertificateOutcome(DeleteUserCertificateResult(outcome.result())); + return DeleteClientCertificateOutcome(DeleteClientCertificateResult(outcome.result())); else - return DeleteUserCertificateOutcome(outcome.error()); + return DeleteClientCertificateOutcome(outcome.error()); } -void CasClient::deleteUserCertificateAsync(const DeleteUserCertificateRequest& request, const DeleteUserCertificateAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::deleteClientCertificateAsync(const DeleteClientCertificateRequest& request, const DeleteClientCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteUserCertificate(request), context); + handler(this, request, deleteClientCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DeleteUserCertificateOutcomeCallable CasClient::deleteUserCertificateCallable(const DeleteUserCertificateRequest &request) const +CasClient::DeleteClientCertificateOutcomeCallable CasClient::deleteClientCertificateCallable(const DeleteClientCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteUserCertificate(request); + return this->deleteClientCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::DescribeCertificateStateOutcome CasClient::describeCertificateState(const DescribeCertificateStateRequest &request) const +CasClient::DescribeCACertificateOutcome CasClient::describeCACertificate(const DescribeCACertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeCertificateStateOutcome(endpointOutcome.error()); + return DescribeCACertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeCertificateStateOutcome(DescribeCertificateStateResult(outcome.result())); + return DescribeCACertificateOutcome(DescribeCACertificateResult(outcome.result())); else - return DescribeCertificateStateOutcome(outcome.error()); + return DescribeCACertificateOutcome(outcome.error()); } -void CasClient::describeCertificateStateAsync(const DescribeCertificateStateRequest& request, const DescribeCertificateStateAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::describeCACertificateAsync(const DescribeCACertificateRequest& request, const DescribeCACertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeCertificateState(request), context); + handler(this, request, describeCACertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DescribeCertificateStateOutcomeCallable CasClient::describeCertificateStateCallable(const DescribeCertificateStateRequest &request) const +CasClient::DescribeCACertificateOutcomeCallable CasClient::describeCACertificateCallable(const DescribeCACertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeCertificateState(request); + return this->describeCACertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::DescribePackageStateOutcome CasClient::describePackageState(const DescribePackageStateRequest &request) const +CasClient::DescribeCACertificateCountOutcome CasClient::describeCACertificateCount(const DescribeCACertificateCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribePackageStateOutcome(endpointOutcome.error()); + return DescribeCACertificateCountOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribePackageStateOutcome(DescribePackageStateResult(outcome.result())); + return DescribeCACertificateCountOutcome(DescribeCACertificateCountResult(outcome.result())); else - return DescribePackageStateOutcome(outcome.error()); + return DescribeCACertificateCountOutcome(outcome.error()); } -void CasClient::describePackageStateAsync(const DescribePackageStateRequest& request, const DescribePackageStateAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::describeCACertificateCountAsync(const DescribeCACertificateCountRequest& request, const DescribeCACertificateCountAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describePackageState(request), context); + handler(this, request, describeCACertificateCount(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::DescribePackageStateOutcomeCallable CasClient::describePackageStateCallable(const DescribePackageStateRequest &request) const +CasClient::DescribeCACertificateCountOutcomeCallable CasClient::describeCACertificateCountCallable(const DescribeCACertificateCountRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describePackageState(request); + return this->describeCACertificateCount(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::EncryptOutcome CasClient::encrypt(const EncryptRequest &request) const +CasClient::DescribeCACertificateListOutcome CasClient::describeCACertificateList(const DescribeCACertificateListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EncryptOutcome(endpointOutcome.error()); + return DescribeCACertificateListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EncryptOutcome(EncryptResult(outcome.result())); + return DescribeCACertificateListOutcome(DescribeCACertificateListResult(outcome.result())); else - return EncryptOutcome(outcome.error()); + return DescribeCACertificateListOutcome(outcome.error()); } -void CasClient::encryptAsync(const EncryptRequest& request, const EncryptAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::describeCACertificateListAsync(const DescribeCACertificateListRequest& request, const DescribeCACertificateListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, encrypt(request), context); + handler(this, request, describeCACertificateList(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::EncryptOutcomeCallable CasClient::encryptCallable(const EncryptRequest &request) const +CasClient::DescribeCACertificateListOutcomeCallable CasClient::describeCACertificateListCallable(const DescribeCACertificateListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->encrypt(request); + return this->describeCACertificateList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::GetCertWarehouseQuotaOutcome CasClient::getCertWarehouseQuota(const GetCertWarehouseQuotaRequest &request) const +CasClient::DescribeCertificatePrivateKeyOutcome CasClient::describeCertificatePrivateKey(const DescribeCertificatePrivateKeyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetCertWarehouseQuotaOutcome(endpointOutcome.error()); + return DescribeCertificatePrivateKeyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetCertWarehouseQuotaOutcome(GetCertWarehouseQuotaResult(outcome.result())); + return DescribeCertificatePrivateKeyOutcome(DescribeCertificatePrivateKeyResult(outcome.result())); else - return GetCertWarehouseQuotaOutcome(outcome.error()); + return DescribeCertificatePrivateKeyOutcome(outcome.error()); } -void CasClient::getCertWarehouseQuotaAsync(const GetCertWarehouseQuotaRequest& request, const GetCertWarehouseQuotaAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::describeCertificatePrivateKeyAsync(const DescribeCertificatePrivateKeyRequest& request, const DescribeCertificatePrivateKeyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getCertWarehouseQuota(request), context); + handler(this, request, describeCertificatePrivateKey(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::GetCertWarehouseQuotaOutcomeCallable CasClient::getCertWarehouseQuotaCallable(const GetCertWarehouseQuotaRequest &request) const +CasClient::DescribeCertificatePrivateKeyOutcomeCallable CasClient::describeCertificatePrivateKeyCallable(const DescribeCertificatePrivateKeyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getCertWarehouseQuota(request); + return this->describeCertificatePrivateKey(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::GetUserCertificateDetailOutcome CasClient::getUserCertificateDetail(const GetUserCertificateDetailRequest &request) const +CasClient::DescribeClientCertificateOutcome CasClient::describeClientCertificate(const DescribeClientCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetUserCertificateDetailOutcome(endpointOutcome.error()); + return DescribeClientCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetUserCertificateDetailOutcome(GetUserCertificateDetailResult(outcome.result())); + return DescribeClientCertificateOutcome(DescribeClientCertificateResult(outcome.result())); else - return GetUserCertificateDetailOutcome(outcome.error()); + return DescribeClientCertificateOutcome(outcome.error()); } -void CasClient::getUserCertificateDetailAsync(const GetUserCertificateDetailRequest& request, const GetUserCertificateDetailAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::describeClientCertificateAsync(const DescribeClientCertificateRequest& request, const DescribeClientCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getUserCertificateDetail(request), context); + handler(this, request, describeClientCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::GetUserCertificateDetailOutcomeCallable CasClient::getUserCertificateDetailCallable(const GetUserCertificateDetailRequest &request) const +CasClient::DescribeClientCertificateOutcomeCallable CasClient::describeClientCertificateCallable(const DescribeClientCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getUserCertificateDetail(request); + return this->describeClientCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::DescribeClientCertificateStatusOutcome CasClient::describeClientCertificateStatus(const DescribeClientCertificateStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeClientCertificateStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeClientCertificateStatusOutcome(DescribeClientCertificateStatusResult(outcome.result())); + else + return DescribeClientCertificateStatusOutcome(outcome.error()); +} + +void CasClient::describeClientCertificateStatusAsync(const DescribeClientCertificateStatusRequest& request, const DescribeClientCertificateStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeClientCertificateStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::DescribeClientCertificateStatusOutcomeCallable CasClient::describeClientCertificateStatusCallable(const DescribeClientCertificateStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeClientCertificateStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CasClient::GetCAInstanceStatusOutcome CasClient::getCAInstanceStatus(const GetCAInstanceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCAInstanceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCAInstanceStatusOutcome(GetCAInstanceStatusResult(outcome.result())); + else + return GetCAInstanceStatusOutcome(outcome.error()); +} + +void CasClient::getCAInstanceStatusAsync(const GetCAInstanceStatusRequest& request, const GetCAInstanceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCAInstanceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CasClient::GetCAInstanceStatusOutcomeCallable CasClient::getCAInstanceStatusCallable(const GetCAInstanceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCAInstanceStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -627,288 +699,180 @@ CasClient::ListCertOutcomeCallable CasClient::listCertCallable(const ListCertReq return task->get_future(); } -CasClient::ListCertWarehouseOutcome CasClient::listCertWarehouse(const ListCertWarehouseRequest &request) const +CasClient::ListClientCertificateOutcome CasClient::listClientCertificate(const ListClientCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListCertWarehouseOutcome(endpointOutcome.error()); + return ListClientCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListCertWarehouseOutcome(ListCertWarehouseResult(outcome.result())); + return ListClientCertificateOutcome(ListClientCertificateResult(outcome.result())); else - return ListCertWarehouseOutcome(outcome.error()); + return ListClientCertificateOutcome(outcome.error()); } -void CasClient::listCertWarehouseAsync(const ListCertWarehouseRequest& request, const ListCertWarehouseAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::listClientCertificateAsync(const ListClientCertificateRequest& request, const ListClientCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listCertWarehouse(request), context); + handler(this, request, listClientCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::ListCertWarehouseOutcomeCallable CasClient::listCertWarehouseCallable(const ListCertWarehouseRequest &request) const +CasClient::ListClientCertificateOutcomeCallable CasClient::listClientCertificateCallable(const ListClientCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listCertWarehouse(request); + return this->listClientCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::ListUserCertificateOrderOutcome CasClient::listUserCertificateOrder(const ListUserCertificateOrderRequest &request) const +CasClient::ListPcaCaCertificateOutcome CasClient::listPcaCaCertificate(const ListPcaCaCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListUserCertificateOrderOutcome(endpointOutcome.error()); + return ListPcaCaCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListUserCertificateOrderOutcome(ListUserCertificateOrderResult(outcome.result())); + return ListPcaCaCertificateOutcome(ListPcaCaCertificateResult(outcome.result())); else - return ListUserCertificateOrderOutcome(outcome.error()); + return ListPcaCaCertificateOutcome(outcome.error()); } -void CasClient::listUserCertificateOrderAsync(const ListUserCertificateOrderRequest& request, const ListUserCertificateOrderAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::listPcaCaCertificateAsync(const ListPcaCaCertificateRequest& request, const ListPcaCaCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listUserCertificateOrder(request), context); + handler(this, request, listPcaCaCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::ListUserCertificateOrderOutcomeCallable CasClient::listUserCertificateOrderCallable(const ListUserCertificateOrderRequest &request) const +CasClient::ListPcaCaCertificateOutcomeCallable CasClient::listPcaCaCertificateCallable(const ListPcaCaCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listUserCertificateOrder(request); + return this->listPcaCaCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::RenewCertificateOrderForPackageRequestOutcome CasClient::renewCertificateOrderForPackageRequest(const RenewCertificateOrderForPackageRequestRequest &request) const +CasClient::ListRevokeCertificateOutcome CasClient::listRevokeCertificate(const ListRevokeCertificateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RenewCertificateOrderForPackageRequestOutcome(endpointOutcome.error()); + return ListRevokeCertificateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RenewCertificateOrderForPackageRequestOutcome(RenewCertificateOrderForPackageRequestResult(outcome.result())); + return ListRevokeCertificateOutcome(ListRevokeCertificateResult(outcome.result())); else - return RenewCertificateOrderForPackageRequestOutcome(outcome.error()); + return ListRevokeCertificateOutcome(outcome.error()); } -void CasClient::renewCertificateOrderForPackageRequestAsync(const RenewCertificateOrderForPackageRequestRequest& request, const RenewCertificateOrderForPackageRequestAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::listRevokeCertificateAsync(const ListRevokeCertificateRequest& request, const ListRevokeCertificateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, renewCertificateOrderForPackageRequest(request), context); + handler(this, request, listRevokeCertificate(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::RenewCertificateOrderForPackageRequestOutcomeCallable CasClient::renewCertificateOrderForPackageRequestCallable(const RenewCertificateOrderForPackageRequestRequest &request) const +CasClient::ListRevokeCertificateOutcomeCallable CasClient::listRevokeCertificateCallable(const ListRevokeCertificateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->renewCertificateOrderForPackageRequest(request); + return this->listRevokeCertificate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::RevokeWHClientCertificateOutcome CasClient::revokeWHClientCertificate(const RevokeWHClientCertificateRequest &request) const +CasClient::UpdateCACertificateStatusOutcome CasClient::updateCACertificateStatus(const UpdateCACertificateStatusRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return RevokeWHClientCertificateOutcome(endpointOutcome.error()); + return UpdateCACertificateStatusOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return RevokeWHClientCertificateOutcome(RevokeWHClientCertificateResult(outcome.result())); + return UpdateCACertificateStatusOutcome(UpdateCACertificateStatusResult(outcome.result())); else - return RevokeWHClientCertificateOutcome(outcome.error()); + return UpdateCACertificateStatusOutcome(outcome.error()); } -void CasClient::revokeWHClientCertificateAsync(const RevokeWHClientCertificateRequest& request, const RevokeWHClientCertificateAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::updateCACertificateStatusAsync(const UpdateCACertificateStatusRequest& request, const UpdateCACertificateStatusAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, revokeWHClientCertificate(request), context); + handler(this, request, updateCACertificateStatus(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::RevokeWHClientCertificateOutcomeCallable CasClient::revokeWHClientCertificateCallable(const RevokeWHClientCertificateRequest &request) const +CasClient::UpdateCACertificateStatusOutcomeCallable CasClient::updateCACertificateStatusCallable(const UpdateCACertificateStatusRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->revokeWHClientCertificate(request); + return this->updateCACertificateStatus(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CasClient::SignOutcome CasClient::sign(const SignRequest &request) const +CasClient::UploadPcaCertToCasOutcome CasClient::uploadPcaCertToCas(const UploadPcaCertToCasRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SignOutcome(endpointOutcome.error()); + return UploadPcaCertToCasOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SignOutcome(SignResult(outcome.result())); + return UploadPcaCertToCasOutcome(UploadPcaCertToCasResult(outcome.result())); else - return SignOutcome(outcome.error()); + return UploadPcaCertToCasOutcome(outcome.error()); } -void CasClient::signAsync(const SignRequest& request, const SignAsyncHandler& handler, const std::shared_ptr& context) const +void CasClient::uploadPcaCertToCasAsync(const UploadPcaCertToCasRequest& request, const UploadPcaCertToCasAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, sign(request), context); + handler(this, request, uploadPcaCertToCas(request), context); }; asyncExecute(new Runnable(fn)); } -CasClient::SignOutcomeCallable CasClient::signCallable(const SignRequest &request) const +CasClient::UploadPcaCertToCasOutcomeCallable CasClient::uploadPcaCertToCasCallable(const UploadPcaCertToCasRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->sign(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::UploadPCACertOutcome CasClient::uploadPCACert(const UploadPCACertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UploadPCACertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UploadPCACertOutcome(UploadPCACertResult(outcome.result())); - else - return UploadPCACertOutcome(outcome.error()); -} - -void CasClient::uploadPCACertAsync(const UploadPCACertRequest& request, const UploadPCACertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, uploadPCACert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::UploadPCACertOutcomeCallable CasClient::uploadPCACertCallable(const UploadPCACertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->uploadPCACert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::UploadUserCertificateOutcome CasClient::uploadUserCertificate(const UploadUserCertificateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UploadUserCertificateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UploadUserCertificateOutcome(UploadUserCertificateResult(outcome.result())); - else - return UploadUserCertificateOutcome(outcome.error()); -} - -void CasClient::uploadUserCertificateAsync(const UploadUserCertificateRequest& request, const UploadUserCertificateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, uploadUserCertificate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::UploadUserCertificateOutcomeCallable CasClient::uploadUserCertificateCallable(const UploadUserCertificateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->uploadUserCertificate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CasClient::VerifyOutcome CasClient::verify(const VerifyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return VerifyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return VerifyOutcome(VerifyResult(outcome.result())); - else - return VerifyOutcome(outcome.error()); -} - -void CasClient::verifyAsync(const VerifyRequest& request, const VerifyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, verify(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CasClient::VerifyOutcomeCallable CasClient::verifyCallable(const VerifyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->verify(request); + return this->uploadPcaCertToCas(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/cas/src/model/CancelCertificateForPackageRequestRequest.cc b/cas/src/model/CancelCertificateForPackageRequestRequest.cc deleted file mode 100644 index 976b391f3..000000000 --- a/cas/src/model/CancelCertificateForPackageRequestRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::CancelCertificateForPackageRequestRequest; - -CancelCertificateForPackageRequestRequest::CancelCertificateForPackageRequestRequest() - : RpcServiceRequest("cas", "2020-04-07", "CancelCertificateForPackageRequest") { - setMethod(HttpRequest::Method::Post); -} - -CancelCertificateForPackageRequestRequest::~CancelCertificateForPackageRequestRequest() {} - -long CancelCertificateForPackageRequestRequest::getOrderId() const { - return orderId_; -} - -void CancelCertificateForPackageRequestRequest::setOrderId(long orderId) { - orderId_ = orderId; - setParameter(std::string("OrderId"), std::to_string(orderId)); -} - -std::string CancelCertificateForPackageRequestRequest::getSourceIp() const { - return sourceIp_; -} - -void CancelCertificateForPackageRequestRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - diff --git a/cas/src/model/CancelCertificateForPackageRequestResult.cc b/cas/src/model/CancelCertificateForPackageRequestResult.cc deleted file mode 100644 index 8b4d682b6..000000000 --- a/cas/src/model/CancelCertificateForPackageRequestResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -CancelCertificateForPackageRequestResult::CancelCertificateForPackageRequestResult() : - ServiceResult() -{} - -CancelCertificateForPackageRequestResult::CancelCertificateForPackageRequestResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CancelCertificateForPackageRequestResult::~CancelCertificateForPackageRequestResult() -{} - -void CancelCertificateForPackageRequestResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/cas/src/model/CancelOrderRequestRequest.cc b/cas/src/model/CancelOrderRequestRequest.cc deleted file mode 100644 index 6ea2d0d1e..000000000 --- a/cas/src/model/CancelOrderRequestRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::CancelOrderRequestRequest; - -CancelOrderRequestRequest::CancelOrderRequestRequest() - : RpcServiceRequest("cas", "2020-04-07", "CancelOrderRequest") { - setMethod(HttpRequest::Method::Post); -} - -CancelOrderRequestRequest::~CancelOrderRequestRequest() {} - -long CancelOrderRequestRequest::getOrderId() const { - return orderId_; -} - -void CancelOrderRequestRequest::setOrderId(long orderId) { - orderId_ = orderId; - setParameter(std::string("OrderId"), std::to_string(orderId)); -} - -std::string CancelOrderRequestRequest::getSourceIp() const { - return sourceIp_; -} - -void CancelOrderRequestRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - diff --git a/cas/src/model/CreateCertificateForPackageRequestRequest.cc b/cas/src/model/CreateCertificateForPackageRequestRequest.cc deleted file mode 100644 index d3ae11384..000000000 --- a/cas/src/model/CreateCertificateForPackageRequestRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::CreateCertificateForPackageRequestRequest; - -CreateCertificateForPackageRequestRequest::CreateCertificateForPackageRequestRequest() - : RpcServiceRequest("cas", "2020-04-07", "CreateCertificateForPackageRequest") { - setMethod(HttpRequest::Method::Post); -} - -CreateCertificateForPackageRequestRequest::~CreateCertificateForPackageRequestRequest() {} - -std::string CreateCertificateForPackageRequestRequest::getProductCode() const { - return productCode_; -} - -void CreateCertificateForPackageRequestRequest::setProductCode(const std::string &productCode) { - productCode_ = productCode; - setParameter(std::string("ProductCode"), productCode); -} - -std::string CreateCertificateForPackageRequestRequest::getCsr() const { - return csr_; -} - -void CreateCertificateForPackageRequestRequest::setCsr(const std::string &csr) { - csr_ = csr; - setParameter(std::string("Csr"), csr); -} - -std::string CreateCertificateForPackageRequestRequest::getValidateType() const { - return validateType_; -} - -void CreateCertificateForPackageRequestRequest::setValidateType(const std::string &validateType) { - validateType_ = validateType; - setParameter(std::string("ValidateType"), validateType); -} - -std::string CreateCertificateForPackageRequestRequest::getSourceIp() const { - return sourceIp_; -} - -void CreateCertificateForPackageRequestRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string CreateCertificateForPackageRequestRequest::getEmail() const { - return email_; -} - -void CreateCertificateForPackageRequestRequest::setEmail(const std::string &email) { - email_ = email; - setParameter(std::string("Email"), email); -} - -std::string CreateCertificateForPackageRequestRequest::getPhone() const { - return phone_; -} - -void CreateCertificateForPackageRequestRequest::setPhone(const std::string &phone) { - phone_ = phone; - setParameter(std::string("Phone"), phone); -} - -std::string CreateCertificateForPackageRequestRequest::getCompanyName() const { - return companyName_; -} - -void CreateCertificateForPackageRequestRequest::setCompanyName(const std::string &companyName) { - companyName_ = companyName; - setParameter(std::string("CompanyName"), companyName); -} - -std::string CreateCertificateForPackageRequestRequest::getDomain() const { - return domain_; -} - -void CreateCertificateForPackageRequestRequest::setDomain(const std::string &domain) { - domain_ = domain; - setParameter(std::string("Domain"), domain); -} - -std::string CreateCertificateForPackageRequestRequest::getUsername() const { - return username_; -} - -void CreateCertificateForPackageRequestRequest::setUsername(const std::string &username) { - username_ = username; - setParameter(std::string("Username"), username); -} - diff --git a/cas/src/model/CreateCertificateForPackageRequestResult.cc b/cas/src/model/CreateCertificateForPackageRequestResult.cc deleted file mode 100644 index bf7657ef9..000000000 --- a/cas/src/model/CreateCertificateForPackageRequestResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -CreateCertificateForPackageRequestResult::CreateCertificateForPackageRequestResult() : - ServiceResult() -{} - -CreateCertificateForPackageRequestResult::CreateCertificateForPackageRequestResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateCertificateForPackageRequestResult::~CreateCertificateForPackageRequestResult() -{} - -void CreateCertificateForPackageRequestResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); - -} - -long CreateCertificateForPackageRequestResult::getOrderId()const -{ - return orderId_; -} - diff --git a/cas/src/model/CreateCertificateRequestRequest.cc b/cas/src/model/CreateCertificateRequestRequest.cc deleted file mode 100644 index a0f57f02e..000000000 --- a/cas/src/model/CreateCertificateRequestRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::CreateCertificateRequestRequest; - -CreateCertificateRequestRequest::CreateCertificateRequestRequest() - : RpcServiceRequest("cas", "2020-04-07", "CreateCertificateRequest") { - setMethod(HttpRequest::Method::Post); -} - -CreateCertificateRequestRequest::~CreateCertificateRequestRequest() {} - -std::string CreateCertificateRequestRequest::getSourceIp() const { - return sourceIp_; -} - -void CreateCertificateRequestRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string CreateCertificateRequestRequest::getProductCode() const { - return productCode_; -} - -void CreateCertificateRequestRequest::setProductCode(const std::string &productCode) { - productCode_ = productCode; - setParameter(std::string("ProductCode"), productCode); -} - -std::string CreateCertificateRequestRequest::getUsername() const { - return username_; -} - -void CreateCertificateRequestRequest::setUsername(const std::string &username) { - username_ = username; - setParameter(std::string("Username"), username); -} - -std::string CreateCertificateRequestRequest::getPhone() const { - return phone_; -} - -void CreateCertificateRequestRequest::setPhone(const std::string &phone) { - phone_ = phone; - setParameter(std::string("Phone"), phone); -} - -std::string CreateCertificateRequestRequest::getEmail() const { - return email_; -} - -void CreateCertificateRequestRequest::setEmail(const std::string &email) { - email_ = email; - setParameter(std::string("Email"), email); -} - -std::string CreateCertificateRequestRequest::getDomain() const { - return domain_; -} - -void CreateCertificateRequestRequest::setDomain(const std::string &domain) { - domain_ = domain; - setParameter(std::string("Domain"), domain); -} - -std::string CreateCertificateRequestRequest::getValidateType() const { - return validateType_; -} - -void CreateCertificateRequestRequest::setValidateType(const std::string &validateType) { - validateType_ = validateType; - setParameter(std::string("ValidateType"), validateType); -} - diff --git a/cas/src/model/CreateCertificateRequestResult.cc b/cas/src/model/CreateCertificateRequestResult.cc deleted file mode 100644 index 8bc75370c..000000000 --- a/cas/src/model/CreateCertificateRequestResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -CreateCertificateRequestResult::CreateCertificateRequestResult() : - ServiceResult() -{} - -CreateCertificateRequestResult::CreateCertificateRequestResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateCertificateRequestResult::~CreateCertificateRequestResult() -{} - -void CreateCertificateRequestResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); - -} - -long CreateCertificateRequestResult::getOrderId()const -{ - return orderId_; -} - diff --git a/cas/src/model/CreateCertificateWithCsrRequestRequest.cc b/cas/src/model/CreateCertificateWithCsrRequestRequest.cc deleted file mode 100644 index cb8cdf81f..000000000 --- a/cas/src/model/CreateCertificateWithCsrRequestRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::CreateCertificateWithCsrRequestRequest; - -CreateCertificateWithCsrRequestRequest::CreateCertificateWithCsrRequestRequest() - : RpcServiceRequest("cas", "2020-04-07", "CreateCertificateWithCsrRequest") { - setMethod(HttpRequest::Method::Post); -} - -CreateCertificateWithCsrRequestRequest::~CreateCertificateWithCsrRequestRequest() {} - -std::string CreateCertificateWithCsrRequestRequest::getSourceIp() const { - return sourceIp_; -} - -void CreateCertificateWithCsrRequestRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string CreateCertificateWithCsrRequestRequest::getCsr() const { - return csr_; -} - -void CreateCertificateWithCsrRequestRequest::setCsr(const std::string &csr) { - csr_ = csr; - setParameter(std::string("Csr"), csr); -} - -std::string CreateCertificateWithCsrRequestRequest::getProductCode() const { - return productCode_; -} - -void CreateCertificateWithCsrRequestRequest::setProductCode(const std::string &productCode) { - productCode_ = productCode; - setParameter(std::string("ProductCode"), productCode); -} - -std::string CreateCertificateWithCsrRequestRequest::getUsername() const { - return username_; -} - -void CreateCertificateWithCsrRequestRequest::setUsername(const std::string &username) { - username_ = username; - setParameter(std::string("Username"), username); -} - -std::string CreateCertificateWithCsrRequestRequest::getPhone() const { - return phone_; -} - -void CreateCertificateWithCsrRequestRequest::setPhone(const std::string &phone) { - phone_ = phone; - setParameter(std::string("Phone"), phone); -} - -std::string CreateCertificateWithCsrRequestRequest::getEmail() const { - return email_; -} - -void CreateCertificateWithCsrRequestRequest::setEmail(const std::string &email) { - email_ = email; - setParameter(std::string("Email"), email); -} - -std::string CreateCertificateWithCsrRequestRequest::getValidateType() const { - return validateType_; -} - -void CreateCertificateWithCsrRequestRequest::setValidateType(const std::string &validateType) { - validateType_ = validateType; - setParameter(std::string("ValidateType"), validateType); -} - diff --git a/cas/src/model/CreateClientCertificateRequest.cc b/cas/src/model/CreateClientCertificateRequest.cc new file mode 100644 index 000000000..2e9648a2d --- /dev/null +++ b/cas/src/model/CreateClientCertificateRequest.cc @@ -0,0 +1,180 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateClientCertificateRequest; + +CreateClientCertificateRequest::CreateClientCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateClientCertificate") { + setMethod(HttpRequest::Method::Post); +} + +CreateClientCertificateRequest::~CreateClientCertificateRequest() {} + +std::string CreateClientCertificateRequest::getCountry() const { + return country_; +} + +void CreateClientCertificateRequest::setCountry(const std::string &country) { + country_ = country; + setParameter(std::string("Country"), country); +} + +int CreateClientCertificateRequest::getMonths() const { + return months_; +} + +void CreateClientCertificateRequest::setMonths(int months) { + months_ = months; + setParameter(std::string("Months"), std::to_string(months)); +} + +long CreateClientCertificateRequest::getEnableCrl() const { + return enableCrl_; +} + +void CreateClientCertificateRequest::setEnableCrl(long enableCrl) { + enableCrl_ = enableCrl; + setParameter(std::string("EnableCrl"), std::to_string(enableCrl)); +} + +long CreateClientCertificateRequest::getAfterTime() const { + return afterTime_; +} + +void CreateClientCertificateRequest::setAfterTime(long afterTime) { + afterTime_ = afterTime; + setParameter(std::string("AfterTime"), std::to_string(afterTime)); +} + +std::string CreateClientCertificateRequest::getLocality() const { + return locality_; +} + +void CreateClientCertificateRequest::setLocality(const std::string &locality) { + locality_ = locality; + setParameter(std::string("Locality"), locality); +} + +int CreateClientCertificateRequest::getImmediately() const { + return immediately_; +} + +void CreateClientCertificateRequest::setImmediately(int immediately) { + immediately_ = immediately; + setParameter(std::string("Immediately"), std::to_string(immediately)); +} + +int CreateClientCertificateRequest::getYears() const { + return years_; +} + +void CreateClientCertificateRequest::setYears(int years) { + years_ = years; + setParameter(std::string("Years"), std::to_string(years)); +} + +std::string CreateClientCertificateRequest::getCommonName() const { + return commonName_; +} + +void CreateClientCertificateRequest::setCommonName(const std::string &commonName) { + commonName_ = commonName; + setParameter(std::string("CommonName"), commonName); +} + +std::string CreateClientCertificateRequest::getOrganization() const { + return organization_; +} + +void CreateClientCertificateRequest::setOrganization(const std::string &organization) { + organization_ = organization; + setParameter(std::string("Organization"), organization); +} + +int CreateClientCertificateRequest::getDays() const { + return days_; +} + +void CreateClientCertificateRequest::setDays(int days) { + days_ = days; + setParameter(std::string("Days"), std::to_string(days)); +} + +long CreateClientCertificateRequest::getBeforeTime() const { + return beforeTime_; +} + +void CreateClientCertificateRequest::setBeforeTime(long beforeTime) { + beforeTime_ = beforeTime; + setParameter(std::string("BeforeTime"), std::to_string(beforeTime)); +} + +std::string CreateClientCertificateRequest::getState() const { + return state_; +} + +void CreateClientCertificateRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::string CreateClientCertificateRequest::getParentIdentifier() const { + return parentIdentifier_; +} + +void CreateClientCertificateRequest::setParentIdentifier(const std::string &parentIdentifier) { + parentIdentifier_ = parentIdentifier; + setParameter(std::string("ParentIdentifier"), parentIdentifier); +} + +std::string CreateClientCertificateRequest::getOrganizationUnit() const { + return organizationUnit_; +} + +void CreateClientCertificateRequest::setOrganizationUnit(const std::string &organizationUnit) { + organizationUnit_ = organizationUnit; + setParameter(std::string("OrganizationUnit"), organizationUnit); +} + +std::string CreateClientCertificateRequest::getAlgorithm() const { + return algorithm_; +} + +void CreateClientCertificateRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); +} + +int CreateClientCertificateRequest::getSanType() const { + return sanType_; +} + +void CreateClientCertificateRequest::setSanType(int sanType) { + sanType_ = sanType; + setParameter(std::string("SanType"), std::to_string(sanType)); +} + +std::string CreateClientCertificateRequest::getSanValue() const { + return sanValue_; +} + +void CreateClientCertificateRequest::setSanValue(const std::string &sanValue) { + sanValue_ = sanValue; + setParameter(std::string("SanValue"), sanValue); +} + diff --git a/cas/src/model/CreateWHClientCertificateResult.cc b/cas/src/model/CreateClientCertificateResult.cc similarity index 64% rename from cas/src/model/CreateWHClientCertificateResult.cc rename to cas/src/model/CreateClientCertificateResult.cc index 2f6691e3d..978097421 100644 --- a/cas/src/model/CreateWHClientCertificateResult.cc +++ b/cas/src/model/CreateClientCertificateResult.cc @@ -14,65 +14,72 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -CreateWHClientCertificateResult::CreateWHClientCertificateResult() : +CreateClientCertificateResult::CreateClientCertificateResult() : ServiceResult() {} -CreateWHClientCertificateResult::CreateWHClientCertificateResult(const std::string &payload) : +CreateClientCertificateResult::CreateClientCertificateResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateWHClientCertificateResult::~CreateWHClientCertificateResult() +CreateClientCertificateResult::~CreateClientCertificateResult() {} -void CreateWHClientCertificateResult::parse(const std::string &payload) +void CreateClientCertificateResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Identifier"].isNull()) - identifier_ = value["Identifier"].asString(); - if(!value["RootX509Certificate"].isNull()) - rootX509Certificate_ = value["RootX509Certificate"].asString(); - if(!value["ParentX509Certificate"].isNull()) - parentX509Certificate_ = value["ParentX509Certificate"].asString(); if(!value["X509Certificate"].isNull()) x509Certificate_ = value["X509Certificate"].asString(); if(!value["CertificateChain"].isNull()) certificateChain_ = value["CertificateChain"].asString(); + if(!value["RootX509Certificate"].isNull()) + rootX509Certificate_ = value["RootX509Certificate"].asString(); + if(!value["ParentX509Certificate"].isNull()) + parentX509Certificate_ = value["ParentX509Certificate"].asString(); + if(!value["Identifier"].isNull()) + identifier_ = value["Identifier"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); } -std::string CreateWHClientCertificateResult::getIdentifier()const +std::string CreateClientCertificateResult::getIdentifier()const { return identifier_; } -std::string CreateWHClientCertificateResult::getParentX509Certificate()const +std::string CreateClientCertificateResult::getSerialNumber()const +{ + return serialNumber_; +} + +std::string CreateClientCertificateResult::getParentX509Certificate()const { return parentX509Certificate_; } -std::string CreateWHClientCertificateResult::getCertificateChain()const +std::string CreateClientCertificateResult::getCertificateChain()const { return certificateChain_; } -std::string CreateWHClientCertificateResult::getRootX509Certificate()const +std::string CreateClientCertificateResult::getRootX509Certificate()const { return rootX509Certificate_; } -std::string CreateWHClientCertificateResult::getX509Certificate()const +std::string CreateClientCertificateResult::getX509Certificate()const { return x509Certificate_; } diff --git a/cas/src/model/CreateClientCertificateWithCsrRequest.cc b/cas/src/model/CreateClientCertificateWithCsrRequest.cc new file mode 100644 index 000000000..c2dfe8e23 --- /dev/null +++ b/cas/src/model/CreateClientCertificateWithCsrRequest.cc @@ -0,0 +1,189 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateClientCertificateWithCsrRequest; + +CreateClientCertificateWithCsrRequest::CreateClientCertificateWithCsrRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateClientCertificateWithCsr") { + setMethod(HttpRequest::Method::Post); +} + +CreateClientCertificateWithCsrRequest::~CreateClientCertificateWithCsrRequest() {} + +std::string CreateClientCertificateWithCsrRequest::getCountry() const { + return country_; +} + +void CreateClientCertificateWithCsrRequest::setCountry(const std::string &country) { + country_ = country; + setParameter(std::string("Country"), country); +} + +int CreateClientCertificateWithCsrRequest::getMonths() const { + return months_; +} + +void CreateClientCertificateWithCsrRequest::setMonths(int months) { + months_ = months; + setParameter(std::string("Months"), std::to_string(months)); +} + +long CreateClientCertificateWithCsrRequest::getEnableCrl() const { + return enableCrl_; +} + +void CreateClientCertificateWithCsrRequest::setEnableCrl(long enableCrl) { + enableCrl_ = enableCrl; + setParameter(std::string("EnableCrl"), std::to_string(enableCrl)); +} + +long CreateClientCertificateWithCsrRequest::getAfterTime() const { + return afterTime_; +} + +void CreateClientCertificateWithCsrRequest::setAfterTime(long afterTime) { + afterTime_ = afterTime; + setParameter(std::string("AfterTime"), std::to_string(afterTime)); +} + +std::string CreateClientCertificateWithCsrRequest::getLocality() const { + return locality_; +} + +void CreateClientCertificateWithCsrRequest::setLocality(const std::string &locality) { + locality_ = locality; + setParameter(std::string("Locality"), locality); +} + +int CreateClientCertificateWithCsrRequest::getImmediately() const { + return immediately_; +} + +void CreateClientCertificateWithCsrRequest::setImmediately(int immediately) { + immediately_ = immediately; + setParameter(std::string("Immediately"), std::to_string(immediately)); +} + +int CreateClientCertificateWithCsrRequest::getYears() const { + return years_; +} + +void CreateClientCertificateWithCsrRequest::setYears(int years) { + years_ = years; + setParameter(std::string("Years"), std::to_string(years)); +} + +std::string CreateClientCertificateWithCsrRequest::getCommonName() const { + return commonName_; +} + +void CreateClientCertificateWithCsrRequest::setCommonName(const std::string &commonName) { + commonName_ = commonName; + setParameter(std::string("CommonName"), commonName); +} + +std::string CreateClientCertificateWithCsrRequest::getOrganization() const { + return organization_; +} + +void CreateClientCertificateWithCsrRequest::setOrganization(const std::string &organization) { + organization_ = organization; + setParameter(std::string("Organization"), organization); +} + +int CreateClientCertificateWithCsrRequest::getDays() const { + return days_; +} + +void CreateClientCertificateWithCsrRequest::setDays(int days) { + days_ = days; + setParameter(std::string("Days"), std::to_string(days)); +} + +long CreateClientCertificateWithCsrRequest::getBeforeTime() const { + return beforeTime_; +} + +void CreateClientCertificateWithCsrRequest::setBeforeTime(long beforeTime) { + beforeTime_ = beforeTime; + setParameter(std::string("BeforeTime"), std::to_string(beforeTime)); +} + +std::string CreateClientCertificateWithCsrRequest::getState() const { + return state_; +} + +void CreateClientCertificateWithCsrRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::string CreateClientCertificateWithCsrRequest::getParentIdentifier() const { + return parentIdentifier_; +} + +void CreateClientCertificateWithCsrRequest::setParentIdentifier(const std::string &parentIdentifier) { + parentIdentifier_ = parentIdentifier; + setParameter(std::string("ParentIdentifier"), parentIdentifier); +} + +std::string CreateClientCertificateWithCsrRequest::getOrganizationUnit() const { + return organizationUnit_; +} + +void CreateClientCertificateWithCsrRequest::setOrganizationUnit(const std::string &organizationUnit) { + organizationUnit_ = organizationUnit; + setParameter(std::string("OrganizationUnit"), organizationUnit); +} + +std::string CreateClientCertificateWithCsrRequest::getAlgorithm() const { + return algorithm_; +} + +void CreateClientCertificateWithCsrRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); +} + +std::string CreateClientCertificateWithCsrRequest::getCsr() const { + return csr_; +} + +void CreateClientCertificateWithCsrRequest::setCsr(const std::string &csr) { + csr_ = csr; + setParameter(std::string("Csr"), csr); +} + +int CreateClientCertificateWithCsrRequest::getSanType() const { + return sanType_; +} + +void CreateClientCertificateWithCsrRequest::setSanType(int sanType) { + sanType_ = sanType; + setParameter(std::string("SanType"), std::to_string(sanType)); +} + +std::string CreateClientCertificateWithCsrRequest::getSanValue() const { + return sanValue_; +} + +void CreateClientCertificateWithCsrRequest::setSanValue(const std::string &sanValue) { + sanValue_ = sanValue; + setParameter(std::string("SanValue"), sanValue); +} + diff --git a/cas/src/model/CreateClientCertificateWithCsrResult.cc b/cas/src/model/CreateClientCertificateWithCsrResult.cc new file mode 100644 index 000000000..3f63bac56 --- /dev/null +++ b/cas/src/model/CreateClientCertificateWithCsrResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +CreateClientCertificateWithCsrResult::CreateClientCertificateWithCsrResult() : + ServiceResult() +{} + +CreateClientCertificateWithCsrResult::CreateClientCertificateWithCsrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateClientCertificateWithCsrResult::~CreateClientCertificateWithCsrResult() +{} + +void CreateClientCertificateWithCsrResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["X509Certificate"].isNull()) + x509Certificate_ = value["X509Certificate"].asString(); + if(!value["CertificateChain"].isNull()) + certificateChain_ = value["CertificateChain"].asString(); + if(!value["RootX509Certificate"].isNull()) + rootX509Certificate_ = value["RootX509Certificate"].asString(); + if(!value["ParentX509Certificate"].isNull()) + parentX509Certificate_ = value["ParentX509Certificate"].asString(); + if(!value["Identifier"].isNull()) + identifier_ = value["Identifier"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + if(!value["CertSignBufKmc"].isNull()) + certSignBufKmc_ = value["CertSignBufKmc"].asString(); + if(!value["CertKmcRep1"].isNull()) + certKmcRep1_ = value["CertKmcRep1"].asString(); + +} + +std::string CreateClientCertificateWithCsrResult::getCertKmcRep1()const +{ + return certKmcRep1_; +} + +std::string CreateClientCertificateWithCsrResult::getIdentifier()const +{ + return identifier_; +} + +std::string CreateClientCertificateWithCsrResult::getSerialNumber()const +{ + return serialNumber_; +} + +std::string CreateClientCertificateWithCsrResult::getParentX509Certificate()const +{ + return parentX509Certificate_; +} + +std::string CreateClientCertificateWithCsrResult::getCertificateChain()const +{ + return certificateChain_; +} + +std::string CreateClientCertificateWithCsrResult::getRootX509Certificate()const +{ + return rootX509Certificate_; +} + +std::string CreateClientCertificateWithCsrResult::getX509Certificate()const +{ + return x509Certificate_; +} + +std::string CreateClientCertificateWithCsrResult::getCertSignBufKmc()const +{ + return certSignBufKmc_; +} + diff --git a/cas/src/model/CreateCustomCertificateRequest.cc b/cas/src/model/CreateCustomCertificateRequest.cc new file mode 100644 index 000000000..7ee7f7f9c --- /dev/null +++ b/cas/src/model/CreateCustomCertificateRequest.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateCustomCertificateRequest; + +CreateCustomCertificateRequest::CreateCustomCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateCustomCertificate") { + setMethod(HttpRequest::Method::Post); +} + +CreateCustomCertificateRequest::~CreateCustomCertificateRequest() {} + +std::string CreateCustomCertificateRequest::getCsr() const { + return csr_; +} + +void CreateCustomCertificateRequest::setCsr(const std::string &csr) { + csr_ = csr; + setParameter(std::string("Csr"), csr); +} + +long CreateCustomCertificateRequest::getEnableCrl() const { + return enableCrl_; +} + +void CreateCustomCertificateRequest::setEnableCrl(long enableCrl) { + enableCrl_ = enableCrl; + setParameter(std::string("EnableCrl"), std::to_string(enableCrl)); +} + +int CreateCustomCertificateRequest::getImmediately() const { + return immediately_; +} + +void CreateCustomCertificateRequest::setImmediately(int immediately) { + immediately_ = immediately; + setParameter(std::string("Immediately"), std::to_string(immediately)); +} + +std::string CreateCustomCertificateRequest::getParentIdentifier() const { + return parentIdentifier_; +} + +void CreateCustomCertificateRequest::setParentIdentifier(const std::string &parentIdentifier) { + parentIdentifier_ = parentIdentifier; + setParameter(std::string("ParentIdentifier"), parentIdentifier); +} + +std::string CreateCustomCertificateRequest::getValidity() const { + return validity_; +} + +void CreateCustomCertificateRequest::setValidity(const std::string &validity) { + validity_ = validity; + setParameter(std::string("Validity"), validity); +} + +CreateCustomCertificateRequest::ApiPassthrough CreateCustomCertificateRequest::getApiPassthrough() const { + return apiPassthrough_; +} + +void CreateCustomCertificateRequest::setApiPassthrough(const CreateCustomCertificateRequest::ApiPassthrough &apiPassthrough) { + apiPassthrough_ = apiPassthrough; + setParameter(std::string("ApiPassthrough") + ".Subject.Country", apiPassthrough.subject.country); + setParameter(std::string("ApiPassthrough") + ".Subject.State", apiPassthrough.subject.state); + setParameter(std::string("ApiPassthrough") + ".Subject.Locality", apiPassthrough.subject.locality); + setParameter(std::string("ApiPassthrough") + ".Subject.Organization", apiPassthrough.subject.organization); + setParameter(std::string("ApiPassthrough") + ".Subject.OrganizationUnit", apiPassthrough.subject.organizationUnit); + setParameter(std::string("ApiPassthrough") + ".Subject.CommonName", apiPassthrough.subject.commonName); + for(int dep1 = 0; dep1 != apiPassthrough.subject.customAttributes.size(); dep1++) { + setParameter(std::string("ApiPassthrough") + ".Subject.CustomAttributes." + std::to_string(dep1 + 1) + ".ObjectIdentifier", apiPassthrough.subject.customAttributes[dep1].objectIdentifier); + setParameter(std::string("ApiPassthrough") + ".Subject.CustomAttributes." + std::to_string(dep1 + 1) + ".Value", apiPassthrough.subject.customAttributes[dep1].value); + } + setParameter(std::string("ApiPassthrough") + ".Extensions.KeyUsage.DigitalSignature", apiPassthrough.extensions.keyUsage.digitalSignature ? "true" : "false"); + setParameter(std::string("ApiPassthrough") + ".Extensions.KeyUsage.ContentCommitment", apiPassthrough.extensions.keyUsage.contentCommitment ? "true" : "false"); + setParameter(std::string("ApiPassthrough") + ".Extensions.KeyUsage.NonRepudiation", apiPassthrough.extensions.keyUsage.nonRepudiation ? "true" : "false"); + setParameter(std::string("ApiPassthrough") + ".Extensions.KeyUsage.KeyEncipherment", apiPassthrough.extensions.keyUsage.keyEncipherment ? "true" : "false"); + setParameter(std::string("ApiPassthrough") + ".Extensions.KeyUsage.DataEncipherment", apiPassthrough.extensions.keyUsage.dataEncipherment ? "true" : "false"); + setParameter(std::string("ApiPassthrough") + ".Extensions.KeyUsage.KeyAgreement", apiPassthrough.extensions.keyUsage.keyAgreement ? "true" : "false"); + setParameter(std::string("ApiPassthrough") + ".Extensions.KeyUsage.EncipherOnly", apiPassthrough.extensions.keyUsage.encipherOnly ? "true" : "false"); + setParameter(std::string("ApiPassthrough") + ".Extensions.KeyUsage.DecipherOnly", apiPassthrough.extensions.keyUsage.decipherOnly ? "true" : "false"); + for(int dep1 = 0; dep1 != apiPassthrough.extensions.extendedKeyUsages.size(); dep1++) { + setParameter(std::string("ApiPassthrough") + ".Extensions.ExtendedKeyUsages." + std::to_string(dep1 + 1), apiPassthrough.extensions.extendedKeyUsages[dep1]); + } + for(int dep1 = 0; dep1 != apiPassthrough.extensions.subjectAlternativeNames.size(); dep1++) { + setParameter(std::string("ApiPassthrough") + ".Extensions.SubjectAlternativeNames." + std::to_string(dep1 + 1) + ".Type", apiPassthrough.extensions.subjectAlternativeNames[dep1].type); + setParameter(std::string("ApiPassthrough") + ".Extensions.SubjectAlternativeNames." + std::to_string(dep1 + 1) + ".Value", apiPassthrough.extensions.subjectAlternativeNames[dep1].value); + } + for(int dep1 = 0; dep1 != apiPassthrough.extensions.criticals.size(); dep1++) { + setParameter(std::string("ApiPassthrough") + ".Extensions.Criticals." + std::to_string(dep1 + 1), apiPassthrough.extensions.criticals[dep1]); + } + setParameter(std::string("ApiPassthrough") + ".SerialNumber", apiPassthrough.serialNumber); +} + diff --git a/cas/src/model/CreateCustomCertificateResult.cc b/cas/src/model/CreateCustomCertificateResult.cc new file mode 100644 index 000000000..8652e5b7e --- /dev/null +++ b/cas/src/model/CreateCustomCertificateResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +CreateCustomCertificateResult::CreateCustomCertificateResult() : + ServiceResult() +{} + +CreateCustomCertificateResult::CreateCustomCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateCustomCertificateResult::~CreateCustomCertificateResult() +{} + +void CreateCustomCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Identifier"].isNull()) + identifier_ = value["Identifier"].asString(); + if(!value["Certificate"].isNull()) + certificate_ = value["Certificate"].asString(); + if(!value["CertificateChain"].isNull()) + certificateChain_ = value["CertificateChain"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + +} + +std::string CreateCustomCertificateResult::getIdentifier()const +{ + return identifier_; +} + +std::string CreateCustomCertificateResult::getSerialNumber()const +{ + return serialNumber_; +} + +std::string CreateCustomCertificateResult::getCertificateChain()const +{ + return certificateChain_; +} + +std::string CreateCustomCertificateResult::getCertificate()const +{ + return certificate_; +} + diff --git a/cas/src/model/CreateExternalCACertificateRequest.cc b/cas/src/model/CreateExternalCACertificateRequest.cc new file mode 100644 index 000000000..8c6c2dfe4 --- /dev/null +++ b/cas/src/model/CreateExternalCACertificateRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateExternalCACertificateRequest; + +CreateExternalCACertificateRequest::CreateExternalCACertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateExternalCACertificate") { + setMethod(HttpRequest::Method::Post); +} + +CreateExternalCACertificateRequest::~CreateExternalCACertificateRequest() {} + +std::string CreateExternalCACertificateRequest::getCsr() const { + return csr_; +} + +void CreateExternalCACertificateRequest::setCsr(const std::string &csr) { + csr_ = csr; + setParameter(std::string("Csr"), csr); +} + +std::string CreateExternalCACertificateRequest::getInstanceId() const { + return instanceId_; +} + +void CreateExternalCACertificateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateExternalCACertificateRequest::getAutoTesting() const { + return autoTesting_; +} + +void CreateExternalCACertificateRequest::setAutoTesting(const std::string &autoTesting) { + autoTesting_ = autoTesting; + setParameter(std::string("AutoTesting"), autoTesting); +} + +std::string CreateExternalCACertificateRequest::getValidity() const { + return validity_; +} + +void CreateExternalCACertificateRequest::setValidity(const std::string &validity) { + validity_ = validity; + setParameter(std::string("Validity"), validity); +} + +CreateExternalCACertificateRequest::ApiPassthrough CreateExternalCACertificateRequest::getApiPassthrough() const { + return apiPassthrough_; +} + +void CreateExternalCACertificateRequest::setApiPassthrough(const CreateExternalCACertificateRequest::ApiPassthrough &apiPassthrough) { + apiPassthrough_ = apiPassthrough; + setParameter(std::string("ApiPassthrough") + ".Subject.Country", apiPassthrough.subject.country); + setParameter(std::string("ApiPassthrough") + ".Subject.State", apiPassthrough.subject.state); + setParameter(std::string("ApiPassthrough") + ".Subject.Locality", apiPassthrough.subject.locality); + setParameter(std::string("ApiPassthrough") + ".Subject.Organization", apiPassthrough.subject.organization); + setParameter(std::string("ApiPassthrough") + ".Subject.OrganizationUnit", apiPassthrough.subject.organizationUnit); + setParameter(std::string("ApiPassthrough") + ".Subject.CommonName", apiPassthrough.subject.commonName); + setParameter(std::string("ApiPassthrough") + ".Extensions.PathLenConstraint", std::to_string(apiPassthrough.extensions.pathLenConstraint)); + for(int dep1 = 0; dep1 != apiPassthrough.extensions.extendedKeyUsages.size(); dep1++) { + setParameter(std::string("ApiPassthrough") + ".Extensions.ExtendedKeyUsages." + std::to_string(dep1 + 1), apiPassthrough.extensions.extendedKeyUsages[dep1]); + } +} + diff --git a/cas/src/model/CreateExternalCACertificateResult.cc b/cas/src/model/CreateExternalCACertificateResult.cc new file mode 100644 index 000000000..a6b4a86a2 --- /dev/null +++ b/cas/src/model/CreateExternalCACertificateResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +CreateExternalCACertificateResult::CreateExternalCACertificateResult() : + ServiceResult() +{} + +CreateExternalCACertificateResult::CreateExternalCACertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateExternalCACertificateResult::~CreateExternalCACertificateResult() +{} + +void CreateExternalCACertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Identifier"].isNull()) + identifier_ = value["Identifier"].asString(); + if(!value["Certificate"].isNull()) + certificate_ = value["Certificate"].asString(); + if(!value["CertificateChain"].isNull()) + certificateChain_ = value["CertificateChain"].asString(); + +} + +std::string CreateExternalCACertificateResult::getIdentifier()const +{ + return identifier_; +} + +std::string CreateExternalCACertificateResult::getCertificateChain()const +{ + return certificateChain_; +} + +std::string CreateExternalCACertificateResult::getCertificate()const +{ + return certificate_; +} + diff --git a/cas/src/model/CreateRevokeClientCertificateRequest.cc b/cas/src/model/CreateRevokeClientCertificateRequest.cc new file mode 100644 index 000000000..ea647f22c --- /dev/null +++ b/cas/src/model/CreateRevokeClientCertificateRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateRevokeClientCertificateRequest; + +CreateRevokeClientCertificateRequest::CreateRevokeClientCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateRevokeClientCertificate") { + setMethod(HttpRequest::Method::Post); +} + +CreateRevokeClientCertificateRequest::~CreateRevokeClientCertificateRequest() {} + +std::string CreateRevokeClientCertificateRequest::getIdentifier() const { + return identifier_; +} + +void CreateRevokeClientCertificateRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + diff --git a/cas/src/model/DeleteCertificateRequestResult.cc b/cas/src/model/CreateRevokeClientCertificateResult.cc similarity index 69% rename from cas/src/model/DeleteCertificateRequestResult.cc rename to cas/src/model/CreateRevokeClientCertificateResult.cc index 51b9f7d8a..d59301e99 100644 --- a/cas/src/model/DeleteCertificateRequestResult.cc +++ b/cas/src/model/CreateRevokeClientCertificateResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -DeleteCertificateRequestResult::DeleteCertificateRequestResult() : +CreateRevokeClientCertificateResult::CreateRevokeClientCertificateResult() : ServiceResult() {} -DeleteCertificateRequestResult::DeleteCertificateRequestResult(const std::string &payload) : +CreateRevokeClientCertificateResult::CreateRevokeClientCertificateResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteCertificateRequestResult::~DeleteCertificateRequestResult() +CreateRevokeClientCertificateResult::~CreateRevokeClientCertificateResult() {} -void DeleteCertificateRequestResult::parse(const std::string &payload) +void CreateRevokeClientCertificateResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/cas/src/model/CreateRootCACertificateRequest.cc b/cas/src/model/CreateRootCACertificateRequest.cc new file mode 100644 index 000000000..31752fdf0 --- /dev/null +++ b/cas/src/model/CreateRootCACertificateRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateRootCACertificateRequest; + +CreateRootCACertificateRequest::CreateRootCACertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateRootCACertificate") { + setMethod(HttpRequest::Method::Post); +} + +CreateRootCACertificateRequest::~CreateRootCACertificateRequest() {} + +std::string CreateRootCACertificateRequest::getClientToken() const { + return clientToken_; +} + +void CreateRootCACertificateRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateRootCACertificateRequest::getCountryCode() const { + return countryCode_; +} + +void CreateRootCACertificateRequest::setCountryCode(const std::string &countryCode) { + countryCode_ = countryCode; + setParameter(std::string("CountryCode"), countryCode); +} + +std::string CreateRootCACertificateRequest::getLocality() const { + return locality_; +} + +void CreateRootCACertificateRequest::setLocality(const std::string &locality) { + locality_ = locality; + setParameter(std::string("Locality"), locality); +} + +int CreateRootCACertificateRequest::getYears() const { + return years_; +} + +void CreateRootCACertificateRequest::setYears(int years) { + years_ = years; + setParameter(std::string("Years"), std::to_string(years)); +} + +std::string CreateRootCACertificateRequest::getInstanceId() const { + return instanceId_; +} + +void CreateRootCACertificateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateRootCACertificateRequest::getCommonName() const { + return commonName_; +} + +void CreateRootCACertificateRequest::setCommonName(const std::string &commonName) { + commonName_ = commonName; + setParameter(std::string("CommonName"), commonName); +} + +std::string CreateRootCACertificateRequest::getOrganization() const { + return organization_; +} + +void CreateRootCACertificateRequest::setOrganization(const std::string &organization) { + organization_ = organization; + setParameter(std::string("Organization"), organization); +} + +std::string CreateRootCACertificateRequest::getState() const { + return state_; +} + +void CreateRootCACertificateRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::string CreateRootCACertificateRequest::getOrganizationUnit() const { + return organizationUnit_; +} + +void CreateRootCACertificateRequest::setOrganizationUnit(const std::string &organizationUnit) { + organizationUnit_ = organizationUnit; + setParameter(std::string("OrganizationUnit"), organizationUnit); +} + +std::string CreateRootCACertificateRequest::getAlgorithm() const { + return algorithm_; +} + +void CreateRootCACertificateRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); +} + diff --git a/cas/src/model/EncryptResult.cc b/cas/src/model/CreateRootCACertificateResult.cc similarity index 50% rename from cas/src/model/EncryptResult.cc rename to cas/src/model/CreateRootCACertificateResult.cc index ffe9c40ed..6fabd4706 100644 --- a/cas/src/model/EncryptResult.cc +++ b/cas/src/model/CreateRootCACertificateResult.cc @@ -14,45 +14,52 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -EncryptResult::EncryptResult() : +CreateRootCACertificateResult::CreateRootCACertificateResult() : ServiceResult() {} -EncryptResult::EncryptResult(const std::string &payload) : +CreateRootCACertificateResult::CreateRootCACertificateResult(const std::string &payload) : ServiceResult() { parse(payload); } -EncryptResult::~EncryptResult() +CreateRootCACertificateResult::~CreateRootCACertificateResult() {} -void EncryptResult::parse(const std::string &payload) +void CreateRootCACertificateResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CertIdentifier"].isNull()) - certIdentifier_ = value["CertIdentifier"].asString(); - if(!value["CiphertextBlob"].isNull()) - ciphertextBlob_ = value["CiphertextBlob"].asString(); + if(!value["Identifier"].isNull()) + identifier_ = value["Identifier"].asString(); + if(!value["Certificate"].isNull()) + certificate_ = value["Certificate"].asString(); + if(!value["CertificateChain"].isNull()) + certificateChain_ = value["CertificateChain"].asString(); } -std::string EncryptResult::getCiphertextBlob()const +std::string CreateRootCACertificateResult::getIdentifier()const { - return ciphertextBlob_; + return identifier_; } -std::string EncryptResult::getCertIdentifier()const +std::string CreateRootCACertificateResult::getCertificateChain()const { - return certIdentifier_; + return certificateChain_; +} + +std::string CreateRootCACertificateResult::getCertificate()const +{ + return certificate_; } diff --git a/cas/src/model/CreateServerCertificateRequest.cc b/cas/src/model/CreateServerCertificateRequest.cc new file mode 100644 index 000000000..32f5881e4 --- /dev/null +++ b/cas/src/model/CreateServerCertificateRequest.cc @@ -0,0 +1,171 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateServerCertificateRequest; + +CreateServerCertificateRequest::CreateServerCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateServerCertificate") { + setMethod(HttpRequest::Method::Post); +} + +CreateServerCertificateRequest::~CreateServerCertificateRequest() {} + +std::string CreateServerCertificateRequest::getCountry() const { + return country_; +} + +void CreateServerCertificateRequest::setCountry(const std::string &country) { + country_ = country; + setParameter(std::string("Country"), country); +} + +int CreateServerCertificateRequest::getMonths() const { + return months_; +} + +void CreateServerCertificateRequest::setMonths(int months) { + months_ = months; + setParameter(std::string("Months"), std::to_string(months)); +} + +long CreateServerCertificateRequest::getEnableCrl() const { + return enableCrl_; +} + +void CreateServerCertificateRequest::setEnableCrl(long enableCrl) { + enableCrl_ = enableCrl; + setParameter(std::string("EnableCrl"), std::to_string(enableCrl)); +} + +long CreateServerCertificateRequest::getAfterTime() const { + return afterTime_; +} + +void CreateServerCertificateRequest::setAfterTime(long afterTime) { + afterTime_ = afterTime; + setParameter(std::string("AfterTime"), std::to_string(afterTime)); +} + +std::string CreateServerCertificateRequest::getLocality() const { + return locality_; +} + +void CreateServerCertificateRequest::setLocality(const std::string &locality) { + locality_ = locality; + setParameter(std::string("Locality"), locality); +} + +int CreateServerCertificateRequest::getImmediately() const { + return immediately_; +} + +void CreateServerCertificateRequest::setImmediately(int immediately) { + immediately_ = immediately; + setParameter(std::string("Immediately"), std::to_string(immediately)); +} + +int CreateServerCertificateRequest::getYears() const { + return years_; +} + +void CreateServerCertificateRequest::setYears(int years) { + years_ = years; + setParameter(std::string("Years"), std::to_string(years)); +} + +std::string CreateServerCertificateRequest::getCommonName() const { + return commonName_; +} + +void CreateServerCertificateRequest::setCommonName(const std::string &commonName) { + commonName_ = commonName; + setParameter(std::string("CommonName"), commonName); +} + +std::string CreateServerCertificateRequest::getOrganization() const { + return organization_; +} + +void CreateServerCertificateRequest::setOrganization(const std::string &organization) { + organization_ = organization; + setParameter(std::string("Organization"), organization); +} + +int CreateServerCertificateRequest::getDays() const { + return days_; +} + +void CreateServerCertificateRequest::setDays(int days) { + days_ = days; + setParameter(std::string("Days"), std::to_string(days)); +} + +long CreateServerCertificateRequest::getBeforeTime() const { + return beforeTime_; +} + +void CreateServerCertificateRequest::setBeforeTime(long beforeTime) { + beforeTime_ = beforeTime; + setParameter(std::string("BeforeTime"), std::to_string(beforeTime)); +} + +std::string CreateServerCertificateRequest::getState() const { + return state_; +} + +void CreateServerCertificateRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::string CreateServerCertificateRequest::getParentIdentifier() const { + return parentIdentifier_; +} + +void CreateServerCertificateRequest::setParentIdentifier(const std::string &parentIdentifier) { + parentIdentifier_ = parentIdentifier; + setParameter(std::string("ParentIdentifier"), parentIdentifier); +} + +std::string CreateServerCertificateRequest::getOrganizationUnit() const { + return organizationUnit_; +} + +void CreateServerCertificateRequest::setOrganizationUnit(const std::string &organizationUnit) { + organizationUnit_ = organizationUnit; + setParameter(std::string("OrganizationUnit"), organizationUnit); +} + +std::string CreateServerCertificateRequest::getAlgorithm() const { + return algorithm_; +} + +void CreateServerCertificateRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); +} + +std::string CreateServerCertificateRequest::getDomain() const { + return domain_; +} + +void CreateServerCertificateRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + diff --git a/cas/src/model/CreateServerCertificateResult.cc b/cas/src/model/CreateServerCertificateResult.cc new file mode 100644 index 000000000..868e71016 --- /dev/null +++ b/cas/src/model/CreateServerCertificateResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +CreateServerCertificateResult::CreateServerCertificateResult() : + ServiceResult() +{} + +CreateServerCertificateResult::CreateServerCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServerCertificateResult::~CreateServerCertificateResult() +{} + +void CreateServerCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["X509Certificate"].isNull()) + x509Certificate_ = value["X509Certificate"].asString(); + if(!value["CertificateChain"].isNull()) + certificateChain_ = value["CertificateChain"].asString(); + if(!value["RootX509Certificate"].isNull()) + rootX509Certificate_ = value["RootX509Certificate"].asString(); + if(!value["ParentX509Certificate"].isNull()) + parentX509Certificate_ = value["ParentX509Certificate"].asString(); + if(!value["Identifier"].isNull()) + identifier_ = value["Identifier"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + +} + +std::string CreateServerCertificateResult::getIdentifier()const +{ + return identifier_; +} + +std::string CreateServerCertificateResult::getSerialNumber()const +{ + return serialNumber_; +} + +std::string CreateServerCertificateResult::getParentX509Certificate()const +{ + return parentX509Certificate_; +} + +std::string CreateServerCertificateResult::getCertificateChain()const +{ + return certificateChain_; +} + +std::string CreateServerCertificateResult::getRootX509Certificate()const +{ + return rootX509Certificate_; +} + +std::string CreateServerCertificateResult::getX509Certificate()const +{ + return x509Certificate_; +} + diff --git a/cas/src/model/CreateServerCertificateWithCsrRequest.cc b/cas/src/model/CreateServerCertificateWithCsrRequest.cc new file mode 100644 index 000000000..d2bccfb38 --- /dev/null +++ b/cas/src/model/CreateServerCertificateWithCsrRequest.cc @@ -0,0 +1,180 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateServerCertificateWithCsrRequest; + +CreateServerCertificateWithCsrRequest::CreateServerCertificateWithCsrRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateServerCertificateWithCsr") { + setMethod(HttpRequest::Method::Post); +} + +CreateServerCertificateWithCsrRequest::~CreateServerCertificateWithCsrRequest() {} + +std::string CreateServerCertificateWithCsrRequest::getCountry() const { + return country_; +} + +void CreateServerCertificateWithCsrRequest::setCountry(const std::string &country) { + country_ = country; + setParameter(std::string("Country"), country); +} + +int CreateServerCertificateWithCsrRequest::getMonths() const { + return months_; +} + +void CreateServerCertificateWithCsrRequest::setMonths(int months) { + months_ = months; + setParameter(std::string("Months"), std::to_string(months)); +} + +long CreateServerCertificateWithCsrRequest::getEnableCrl() const { + return enableCrl_; +} + +void CreateServerCertificateWithCsrRequest::setEnableCrl(long enableCrl) { + enableCrl_ = enableCrl; + setParameter(std::string("EnableCrl"), std::to_string(enableCrl)); +} + +long CreateServerCertificateWithCsrRequest::getAfterTime() const { + return afterTime_; +} + +void CreateServerCertificateWithCsrRequest::setAfterTime(long afterTime) { + afterTime_ = afterTime; + setParameter(std::string("AfterTime"), std::to_string(afterTime)); +} + +std::string CreateServerCertificateWithCsrRequest::getLocality() const { + return locality_; +} + +void CreateServerCertificateWithCsrRequest::setLocality(const std::string &locality) { + locality_ = locality; + setParameter(std::string("Locality"), locality); +} + +int CreateServerCertificateWithCsrRequest::getImmediately() const { + return immediately_; +} + +void CreateServerCertificateWithCsrRequest::setImmediately(int immediately) { + immediately_ = immediately; + setParameter(std::string("Immediately"), std::to_string(immediately)); +} + +int CreateServerCertificateWithCsrRequest::getYears() const { + return years_; +} + +void CreateServerCertificateWithCsrRequest::setYears(int years) { + years_ = years; + setParameter(std::string("Years"), std::to_string(years)); +} + +std::string CreateServerCertificateWithCsrRequest::getCommonName() const { + return commonName_; +} + +void CreateServerCertificateWithCsrRequest::setCommonName(const std::string &commonName) { + commonName_ = commonName; + setParameter(std::string("CommonName"), commonName); +} + +std::string CreateServerCertificateWithCsrRequest::getOrganization() const { + return organization_; +} + +void CreateServerCertificateWithCsrRequest::setOrganization(const std::string &organization) { + organization_ = organization; + setParameter(std::string("Organization"), organization); +} + +int CreateServerCertificateWithCsrRequest::getDays() const { + return days_; +} + +void CreateServerCertificateWithCsrRequest::setDays(int days) { + days_ = days; + setParameter(std::string("Days"), std::to_string(days)); +} + +long CreateServerCertificateWithCsrRequest::getBeforeTime() const { + return beforeTime_; +} + +void CreateServerCertificateWithCsrRequest::setBeforeTime(long beforeTime) { + beforeTime_ = beforeTime; + setParameter(std::string("BeforeTime"), std::to_string(beforeTime)); +} + +std::string CreateServerCertificateWithCsrRequest::getState() const { + return state_; +} + +void CreateServerCertificateWithCsrRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::string CreateServerCertificateWithCsrRequest::getParentIdentifier() const { + return parentIdentifier_; +} + +void CreateServerCertificateWithCsrRequest::setParentIdentifier(const std::string &parentIdentifier) { + parentIdentifier_ = parentIdentifier; + setParameter(std::string("ParentIdentifier"), parentIdentifier); +} + +std::string CreateServerCertificateWithCsrRequest::getOrganizationUnit() const { + return organizationUnit_; +} + +void CreateServerCertificateWithCsrRequest::setOrganizationUnit(const std::string &organizationUnit) { + organizationUnit_ = organizationUnit; + setParameter(std::string("OrganizationUnit"), organizationUnit); +} + +std::string CreateServerCertificateWithCsrRequest::getAlgorithm() const { + return algorithm_; +} + +void CreateServerCertificateWithCsrRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); +} + +std::string CreateServerCertificateWithCsrRequest::getCsr() const { + return csr_; +} + +void CreateServerCertificateWithCsrRequest::setCsr(const std::string &csr) { + csr_ = csr; + setParameter(std::string("Csr"), csr); +} + +std::string CreateServerCertificateWithCsrRequest::getDomain() const { + return domain_; +} + +void CreateServerCertificateWithCsrRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + diff --git a/cas/src/model/CreateServerCertificateWithCsrResult.cc b/cas/src/model/CreateServerCertificateWithCsrResult.cc new file mode 100644 index 000000000..97b95f742 --- /dev/null +++ b/cas/src/model/CreateServerCertificateWithCsrResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +CreateServerCertificateWithCsrResult::CreateServerCertificateWithCsrResult() : + ServiceResult() +{} + +CreateServerCertificateWithCsrResult::CreateServerCertificateWithCsrResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateServerCertificateWithCsrResult::~CreateServerCertificateWithCsrResult() +{} + +void CreateServerCertificateWithCsrResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["X509Certificate"].isNull()) + x509Certificate_ = value["X509Certificate"].asString(); + if(!value["CertificateChain"].isNull()) + certificateChain_ = value["CertificateChain"].asString(); + if(!value["RootX509Certificate"].isNull()) + rootX509Certificate_ = value["RootX509Certificate"].asString(); + if(!value["ParentX509Certificate"].isNull()) + parentX509Certificate_ = value["ParentX509Certificate"].asString(); + if(!value["Identifier"].isNull()) + identifier_ = value["Identifier"].asString(); + if(!value["SerialNumber"].isNull()) + serialNumber_ = value["SerialNumber"].asString(); + +} + +std::string CreateServerCertificateWithCsrResult::getIdentifier()const +{ + return identifier_; +} + +std::string CreateServerCertificateWithCsrResult::getSerialNumber()const +{ + return serialNumber_; +} + +std::string CreateServerCertificateWithCsrResult::getParentX509Certificate()const +{ + return parentX509Certificate_; +} + +std::string CreateServerCertificateWithCsrResult::getCertificateChain()const +{ + return certificateChain_; +} + +std::string CreateServerCertificateWithCsrResult::getRootX509Certificate()const +{ + return rootX509Certificate_; +} + +std::string CreateServerCertificateWithCsrResult::getX509Certificate()const +{ + return x509Certificate_; +} + diff --git a/cas/src/model/CreateSubCACertificateRequest.cc b/cas/src/model/CreateSubCACertificateRequest.cc new file mode 100644 index 000000000..7ef8f5a53 --- /dev/null +++ b/cas/src/model/CreateSubCACertificateRequest.cc @@ -0,0 +1,152 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::CreateSubCACertificateRequest; + +CreateSubCACertificateRequest::CreateSubCACertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "CreateSubCACertificate") { + setMethod(HttpRequest::Method::Post); +} + +CreateSubCACertificateRequest::~CreateSubCACertificateRequest() {} + +std::vector CreateSubCACertificateRequest::getExtendedKeyUsages() const { + return extendedKeyUsages_; +} + +void CreateSubCACertificateRequest::setExtendedKeyUsages(const std::vector &extendedKeyUsages) { + extendedKeyUsages_ = extendedKeyUsages; +} + +bool CreateSubCACertificateRequest::getEnableCrl() const { + return enableCrl_; +} + +void CreateSubCACertificateRequest::setEnableCrl(bool enableCrl) { + enableCrl_ = enableCrl; + setParameter(std::string("EnableCrl"), enableCrl ? "true" : "false"); +} + +std::string CreateSubCACertificateRequest::getCountryCode() const { + return countryCode_; +} + +void CreateSubCACertificateRequest::setCountryCode(const std::string &countryCode) { + countryCode_ = countryCode; + setParameter(std::string("CountryCode"), countryCode); +} + +std::string CreateSubCACertificateRequest::getLocality() const { + return locality_; +} + +void CreateSubCACertificateRequest::setLocality(const std::string &locality) { + locality_ = locality; + setParameter(std::string("Locality"), locality); +} + +int CreateSubCACertificateRequest::getPathLenConstraint() const { + return pathLenConstraint_; +} + +void CreateSubCACertificateRequest::setPathLenConstraint(int pathLenConstraint) { + pathLenConstraint_ = pathLenConstraint; + setParameter(std::string("PathLenConstraint"), std::to_string(pathLenConstraint)); +} + +int CreateSubCACertificateRequest::getYears() const { + return years_; +} + +void CreateSubCACertificateRequest::setYears(int years) { + years_ = years; + setParameter(std::string("Years"), std::to_string(years)); +} + +std::string CreateSubCACertificateRequest::getInstanceId() const { + return instanceId_; +} + +void CreateSubCACertificateRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateSubCACertificateRequest::getCommonName() const { + return commonName_; +} + +void CreateSubCACertificateRequest::setCommonName(const std::string &commonName) { + commonName_ = commonName; + setParameter(std::string("CommonName"), commonName); +} + +std::string CreateSubCACertificateRequest::getOrganization() const { + return organization_; +} + +void CreateSubCACertificateRequest::setOrganization(const std::string &organization) { + organization_ = organization; + setParameter(std::string("Organization"), organization); +} + +int CreateSubCACertificateRequest::getCrlDay() const { + return crlDay_; +} + +void CreateSubCACertificateRequest::setCrlDay(int crlDay) { + crlDay_ = crlDay; + setParameter(std::string("CrlDay"), std::to_string(crlDay)); +} + +std::string CreateSubCACertificateRequest::getParentIdentifier() const { + return parentIdentifier_; +} + +void CreateSubCACertificateRequest::setParentIdentifier(const std::string &parentIdentifier) { + parentIdentifier_ = parentIdentifier; + setParameter(std::string("ParentIdentifier"), parentIdentifier); +} + +std::string CreateSubCACertificateRequest::getState() const { + return state_; +} + +void CreateSubCACertificateRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); +} + +std::string CreateSubCACertificateRequest::getOrganizationUnit() const { + return organizationUnit_; +} + +void CreateSubCACertificateRequest::setOrganizationUnit(const std::string &organizationUnit) { + organizationUnit_ = organizationUnit; + setParameter(std::string("OrganizationUnit"), organizationUnit); +} + +std::string CreateSubCACertificateRequest::getAlgorithm() const { + return algorithm_; +} + +void CreateSubCACertificateRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); +} + diff --git a/cas/src/model/UploadPCACertResult.cc b/cas/src/model/CreateSubCACertificateResult.cc similarity index 56% rename from cas/src/model/UploadPCACertResult.cc rename to cas/src/model/CreateSubCACertificateResult.cc index 05134fbdb..033ca5de3 100644 --- a/cas/src/model/UploadPCACertResult.cc +++ b/cas/src/model/CreateSubCACertificateResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -UploadPCACertResult::UploadPCACertResult() : +CreateSubCACertificateResult::CreateSubCACertificateResult() : ServiceResult() {} -UploadPCACertResult::UploadPCACertResult(const std::string &payload) : +CreateSubCACertificateResult::CreateSubCACertificateResult(const std::string &payload) : ServiceResult() { parse(payload); } -UploadPCACertResult::~UploadPCACertResult() +CreateSubCACertificateResult::~CreateSubCACertificateResult() {} -void UploadPCACertResult::parse(const std::string &payload) +void CreateSubCACertificateResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -41,11 +41,25 @@ void UploadPCACertResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Identifier"].isNull()) identifier_ = value["Identifier"].asString(); + if(!value["Certificate"].isNull()) + certificate_ = value["Certificate"].asString(); + if(!value["CertificateChain"].isNull()) + certificateChain_ = value["CertificateChain"].asString(); } -std::string UploadPCACertResult::getIdentifier()const +std::string CreateSubCACertificateResult::getIdentifier()const { return identifier_; } +std::string CreateSubCACertificateResult::getCertificateChain()const +{ + return certificateChain_; +} + +std::string CreateSubCACertificateResult::getCertificate()const +{ + return certificate_; +} + diff --git a/cas/src/model/CreateWHClientCertificateRequest.cc b/cas/src/model/CreateWHClientCertificateRequest.cc deleted file mode 100644 index 00e2f4db7..000000000 --- a/cas/src/model/CreateWHClientCertificateRequest.cc +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::CreateWHClientCertificateRequest; - -CreateWHClientCertificateRequest::CreateWHClientCertificateRequest() - : RpcServiceRequest("cas", "2020-04-07", "CreateWHClientCertificate") { - setMethod(HttpRequest::Method::Post); -} - -CreateWHClientCertificateRequest::~CreateWHClientCertificateRequest() {} - -std::string CreateWHClientCertificateRequest::getCountry() const { - return country_; -} - -void CreateWHClientCertificateRequest::setCountry(const std::string &country) { - country_ = country; - setParameter(std::string("Country"), country); -} - -std::string CreateWHClientCertificateRequest::getCsr() const { - return csr_; -} - -void CreateWHClientCertificateRequest::setCsr(const std::string &csr) { - csr_ = csr; - setParameter(std::string("Csr"), csr); -} - -long CreateWHClientCertificateRequest::getImmediately() const { - return immediately_; -} - -void CreateWHClientCertificateRequest::setImmediately(long immediately) { - immediately_ = immediately; - setParameter(std::string("Immediately"), std::to_string(immediately)); -} - -long CreateWHClientCertificateRequest::getYears() const { - return years_; -} - -void CreateWHClientCertificateRequest::setYears(long years) { - years_ = years; - setParameter(std::string("Years"), std::to_string(years)); -} - -std::string CreateWHClientCertificateRequest::getCommonName() const { - return commonName_; -} - -void CreateWHClientCertificateRequest::setCommonName(const std::string &commonName) { - commonName_ = commonName; - setParameter(std::string("CommonName"), commonName); -} - -std::string CreateWHClientCertificateRequest::getSourceIp() const { - return sourceIp_; -} - -void CreateWHClientCertificateRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string CreateWHClientCertificateRequest::getSanValue() const { - return sanValue_; -} - -void CreateWHClientCertificateRequest::setSanValue(const std::string &sanValue) { - sanValue_ = sanValue; - setParameter(std::string("SanValue"), sanValue); -} - -std::string CreateWHClientCertificateRequest::getState() const { - return state_; -} - -void CreateWHClientCertificateRequest::setState(const std::string &state) { - state_ = state; - setParameter(std::string("State"), state); -} - -std::string CreateWHClientCertificateRequest::getAlgorithm() const { - return algorithm_; -} - -void CreateWHClientCertificateRequest::setAlgorithm(const std::string &algorithm) { - algorithm_ = algorithm; - setParameter(std::string("Algorithm"), algorithm); -} - -long CreateWHClientCertificateRequest::getMonths() const { - return months_; -} - -void CreateWHClientCertificateRequest::setMonths(long months) { - months_ = months; - setParameter(std::string("Months"), std::to_string(months)); -} - -long CreateWHClientCertificateRequest::getAfterTime() const { - return afterTime_; -} - -void CreateWHClientCertificateRequest::setAfterTime(long afterTime) { - afterTime_ = afterTime; - setParameter(std::string("AfterTime"), std::to_string(afterTime)); -} - -std::string CreateWHClientCertificateRequest::getLocality() const { - return locality_; -} - -void CreateWHClientCertificateRequest::setLocality(const std::string &locality) { - locality_ = locality; - setParameter(std::string("Locality"), locality); -} - -long CreateWHClientCertificateRequest::getSanType() const { - return sanType_; -} - -void CreateWHClientCertificateRequest::setSanType(long sanType) { - sanType_ = sanType; - setParameter(std::string("SanType"), std::to_string(sanType)); -} - -std::string CreateWHClientCertificateRequest::getOrganization() const { - return organization_; -} - -void CreateWHClientCertificateRequest::setOrganization(const std::string &organization) { - organization_ = organization; - setParameter(std::string("Organization"), organization); -} - -long CreateWHClientCertificateRequest::getDays() const { - return days_; -} - -void CreateWHClientCertificateRequest::setDays(long days) { - days_ = days; - setParameter(std::string("Days"), std::to_string(days)); -} - -long CreateWHClientCertificateRequest::getBeforeTime() const { - return beforeTime_; -} - -void CreateWHClientCertificateRequest::setBeforeTime(long beforeTime) { - beforeTime_ = beforeTime; - setParameter(std::string("BeforeTime"), std::to_string(beforeTime)); -} - -std::string CreateWHClientCertificateRequest::getParentIdentifier() const { - return parentIdentifier_; -} - -void CreateWHClientCertificateRequest::setParentIdentifier(const std::string &parentIdentifier) { - parentIdentifier_ = parentIdentifier; - setParameter(std::string("ParentIdentifier"), parentIdentifier); -} - -std::string CreateWHClientCertificateRequest::getOrganizationUnit() const { - return organizationUnit_; -} - -void CreateWHClientCertificateRequest::setOrganizationUnit(const std::string &organizationUnit) { - organizationUnit_ = organizationUnit; - setParameter(std::string("OrganizationUnit"), organizationUnit); -} - diff --git a/cas/src/model/DecryptRequest.cc b/cas/src/model/DecryptRequest.cc deleted file mode 100644 index 4d9684a14..000000000 --- a/cas/src/model/DecryptRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::DecryptRequest; - -DecryptRequest::DecryptRequest() - : RpcServiceRequest("cas", "2020-04-07", "Decrypt") { - setMethod(HttpRequest::Method::Post); -} - -DecryptRequest::~DecryptRequest() {} - -std::string DecryptRequest::getMessageType() const { - return messageType_; -} - -void DecryptRequest::setMessageType(const std::string &messageType) { - messageType_ = messageType; - setParameter(std::string("MessageType"), messageType); -} - -std::string DecryptRequest::getSourceIp() const { - return sourceIp_; -} - -void DecryptRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string DecryptRequest::getCertIdentifier() const { - return certIdentifier_; -} - -void DecryptRequest::setCertIdentifier(const std::string &certIdentifier) { - certIdentifier_ = certIdentifier; - setParameter(std::string("CertIdentifier"), certIdentifier); -} - -std::string DecryptRequest::getAlgorithm() const { - return algorithm_; -} - -void DecryptRequest::setAlgorithm(const std::string &algorithm) { - algorithm_ = algorithm; - setParameter(std::string("Algorithm"), algorithm); -} - -std::string DecryptRequest::getCiphertextBlob() const { - return ciphertextBlob_; -} - -void DecryptRequest::setCiphertextBlob(const std::string &ciphertextBlob) { - ciphertextBlob_ = ciphertextBlob; - setParameter(std::string("CiphertextBlob"), ciphertextBlob); -} - diff --git a/cas/src/model/DeleteCertificateRequestRequest.cc b/cas/src/model/DeleteCertificateRequestRequest.cc deleted file mode 100644 index 2af4b96d2..000000000 --- a/cas/src/model/DeleteCertificateRequestRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::DeleteCertificateRequestRequest; - -DeleteCertificateRequestRequest::DeleteCertificateRequestRequest() - : RpcServiceRequest("cas", "2020-04-07", "DeleteCertificateRequest") { - setMethod(HttpRequest::Method::Post); -} - -DeleteCertificateRequestRequest::~DeleteCertificateRequestRequest() {} - -std::string DeleteCertificateRequestRequest::getSourceIp() const { - return sourceIp_; -} - -void DeleteCertificateRequestRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -long DeleteCertificateRequestRequest::getOrderId() const { - return orderId_; -} - -void DeleteCertificateRequestRequest::setOrderId(long orderId) { - orderId_ = orderId; - setParameter(std::string("OrderId"), std::to_string(orderId)); -} - diff --git a/cas/src/model/DeleteClientCertificateRequest.cc b/cas/src/model/DeleteClientCertificateRequest.cc new file mode 100644 index 000000000..7f42cbb4d --- /dev/null +++ b/cas/src/model/DeleteClientCertificateRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::DeleteClientCertificateRequest; + +DeleteClientCertificateRequest::DeleteClientCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "DeleteClientCertificate") { + setMethod(HttpRequest::Method::Post); +} + +DeleteClientCertificateRequest::~DeleteClientCertificateRequest() {} + +std::string DeleteClientCertificateRequest::getIdentifier() const { + return identifier_; +} + +void DeleteClientCertificateRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + diff --git a/cas/src/model/SignResult.cc b/cas/src/model/DeleteClientCertificateResult.cc similarity index 72% rename from cas/src/model/SignResult.cc rename to cas/src/model/DeleteClientCertificateResult.cc index 3fe56ab05..8747a8c59 100644 --- a/cas/src/model/SignResult.cc +++ b/cas/src/model/DeleteClientCertificateResult.cc @@ -14,38 +14,31 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -SignResult::SignResult() : +DeleteClientCertificateResult::DeleteClientCertificateResult() : ServiceResult() {} -SignResult::SignResult(const std::string &payload) : +DeleteClientCertificateResult::DeleteClientCertificateResult(const std::string &payload) : ServiceResult() { parse(payload); } -SignResult::~SignResult() +DeleteClientCertificateResult::~DeleteClientCertificateResult() {} -void SignResult::parse(const std::string &payload) +void DeleteClientCertificateResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Signature"].isNull()) - signature_ = value["Signature"].asString(); } -std::string SignResult::getSignature()const -{ - return signature_; -} - diff --git a/cas/src/model/DeleteUserCertificateRequest.cc b/cas/src/model/DeleteUserCertificateRequest.cc deleted file mode 100644 index e396b6395..000000000 --- a/cas/src/model/DeleteUserCertificateRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::DeleteUserCertificateRequest; - -DeleteUserCertificateRequest::DeleteUserCertificateRequest() - : RpcServiceRequest("cas", "2020-04-07", "DeleteUserCertificate") { - setMethod(HttpRequest::Method::Post); -} - -DeleteUserCertificateRequest::~DeleteUserCertificateRequest() {} - -long DeleteUserCertificateRequest::getCertId() const { - return certId_; -} - -void DeleteUserCertificateRequest::setCertId(long certId) { - certId_ = certId; - setParameter(std::string("CertId"), std::to_string(certId)); -} - -std::string DeleteUserCertificateRequest::getSourceIp() const { - return sourceIp_; -} - -void DeleteUserCertificateRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - diff --git a/cas/src/model/DeleteUserCertificateResult.cc b/cas/src/model/DeleteUserCertificateResult.cc deleted file mode 100644 index 476709f70..000000000 --- a/cas/src/model/DeleteUserCertificateResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -DeleteUserCertificateResult::DeleteUserCertificateResult() : - ServiceResult() -{} - -DeleteUserCertificateResult::DeleteUserCertificateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteUserCertificateResult::~DeleteUserCertificateResult() -{} - -void DeleteUserCertificateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/cas/src/model/DeletePCACertResult.cc b/cas/src/model/DescribeCACertificateCountRequest.cc similarity index 52% rename from cas/src/model/DeletePCACertResult.cc rename to cas/src/model/DescribeCACertificateCountRequest.cc index 0a8871aba..0dd748a39 100644 --- a/cas/src/model/DeletePCACertResult.cc +++ b/cas/src/model/DescribeCACertificateCountRequest.cc @@ -1,44 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -DeletePCACertResult::DeletePCACertResult() : - ServiceResult() -{} - -DeletePCACertResult::DeletePCACertResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeletePCACertResult::~DeletePCACertResult() -{} - -void DeletePCACertResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - + */ + +#include + +using AlibabaCloud::Cas::Model::DescribeCACertificateCountRequest; + +DescribeCACertificateCountRequest::DescribeCACertificateCountRequest() + : RpcServiceRequest("cas", "2020-06-30", "DescribeCACertificateCount") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCACertificateCountRequest::~DescribeCACertificateCountRequest() {} + diff --git a/cas/src/model/DecryptResult.cc b/cas/src/model/DescribeCACertificateCountResult.cc similarity index 62% rename from cas/src/model/DecryptResult.cc rename to cas/src/model/DescribeCACertificateCountResult.cc index 7f3792c55..90ce5336c 100644 --- a/cas/src/model/DecryptResult.cc +++ b/cas/src/model/DescribeCACertificateCountResult.cc @@ -14,45 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -DecryptResult::DecryptResult() : +DescribeCACertificateCountResult::DescribeCACertificateCountResult() : ServiceResult() {} -DecryptResult::DecryptResult(const std::string &payload) : +DescribeCACertificateCountResult::DescribeCACertificateCountResult(const std::string &payload) : ServiceResult() { parse(payload); } -DecryptResult::~DecryptResult() +DescribeCACertificateCountResult::~DescribeCACertificateCountResult() {} -void DecryptResult::parse(const std::string &payload) +void DescribeCACertificateCountResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Plaintext"].isNull()) - plaintext_ = value["Plaintext"].asString(); - if(!value["CertIdentifier"].isNull()) - certIdentifier_ = value["CertIdentifier"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } -std::string DecryptResult::getPlaintext()const +int DescribeCACertificateCountResult::getTotalCount()const { - return plaintext_; -} - -std::string DecryptResult::getCertIdentifier()const -{ - return certIdentifier_; + return totalCount_; } diff --git a/cas/src/model/DescribeCACertificateListRequest.cc b/cas/src/model/DescribeCACertificateListRequest.cc new file mode 100644 index 000000000..87ec6845d --- /dev/null +++ b/cas/src/model/DescribeCACertificateListRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::DescribeCACertificateListRequest; + +DescribeCACertificateListRequest::DescribeCACertificateListRequest() + : RpcServiceRequest("cas", "2020-06-30", "DescribeCACertificateList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCACertificateListRequest::~DescribeCACertificateListRequest() {} + +std::string DescribeCACertificateListRequest::getCaStatus() const { + return caStatus_; +} + +void DescribeCACertificateListRequest::setCaStatus(const std::string &caStatus) { + caStatus_ = caStatus; + setParameter(std::string("CaStatus"), caStatus); +} + +std::string DescribeCACertificateListRequest::getCertType() const { + return certType_; +} + +void DescribeCACertificateListRequest::setCertType(const std::string &certType) { + certType_ = certType; + setParameter(std::string("CertType"), certType); +} + +std::string DescribeCACertificateListRequest::getValidStatus() const { + return validStatus_; +} + +void DescribeCACertificateListRequest::setValidStatus(const std::string &validStatus) { + validStatus_ = validStatus; + setParameter(std::string("ValidStatus"), validStatus); +} + +std::string DescribeCACertificateListRequest::getIssuerType() const { + return issuerType_; +} + +void DescribeCACertificateListRequest::setIssuerType(const std::string &issuerType) { + issuerType_ = issuerType; + setParameter(std::string("IssuerType"), issuerType); +} + +std::string DescribeCACertificateListRequest::getIdentifier() const { + return identifier_; +} + +void DescribeCACertificateListRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + +int DescribeCACertificateListRequest::getShowSize() const { + return showSize_; +} + +void DescribeCACertificateListRequest::setShowSize(int showSize) { + showSize_ = showSize; + setParameter(std::string("ShowSize"), std::to_string(showSize)); +} + +int DescribeCACertificateListRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeCACertificateListRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + diff --git a/cas/src/model/DescribeCACertificateListResult.cc b/cas/src/model/DescribeCACertificateListResult.cc new file mode 100644 index 000000000..2dc33eb85 --- /dev/null +++ b/cas/src/model/DescribeCACertificateListResult.cc @@ -0,0 +1,133 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +DescribeCACertificateListResult::DescribeCACertificateListResult() : + ServiceResult() +{} + +DescribeCACertificateListResult::DescribeCACertificateListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCACertificateListResult::~DescribeCACertificateListResult() +{} + +void DescribeCACertificateListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCertificateListNode = value["CertificateList"]["Certificate"]; + for (auto valueCertificateListCertificate : allCertificateListNode) + { + Certificate certificateListObject; + if(!valueCertificateListCertificate["Years"].isNull()) + certificateListObject.years = std::stoi(valueCertificateListCertificate["Years"].asString()); + if(!valueCertificateListCertificate["Status"].isNull()) + certificateListObject.status = valueCertificateListCertificate["Status"].asString(); + if(!valueCertificateListCertificate["SerialNumber"].isNull()) + certificateListObject.serialNumber = valueCertificateListCertificate["SerialNumber"].asString(); + if(!valueCertificateListCertificate["CertificateType"].isNull()) + certificateListObject.certificateType = valueCertificateListCertificate["CertificateType"].asString(); + if(!valueCertificateListCertificate["Algorithm"].isNull()) + certificateListObject.algorithm = valueCertificateListCertificate["Algorithm"].asString(); + if(!valueCertificateListCertificate["State"].isNull()) + certificateListObject.state = valueCertificateListCertificate["State"].asString(); + if(!valueCertificateListCertificate["Organization"].isNull()) + certificateListObject.organization = valueCertificateListCertificate["Organization"].asString(); + if(!valueCertificateListCertificate["ParentIdentifier"].isNull()) + certificateListObject.parentIdentifier = valueCertificateListCertificate["ParentIdentifier"].asString(); + if(!valueCertificateListCertificate["Locality"].isNull()) + certificateListObject.locality = valueCertificateListCertificate["Locality"].asString(); + if(!valueCertificateListCertificate["Identifier"].isNull()) + certificateListObject.identifier = valueCertificateListCertificate["Identifier"].asString(); + if(!valueCertificateListCertificate["Sans"].isNull()) + certificateListObject.sans = valueCertificateListCertificate["Sans"].asString(); + if(!valueCertificateListCertificate["KeySize"].isNull()) + certificateListObject.keySize = std::stoi(valueCertificateListCertificate["KeySize"].asString()); + if(!valueCertificateListCertificate["X509Certificate"].isNull()) + certificateListObject.x509Certificate = valueCertificateListCertificate["X509Certificate"].asString(); + if(!valueCertificateListCertificate["SubjectDN"].isNull()) + certificateListObject.subjectDN = valueCertificateListCertificate["SubjectDN"].asString(); + if(!valueCertificateListCertificate["SignAlgorithm"].isNull()) + certificateListObject.signAlgorithm = valueCertificateListCertificate["SignAlgorithm"].asString(); + if(!valueCertificateListCertificate["OrganizationUnit"].isNull()) + certificateListObject.organizationUnit = valueCertificateListCertificate["OrganizationUnit"].asString(); + if(!valueCertificateListCertificate["AfterDate"].isNull()) + certificateListObject.afterDate = std::stol(valueCertificateListCertificate["AfterDate"].asString()); + if(!valueCertificateListCertificate["Sha2"].isNull()) + certificateListObject.sha2 = valueCertificateListCertificate["Sha2"].asString(); + if(!valueCertificateListCertificate["CommonName"].isNull()) + certificateListObject.commonName = valueCertificateListCertificate["CommonName"].asString(); + if(!valueCertificateListCertificate["Md5"].isNull()) + certificateListObject.md5 = valueCertificateListCertificate["Md5"].asString(); + if(!valueCertificateListCertificate["CountryCode"].isNull()) + certificateListObject.countryCode = valueCertificateListCertificate["CountryCode"].asString(); + if(!valueCertificateListCertificate["BeforeDate"].isNull()) + certificateListObject.beforeDate = std::stol(valueCertificateListCertificate["BeforeDate"].asString()); + if(!valueCertificateListCertificate["Alias"].isNull()) + certificateListObject.alias = valueCertificateListCertificate["Alias"].asString(); + if(!valueCertificateListCertificate["Trial"].isNull()) + certificateListObject.trial = std::stoi(valueCertificateListCertificate["Trial"].asString()); + if(!valueCertificateListCertificate["Gift"].isNull()) + certificateListObject.gift = std::stoi(valueCertificateListCertificate["Gift"].asString()); + certificateList_.push_back(certificateListObject); + } + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["ShowSize"].isNull()) + showSize_ = std::stoi(value["ShowSize"].asString()); + +} + +int DescribeCACertificateListResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeCACertificateListResult::getPageCount()const +{ + return pageCount_; +} + +int DescribeCACertificateListResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeCACertificateListResult::getCertificateList()const +{ + return certificateList_; +} + +int DescribeCACertificateListResult::getShowSize()const +{ + return showSize_; +} + diff --git a/cas/src/model/DeletePCACertRequest.cc b/cas/src/model/DescribeCACertificateRequest.cc similarity index 54% rename from cas/src/model/DeletePCACertRequest.cc rename to cas/src/model/DescribeCACertificateRequest.cc index 05b36cd87..511805dc3 100644 --- a/cas/src/model/DeletePCACertRequest.cc +++ b/cas/src/model/DescribeCACertificateRequest.cc @@ -14,32 +14,23 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cas::Model::DeletePCACertRequest; +using AlibabaCloud::Cas::Model::DescribeCACertificateRequest; -DeletePCACertRequest::DeletePCACertRequest() - : RpcServiceRequest("cas", "2020-04-07", "DeletePCACert") { +DescribeCACertificateRequest::DescribeCACertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "DescribeCACertificate") { setMethod(HttpRequest::Method::Post); } -DeletePCACertRequest::~DeletePCACertRequest() {} +DescribeCACertificateRequest::~DescribeCACertificateRequest() {} -std::string DeletePCACertRequest::getIdentifier() const { +std::string DescribeCACertificateRequest::getIdentifier() const { return identifier_; } -void DeletePCACertRequest::setIdentifier(const std::string &identifier) { +void DescribeCACertificateRequest::setIdentifier(const std::string &identifier) { identifier_ = identifier; setParameter(std::string("Identifier"), identifier); } -std::string DeletePCACertRequest::getSourceIp() const { - return sourceIp_; -} - -void DeletePCACertRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - diff --git a/cas/src/model/DescribeCACertificateResult.cc b/cas/src/model/DescribeCACertificateResult.cc new file mode 100644 index 000000000..dbb603509 --- /dev/null +++ b/cas/src/model/DescribeCACertificateResult.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +DescribeCACertificateResult::DescribeCACertificateResult() : + ServiceResult() +{} + +DescribeCACertificateResult::DescribeCACertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCACertificateResult::~DescribeCACertificateResult() +{} + +void DescribeCACertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto certificateNode = value["Certificate"]; + if(!certificateNode["CertificateType"].isNull()) + certificate_.certificateType = certificateNode["CertificateType"].asString(); + if(!certificateNode["X509Certificate"].isNull()) + certificate_.x509Certificate = certificateNode["X509Certificate"].asString(); + if(!certificateNode["Identifier"].isNull()) + certificate_.identifier = certificateNode["Identifier"].asString(); + if(!certificateNode["SerialNumber"].isNull()) + certificate_.serialNumber = certificateNode["SerialNumber"].asString(); + if(!certificateNode["SubjectDN"].isNull()) + certificate_.subjectDN = certificateNode["SubjectDN"].asString(); + if(!certificateNode["CommonName"].isNull()) + certificate_.commonName = certificateNode["CommonName"].asString(); + if(!certificateNode["OrganizationUnit"].isNull()) + certificate_.organizationUnit = certificateNode["OrganizationUnit"].asString(); + if(!certificateNode["Organization"].isNull()) + certificate_.organization = certificateNode["Organization"].asString(); + if(!certificateNode["Locality"].isNull()) + certificate_.locality = certificateNode["Locality"].asString(); + if(!certificateNode["State"].isNull()) + certificate_.state = certificateNode["State"].asString(); + if(!certificateNode["CountryCode"].isNull()) + certificate_.countryCode = certificateNode["CountryCode"].asString(); + if(!certificateNode["Sans"].isNull()) + certificate_.sans = certificateNode["Sans"].asString(); + if(!certificateNode["Status"].isNull()) + certificate_.status = certificateNode["Status"].asString(); + if(!certificateNode["Algorithm"].isNull()) + certificate_.algorithm = certificateNode["Algorithm"].asString(); + if(!certificateNode["KeySize"].isNull()) + certificate_.keySize = std::stoi(certificateNode["KeySize"].asString()); + if(!certificateNode["SignAlgorithm"].isNull()) + certificate_.signAlgorithm = certificateNode["SignAlgorithm"].asString(); + if(!certificateNode["BeforeDate"].isNull()) + certificate_.beforeDate = std::stol(certificateNode["BeforeDate"].asString()); + if(!certificateNode["AfterDate"].isNull()) + certificate_.afterDate = std::stol(certificateNode["AfterDate"].asString()); + if(!certificateNode["ParentIdentifier"].isNull()) + certificate_.parentIdentifier = certificateNode["ParentIdentifier"].asString(); + if(!certificateNode["Sha2"].isNull()) + certificate_.sha2 = certificateNode["Sha2"].asString(); + if(!certificateNode["Md5"].isNull()) + certificate_.md5 = certificateNode["Md5"].asString(); + if(!certificateNode["CrlStatus"].isNull()) + certificate_.crlStatus = certificateNode["CrlStatus"].asString(); + if(!certificateNode["CrlUrl"].isNull()) + certificate_.crlUrl = certificateNode["CrlUrl"].asString(); + if(!certificateNode["CertTotalCount"].isNull()) + certificate_.certTotalCount = std::stol(certificateNode["CertTotalCount"].asString()); + if(!certificateNode["CertRemainingCount"].isNull()) + certificate_.certRemainingCount = std::stol(certificateNode["CertRemainingCount"].asString()); + if(!certificateNode["CertIssuedCount"].isNull()) + certificate_.certIssuedCount = std::stol(certificateNode["CertIssuedCount"].asString()); + if(!certificateNode["CaCertChain"].isNull()) + certificate_.caCertChain = certificateNode["CaCertChain"].asString(); + if(!certificateNode["CrlDay"].isNull()) + certificate_.crlDay = std::stoi(certificateNode["CrlDay"].asString()); + if(!certificateNode["IssuerType"].isNull()) + certificate_.issuerType = certificateNode["IssuerType"].asString(); + if(!certificateNode["Years"].isNull()) + certificate_.years = std::stoi(certificateNode["Years"].asString()); + if(!certificateNode["FullAlgorithm"].isNull()) + certificate_.fullAlgorithm = certificateNode["FullAlgorithm"].asString(); + if(!value["Years"].isNull()) + years_ = std::stoi(value["Years"].asString()); + +} + +int DescribeCACertificateResult::getYears()const +{ + return years_; +} + +DescribeCACertificateResult::Certificate DescribeCACertificateResult::getCertificate()const +{ + return certificate_; +} + diff --git a/cas/src/model/DescribeCertificatePrivateKeyRequest.cc b/cas/src/model/DescribeCertificatePrivateKeyRequest.cc new file mode 100644 index 000000000..b88e1418a --- /dev/null +++ b/cas/src/model/DescribeCertificatePrivateKeyRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::DescribeCertificatePrivateKeyRequest; + +DescribeCertificatePrivateKeyRequest::DescribeCertificatePrivateKeyRequest() + : RpcServiceRequest("cas", "2020-06-30", "DescribeCertificatePrivateKey") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCertificatePrivateKeyRequest::~DescribeCertificatePrivateKeyRequest() {} + +std::string DescribeCertificatePrivateKeyRequest::getIdentifier() const { + return identifier_; +} + +void DescribeCertificatePrivateKeyRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + +std::string DescribeCertificatePrivateKeyRequest::getEncryptedCode() const { + return encryptedCode_; +} + +void DescribeCertificatePrivateKeyRequest::setEncryptedCode(const std::string &encryptedCode) { + encryptedCode_ = encryptedCode; + setParameter(std::string("EncryptedCode"), encryptedCode); +} + diff --git a/cas/src/model/CreateCertificateWithCsrRequestResult.cc b/cas/src/model/DescribeCertificatePrivateKeyResult.cc similarity index 60% rename from cas/src/model/CreateCertificateWithCsrRequestResult.cc rename to cas/src/model/DescribeCertificatePrivateKeyResult.cc index 1e4aa1c45..f5f9d9752 100644 --- a/cas/src/model/CreateCertificateWithCsrRequestResult.cc +++ b/cas/src/model/DescribeCertificatePrivateKeyResult.cc @@ -14,38 +14,38 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -CreateCertificateWithCsrRequestResult::CreateCertificateWithCsrRequestResult() : +DescribeCertificatePrivateKeyResult::DescribeCertificatePrivateKeyResult() : ServiceResult() {} -CreateCertificateWithCsrRequestResult::CreateCertificateWithCsrRequestResult(const std::string &payload) : +DescribeCertificatePrivateKeyResult::DescribeCertificatePrivateKeyResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateCertificateWithCsrRequestResult::~CreateCertificateWithCsrRequestResult() +DescribeCertificatePrivateKeyResult::~DescribeCertificatePrivateKeyResult() {} -void CreateCertificateWithCsrRequestResult::parse(const std::string &payload) +void DescribeCertificatePrivateKeyResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); + if(!value["EncryptedData"].isNull()) + encryptedData_ = value["EncryptedData"].asString(); } -long CreateCertificateWithCsrRequestResult::getOrderId()const +std::string DescribeCertificatePrivateKeyResult::getEncryptedData()const { - return orderId_; + return encryptedData_; } diff --git a/cas/src/model/DescribeCertificateStateRequest.cc b/cas/src/model/DescribeCertificateStateRequest.cc deleted file mode 100644 index ea80c455b..000000000 --- a/cas/src/model/DescribeCertificateStateRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::DescribeCertificateStateRequest; - -DescribeCertificateStateRequest::DescribeCertificateStateRequest() - : RpcServiceRequest("cas", "2020-04-07", "DescribeCertificateState") { - setMethod(HttpRequest::Method::Post); -} - -DescribeCertificateStateRequest::~DescribeCertificateStateRequest() {} - -std::string DescribeCertificateStateRequest::getSourceIp() const { - return sourceIp_; -} - -void DescribeCertificateStateRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -long DescribeCertificateStateRequest::getOrderId() const { - return orderId_; -} - -void DescribeCertificateStateRequest::setOrderId(long orderId) { - orderId_ = orderId; - setParameter(std::string("OrderId"), std::to_string(orderId)); -} - diff --git a/cas/src/model/DescribeCertificateStateResult.cc b/cas/src/model/DescribeCertificateStateResult.cc deleted file mode 100644 index 9ae26ebd9..000000000 --- a/cas/src/model/DescribeCertificateStateResult.cc +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -DescribeCertificateStateResult::DescribeCertificateStateResult() : - ServiceResult() -{} - -DescribeCertificateStateResult::DescribeCertificateStateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeCertificateStateResult::~DescribeCertificateStateResult() -{} - -void DescribeCertificateStateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Type"].isNull()) - type_ = value["Type"].asString(); - if(!value["Domain"].isNull()) - domain_ = value["Domain"].asString(); - if(!value["RecordType"].isNull()) - recordType_ = value["RecordType"].asString(); - if(!value["Certificate"].isNull()) - certificate_ = value["Certificate"].asString(); - if(!value["RecordDomain"].isNull()) - recordDomain_ = value["RecordDomain"].asString(); - if(!value["PrivateKey"].isNull()) - privateKey_ = value["PrivateKey"].asString(); - if(!value["ValidateType"].isNull()) - validateType_ = value["ValidateType"].asString(); - if(!value["RecordValue"].isNull()) - recordValue_ = value["RecordValue"].asString(); - if(!value["Content"].isNull()) - content_ = value["Content"].asString(); - if(!value["Uri"].isNull()) - uri_ = value["Uri"].asString(); - -} - -std::string DescribeCertificateStateResult::getType()const -{ - return type_; -} - -std::string DescribeCertificateStateResult::getPrivateKey()const -{ - return privateKey_; -} - -std::string DescribeCertificateStateResult::getRecordType()const -{ - return recordType_; -} - -std::string DescribeCertificateStateResult::getContent()const -{ - return content_; -} - -std::string DescribeCertificateStateResult::getRecordDomain()const -{ - return recordDomain_; -} - -std::string DescribeCertificateStateResult::getRecordValue()const -{ - return recordValue_; -} - -std::string DescribeCertificateStateResult::getDomain()const -{ - return domain_; -} - -std::string DescribeCertificateStateResult::getValidateType()const -{ - return validateType_; -} - -std::string DescribeCertificateStateResult::getUri()const -{ - return uri_; -} - -std::string DescribeCertificateStateResult::getCertificate()const -{ - return certificate_; -} - diff --git a/cas/src/model/RevokeWHClientCertificateRequest.cc b/cas/src/model/DescribeClientCertificateRequest.cc similarity index 53% rename from cas/src/model/RevokeWHClientCertificateRequest.cc rename to cas/src/model/DescribeClientCertificateRequest.cc index 1ed3e1551..380da6428 100644 --- a/cas/src/model/RevokeWHClientCertificateRequest.cc +++ b/cas/src/model/DescribeClientCertificateRequest.cc @@ -14,32 +14,23 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cas::Model::RevokeWHClientCertificateRequest; +using AlibabaCloud::Cas::Model::DescribeClientCertificateRequest; -RevokeWHClientCertificateRequest::RevokeWHClientCertificateRequest() - : RpcServiceRequest("cas", "2020-04-07", "RevokeWHClientCertificate") { +DescribeClientCertificateRequest::DescribeClientCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "DescribeClientCertificate") { setMethod(HttpRequest::Method::Post); } -RevokeWHClientCertificateRequest::~RevokeWHClientCertificateRequest() {} +DescribeClientCertificateRequest::~DescribeClientCertificateRequest() {} -std::string RevokeWHClientCertificateRequest::getIdentifier() const { +std::string DescribeClientCertificateRequest::getIdentifier() const { return identifier_; } -void RevokeWHClientCertificateRequest::setIdentifier(const std::string &identifier) { +void DescribeClientCertificateRequest::setIdentifier(const std::string &identifier) { identifier_ = identifier; setParameter(std::string("Identifier"), identifier); } -std::string RevokeWHClientCertificateRequest::getSourceIp() const { - return sourceIp_; -} - -void RevokeWHClientCertificateRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - diff --git a/cas/src/model/DescribeClientCertificateResult.cc b/cas/src/model/DescribeClientCertificateResult.cc new file mode 100644 index 000000000..401b3df5b --- /dev/null +++ b/cas/src/model/DescribeClientCertificateResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +DescribeClientCertificateResult::DescribeClientCertificateResult() : + ServiceResult() +{} + +DescribeClientCertificateResult::DescribeClientCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClientCertificateResult::~DescribeClientCertificateResult() +{} + +void DescribeClientCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto certificateNode = value["Certificate"]; + if(!certificateNode["X509Certificate"].isNull()) + certificate_.x509Certificate = certificateNode["X509Certificate"].asString(); + if(!certificateNode["Identifier"].isNull()) + certificate_.identifier = certificateNode["Identifier"].asString(); + if(!certificateNode["SerialNumber"].isNull()) + certificate_.serialNumber = certificateNode["SerialNumber"].asString(); + if(!certificateNode["SubjectDN"].isNull()) + certificate_.subjectDN = certificateNode["SubjectDN"].asString(); + if(!certificateNode["CommonName"].isNull()) + certificate_.commonName = certificateNode["CommonName"].asString(); + if(!certificateNode["OrganizationUnit"].isNull()) + certificate_.organizationUnit = certificateNode["OrganizationUnit"].asString(); + if(!certificateNode["Organization"].isNull()) + certificate_.organization = certificateNode["Organization"].asString(); + if(!certificateNode["Locality"].isNull()) + certificate_.locality = certificateNode["Locality"].asString(); + if(!certificateNode["State"].isNull()) + certificate_.state = certificateNode["State"].asString(); + if(!certificateNode["CountryCode"].isNull()) + certificate_.countryCode = certificateNode["CountryCode"].asString(); + if(!certificateNode["Sans"].isNull()) + certificate_.sans = certificateNode["Sans"].asString(); + if(!certificateNode["Status"].isNull()) + certificate_.status = certificateNode["Status"].asString(); + if(!certificateNode["BeforeDate"].isNull()) + certificate_.beforeDate = std::stol(certificateNode["BeforeDate"].asString()); + if(!certificateNode["AfterDate"].isNull()) + certificate_.afterDate = std::stol(certificateNode["AfterDate"].asString()); + if(!certificateNode["Algorithm"].isNull()) + certificate_.algorithm = certificateNode["Algorithm"].asString(); + if(!certificateNode["KeySize"].isNull()) + certificate_.keySize = std::stoi(certificateNode["KeySize"].asString()); + if(!certificateNode["SignAlgorithm"].isNull()) + certificate_.signAlgorithm = certificateNode["SignAlgorithm"].asString(); + if(!certificateNode["CertificateType"].isNull()) + certificate_.certificateType = certificateNode["CertificateType"].asString(); + if(!certificateNode["ParentIdentifier"].isNull()) + certificate_.parentIdentifier = certificateNode["ParentIdentifier"].asString(); + if(!certificateNode["Sha2"].isNull()) + certificate_.sha2 = certificateNode["Sha2"].asString(); + if(!certificateNode["Md5"].isNull()) + certificate_.md5 = certificateNode["Md5"].asString(); + if(!certificateNode["Days"].isNull()) + certificate_.days = std::stoi(certificateNode["Days"].asString()); + +} + +DescribeClientCertificateResult::Certificate DescribeClientCertificateResult::getCertificate()const +{ + return certificate_; +} + diff --git a/cas/src/model/DescribeClientCertificateStatusRequest.cc b/cas/src/model/DescribeClientCertificateStatusRequest.cc new file mode 100644 index 000000000..ed5339312 --- /dev/null +++ b/cas/src/model/DescribeClientCertificateStatusRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::DescribeClientCertificateStatusRequest; + +DescribeClientCertificateStatusRequest::DescribeClientCertificateStatusRequest() + : RpcServiceRequest("cas", "2020-06-30", "DescribeClientCertificateStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeClientCertificateStatusRequest::~DescribeClientCertificateStatusRequest() {} + +std::string DescribeClientCertificateStatusRequest::getIdentifier() const { + return identifier_; +} + +void DescribeClientCertificateStatusRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + diff --git a/cas/src/model/DescribeClientCertificateStatusResult.cc b/cas/src/model/DescribeClientCertificateStatusResult.cc new file mode 100644 index 000000000..b8ed45fad --- /dev/null +++ b/cas/src/model/DescribeClientCertificateStatusResult.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +DescribeClientCertificateStatusResult::DescribeClientCertificateStatusResult() : + ServiceResult() +{} + +DescribeClientCertificateStatusResult::DescribeClientCertificateStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeClientCertificateStatusResult::~DescribeClientCertificateStatusResult() +{} + +void DescribeClientCertificateStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCertificateStatusNode = value["CertificateStatus"]["CertificateStatusItem"]; + for (auto valueCertificateStatusCertificateStatusItem : allCertificateStatusNode) + { + CertificateStatusItem certificateStatusObject; + if(!valueCertificateStatusCertificateStatusItem["SerialNumber"].isNull()) + certificateStatusObject.serialNumber = valueCertificateStatusCertificateStatusItem["SerialNumber"].asString(); + if(!valueCertificateStatusCertificateStatusItem["Status"].isNull()) + certificateStatusObject.status = valueCertificateStatusCertificateStatusItem["Status"].asString(); + if(!valueCertificateStatusCertificateStatusItem["RevokeTime"].isNull()) + certificateStatusObject.revokeTime = std::stol(valueCertificateStatusCertificateStatusItem["RevokeTime"].asString()); + certificateStatus_.push_back(certificateStatusObject); + } + +} + +std::vector DescribeClientCertificateStatusResult::getCertificateStatus()const +{ + return certificateStatus_; +} + diff --git a/cas/src/model/DescribePackageStateRequest.cc b/cas/src/model/DescribePackageStateRequest.cc deleted file mode 100644 index bf704de4c..000000000 --- a/cas/src/model/DescribePackageStateRequest.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::DescribePackageStateRequest; - -DescribePackageStateRequest::DescribePackageStateRequest() - : RpcServiceRequest("cas", "2020-04-07", "DescribePackageState") { - setMethod(HttpRequest::Method::Post); -} - -DescribePackageStateRequest::~DescribePackageStateRequest() {} - -std::string DescribePackageStateRequest::getSourceIp() const { - return sourceIp_; -} - -void DescribePackageStateRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string DescribePackageStateRequest::getProductCode() const { - return productCode_; -} - -void DescribePackageStateRequest::setProductCode(const std::string &productCode) { - productCode_ = productCode; - setParameter(std::string("ProductCode"), productCode); -} - diff --git a/cas/src/model/DescribePackageStateResult.cc b/cas/src/model/DescribePackageStateResult.cc deleted file mode 100644 index 6472e7792..000000000 --- a/cas/src/model/DescribePackageStateResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -DescribePackageStateResult::DescribePackageStateResult() : - ServiceResult() -{} - -DescribePackageStateResult::DescribePackageStateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribePackageStateResult::~DescribePackageStateResult() -{} - -void DescribePackageStateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["IssuedCount"].isNull()) - issuedCount_ = std::stol(value["IssuedCount"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["ProductCode"].isNull()) - productCode_ = value["ProductCode"].asString(); - if(!value["UsedCount"].isNull()) - usedCount_ = std::stol(value["UsedCount"].asString()); - -} - -long DescribePackageStateResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribePackageStateResult::getProductCode()const -{ - return productCode_; -} - -long DescribePackageStateResult::getUsedCount()const -{ - return usedCount_; -} - -long DescribePackageStateResult::getIssuedCount()const -{ - return issuedCount_; -} - diff --git a/cas/src/model/EncryptRequest.cc b/cas/src/model/EncryptRequest.cc deleted file mode 100644 index 4be65bdf8..000000000 --- a/cas/src/model/EncryptRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::EncryptRequest; - -EncryptRequest::EncryptRequest() - : RpcServiceRequest("cas", "2020-04-07", "Encrypt") { - setMethod(HttpRequest::Method::Post); -} - -EncryptRequest::~EncryptRequest() {} - -std::string EncryptRequest::getMessageType() const { - return messageType_; -} - -void EncryptRequest::setMessageType(const std::string &messageType) { - messageType_ = messageType; - setParameter(std::string("MessageType"), messageType); -} - -std::string EncryptRequest::getPlaintext() const { - return plaintext_; -} - -void EncryptRequest::setPlaintext(const std::string &plaintext) { - plaintext_ = plaintext; - setParameter(std::string("Plaintext"), plaintext); -} - -std::string EncryptRequest::getSourceIp() const { - return sourceIp_; -} - -void EncryptRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string EncryptRequest::getCertIdentifier() const { - return certIdentifier_; -} - -void EncryptRequest::setCertIdentifier(const std::string &certIdentifier) { - certIdentifier_ = certIdentifier; - setParameter(std::string("CertIdentifier"), certIdentifier); -} - -std::string EncryptRequest::getAlgorithm() const { - return algorithm_; -} - -void EncryptRequest::setAlgorithm(const std::string &algorithm) { - algorithm_ = algorithm; - setParameter(std::string("Algorithm"), algorithm); -} - diff --git a/cas/src/model/GetCAInstanceStatusRequest.cc b/cas/src/model/GetCAInstanceStatusRequest.cc new file mode 100644 index 000000000..2f8f37b12 --- /dev/null +++ b/cas/src/model/GetCAInstanceStatusRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::GetCAInstanceStatusRequest; + +GetCAInstanceStatusRequest::GetCAInstanceStatusRequest() + : RpcServiceRequest("cas", "2020-06-30", "GetCAInstanceStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetCAInstanceStatusRequest::~GetCAInstanceStatusRequest() {} + +std::string GetCAInstanceStatusRequest::getIdentifier() const { + return identifier_; +} + +void GetCAInstanceStatusRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + +std::string GetCAInstanceStatusRequest::getInstanceId() const { + return instanceId_; +} + +void GetCAInstanceStatusRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/cas/src/model/GetCAInstanceStatusResult.cc b/cas/src/model/GetCAInstanceStatusResult.cc new file mode 100644 index 000000000..20cf07593 --- /dev/null +++ b/cas/src/model/GetCAInstanceStatusResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +GetCAInstanceStatusResult::GetCAInstanceStatusResult() : + ServiceResult() +{} + +GetCAInstanceStatusResult::GetCAInstanceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCAInstanceStatusResult::~GetCAInstanceStatusResult() +{} + +void GetCAInstanceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceStatusListNode = value["InstanceStatusList"]["InstanceStatus"]; + for (auto valueInstanceStatusListInstanceStatus : allInstanceStatusListNode) + { + InstanceStatus instanceStatusListObject; + if(!valueInstanceStatusListInstanceStatus["CertTotalCount"].isNull()) + instanceStatusListObject.certTotalCount = std::stoi(valueInstanceStatusListInstanceStatus["CertTotalCount"].asString()); + if(!valueInstanceStatusListInstanceStatus["Status"].isNull()) + instanceStatusListObject.status = valueInstanceStatusListInstanceStatus["Status"].asString(); + if(!valueInstanceStatusListInstanceStatus["Type"].isNull()) + instanceStatusListObject.type = valueInstanceStatusListInstanceStatus["Type"].asString(); + if(!valueInstanceStatusListInstanceStatus["CertIssuedCount"].isNull()) + instanceStatusListObject.certIssuedCount = std::stoi(valueInstanceStatusListInstanceStatus["CertIssuedCount"].asString()); + if(!valueInstanceStatusListInstanceStatus["BeforeTime"].isNull()) + instanceStatusListObject.beforeTime = std::stol(valueInstanceStatusListInstanceStatus["BeforeTime"].asString()); + if(!valueInstanceStatusListInstanceStatus["Identifier"].isNull()) + instanceStatusListObject.identifier = valueInstanceStatusListInstanceStatus["Identifier"].asString(); + if(!valueInstanceStatusListInstanceStatus["AfterTime"].isNull()) + instanceStatusListObject.afterTime = std::stol(valueInstanceStatusListInstanceStatus["AfterTime"].asString()); + if(!valueInstanceStatusListInstanceStatus["InstanceId"].isNull()) + instanceStatusListObject.instanceId = valueInstanceStatusListInstanceStatus["InstanceId"].asString(); + if(!valueInstanceStatusListInstanceStatus["UseExpireTime"].isNull()) + instanceStatusListObject.useExpireTime = std::stol(valueInstanceStatusListInstanceStatus["UseExpireTime"].asString()); + instanceStatusList_.push_back(instanceStatusListObject); + } + +} + +std::vector GetCAInstanceStatusResult::getInstanceStatusList()const +{ + return instanceStatusList_; +} + diff --git a/cas/src/model/GetCertWarehouseQuotaResult.cc b/cas/src/model/GetCertWarehouseQuotaResult.cc deleted file mode 100644 index 3bc13cb20..000000000 --- a/cas/src/model/GetCertWarehouseQuotaResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -GetCertWarehouseQuotaResult::GetCertWarehouseQuotaResult() : - ServiceResult() -{} - -GetCertWarehouseQuotaResult::GetCertWarehouseQuotaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetCertWarehouseQuotaResult::~GetCertWarehouseQuotaResult() -{} - -void GetCertWarehouseQuotaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["TotalQuota"].isNull()) - totalQuota_ = std::stol(value["TotalQuota"].asString()); - if(!value["UseCount"].isNull()) - useCount_ = std::stol(value["UseCount"].asString()); - -} - -long GetCertWarehouseQuotaResult::getTotalQuota()const -{ - return totalQuota_; -} - -long GetCertWarehouseQuotaResult::getUseCount()const -{ - return useCount_; -} - diff --git a/cas/src/model/GetUserCertificateDetailRequest.cc b/cas/src/model/GetUserCertificateDetailRequest.cc deleted file mode 100644 index b129cd02e..000000000 --- a/cas/src/model/GetUserCertificateDetailRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::GetUserCertificateDetailRequest; - -GetUserCertificateDetailRequest::GetUserCertificateDetailRequest() - : RpcServiceRequest("cas", "2020-04-07", "GetUserCertificateDetail") { - setMethod(HttpRequest::Method::Post); -} - -GetUserCertificateDetailRequest::~GetUserCertificateDetailRequest() {} - -long GetUserCertificateDetailRequest::getCertId() const { - return certId_; -} - -void GetUserCertificateDetailRequest::setCertId(long certId) { - certId_ = certId; - setParameter(std::string("CertId"), std::to_string(certId)); -} - -std::string GetUserCertificateDetailRequest::getSourceIp() const { - return sourceIp_; -} - -void GetUserCertificateDetailRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = 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"); -} - diff --git a/cas/src/model/GetUserCertificateDetailResult.cc b/cas/src/model/GetUserCertificateDetailResult.cc deleted file mode 100644 index 6f4e4e19b..000000000 --- a/cas/src/model/GetUserCertificateDetailResult.cc +++ /dev/null @@ -1,205 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -GetUserCertificateDetailResult::GetUserCertificateDetailResult() : - ServiceResult() -{} - -GetUserCertificateDetailResult::GetUserCertificateDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetUserCertificateDetailResult::~GetUserCertificateDetailResult() -{} - -void GetUserCertificateDetailResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Cert"].isNull()) - cert_ = value["Cert"].asString(); - if(!value["Key"].isNull()) - key_ = value["Key"].asString(); - if(!value["EncryptCert"].isNull()) - encryptCert_ = value["EncryptCert"].asString(); - if(!value["EncryptPrivateKey"].isNull()) - encryptPrivateKey_ = value["EncryptPrivateKey"].asString(); - if(!value["SignCert"].isNull()) - signCert_ = value["SignCert"].asString(); - if(!value["SignPrivateKey"].isNull()) - signPrivateKey_ = value["SignPrivateKey"].asString(); - if(!value["Id"].isNull()) - id_ = std::stol(value["Id"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["Common"].isNull()) - common_ = value["Common"].asString(); - if(!value["Fingerprint"].isNull()) - fingerprint_ = value["Fingerprint"].asString(); - if(!value["Issuer"].isNull()) - issuer_ = value["Issuer"].asString(); - if(!value["OrgName"].isNull()) - orgName_ = value["OrgName"].asString(); - if(!value["Province"].isNull()) - province_ = value["Province"].asString(); - if(!value["City"].isNull()) - city_ = value["City"].asString(); - if(!value["Country"].isNull()) - country_ = value["Country"].asString(); - if(!value["StartDate"].isNull()) - startDate_ = value["StartDate"].asString(); - if(!value["EndDate"].isNull()) - endDate_ = value["EndDate"].asString(); - if(!value["Sans"].isNull()) - sans_ = value["Sans"].asString(); - if(!value["Expired"].isNull()) - expired_ = value["Expired"].asString() == "true"; - if(!value["BuyInAliyun"].isNull()) - buyInAliyun_ = value["BuyInAliyun"].asString() == "true"; - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); - if(!value["ResourceGroupId"].isNull()) - resourceGroupId_ = value["ResourceGroupId"].asString(); - if(!value["Algorithm"].isNull()) - algorithm_ = value["Algorithm"].asString(); - -} - -std::string GetUserCertificateDetailResult::getSignCert()const -{ - return signCert_; -} - -std::string GetUserCertificateDetailResult::getFingerprint()const -{ - return fingerprint_; -} - -std::string GetUserCertificateDetailResult::getResourceGroupId()const -{ - return resourceGroupId_; -} - -std::string GetUserCertificateDetailResult::getIssuer()const -{ - return issuer_; -} - -std::string GetUserCertificateDetailResult::getEncryptCert()const -{ - return encryptCert_; -} - -std::string GetUserCertificateDetailResult::getOrgName()const -{ - return orgName_; -} - -bool GetUserCertificateDetailResult::getExpired()const -{ - return expired_; -} - -std::string GetUserCertificateDetailResult::getCity()const -{ - return city_; -} - -long GetUserCertificateDetailResult::getOrderId()const -{ - return orderId_; -} - -std::string GetUserCertificateDetailResult::getEndDate()const -{ - return endDate_; -} - -std::string GetUserCertificateDetailResult::getAlgorithm()const -{ - return algorithm_; -} - -std::string GetUserCertificateDetailResult::getProvince()const -{ - return province_; -} - -std::string GetUserCertificateDetailResult::getName()const -{ - return name_; -} - -std::string GetUserCertificateDetailResult::getCommon()const -{ - return common_; -} - -bool GetUserCertificateDetailResult::getBuyInAliyun()const -{ - return buyInAliyun_; -} - -std::string GetUserCertificateDetailResult::getStartDate()const -{ - return startDate_; -} - -std::string GetUserCertificateDetailResult::getSans()const -{ - return sans_; -} - -std::string GetUserCertificateDetailResult::getCountry()const -{ - return country_; -} - -std::string GetUserCertificateDetailResult::getSignPrivateKey()const -{ - return signPrivateKey_; -} - -std::string GetUserCertificateDetailResult::getCert()const -{ - return cert_; -} - -std::string GetUserCertificateDetailResult::getEncryptPrivateKey()const -{ - return encryptPrivateKey_; -} - -long GetUserCertificateDetailResult::getId()const -{ - return id_; -} - -std::string GetUserCertificateDetailResult::getKey()const -{ - return key_; -} - diff --git a/cas/src/model/ListCertRequest.cc b/cas/src/model/ListCertRequest.cc index 4b6190226..f7ec600a9 100644 --- a/cas/src/model/ListCertRequest.cc +++ b/cas/src/model/ListCertRequest.cc @@ -19,75 +19,84 @@ using AlibabaCloud::Cas::Model::ListCertRequest; ListCertRequest::ListCertRequest() - : RpcServiceRequest("cas", "2020-04-07", "ListCert") { + : RpcServiceRequest("cas", "2020-06-30", "ListCert") { setMethod(HttpRequest::Method::Post); } ListCertRequest::~ListCertRequest() {} -std::string ListCertRequest::getSourceIp() const { - return sourceIp_; +std::string ListCertRequest::getBeforeDate() const { + return beforeDate_; } -void ListCertRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); +void ListCertRequest::setBeforeDate(const std::string &beforeDate) { + beforeDate_ = beforeDate; + setParameter(std::string("BeforeDate"), beforeDate); } -long ListCertRequest::getWarehouseId() const { - return warehouseId_; -} - -void ListCertRequest::setWarehouseId(long warehouseId) { - warehouseId_ = 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_; -} - -void ListCertRequest::setSourceType(const std::string &sourceType) { - sourceType_ = sourceType; - setParameter(std::string("SourceType"), sourceType); -} - -std::string ListCertRequest::getKeyWord() const { - return keyWord_; -} - -void ListCertRequest::setKeyWord(const std::string &keyWord) { - keyWord_ = keyWord; - setParameter(std::string("KeyWord"), keyWord); -} - -long ListCertRequest::getShowSize() const { +int ListCertRequest::getShowSize() const { return showSize_; } -void ListCertRequest::setShowSize(long showSize) { +void ListCertRequest::setShowSize(int showSize) { showSize_ = showSize; setParameter(std::string("ShowSize"), std::to_string(showSize)); } -long ListCertRequest::getCurrentPage() const { +std::string ListCertRequest::getInstanceUuid() const { + return instanceUuid_; +} + +void ListCertRequest::setInstanceUuid(const std::string &instanceUuid) { + instanceUuid_ = instanceUuid; + setParameter(std::string("InstanceUuid"), instanceUuid); +} + +int ListCertRequest::getCurrentPage() const { return currentPage_; } -void ListCertRequest::setCurrentPage(long currentPage) { +void ListCertRequest::setCurrentPage(int currentPage) { currentPage_ = currentPage; setParameter(std::string("CurrentPage"), std::to_string(currentPage)); } +std::string ListCertRequest::getType() const { + return type_; +} + +void ListCertRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); +} + +std::string ListCertRequest::getAfterDate() const { + return afterDate_; +} + +void ListCertRequest::setAfterDate(const std::string &afterDate) { + afterDate_ = afterDate; + setParameter(std::string("AfterDate"), afterDate); +} + +std::string ListCertRequest::getNextToken() const { + return nextToken_; +} + +void ListCertRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListCertRequest::getMaxResults() const { + return maxResults_; +} + +void ListCertRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + std::string ListCertRequest::getStatus() const { return status_; } diff --git a/cas/src/model/ListCertResult.cc b/cas/src/model/ListCertResult.cc index 37080c9f8..a8fc564ca 100644 --- a/cas/src/model/ListCertResult.cc +++ b/cas/src/model/ListCertResult.cc @@ -39,62 +39,96 @@ void ListCertResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allCertListNode = value["CertList"]["Cert"]; - for (auto valueCertListCert : allCertListNode) + auto allListNode = value["List"]["ListItem"]; + for (auto valueListListItem : allListNode) { - Cert certListObject; - if(!valueCertListCert["WhId"].isNull()) - certListObject.whId = std::stol(valueCertListCert["WhId"].asString()); - if(!valueCertListCert["Identifier"].isNull()) - certListObject.identifier = valueCertListCert["Identifier"].asString(); - if(!valueCertListCert["WhInstanceId"].isNull()) - certListObject.whInstanceId = valueCertListCert["WhInstanceId"].asString(); - if(!valueCertListCert["Status"].isNull()) - 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()) - certListObject.beforeDate = std::stol(valueCertListCert["BeforeDate"].asString()); - if(!valueCertListCert["Issuer"].isNull()) - certListObject.issuer = valueCertListCert["Issuer"].asString(); - if(!valueCertListCert["AfterDate"].isNull()) - certListObject.afterDate = std::stol(valueCertListCert["AfterDate"].asString()); - if(!valueCertListCert["ExistPrivateKey"].isNull()) - certListObject.existPrivateKey = valueCertListCert["ExistPrivateKey"].asString() == "true"; - if(!valueCertListCert["Sans"].isNull()) - certListObject.sans = valueCertListCert["Sans"].asString(); - certList_.push_back(certListObject); + ListItem listObject; + if(!valueListListItem["Status"].isNull()) + listObject.status = valueListListItem["Status"].asString(); + if(!valueListListItem["AfterDate"].isNull()) + listObject.afterDate = valueListListItem["AfterDate"].asString(); + if(!valueListListItem["Organization"].isNull()) + listObject.organization = valueListListItem["Organization"].asString(); + if(!valueListListItem["KeyExportable"].isNull()) + listObject.keyExportable = valueListListItem["KeyExportable"].asString() == "true"; + if(!valueListListItem["SubjectDn"].isNull()) + listObject.subjectDn = valueListListItem["SubjectDn"].asString(); + if(!valueListListItem["Algorithm"].isNull()) + listObject.algorithm = valueListListItem["Algorithm"].asString(); + if(!valueListListItem["CertificateType"].isNull()) + listObject.certificateType = valueListListItem["CertificateType"].asString(); + if(!valueListListItem["Identifier"].isNull()) + listObject.identifier = valueListListItem["Identifier"].asString(); + if(!valueListListItem["SerialNumber"].isNull()) + listObject.serialNumber = valueListListItem["SerialNumber"].asString(); + if(!valueListListItem["Extra"].isNull()) + listObject.extra = valueListListItem["Extra"].asString(); + if(!valueListListItem["OrganizationUnit"].isNull()) + listObject.organizationUnit = valueListListItem["OrganizationUnit"].asString(); + if(!valueListListItem["BeforeTime"].isNull()) + listObject.beforeTime = std::stol(valueListListItem["BeforeTime"].asString()); + if(!valueListListItem["AliasName"].isNull()) + listObject.aliasName = valueListListItem["AliasName"].asString(); + if(!valueListListItem["AfterTime"].isNull()) + listObject.afterTime = std::stol(valueListListItem["AfterTime"].asString()); + if(!valueListListItem["Id"].isNull()) + listObject.id = valueListListItem["Id"].asString(); + if(!valueListListItem["CommonName"].isNull()) + listObject.commonName = valueListListItem["CommonName"].asString(); + if(!valueListListItem["BeforeDate"].isNull()) + listObject.beforeDate = valueListListItem["BeforeDate"].asString(); + auto allTags = value["Tags"]["Tag"]; + for (auto value : allTags) + listObject.tags.push_back(value.asString()); + list_.push_back(listObject); } - if(!value["ShowSize"].isNull()) - showSize_ = std::stol(value["ShowSize"].asString()); - if(!value["CurrentPage"].isNull()) - currentPage_ = std::stol(value["CurrentPage"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["ShowSize"].isNull()) + showSize_ = std::stoi(value["ShowSize"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); } -std::vector ListCertResult::getCertList()const -{ - return certList_; -} - long ListCertResult::getTotalCount()const { return totalCount_; } -long ListCertResult::getCurrentPage()const +int ListCertResult::getPageCount()const +{ + return pageCount_; +} + +std::string ListCertResult::getNextToken()const +{ + return nextToken_; +} + +int ListCertResult::getCurrentPage()const { return currentPage_; } -long ListCertResult::getShowSize()const +int ListCertResult::getMaxResults()const +{ + return maxResults_; +} + +int ListCertResult::getShowSize()const { return showSize_; } +std::vector ListCertResult::getList()const +{ + return list_; +} + diff --git a/cas/src/model/ListCertWarehouseRequest.cc b/cas/src/model/ListCertWarehouseRequest.cc deleted file mode 100644 index 8304faddf..000000000 --- a/cas/src/model/ListCertWarehouseRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::ListCertWarehouseRequest; - -ListCertWarehouseRequest::ListCertWarehouseRequest() - : RpcServiceRequest("cas", "2020-04-07", "ListCertWarehouse") { - setMethod(HttpRequest::Method::Post); -} - -ListCertWarehouseRequest::~ListCertWarehouseRequest() {} - -long ListCertWarehouseRequest::getShowSize() const { - return showSize_; -} - -void ListCertWarehouseRequest::setShowSize(long showSize) { - showSize_ = showSize; - setParameter(std::string("ShowSize"), std::to_string(showSize)); -} - -long ListCertWarehouseRequest::getCurrentPage() const { - return currentPage_; -} - -void ListCertWarehouseRequest::setCurrentPage(long currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - -std::string ListCertWarehouseRequest::getType() const { - return type_; -} - -void ListCertWarehouseRequest::setType(const std::string &type) { - type_ = type; - setParameter(std::string("Type"), type); -} - -std::string ListCertWarehouseRequest::getInstanceId() const { - return instanceId_; -} - -void ListCertWarehouseRequest::setInstanceId(const std::string &instanceId) { - instanceId_ = instanceId; - setParameter(std::string("InstanceId"), instanceId); -} - -std::string ListCertWarehouseRequest::getSourceIp() const { - return sourceIp_; -} - -void ListCertWarehouseRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string ListCertWarehouseRequest::getName() const { - return name_; -} - -void ListCertWarehouseRequest::setName(const std::string &name) { - name_ = name; - setParameter(std::string("Name"), name); -} - diff --git a/cas/src/model/ListCertWarehouseResult.cc b/cas/src/model/ListCertWarehouseResult.cc deleted file mode 100644 index f85248a3b..000000000 --- a/cas/src/model/ListCertWarehouseResult.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -ListCertWarehouseResult::ListCertWarehouseResult() : - ServiceResult() -{} - -ListCertWarehouseResult::ListCertWarehouseResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListCertWarehouseResult::~ListCertWarehouseResult() -{} - -void ListCertWarehouseResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allCertWarehouseListNode = value["CertWarehouseList"]["CertWarehouse"]; - for (auto valueCertWarehouseListCertWarehouse : allCertWarehouseListNode) - { - CertWarehouse certWarehouseListObject; - if(!valueCertWarehouseListCertWarehouse["WhId"].isNull()) - certWarehouseListObject.whId = std::stol(valueCertWarehouseListCertWarehouse["WhId"].asString()); - if(!valueCertWarehouseListCertWarehouse["InstanceId"].isNull()) - certWarehouseListObject.instanceId = valueCertWarehouseListCertWarehouse["InstanceId"].asString(); - if(!valueCertWarehouseListCertWarehouse["Name"].isNull()) - certWarehouseListObject.name = valueCertWarehouseListCertWarehouse["Name"].asString(); - if(!valueCertWarehouseListCertWarehouse["PcaInstanceId"].isNull()) - certWarehouseListObject.pcaInstanceId = valueCertWarehouseListCertWarehouse["PcaInstanceId"].asString(); - if(!valueCertWarehouseListCertWarehouse["Qps"].isNull()) - certWarehouseListObject.qps = std::stol(valueCertWarehouseListCertWarehouse["Qps"].asString()); - if(!valueCertWarehouseListCertWarehouse["Type"].isNull()) - certWarehouseListObject.type = valueCertWarehouseListCertWarehouse["Type"].asString(); - if(!valueCertWarehouseListCertWarehouse["EndTime"].isNull()) - certWarehouseListObject.endTime = std::stol(valueCertWarehouseListCertWarehouse["EndTime"].asString()); - if(!valueCertWarehouseListCertWarehouse["IsExpired"].isNull()) - certWarehouseListObject.isExpired = valueCertWarehouseListCertWarehouse["IsExpired"].asString() == "true"; - certWarehouseList_.push_back(certWarehouseListObject); - } - if(!value["ShowSize"].isNull()) - showSize_ = std::stol(value["ShowSize"].asString()); - if(!value["CurrentPage"].isNull()) - currentPage_ = std::stol(value["CurrentPage"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - -} - -long ListCertWarehouseResult::getTotalCount()const -{ - return totalCount_; -} - -long ListCertWarehouseResult::getCurrentPage()const -{ - return currentPage_; -} - -long ListCertWarehouseResult::getShowSize()const -{ - return showSize_; -} - -std::vector ListCertWarehouseResult::getCertWarehouseList()const -{ - return certWarehouseList_; -} - diff --git a/cas/src/model/ListClientCertificateRequest.cc b/cas/src/model/ListClientCertificateRequest.cc new file mode 100644 index 000000000..721e802e6 --- /dev/null +++ b/cas/src/model/ListClientCertificateRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::ListClientCertificateRequest; + +ListClientCertificateRequest::ListClientCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "ListClientCertificate") { + setMethod(HttpRequest::Method::Post); +} + +ListClientCertificateRequest::~ListClientCertificateRequest() {} + +std::string ListClientCertificateRequest::getIdentifier() const { + return identifier_; +} + +void ListClientCertificateRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + +int ListClientCertificateRequest::getCurrentPage() const { + return currentPage_; +} + +void ListClientCertificateRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +int ListClientCertificateRequest::getShowSize() const { + return showSize_; +} + +void ListClientCertificateRequest::setShowSize(int showSize) { + showSize_ = showSize; + setParameter(std::string("ShowSize"), std::to_string(showSize)); +} + diff --git a/cas/src/model/ListClientCertificateResult.cc b/cas/src/model/ListClientCertificateResult.cc new file mode 100644 index 000000000..f72d9fe1d --- /dev/null +++ b/cas/src/model/ListClientCertificateResult.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +ListClientCertificateResult::ListClientCertificateResult() : + ServiceResult() +{} + +ListClientCertificateResult::ListClientCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClientCertificateResult::~ListClientCertificateResult() +{} + +void ListClientCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCertificateListNode = value["CertificateList"]["Certificate"]; + for (auto valueCertificateListCertificate : allCertificateListNode) + { + Certificate certificateListObject; + if(!valueCertificateListCertificate["X509Certificate"].isNull()) + certificateListObject.x509Certificate = valueCertificateListCertificate["X509Certificate"].asString(); + if(!valueCertificateListCertificate["Identifier"].isNull()) + certificateListObject.identifier = valueCertificateListCertificate["Identifier"].asString(); + if(!valueCertificateListCertificate["SerialNumber"].isNull()) + certificateListObject.serialNumber = valueCertificateListCertificate["SerialNumber"].asString(); + if(!valueCertificateListCertificate["SubjectDN"].isNull()) + certificateListObject.subjectDN = valueCertificateListCertificate["SubjectDN"].asString(); + if(!valueCertificateListCertificate["CommonName"].isNull()) + certificateListObject.commonName = valueCertificateListCertificate["CommonName"].asString(); + if(!valueCertificateListCertificate["OrganizationUnit"].isNull()) + certificateListObject.organizationUnit = valueCertificateListCertificate["OrganizationUnit"].asString(); + if(!valueCertificateListCertificate["Organization"].isNull()) + certificateListObject.organization = valueCertificateListCertificate["Organization"].asString(); + if(!valueCertificateListCertificate["Locality"].isNull()) + certificateListObject.locality = valueCertificateListCertificate["Locality"].asString(); + if(!valueCertificateListCertificate["State"].isNull()) + certificateListObject.state = valueCertificateListCertificate["State"].asString(); + if(!valueCertificateListCertificate["CountryCode"].isNull()) + certificateListObject.countryCode = valueCertificateListCertificate["CountryCode"].asString(); + if(!valueCertificateListCertificate["Sans"].isNull()) + certificateListObject.sans = valueCertificateListCertificate["Sans"].asString(); + if(!valueCertificateListCertificate["Status"].isNull()) + certificateListObject.status = valueCertificateListCertificate["Status"].asString(); + if(!valueCertificateListCertificate["BeforeDate"].isNull()) + certificateListObject.beforeDate = std::stol(valueCertificateListCertificate["BeforeDate"].asString()); + if(!valueCertificateListCertificate["AfterDate"].isNull()) + certificateListObject.afterDate = std::stol(valueCertificateListCertificate["AfterDate"].asString()); + if(!valueCertificateListCertificate["Algorithm"].isNull()) + certificateListObject.algorithm = valueCertificateListCertificate["Algorithm"].asString(); + if(!valueCertificateListCertificate["KeySize"].isNull()) + certificateListObject.keySize = std::stoi(valueCertificateListCertificate["KeySize"].asString()); + if(!valueCertificateListCertificate["SignAlgorithm"].isNull()) + certificateListObject.signAlgorithm = valueCertificateListCertificate["SignAlgorithm"].asString(); + if(!valueCertificateListCertificate["CertificateType"].isNull()) + certificateListObject.certificateType = valueCertificateListCertificate["CertificateType"].asString(); + if(!valueCertificateListCertificate["ParentIdentifier"].isNull()) + certificateListObject.parentIdentifier = valueCertificateListCertificate["ParentIdentifier"].asString(); + if(!valueCertificateListCertificate["Sha2"].isNull()) + certificateListObject.sha2 = valueCertificateListCertificate["Sha2"].asString(); + if(!valueCertificateListCertificate["Md5"].isNull()) + certificateListObject.md5 = valueCertificateListCertificate["Md5"].asString(); + if(!valueCertificateListCertificate["Days"].isNull()) + certificateListObject.days = std::stoi(valueCertificateListCertificate["Days"].asString()); + certificateList_.push_back(certificateListObject); + } + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["ShowSize"].isNull()) + showSize_ = std::stoi(value["ShowSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListClientCertificateResult::getTotalCount()const +{ + return totalCount_; +} + +int ListClientCertificateResult::getPageCount()const +{ + return pageCount_; +} + +int ListClientCertificateResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector ListClientCertificateResult::getCertificateList()const +{ + return certificateList_; +} + +int ListClientCertificateResult::getShowSize()const +{ + return showSize_; +} + diff --git a/cas/src/model/ListPcaCaCertificateRequest.cc b/cas/src/model/ListPcaCaCertificateRequest.cc new file mode 100644 index 000000000..bf3b6aedc --- /dev/null +++ b/cas/src/model/ListPcaCaCertificateRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::ListPcaCaCertificateRequest; + +ListPcaCaCertificateRequest::ListPcaCaCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "ListPcaCaCertificate") { + setMethod(HttpRequest::Method::Post); +} + +ListPcaCaCertificateRequest::~ListPcaCaCertificateRequest() {} + +std::string ListPcaCaCertificateRequest::getInnerAccessToken() const { + return innerAccessToken_; +} + +void ListPcaCaCertificateRequest::setInnerAccessToken(const std::string &innerAccessToken) { + innerAccessToken_ = innerAccessToken; + setParameter(std::string("InnerAccessToken"), innerAccessToken); +} + +std::string ListPcaCaCertificateRequest::getNextToken() const { + return nextToken_; +} + +void ListPcaCaCertificateRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListPcaCaCertificateRequest::getMaxResults() const { + return maxResults_; +} + +void ListPcaCaCertificateRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/cas/src/model/ListPcaCaCertificateResult.cc b/cas/src/model/ListPcaCaCertificateResult.cc new file mode 100644 index 000000000..7281a966a --- /dev/null +++ b/cas/src/model/ListPcaCaCertificateResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +ListPcaCaCertificateResult::ListPcaCaCertificateResult() : + ServiceResult() +{} + +ListPcaCaCertificateResult::ListPcaCaCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPcaCaCertificateResult::~ListPcaCaCertificateResult() +{} + +void ListPcaCaCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListNode = value["List"]["ListItem"]; + for (auto valueListListItem : allListNode) + { + ListItem listObject; + if(!valueListListItem["CertIdentifier"].isNull()) + listObject.certIdentifier = valueListListItem["CertIdentifier"].asString(); + if(!valueListListItem["Status"].isNull()) + listObject.status = valueListListItem["Status"].asString(); + if(!valueListListItem["CommonName"].isNull()) + listObject.commonName = valueListListItem["CommonName"].asString(); + if(!valueListListItem["IssuerIdentifier"].isNull()) + listObject.issuerIdentifier = valueListListItem["IssuerIdentifier"].asString(); + if(!valueListListItem["PrivateCaInstanceId"].isNull()) + listObject.privateCaInstanceId = valueListListItem["PrivateCaInstanceId"].asString(); + if(!valueListListItem["PrivateCaRegionId"].isNull()) + listObject.privateCaRegionId = valueListListItem["PrivateCaRegionId"].asString(); + if(!valueListListItem["UserId"].isNull()) + listObject.userId = valueListListItem["UserId"].asString(); + if(!valueListListItem["InnerResult"].isNull()) + listObject.innerResult = valueListListItem["InnerResult"].asString(); + list_.push_back(listObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +long ListPcaCaCertificateResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListPcaCaCertificateResult::getNextToken()const +{ + return nextToken_; +} + +int ListPcaCaCertificateResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector ListPcaCaCertificateResult::getList()const +{ + return list_; +} + diff --git a/cas/src/model/ListRevokeCertificateRequest.cc b/cas/src/model/ListRevokeCertificateRequest.cc new file mode 100644 index 000000000..f5961ee7d --- /dev/null +++ b/cas/src/model/ListRevokeCertificateRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::ListRevokeCertificateRequest; + +ListRevokeCertificateRequest::ListRevokeCertificateRequest() + : RpcServiceRequest("cas", "2020-06-30", "ListRevokeCertificate") { + setMethod(HttpRequest::Method::Post); +} + +ListRevokeCertificateRequest::~ListRevokeCertificateRequest() {} + +int ListRevokeCertificateRequest::getCurrentPage() const { + return currentPage_; +} + +void ListRevokeCertificateRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +int ListRevokeCertificateRequest::getShowSize() const { + return showSize_; +} + +void ListRevokeCertificateRequest::setShowSize(int showSize) { + showSize_ = showSize; + setParameter(std::string("ShowSize"), std::to_string(showSize)); +} + diff --git a/cas/src/model/ListRevokeCertificateResult.cc b/cas/src/model/ListRevokeCertificateResult.cc new file mode 100644 index 000000000..3f29c6ee2 --- /dev/null +++ b/cas/src/model/ListRevokeCertificateResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cas; +using namespace AlibabaCloud::Cas::Model; + +ListRevokeCertificateResult::ListRevokeCertificateResult() : + ServiceResult() +{} + +ListRevokeCertificateResult::ListRevokeCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListRevokeCertificateResult::~ListRevokeCertificateResult() +{} + +void ListRevokeCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCertificateListNode = value["CertificateList"]["Certificate"]; + for (auto valueCertificateListCertificate : allCertificateListNode) + { + Certificate certificateListObject; + if(!valueCertificateListCertificate["RevokeDate"].isNull()) + certificateListObject.revokeDate = valueCertificateListCertificate["RevokeDate"].asString(); + if(!valueCertificateListCertificate["Identifier"].isNull()) + certificateListObject.identifier = valueCertificateListCertificate["Identifier"].asString(); + if(!valueCertificateListCertificate["SerialNumber"].isNull()) + certificateListObject.serialNumber = valueCertificateListCertificate["SerialNumber"].asString(); + if(!valueCertificateListCertificate["SubjectDN"].isNull()) + certificateListObject.subjectDN = valueCertificateListCertificate["SubjectDN"].asString(); + if(!valueCertificateListCertificate["CommonName"].isNull()) + certificateListObject.commonName = valueCertificateListCertificate["CommonName"].asString(); + if(!valueCertificateListCertificate["OrganizationUnit"].isNull()) + certificateListObject.organizationUnit = valueCertificateListCertificate["OrganizationUnit"].asString(); + if(!valueCertificateListCertificate["Organization"].isNull()) + certificateListObject.organization = valueCertificateListCertificate["Organization"].asString(); + if(!valueCertificateListCertificate["Locality"].isNull()) + certificateListObject.locality = valueCertificateListCertificate["Locality"].asString(); + if(!valueCertificateListCertificate["State"].isNull()) + certificateListObject.state = valueCertificateListCertificate["State"].asString(); + if(!valueCertificateListCertificate["CountryCode"].isNull()) + certificateListObject.countryCode = valueCertificateListCertificate["CountryCode"].asString(); + if(!valueCertificateListCertificate["Sans"].isNull()) + certificateListObject.sans = valueCertificateListCertificate["Sans"].asString(); + if(!valueCertificateListCertificate["Status"].isNull()) + certificateListObject.status = valueCertificateListCertificate["Status"].asString(); + if(!valueCertificateListCertificate["BeforeDate"].isNull()) + certificateListObject.beforeDate = valueCertificateListCertificate["BeforeDate"].asString(); + if(!valueCertificateListCertificate["AfterDate"].isNull()) + certificateListObject.afterDate = valueCertificateListCertificate["AfterDate"].asString(); + if(!valueCertificateListCertificate["Algorithm"].isNull()) + certificateListObject.algorithm = valueCertificateListCertificate["Algorithm"].asString(); + if(!valueCertificateListCertificate["KeySize"].isNull()) + certificateListObject.keySize = std::stoi(valueCertificateListCertificate["KeySize"].asString()); + if(!valueCertificateListCertificate["SignAlgorithm"].isNull()) + certificateListObject.signAlgorithm = valueCertificateListCertificate["SignAlgorithm"].asString(); + if(!valueCertificateListCertificate["CertificateType"].isNull()) + certificateListObject.certificateType = valueCertificateListCertificate["CertificateType"].asString(); + if(!valueCertificateListCertificate["ParentIdentifier"].isNull()) + certificateListObject.parentIdentifier = valueCertificateListCertificate["ParentIdentifier"].asString(); + if(!valueCertificateListCertificate["Sha2"].isNull()) + certificateListObject.sha2 = valueCertificateListCertificate["Sha2"].asString(); + if(!valueCertificateListCertificate["Md5"].isNull()) + certificateListObject.md5 = valueCertificateListCertificate["Md5"].asString(); + certificateList_.push_back(certificateListObject); + } + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["ShowSize"].isNull()) + showSize_ = std::stoi(value["ShowSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListRevokeCertificateResult::getTotalCount()const +{ + return totalCount_; +} + +int ListRevokeCertificateResult::getPageCount()const +{ + return pageCount_; +} + +int ListRevokeCertificateResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector ListRevokeCertificateResult::getCertificateList()const +{ + return certificateList_; +} + +int ListRevokeCertificateResult::getShowSize()const +{ + return showSize_; +} + diff --git a/cas/src/model/ListUserCertificateOrderRequest.cc b/cas/src/model/ListUserCertificateOrderRequest.cc deleted file mode 100644 index 9faf602eb..000000000 --- a/cas/src/model/ListUserCertificateOrderRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::ListUserCertificateOrderRequest; - -ListUserCertificateOrderRequest::ListUserCertificateOrderRequest() - : RpcServiceRequest("cas", "2020-04-07", "ListUserCertificateOrder") { - setMethod(HttpRequest::Method::Post); -} - -ListUserCertificateOrderRequest::~ListUserCertificateOrderRequest() {} - -std::string ListUserCertificateOrderRequest::getResourceGroupId() const { - return resourceGroupId_; -} - -void ListUserCertificateOrderRequest::setResourceGroupId(const std::string &resourceGroupId) { - resourceGroupId_ = resourceGroupId; - setParameter(std::string("ResourceGroupId"), resourceGroupId); -} - -std::string ListUserCertificateOrderRequest::getSourceIp() const { - return sourceIp_; -} - -void ListUserCertificateOrderRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string ListUserCertificateOrderRequest::getKeyword() const { - return keyword_; -} - -void ListUserCertificateOrderRequest::setKeyword(const std::string &keyword) { - keyword_ = keyword; - setParameter(std::string("Keyword"), keyword); -} - -long ListUserCertificateOrderRequest::getShowSize() const { - return showSize_; -} - -void ListUserCertificateOrderRequest::setShowSize(long showSize) { - showSize_ = showSize; - setParameter(std::string("ShowSize"), std::to_string(showSize)); -} - -long ListUserCertificateOrderRequest::getCurrentPage() const { - return currentPage_; -} - -void ListUserCertificateOrderRequest::setCurrentPage(long currentPage) { - currentPage_ = currentPage; - setParameter(std::string("CurrentPage"), std::to_string(currentPage)); -} - -std::string ListUserCertificateOrderRequest::getStatus() const { - return status_; -} - -void ListUserCertificateOrderRequest::setStatus(const std::string &status) { - status_ = status; - setParameter(std::string("Status"), status); -} - -std::string ListUserCertificateOrderRequest::getOrderType() const { - return orderType_; -} - -void ListUserCertificateOrderRequest::setOrderType(const std::string &orderType) { - orderType_ = orderType; - setParameter(std::string("OrderType"), orderType); -} - diff --git a/cas/src/model/ListUserCertificateOrderResult.cc b/cas/src/model/ListUserCertificateOrderResult.cc deleted file mode 100644 index 5af0a2ca6..000000000 --- a/cas/src/model/ListUserCertificateOrderResult.cc +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -ListUserCertificateOrderResult::ListUserCertificateOrderResult() : - ServiceResult() -{} - -ListUserCertificateOrderResult::ListUserCertificateOrderResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListUserCertificateOrderResult::~ListUserCertificateOrderResult() -{} - -void ListUserCertificateOrderResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allCertificateOrderListNode = value["CertificateOrderList"]["CertificateOrderListItem"]; - for (auto valueCertificateOrderListCertificateOrderListItem : allCertificateOrderListNode) - { - CertificateOrderListItem certificateOrderListObject; - if(!valueCertificateOrderListCertificateOrderListItem["Algorithm"].isNull()) - certificateOrderListObject.algorithm = valueCertificateOrderListCertificateOrderListItem["Algorithm"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["AliyunOrderId"].isNull()) - certificateOrderListObject.aliyunOrderId = std::stol(valueCertificateOrderListCertificateOrderListItem["AliyunOrderId"].asString()); - if(!valueCertificateOrderListCertificateOrderListItem["BuyDate"].isNull()) - certificateOrderListObject.buyDate = std::stol(valueCertificateOrderListCertificateOrderListItem["BuyDate"].asString()); - if(!valueCertificateOrderListCertificateOrderListItem["CertEndTime"].isNull()) - certificateOrderListObject.certEndTime = std::stol(valueCertificateOrderListCertificateOrderListItem["CertEndTime"].asString()); - if(!valueCertificateOrderListCertificateOrderListItem["CertStartTime"].isNull()) - certificateOrderListObject.certStartTime = std::stol(valueCertificateOrderListCertificateOrderListItem["CertStartTime"].asString()); - if(!valueCertificateOrderListCertificateOrderListItem["CertType"].isNull()) - certificateOrderListObject.certType = valueCertificateOrderListCertificateOrderListItem["CertType"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Domain"].isNull()) - certificateOrderListObject.domain = valueCertificateOrderListCertificateOrderListItem["Domain"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["DomainCount"].isNull()) - certificateOrderListObject.domainCount = std::stol(valueCertificateOrderListCertificateOrderListItem["DomainCount"].asString()); - if(!valueCertificateOrderListCertificateOrderListItem["DomainType"].isNull()) - certificateOrderListObject.domainType = valueCertificateOrderListCertificateOrderListItem["DomainType"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["InstanceId"].isNull()) - certificateOrderListObject.instanceId = valueCertificateOrderListCertificateOrderListItem["InstanceId"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["OrderId"].isNull()) - certificateOrderListObject.orderId = std::stol(valueCertificateOrderListCertificateOrderListItem["OrderId"].asString()); - if(!valueCertificateOrderListCertificateOrderListItem["PartnerOrderId"].isNull()) - certificateOrderListObject.partnerOrderId = valueCertificateOrderListCertificateOrderListItem["PartnerOrderId"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["ProductCode"].isNull()) - certificateOrderListObject.productCode = valueCertificateOrderListCertificateOrderListItem["ProductCode"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["ProductName"].isNull()) - certificateOrderListObject.productName = valueCertificateOrderListCertificateOrderListItem["ProductName"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["RootBrand"].isNull()) - certificateOrderListObject.rootBrand = valueCertificateOrderListCertificateOrderListItem["RootBrand"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["SourceType"].isNull()) - certificateOrderListObject.sourceType = valueCertificateOrderListCertificateOrderListItem["SourceType"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Status"].isNull()) - certificateOrderListObject.status = valueCertificateOrderListCertificateOrderListItem["Status"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["TrusteeStatus"].isNull()) - certificateOrderListObject.trusteeStatus = valueCertificateOrderListCertificateOrderListItem["TrusteeStatus"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["WildDomainCount"].isNull()) - certificateOrderListObject.wildDomainCount = std::stol(valueCertificateOrderListCertificateOrderListItem["WildDomainCount"].asString()); - if(!valueCertificateOrderListCertificateOrderListItem["CertificateId"].isNull()) - certificateOrderListObject.certificateId = std::stol(valueCertificateOrderListCertificateOrderListItem["CertificateId"].asString()); - if(!valueCertificateOrderListCertificateOrderListItem["Name"].isNull()) - certificateOrderListObject.name = valueCertificateOrderListCertificateOrderListItem["Name"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["CommonName"].isNull()) - certificateOrderListObject.commonName = valueCertificateOrderListCertificateOrderListItem["CommonName"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Fingerprint"].isNull()) - certificateOrderListObject.fingerprint = valueCertificateOrderListCertificateOrderListItem["Fingerprint"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Sha2"].isNull()) - certificateOrderListObject.sha2 = valueCertificateOrderListCertificateOrderListItem["Sha2"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["SerialNo"].isNull()) - certificateOrderListObject.serialNo = valueCertificateOrderListCertificateOrderListItem["SerialNo"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Issuer"].isNull()) - certificateOrderListObject.issuer = valueCertificateOrderListCertificateOrderListItem["Issuer"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["OrgName"].isNull()) - certificateOrderListObject.orgName = valueCertificateOrderListCertificateOrderListItem["OrgName"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Province"].isNull()) - certificateOrderListObject.province = valueCertificateOrderListCertificateOrderListItem["Province"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["City"].isNull()) - certificateOrderListObject.city = valueCertificateOrderListCertificateOrderListItem["City"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Country"].isNull()) - certificateOrderListObject.country = valueCertificateOrderListCertificateOrderListItem["Country"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Sans"].isNull()) - certificateOrderListObject.sans = valueCertificateOrderListCertificateOrderListItem["Sans"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["Expired"].isNull()) - certificateOrderListObject.expired = valueCertificateOrderListCertificateOrderListItem["Expired"].asString() == "true"; - if(!valueCertificateOrderListCertificateOrderListItem["Upload"].isNull()) - certificateOrderListObject.upload = valueCertificateOrderListCertificateOrderListItem["Upload"].asString() == "true"; - if(!valueCertificateOrderListCertificateOrderListItem["StartDate"].isNull()) - certificateOrderListObject.startDate = valueCertificateOrderListCertificateOrderListItem["StartDate"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["EndDate"].isNull()) - certificateOrderListObject.endDate = valueCertificateOrderListCertificateOrderListItem["EndDate"].asString(); - if(!valueCertificateOrderListCertificateOrderListItem["ResourceGroupId"].isNull()) - certificateOrderListObject.resourceGroupId = valueCertificateOrderListCertificateOrderListItem["ResourceGroupId"].asString(); - certificateOrderList_.push_back(certificateOrderListObject); - } - if(!value["ShowSize"].isNull()) - showSize_ = std::stol(value["ShowSize"].asString()); - if(!value["CurrentPage"].isNull()) - currentPage_ = std::stol(value["CurrentPage"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - -} - -long ListUserCertificateOrderResult::getTotalCount()const -{ - return totalCount_; -} - -long ListUserCertificateOrderResult::getCurrentPage()const -{ - return currentPage_; -} - -long ListUserCertificateOrderResult::getShowSize()const -{ - return showSize_; -} - -std::vector ListUserCertificateOrderResult::getCertificateOrderList()const -{ - return certificateOrderList_; -} - diff --git a/cas/src/model/RenewCertificateOrderForPackageRequestRequest.cc b/cas/src/model/RenewCertificateOrderForPackageRequestRequest.cc deleted file mode 100644 index 34c04358b..000000000 --- a/cas/src/model/RenewCertificateOrderForPackageRequestRequest.cc +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::RenewCertificateOrderForPackageRequestRequest; - -RenewCertificateOrderForPackageRequestRequest::RenewCertificateOrderForPackageRequestRequest() - : RpcServiceRequest("cas", "2020-04-07", "RenewCertificateOrderForPackageRequest") { - setMethod(HttpRequest::Method::Post); -} - -RenewCertificateOrderForPackageRequestRequest::~RenewCertificateOrderForPackageRequestRequest() {} - -std::string RenewCertificateOrderForPackageRequestRequest::getCsr() const { - return csr_; -} - -void RenewCertificateOrderForPackageRequestRequest::setCsr(const std::string &csr) { - csr_ = csr; - setParameter(std::string("Csr"), csr); -} - -long RenewCertificateOrderForPackageRequestRequest::getOrderId() const { - return orderId_; -} - -void RenewCertificateOrderForPackageRequestRequest::setOrderId(long orderId) { - orderId_ = orderId; - setParameter(std::string("OrderId"), std::to_string(orderId)); -} - -std::string RenewCertificateOrderForPackageRequestRequest::getSourceIp() const { - return sourceIp_; -} - -void RenewCertificateOrderForPackageRequestRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - diff --git a/cas/src/model/RenewCertificateOrderForPackageRequestResult.cc b/cas/src/model/RenewCertificateOrderForPackageRequestResult.cc deleted file mode 100644 index 6c2f09105..000000000 --- a/cas/src/model/RenewCertificateOrderForPackageRequestResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -RenewCertificateOrderForPackageRequestResult::RenewCertificateOrderForPackageRequestResult() : - ServiceResult() -{} - -RenewCertificateOrderForPackageRequestResult::RenewCertificateOrderForPackageRequestResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -RenewCertificateOrderForPackageRequestResult::~RenewCertificateOrderForPackageRequestResult() -{} - -void RenewCertificateOrderForPackageRequestResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["OrderId"].isNull()) - orderId_ = std::stol(value["OrderId"].asString()); - -} - -long RenewCertificateOrderForPackageRequestResult::getOrderId()const -{ - return orderId_; -} - diff --git a/cas/src/model/SignRequest.cc b/cas/src/model/SignRequest.cc deleted file mode 100644 index b55ade98d..000000000 --- a/cas/src/model/SignRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::SignRequest; - -SignRequest::SignRequest() - : RpcServiceRequest("cas", "2020-04-07", "Sign") { - setMethod(HttpRequest::Method::Post); -} - -SignRequest::~SignRequest() {} - -std::string SignRequest::getMessageType() const { - return messageType_; -} - -void SignRequest::setMessageType(const std::string &messageType) { - messageType_ = messageType; - setParameter(std::string("MessageType"), messageType); -} - -std::string SignRequest::getSigningAlgorithm() const { - return signingAlgorithm_; -} - -void SignRequest::setSigningAlgorithm(const std::string &signingAlgorithm) { - signingAlgorithm_ = signingAlgorithm; - setParameter(std::string("SigningAlgorithm"), signingAlgorithm); -} - -std::string SignRequest::getMessage() const { - return message_; -} - -void SignRequest::setMessage(const std::string &message) { - message_ = message; - setParameter(std::string("Message"), message); -} - -std::string SignRequest::getSourceIp() const { - return sourceIp_; -} - -void SignRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string SignRequest::getCertIdentifier() const { - return certIdentifier_; -} - -void SignRequest::setCertIdentifier(const std::string &certIdentifier) { - certIdentifier_ = certIdentifier; - setParameter(std::string("CertIdentifier"), certIdentifier); -} - diff --git a/cas/src/model/UpdateCACertificateStatusRequest.cc b/cas/src/model/UpdateCACertificateStatusRequest.cc new file mode 100644 index 000000000..874c60639 --- /dev/null +++ b/cas/src/model/UpdateCACertificateStatusRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cas::Model::UpdateCACertificateStatusRequest; + +UpdateCACertificateStatusRequest::UpdateCACertificateStatusRequest() + : RpcServiceRequest("cas", "2020-06-30", "UpdateCACertificateStatus") { + setMethod(HttpRequest::Method::Post); +} + +UpdateCACertificateStatusRequest::~UpdateCACertificateStatusRequest() {} + +std::string UpdateCACertificateStatusRequest::getIdentifier() const { + return identifier_; +} + +void UpdateCACertificateStatusRequest::setIdentifier(const std::string &identifier) { + identifier_ = identifier; + setParameter(std::string("Identifier"), identifier); +} + +std::string UpdateCACertificateStatusRequest::getClientToken() const { + return clientToken_; +} + +void UpdateCACertificateStatusRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string UpdateCACertificateStatusRequest::getStatus() const { + return status_; +} + +void UpdateCACertificateStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); +} + diff --git a/cas/src/model/RevokeWHClientCertificateResult.cc b/cas/src/model/UpdateCACertificateStatusResult.cc similarity index 75% rename from cas/src/model/RevokeWHClientCertificateResult.cc rename to cas/src/model/UpdateCACertificateStatusResult.cc index f3eda056d..3835215a7 100644 --- a/cas/src/model/RevokeWHClientCertificateResult.cc +++ b/cas/src/model/UpdateCACertificateStatusResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -RevokeWHClientCertificateResult::RevokeWHClientCertificateResult() : +UpdateCACertificateStatusResult::UpdateCACertificateStatusResult() : ServiceResult() {} -RevokeWHClientCertificateResult::RevokeWHClientCertificateResult(const std::string &payload) : +UpdateCACertificateStatusResult::UpdateCACertificateStatusResult(const std::string &payload) : ServiceResult() { parse(payload); } -RevokeWHClientCertificateResult::~RevokeWHClientCertificateResult() +UpdateCACertificateStatusResult::~UpdateCACertificateStatusResult() {} -void RevokeWHClientCertificateResult::parse(const std::string &payload) +void UpdateCACertificateStatusResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/cas/src/model/UploadPCACertRequest.cc b/cas/src/model/UploadPCACertRequest.cc deleted file mode 100644 index 59fd99f5f..000000000 --- a/cas/src/model/UploadPCACertRequest.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::UploadPCACertRequest; - -UploadPCACertRequest::UploadPCACertRequest() - : RpcServiceRequest("cas", "2020-04-07", "UploadPCACert") { - setMethod(HttpRequest::Method::Post); -} - -UploadPCACertRequest::~UploadPCACertRequest() {} - -std::string UploadPCACertRequest::getCert() const { - return cert_; -} - -void UploadPCACertRequest::setCert(const std::string &cert) { - cert_ = cert; - setParameter(std::string("Cert"), cert); -} - -std::string UploadPCACertRequest::getPrivateKey() const { - return privateKey_; -} - -void UploadPCACertRequest::setPrivateKey(const std::string &privateKey) { - privateKey_ = privateKey; - setParameter(std::string("PrivateKey"), privateKey); -} - -std::string UploadPCACertRequest::getSourceIp() const { - return sourceIp_; -} - -void UploadPCACertRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -long UploadPCACertRequest::getWarehouseId() const { - return warehouseId_; -} - -void UploadPCACertRequest::setWarehouseId(long warehouseId) { - warehouseId_ = warehouseId; - setParameter(std::string("WarehouseId"), std::to_string(warehouseId)); -} - -std::string UploadPCACertRequest::getName() const { - return name_; -} - -void UploadPCACertRequest::setName(const std::string &name) { - name_ = name; - setParameter(std::string("Name"), name); -} - diff --git a/cas/src/model/GetCertWarehouseQuotaRequest.cc b/cas/src/model/UploadPcaCertToCasRequest.cc similarity index 53% rename from cas/src/model/GetCertWarehouseQuotaRequest.cc rename to cas/src/model/UploadPcaCertToCasRequest.cc index d893bd552..94f875a82 100644 --- a/cas/src/model/GetCertWarehouseQuotaRequest.cc +++ b/cas/src/model/UploadPcaCertToCasRequest.cc @@ -14,23 +14,23 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cas::Model::GetCertWarehouseQuotaRequest; +using AlibabaCloud::Cas::Model::UploadPcaCertToCasRequest; -GetCertWarehouseQuotaRequest::GetCertWarehouseQuotaRequest() - : RpcServiceRequest("cas", "2020-04-07", "GetCertWarehouseQuota") { +UploadPcaCertToCasRequest::UploadPcaCertToCasRequest() + : RpcServiceRequest("cas", "2020-06-30", "UploadPcaCertToCas") { setMethod(HttpRequest::Method::Post); } -GetCertWarehouseQuotaRequest::~GetCertWarehouseQuotaRequest() {} +UploadPcaCertToCasRequest::~UploadPcaCertToCasRequest() {} -std::string GetCertWarehouseQuotaRequest::getSourceIp() const { - return sourceIp_; +std::string UploadPcaCertToCasRequest::getIds() const { + return ids_; } -void GetCertWarehouseQuotaRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); +void UploadPcaCertToCasRequest::setIds(const std::string &ids) { + ids_ = ids; + setParameter(std::string("Ids"), ids); } diff --git a/cas/src/model/CancelOrderRequestResult.cc b/cas/src/model/UploadPcaCertToCasResult.cc similarity index 75% rename from cas/src/model/CancelOrderRequestResult.cc rename to cas/src/model/UploadPcaCertToCasResult.cc index 0fef26075..d5760a99e 100644 --- a/cas/src/model/CancelOrderRequestResult.cc +++ b/cas/src/model/UploadPcaCertToCasResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cas; using namespace AlibabaCloud::Cas::Model; -CancelOrderRequestResult::CancelOrderRequestResult() : +UploadPcaCertToCasResult::UploadPcaCertToCasResult() : ServiceResult() {} -CancelOrderRequestResult::CancelOrderRequestResult(const std::string &payload) : +UploadPcaCertToCasResult::UploadPcaCertToCasResult(const std::string &payload) : ServiceResult() { parse(payload); } -CancelOrderRequestResult::~CancelOrderRequestResult() +UploadPcaCertToCasResult::~UploadPcaCertToCasResult() {} -void CancelOrderRequestResult::parse(const std::string &payload) +void UploadPcaCertToCasResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/cas/src/model/UploadUserCertificateRequest.cc b/cas/src/model/UploadUserCertificateRequest.cc deleted file mode 100644 index 49b038fa8..000000000 --- a/cas/src/model/UploadUserCertificateRequest.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::UploadUserCertificateRequest; - -UploadUserCertificateRequest::UploadUserCertificateRequest() - : RpcServiceRequest("cas", "2020-04-07", "UploadUserCertificate") { - setMethod(HttpRequest::Method::Post); -} - -UploadUserCertificateRequest::~UploadUserCertificateRequest() {} - -std::string UploadUserCertificateRequest::getEncryptCert() const { - return encryptCert_; -} - -void UploadUserCertificateRequest::setEncryptCert(const std::string &encryptCert) { - encryptCert_ = encryptCert; - setParameter(std::string("EncryptCert"), encryptCert); -} - -std::string UploadUserCertificateRequest::getCert() const { - return cert_; -} - -void UploadUserCertificateRequest::setCert(const std::string &cert) { - cert_ = cert; - setParameter(std::string("Cert"), cert); -} - -std::string UploadUserCertificateRequest::getResourceGroupId() const { - return resourceGroupId_; -} - -void UploadUserCertificateRequest::setResourceGroupId(const std::string &resourceGroupId) { - resourceGroupId_ = resourceGroupId; - setParameter(std::string("ResourceGroupId"), resourceGroupId); -} - -std::string UploadUserCertificateRequest::getSourceIp() const { - return sourceIp_; -} - -void UploadUserCertificateRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string UploadUserCertificateRequest::getKey() const { - return key_; -} - -void UploadUserCertificateRequest::setKey(const std::string &key) { - key_ = key; - setParameter(std::string("Key"), key); -} - -std::string UploadUserCertificateRequest::getEncryptPrivateKey() const { - return encryptPrivateKey_; -} - -void UploadUserCertificateRequest::setEncryptPrivateKey(const std::string &encryptPrivateKey) { - encryptPrivateKey_ = encryptPrivateKey; - setParameter(std::string("EncryptPrivateKey"), encryptPrivateKey); -} - -std::string UploadUserCertificateRequest::getSignPrivateKey() const { - return signPrivateKey_; -} - -void UploadUserCertificateRequest::setSignPrivateKey(const std::string &signPrivateKey) { - signPrivateKey_ = signPrivateKey; - setParameter(std::string("SignPrivateKey"), signPrivateKey); -} - -std::string UploadUserCertificateRequest::getSignCert() const { - return signCert_; -} - -void UploadUserCertificateRequest::setSignCert(const std::string &signCert) { - signCert_ = signCert; - setParameter(std::string("SignCert"), signCert); -} - -std::string UploadUserCertificateRequest::getName() const { - return name_; -} - -void UploadUserCertificateRequest::setName(const std::string &name) { - name_ = name; - setParameter(std::string("Name"), name); -} - diff --git a/cas/src/model/UploadUserCertificateResult.cc b/cas/src/model/UploadUserCertificateResult.cc deleted file mode 100644 index e992464ab..000000000 --- a/cas/src/model/UploadUserCertificateResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -UploadUserCertificateResult::UploadUserCertificateResult() : - ServiceResult() -{} - -UploadUserCertificateResult::UploadUserCertificateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UploadUserCertificateResult::~UploadUserCertificateResult() -{} - -void UploadUserCertificateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CertId"].isNull()) - certId_ = std::stol(value["CertId"].asString()); - -} - -long UploadUserCertificateResult::getCertId()const -{ - return certId_; -} - diff --git a/cas/src/model/VerifyRequest.cc b/cas/src/model/VerifyRequest.cc deleted file mode 100644 index 6f82b6b35..000000000 --- a/cas/src/model/VerifyRequest.cc +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Cas::Model::VerifyRequest; - -VerifyRequest::VerifyRequest() - : RpcServiceRequest("cas", "2020-04-07", "Verify") { - setMethod(HttpRequest::Method::Post); -} - -VerifyRequest::~VerifyRequest() {} - -std::string VerifyRequest::getMessageType() const { - return messageType_; -} - -void VerifyRequest::setMessageType(const std::string &messageType) { - messageType_ = messageType; - setParameter(std::string("MessageType"), messageType); -} - -std::string VerifyRequest::getSigningAlgorithm() const { - return signingAlgorithm_; -} - -void VerifyRequest::setSigningAlgorithm(const std::string &signingAlgorithm) { - signingAlgorithm_ = signingAlgorithm; - setParameter(std::string("SigningAlgorithm"), signingAlgorithm); -} - -std::string VerifyRequest::getMessage() const { - return message_; -} - -void VerifyRequest::setMessage(const std::string &message) { - message_ = message; - setParameter(std::string("Message"), message); -} - -std::string VerifyRequest::getSignatureValue() const { - return signatureValue_; -} - -void VerifyRequest::setSignatureValue(const std::string &signatureValue) { - signatureValue_ = signatureValue; - setParameter(std::string("SignatureValue"), signatureValue); -} - -std::string VerifyRequest::getSourceIp() const { - return sourceIp_; -} - -void VerifyRequest::setSourceIp(const std::string &sourceIp) { - sourceIp_ = sourceIp; - setParameter(std::string("SourceIp"), sourceIp); -} - -std::string VerifyRequest::getCertIdentifier() const { - return certIdentifier_; -} - -void VerifyRequest::setCertIdentifier(const std::string &certIdentifier) { - certIdentifier_ = certIdentifier; - setParameter(std::string("CertIdentifier"), certIdentifier); -} - diff --git a/cas/src/model/VerifyResult.cc b/cas/src/model/VerifyResult.cc deleted file mode 100644 index 907242fc2..000000000 --- a/cas/src/model/VerifyResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cas; -using namespace AlibabaCloud::Cas::Model; - -VerifyResult::VerifyResult() : - ServiceResult() -{} - -VerifyResult::VerifyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -VerifyResult::~VerifyResult() -{} - -void VerifyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["SignatureValid"].isNull()) - signatureValid_ = value["SignatureValid"].asString() == "true"; - -} - -bool VerifyResult::getSignatureValid()const -{ - return signatureValid_; -} -