Add CreateExternalCACertificate.
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -22,54 +22,52 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#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<Error, Model::CancelCertificateForPackageRequestResult> CancelCertificateForPackageRequestOutcome;
|
||||
typedef std::future<CancelCertificateForPackageRequestOutcome> CancelCertificateForPackageRequestOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CancelCertificateForPackageRequestRequest&, const CancelCertificateForPackageRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelCertificateForPackageRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelOrderRequestResult> CancelOrderRequestOutcome;
|
||||
typedef std::future<CancelOrderRequestOutcome> CancelOrderRequestOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CancelOrderRequestRequest&, const CancelOrderRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelOrderRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCertificateForPackageRequestResult> CreateCertificateForPackageRequestOutcome;
|
||||
typedef std::future<CreateCertificateForPackageRequestOutcome> CreateCertificateForPackageRequestOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateCertificateForPackageRequestRequest&, const CreateCertificateForPackageRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCertificateForPackageRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCertificateRequestResult> CreateCertificateRequestOutcome;
|
||||
typedef std::future<CreateCertificateRequestOutcome> CreateCertificateRequestOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateCertificateRequestRequest&, const CreateCertificateRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCertificateRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCertificateWithCsrRequestResult> CreateCertificateWithCsrRequestOutcome;
|
||||
typedef std::future<CreateCertificateWithCsrRequestOutcome> CreateCertificateWithCsrRequestOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateCertificateWithCsrRequestRequest&, const CreateCertificateWithCsrRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCertificateWithCsrRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateWHClientCertificateResult> CreateWHClientCertificateOutcome;
|
||||
typedef std::future<CreateWHClientCertificateOutcome> CreateWHClientCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateWHClientCertificateRequest&, const CreateWHClientCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWHClientCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DecryptResult> DecryptOutcome;
|
||||
typedef std::future<DecryptOutcome> DecryptOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DecryptRequest&, const DecryptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DecryptAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteCertificateRequestResult> DeleteCertificateRequestOutcome;
|
||||
typedef std::future<DeleteCertificateRequestOutcome> DeleteCertificateRequestOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DeleteCertificateRequestRequest&, const DeleteCertificateRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCertificateRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeletePCACertResult> DeletePCACertOutcome;
|
||||
typedef std::future<DeletePCACertOutcome> DeletePCACertOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DeletePCACertRequest&, const DeletePCACertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeletePCACertAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteUserCertificateResult> DeleteUserCertificateOutcome;
|
||||
typedef std::future<DeleteUserCertificateOutcome> DeleteUserCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DeleteUserCertificateRequest&, const DeleteUserCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteUserCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCertificateStateResult> DescribeCertificateStateOutcome;
|
||||
typedef std::future<DescribeCertificateStateOutcome> DescribeCertificateStateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DescribeCertificateStateRequest&, const DescribeCertificateStateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCertificateStateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePackageStateResult> DescribePackageStateOutcome;
|
||||
typedef std::future<DescribePackageStateOutcome> DescribePackageStateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DescribePackageStateRequest&, const DescribePackageStateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePackageStateAsyncHandler;
|
||||
typedef Outcome<Error, Model::EncryptResult> EncryptOutcome;
|
||||
typedef std::future<EncryptOutcome> EncryptOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::EncryptRequest&, const EncryptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EncryptAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCertWarehouseQuotaResult> GetCertWarehouseQuotaOutcome;
|
||||
typedef std::future<GetCertWarehouseQuotaOutcome> GetCertWarehouseQuotaOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::GetCertWarehouseQuotaRequest&, const GetCertWarehouseQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCertWarehouseQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetUserCertificateDetailResult> GetUserCertificateDetailOutcome;
|
||||
typedef std::future<GetUserCertificateDetailOutcome> GetUserCertificateDetailOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::GetUserCertificateDetailRequest&, const GetUserCertificateDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetUserCertificateDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateClientCertificateResult> CreateClientCertificateOutcome;
|
||||
typedef std::future<CreateClientCertificateOutcome> CreateClientCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateClientCertificateRequest&, const CreateClientCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClientCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateClientCertificateWithCsrResult> CreateClientCertificateWithCsrOutcome;
|
||||
typedef std::future<CreateClientCertificateWithCsrOutcome> CreateClientCertificateWithCsrOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateClientCertificateWithCsrRequest&, const CreateClientCertificateWithCsrOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateClientCertificateWithCsrAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCustomCertificateResult> CreateCustomCertificateOutcome;
|
||||
typedef std::future<CreateCustomCertificateOutcome> CreateCustomCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateCustomCertificateRequest&, const CreateCustomCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCustomCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateExternalCACertificateResult> CreateExternalCACertificateOutcome;
|
||||
typedef std::future<CreateExternalCACertificateOutcome> CreateExternalCACertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateExternalCACertificateRequest&, const CreateExternalCACertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateExternalCACertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRevokeClientCertificateResult> CreateRevokeClientCertificateOutcome;
|
||||
typedef std::future<CreateRevokeClientCertificateOutcome> CreateRevokeClientCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateRevokeClientCertificateRequest&, const CreateRevokeClientCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRevokeClientCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateRootCACertificateResult> CreateRootCACertificateOutcome;
|
||||
typedef std::future<CreateRootCACertificateOutcome> CreateRootCACertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateRootCACertificateRequest&, const CreateRootCACertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRootCACertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateServerCertificateResult> CreateServerCertificateOutcome;
|
||||
typedef std::future<CreateServerCertificateOutcome> CreateServerCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateServerCertificateRequest&, const CreateServerCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateServerCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateServerCertificateWithCsrResult> CreateServerCertificateWithCsrOutcome;
|
||||
typedef std::future<CreateServerCertificateWithCsrOutcome> CreateServerCertificateWithCsrOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateServerCertificateWithCsrRequest&, const CreateServerCertificateWithCsrOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateServerCertificateWithCsrAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateSubCACertificateResult> CreateSubCACertificateOutcome;
|
||||
typedef std::future<CreateSubCACertificateOutcome> CreateSubCACertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::CreateSubCACertificateRequest&, const CreateSubCACertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSubCACertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteClientCertificateResult> DeleteClientCertificateOutcome;
|
||||
typedef std::future<DeleteClientCertificateOutcome> DeleteClientCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DeleteClientCertificateRequest&, const DeleteClientCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteClientCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCACertificateResult> DescribeCACertificateOutcome;
|
||||
typedef std::future<DescribeCACertificateOutcome> DescribeCACertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DescribeCACertificateRequest&, const DescribeCACertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCACertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCACertificateCountResult> DescribeCACertificateCountOutcome;
|
||||
typedef std::future<DescribeCACertificateCountOutcome> DescribeCACertificateCountOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DescribeCACertificateCountRequest&, const DescribeCACertificateCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCACertificateCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCACertificateListResult> DescribeCACertificateListOutcome;
|
||||
typedef std::future<DescribeCACertificateListOutcome> DescribeCACertificateListOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DescribeCACertificateListRequest&, const DescribeCACertificateListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCACertificateListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeCertificatePrivateKeyResult> DescribeCertificatePrivateKeyOutcome;
|
||||
typedef std::future<DescribeCertificatePrivateKeyOutcome> DescribeCertificatePrivateKeyOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DescribeCertificatePrivateKeyRequest&, const DescribeCertificatePrivateKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeCertificatePrivateKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClientCertificateResult> DescribeClientCertificateOutcome;
|
||||
typedef std::future<DescribeClientCertificateOutcome> DescribeClientCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DescribeClientCertificateRequest&, const DescribeClientCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClientCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeClientCertificateStatusResult> DescribeClientCertificateStatusOutcome;
|
||||
typedef std::future<DescribeClientCertificateStatusOutcome> DescribeClientCertificateStatusOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::DescribeClientCertificateStatusRequest&, const DescribeClientCertificateStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeClientCertificateStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetCAInstanceStatusResult> GetCAInstanceStatusOutcome;
|
||||
typedef std::future<GetCAInstanceStatusOutcome> GetCAInstanceStatusOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::GetCAInstanceStatusRequest&, const GetCAInstanceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetCAInstanceStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCertResult> ListCertOutcome;
|
||||
typedef std::future<ListCertOutcome> ListCertOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::ListCertRequest&, const ListCertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCertAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListCertWarehouseResult> ListCertWarehouseOutcome;
|
||||
typedef std::future<ListCertWarehouseOutcome> ListCertWarehouseOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::ListCertWarehouseRequest&, const ListCertWarehouseOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListCertWarehouseAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListUserCertificateOrderResult> ListUserCertificateOrderOutcome;
|
||||
typedef std::future<ListUserCertificateOrderOutcome> ListUserCertificateOrderOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::ListUserCertificateOrderRequest&, const ListUserCertificateOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListUserCertificateOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewCertificateOrderForPackageRequestResult> RenewCertificateOrderForPackageRequestOutcome;
|
||||
typedef std::future<RenewCertificateOrderForPackageRequestOutcome> RenewCertificateOrderForPackageRequestOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::RenewCertificateOrderForPackageRequestRequest&, const RenewCertificateOrderForPackageRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewCertificateOrderForPackageRequestAsyncHandler;
|
||||
typedef Outcome<Error, Model::RevokeWHClientCertificateResult> RevokeWHClientCertificateOutcome;
|
||||
typedef std::future<RevokeWHClientCertificateOutcome> RevokeWHClientCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::RevokeWHClientCertificateRequest&, const RevokeWHClientCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RevokeWHClientCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::SignResult> SignOutcome;
|
||||
typedef std::future<SignOutcome> SignOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::SignRequest&, const SignOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SignAsyncHandler;
|
||||
typedef Outcome<Error, Model::UploadPCACertResult> UploadPCACertOutcome;
|
||||
typedef std::future<UploadPCACertOutcome> UploadPCACertOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::UploadPCACertRequest&, const UploadPCACertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadPCACertAsyncHandler;
|
||||
typedef Outcome<Error, Model::UploadUserCertificateResult> UploadUserCertificateOutcome;
|
||||
typedef std::future<UploadUserCertificateOutcome> UploadUserCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::UploadUserCertificateRequest&, const UploadUserCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadUserCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyResult> VerifyOutcome;
|
||||
typedef std::future<VerifyOutcome> VerifyOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::VerifyRequest&, const VerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListClientCertificateResult> ListClientCertificateOutcome;
|
||||
typedef std::future<ListClientCertificateOutcome> ListClientCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::ListClientCertificateRequest&, const ListClientCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListClientCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPcaCaCertificateResult> ListPcaCaCertificateOutcome;
|
||||
typedef std::future<ListPcaCaCertificateOutcome> ListPcaCaCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::ListPcaCaCertificateRequest&, const ListPcaCaCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPcaCaCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRevokeCertificateResult> ListRevokeCertificateOutcome;
|
||||
typedef std::future<ListRevokeCertificateOutcome> ListRevokeCertificateOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::ListRevokeCertificateRequest&, const ListRevokeCertificateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRevokeCertificateAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateCACertificateStatusResult> UpdateCACertificateStatusOutcome;
|
||||
typedef std::future<UpdateCACertificateStatusOutcome> UpdateCACertificateStatusOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::UpdateCACertificateStatusRequest&, const UpdateCACertificateStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateCACertificateStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::UploadPcaCertToCasResult> UploadPcaCertToCasOutcome;
|
||||
typedef std::future<UploadPcaCertToCasOutcome> UploadPcaCertToCasOutcomeCallable;
|
||||
typedef std::function<void(const CasClient*, const Model::UploadPcaCertToCasRequest&, const UploadPcaCertToCasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadPcaCertToCasAsyncHandler;
|
||||
|
||||
CasClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CasClient(const std::shared_ptr<CredentialsProvider> &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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& 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<const AsyncCallerContext>& context = nullptr) const;
|
||||
UploadPcaCertToCasOutcomeCallable uploadPcaCertToCasCallable(const Model::UploadPcaCertToCasRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_CREATECLIENTCERTIFICATERESULT_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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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<CustomAttributesItem> 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<std::string> extendedKeyUsages;
|
||||
struct SubjectAlternativeNamesItem {
|
||||
std::string type;
|
||||
std::string value;
|
||||
};
|
||||
SubjectAlternativeNamesItem subjectAlternativeNamesItem;
|
||||
std::vector<SubjectAlternativeNamesItem> subjectAlternativeNames;
|
||||
std::string string;
|
||||
std::vector<std::string> 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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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<std::string> 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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_CREATEREVOKECLIENTCERTIFICATERESULT_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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_CREATEROOTCACERTIFICATERESULT_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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_CREATESERVERCERTIFICATEWITHCSRRESULT_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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Cas {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_CAS_EXPORT CreateSubCACertificateRequest : public RpcServiceRequest {
|
||||
public:
|
||||
CreateSubCACertificateRequest();
|
||||
~CreateSubCACertificateRequest();
|
||||
std::vector<std::string> getExtendedKeyUsages() const;
|
||||
void setExtendedKeyUsages(const std::vector<std::string> &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<std::string> 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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_CREATESUBCACERTIFICATERESULT_H_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_DELETECLIENTCERTIFICATERESULT_H_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATECOUNTRESULT_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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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<Certificate> getCertificateList()const;
|
||||
int getShowSize()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int totalCount_;
|
||||
int pageCount_;
|
||||
int currentPage_;
|
||||
std::vector<Certificate> certificateList_;
|
||||
int showSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECACERTIFICATELISTRESULT_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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECERTIFICATEPRIVATEKEYRESULT_H_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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<CertificateStatusItem> getCertificateStatus()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<CertificateStatusItem> certificateStatus_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_CANCELCERTIFICATEFORPACKAGEREQUESTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBECLIENTCERTIFICATESTATUSRESULT_H_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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<CertWarehouse> getCertWarehouseList()const;
|
||||
GetCAInstanceStatusResult();
|
||||
explicit GetCAInstanceStatusResult(const std::string &payload);
|
||||
~GetCAInstanceStatusResult();
|
||||
std::vector<InstanceStatus> getInstanceStatusList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
long currentPage_;
|
||||
long showSize_;
|
||||
std::vector<CertWarehouse> certWarehouseList_;
|
||||
std::vector<InstanceStatus> instanceStatusList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_LISTCERTWAREHOUSERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_GETCAINSTANCESTATUSRESULT_H_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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
|
||||
|
||||
@@ -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<std::string> tags;
|
||||
std::string commonName;
|
||||
long beforeDate;
|
||||
std::string beforeDate;
|
||||
};
|
||||
|
||||
|
||||
ListCertResult();
|
||||
explicit ListCertResult(const std::string &payload);
|
||||
~ListCertResult();
|
||||
std::vector<Cert> 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<ListItem> getList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Cert> certList_;
|
||||
long totalCount_;
|
||||
long currentPage_;
|
||||
long showSize_;
|
||||
int pageCount_;
|
||||
std::string nextToken_;
|
||||
int currentPage_;
|
||||
int maxResults_;
|
||||
int showSize_;
|
||||
std::vector<ListItem> list_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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<Certificate> getCertificateList()const;
|
||||
int getShowSize()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
int pageCount_;
|
||||
int currentPage_;
|
||||
std::vector<Certificate> certificateList_;
|
||||
int showSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_LISTCLIENTCERTIFICATERESULT_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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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<ListItem> 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<ListItem> list_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_DESCRIBEPACKAGESTATERESULT_H_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_LISTPCACACERTIFICATERESULT_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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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<Certificate> getCertificateList()const;
|
||||
int getShowSize()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
int pageCount_;
|
||||
int currentPage_;
|
||||
std::vector<Certificate> certificateList_;
|
||||
int showSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_LISTREVOKECERTIFICATERESULT_H_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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<CertificateOrderListItem> getCertificateOrderList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long totalCount_;
|
||||
long currentPage_;
|
||||
long showSize_;
|
||||
std::vector<CertificateOrderListItem> certificateOrderList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_LISTUSERCERTIFICATEORDERRESULT_H_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_UPDATECACERTIFICATESTATUSRESULT_H_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
@@ -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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
@@ -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_
|
||||
#endif // !ALIBABACLOUD_CAS_MODEL_UPLOADPCACERTTOCASRESULT_H_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
@@ -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 <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cas/CasExport.h>
|
||||
|
||||
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_
|
||||
@@ -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 <alibabacloud/cas/CasExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
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_
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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 <alibabacloud/cas/model/CancelCertificateForPackageRequestRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/cas/model/CancelCertificateForPackageRequestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/cas/model/CancelOrderRequestRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/cas/model/CreateCertificateForPackageRequestRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/cas/model/CreateCertificateForPackageRequestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/cas/model/CreateCertificateRequestRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/cas/model/CreateCertificateRequestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
@@ -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 <alibabacloud/cas/model/CreateCertificateWithCsrRequestRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
180
cas/src/model/CreateClientCertificateRequest.cc
Normal file
180
cas/src/model/CreateClientCertificateRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateClientCertificateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -14,65 +14,72 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cas/model/CreateWHClientCertificateResult.h>
|
||||
#include <alibabacloud/cas/model/CreateClientCertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
189
cas/src/model/CreateClientCertificateWithCsrRequest.cc
Normal file
189
cas/src/model/CreateClientCertificateWithCsrRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateClientCertificateWithCsrRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
100
cas/src/model/CreateClientCertificateWithCsrResult.cc
Normal file
100
cas/src/model/CreateClientCertificateWithCsrResult.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateClientCertificateWithCsrResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
109
cas/src/model/CreateCustomCertificateRequest.cc
Normal file
109
cas/src/model/CreateCustomCertificateRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateCustomCertificateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
72
cas/src/model/CreateCustomCertificateResult.cc
Normal file
72
cas/src/model/CreateCustomCertificateResult.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateCustomCertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
81
cas/src/model/CreateExternalCACertificateRequest.cc
Normal file
81
cas/src/model/CreateExternalCACertificateRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateExternalCACertificateRequest.h>
|
||||
|
||||
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]);
|
||||
}
|
||||
}
|
||||
|
||||
65
cas/src/model/CreateExternalCACertificateResult.cc
Normal file
65
cas/src/model/CreateExternalCACertificateResult.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateExternalCACertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
36
cas/src/model/CreateRevokeClientCertificateRequest.cc
Normal file
36
cas/src/model/CreateRevokeClientCertificateRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateRevokeClientCertificateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cas/model/DeleteCertificateRequestResult.h>
|
||||
#include <alibabacloud/cas/model/CreateRevokeClientCertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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;
|
||||
117
cas/src/model/CreateRootCACertificateRequest.cc
Normal file
117
cas/src/model/CreateRootCACertificateRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateRootCACertificateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -14,45 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cas/model/EncryptResult.h>
|
||||
#include <alibabacloud/cas/model/CreateRootCACertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
171
cas/src/model/CreateServerCertificateRequest.cc
Normal file
171
cas/src/model/CreateServerCertificateRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateServerCertificateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
86
cas/src/model/CreateServerCertificateResult.cc
Normal file
86
cas/src/model/CreateServerCertificateResult.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateServerCertificateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
180
cas/src/model/CreateServerCertificateWithCsrRequest.cc
Normal file
180
cas/src/model/CreateServerCertificateWithCsrRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateServerCertificateWithCsrRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
86
cas/src/model/CreateServerCertificateWithCsrResult.cc
Normal file
86
cas/src/model/CreateServerCertificateWithCsrResult.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateServerCertificateWithCsrResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
152
cas/src/model/CreateSubCACertificateRequest.cc
Normal file
152
cas/src/model/CreateSubCACertificateRequest.cc
Normal file
@@ -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 <alibabacloud/cas/model/CreateSubCACertificateRequest.h>
|
||||
|
||||
using AlibabaCloud::Cas::Model::CreateSubCACertificateRequest;
|
||||
|
||||
CreateSubCACertificateRequest::CreateSubCACertificateRequest()
|
||||
: RpcServiceRequest("cas", "2020-06-30", "CreateSubCACertificate") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSubCACertificateRequest::~CreateSubCACertificateRequest() {}
|
||||
|
||||
std::vector<std::string> CreateSubCACertificateRequest::getExtendedKeyUsages() const {
|
||||
return extendedKeyUsages_;
|
||||
}
|
||||
|
||||
void CreateSubCACertificateRequest::setExtendedKeyUsages(const std::vector<std::string> &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);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user