Generated 2016-01-20 for Kms.
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
#include "model/DeleteKeyMaterialResult.h"
|
||||
#include "model/DescribeKeyRequest.h"
|
||||
#include "model/DescribeKeyResult.h"
|
||||
#include "model/DescribeKeyVersionRequest.h"
|
||||
#include "model/DescribeKeyVersionResult.h"
|
||||
#include "model/DescribeRegionsRequest.h"
|
||||
#include "model/DescribeRegionsResult.h"
|
||||
#include "model/DescribeServiceRequest.h"
|
||||
@@ -48,6 +50,8 @@
|
||||
#include "model/EncryptResult.h"
|
||||
#include "model/GenerateDataKeyRequest.h"
|
||||
#include "model/GenerateDataKeyResult.h"
|
||||
#include "model/GenerateDataKeyWithoutPlaintextRequest.h"
|
||||
#include "model/GenerateDataKeyWithoutPlaintextResult.h"
|
||||
#include "model/GetParametersForImportRequest.h"
|
||||
#include "model/GetParametersForImportResult.h"
|
||||
#include "model/ImportKeyMaterialRequest.h"
|
||||
@@ -56,6 +60,8 @@
|
||||
#include "model/ListAliasesResult.h"
|
||||
#include "model/ListAliasesByKeyIdRequest.h"
|
||||
#include "model/ListAliasesByKeyIdResult.h"
|
||||
#include "model/ListKeyVersionsRequest.h"
|
||||
#include "model/ListKeyVersionsResult.h"
|
||||
#include "model/ListKeysRequest.h"
|
||||
#include "model/ListKeysResult.h"
|
||||
#include "model/ListResourceTagsRequest.h"
|
||||
@@ -68,6 +74,10 @@
|
||||
#include "model/UntagResourceResult.h"
|
||||
#include "model/UpdateAliasRequest.h"
|
||||
#include "model/UpdateAliasResult.h"
|
||||
#include "model/UpdateKeyDescriptionRequest.h"
|
||||
#include "model/UpdateKeyDescriptionResult.h"
|
||||
#include "model/UpdateRotationPolicyRequest.h"
|
||||
#include "model/UpdateRotationPolicyResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -98,6 +108,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeKeyResult> DescribeKeyOutcome;
|
||||
typedef std::future<DescribeKeyOutcome> DescribeKeyOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::DescribeKeyRequest&, const DescribeKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeKeyVersionResult> DescribeKeyVersionOutcome;
|
||||
typedef std::future<DescribeKeyVersionOutcome> DescribeKeyVersionOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::DescribeKeyVersionRequest&, const DescribeKeyVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeKeyVersionAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeRegionsResult> DescribeRegionsOutcome;
|
||||
typedef std::future<DescribeRegionsOutcome> DescribeRegionsOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::DescribeRegionsRequest&, const DescribeRegionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRegionsAsyncHandler;
|
||||
@@ -116,6 +129,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GenerateDataKeyResult> GenerateDataKeyOutcome;
|
||||
typedef std::future<GenerateDataKeyOutcome> GenerateDataKeyOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::GenerateDataKeyRequest&, const GenerateDataKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateDataKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateDataKeyWithoutPlaintextResult> GenerateDataKeyWithoutPlaintextOutcome;
|
||||
typedef std::future<GenerateDataKeyWithoutPlaintextOutcome> GenerateDataKeyWithoutPlaintextOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::GenerateDataKeyWithoutPlaintextRequest&, const GenerateDataKeyWithoutPlaintextOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateDataKeyWithoutPlaintextAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetParametersForImportResult> GetParametersForImportOutcome;
|
||||
typedef std::future<GetParametersForImportOutcome> GetParametersForImportOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::GetParametersForImportRequest&, const GetParametersForImportOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetParametersForImportAsyncHandler;
|
||||
@@ -128,6 +144,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ListAliasesByKeyIdResult> ListAliasesByKeyIdOutcome;
|
||||
typedef std::future<ListAliasesByKeyIdOutcome> ListAliasesByKeyIdOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::ListAliasesByKeyIdRequest&, const ListAliasesByKeyIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAliasesByKeyIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListKeyVersionsResult> ListKeyVersionsOutcome;
|
||||
typedef std::future<ListKeyVersionsOutcome> ListKeyVersionsOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::ListKeyVersionsRequest&, const ListKeyVersionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListKeyVersionsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListKeysResult> ListKeysOutcome;
|
||||
typedef std::future<ListKeysOutcome> ListKeysOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::ListKeysRequest&, const ListKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListKeysAsyncHandler;
|
||||
@@ -146,6 +165,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateAliasResult> UpdateAliasOutcome;
|
||||
typedef std::future<UpdateAliasOutcome> UpdateAliasOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::UpdateAliasRequest&, const UpdateAliasOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAliasAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateKeyDescriptionResult> UpdateKeyDescriptionOutcome;
|
||||
typedef std::future<UpdateKeyDescriptionOutcome> UpdateKeyDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::UpdateKeyDescriptionRequest&, const UpdateKeyDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateKeyDescriptionAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateRotationPolicyResult> UpdateRotationPolicyOutcome;
|
||||
typedef std::future<UpdateRotationPolicyOutcome> UpdateRotationPolicyOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::UpdateRotationPolicyRequest&, const UpdateRotationPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateRotationPolicyAsyncHandler;
|
||||
|
||||
KmsClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
KmsClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -172,6 +197,9 @@ namespace AlibabaCloud
|
||||
DescribeKeyOutcome describeKey(const Model::DescribeKeyRequest &request)const;
|
||||
void describeKeyAsync(const Model::DescribeKeyRequest& request, const DescribeKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeKeyOutcomeCallable describeKeyCallable(const Model::DescribeKeyRequest& request) const;
|
||||
DescribeKeyVersionOutcome describeKeyVersion(const Model::DescribeKeyVersionRequest &request)const;
|
||||
void describeKeyVersionAsync(const Model::DescribeKeyVersionRequest& request, const DescribeKeyVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeKeyVersionOutcomeCallable describeKeyVersionCallable(const Model::DescribeKeyVersionRequest& request) const;
|
||||
DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const;
|
||||
void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const;
|
||||
@@ -190,6 +218,9 @@ namespace AlibabaCloud
|
||||
GenerateDataKeyOutcome generateDataKey(const Model::GenerateDataKeyRequest &request)const;
|
||||
void generateDataKeyAsync(const Model::GenerateDataKeyRequest& request, const GenerateDataKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateDataKeyOutcomeCallable generateDataKeyCallable(const Model::GenerateDataKeyRequest& request) const;
|
||||
GenerateDataKeyWithoutPlaintextOutcome generateDataKeyWithoutPlaintext(const Model::GenerateDataKeyWithoutPlaintextRequest &request)const;
|
||||
void generateDataKeyWithoutPlaintextAsync(const Model::GenerateDataKeyWithoutPlaintextRequest& request, const GenerateDataKeyWithoutPlaintextAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateDataKeyWithoutPlaintextOutcomeCallable generateDataKeyWithoutPlaintextCallable(const Model::GenerateDataKeyWithoutPlaintextRequest& request) const;
|
||||
GetParametersForImportOutcome getParametersForImport(const Model::GetParametersForImportRequest &request)const;
|
||||
void getParametersForImportAsync(const Model::GetParametersForImportRequest& request, const GetParametersForImportAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetParametersForImportOutcomeCallable getParametersForImportCallable(const Model::GetParametersForImportRequest& request) const;
|
||||
@@ -202,6 +233,9 @@ namespace AlibabaCloud
|
||||
ListAliasesByKeyIdOutcome listAliasesByKeyId(const Model::ListAliasesByKeyIdRequest &request)const;
|
||||
void listAliasesByKeyIdAsync(const Model::ListAliasesByKeyIdRequest& request, const ListAliasesByKeyIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListAliasesByKeyIdOutcomeCallable listAliasesByKeyIdCallable(const Model::ListAliasesByKeyIdRequest& request) const;
|
||||
ListKeyVersionsOutcome listKeyVersions(const Model::ListKeyVersionsRequest &request)const;
|
||||
void listKeyVersionsAsync(const Model::ListKeyVersionsRequest& request, const ListKeyVersionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListKeyVersionsOutcomeCallable listKeyVersionsCallable(const Model::ListKeyVersionsRequest& request) const;
|
||||
ListKeysOutcome listKeys(const Model::ListKeysRequest &request)const;
|
||||
void listKeysAsync(const Model::ListKeysRequest& request, const ListKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListKeysOutcomeCallable listKeysCallable(const Model::ListKeysRequest& request) const;
|
||||
@@ -220,6 +254,12 @@ namespace AlibabaCloud
|
||||
UpdateAliasOutcome updateAlias(const Model::UpdateAliasRequest &request)const;
|
||||
void updateAliasAsync(const Model::UpdateAliasRequest& request, const UpdateAliasAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAliasOutcomeCallable updateAliasCallable(const Model::UpdateAliasRequest& request) const;
|
||||
UpdateKeyDescriptionOutcome updateKeyDescription(const Model::UpdateKeyDescriptionRequest &request)const;
|
||||
void updateKeyDescriptionAsync(const Model::UpdateKeyDescriptionRequest& request, const UpdateKeyDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateKeyDescriptionOutcomeCallable updateKeyDescriptionCallable(const Model::UpdateKeyDescriptionRequest& request) const;
|
||||
UpdateRotationPolicyOutcome updateRotationPolicy(const Model::UpdateRotationPolicyRequest &request)const;
|
||||
void updateRotationPolicyAsync(const Model::UpdateRotationPolicyRequest& request, const UpdateRotationPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateRotationPolicyOutcomeCallable updateRotationPolicyCallable(const Model::UpdateRotationPolicyRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -43,12 +43,18 @@ namespace AlibabaCloud
|
||||
void setOrigin(const std::string& origin);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getRotationInterval()const;
|
||||
void setRotationInterval(const std::string& rotationInterval);
|
||||
bool getEnableAutomaticRotation()const;
|
||||
void setEnableAutomaticRotation(bool enableAutomaticRotation);
|
||||
|
||||
private:
|
||||
std::string protectionLevel_;
|
||||
std::string keyUsage_;
|
||||
std::string origin_;
|
||||
std::string description_;
|
||||
std::string rotationInterval_;
|
||||
bool enableAutomaticRotation_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,13 +38,18 @@ namespace AlibabaCloud
|
||||
std::string creationDate;
|
||||
std::string protectionLevel;
|
||||
std::string description;
|
||||
std::string materialExpireTime;
|
||||
std::string lastRotationDate;
|
||||
std::string rotationInterval;
|
||||
std::string keyUsage;
|
||||
std::string keyId;
|
||||
std::string primaryKeyVersion;
|
||||
std::string creator;
|
||||
std::string deleteDate;
|
||||
std::string automaticRotation;
|
||||
std::string nextRotationDate;
|
||||
std::string materialExpireTime;
|
||||
std::string arn;
|
||||
std::string keyState;
|
||||
std::string deleteDate;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -39,12 +39,14 @@ namespace AlibabaCloud
|
||||
~DecryptResult();
|
||||
std::string getPlaintext()const;
|
||||
std::string getKeyId()const;
|
||||
std::string getKeyVersionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string plaintext_;
|
||||
std::string keyId_;
|
||||
std::string keyVersionId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -38,13 +38,18 @@ namespace AlibabaCloud
|
||||
std::string creationDate;
|
||||
std::string protectionLevel;
|
||||
std::string description;
|
||||
std::string materialExpireTime;
|
||||
std::string lastRotationDate;
|
||||
std::string rotationInterval;
|
||||
std::string keyUsage;
|
||||
std::string keyId;
|
||||
std::string primaryKeyVersion;
|
||||
std::string creator;
|
||||
std::string deleteDate;
|
||||
std::string automaticRotation;
|
||||
std::string nextRotationDate;
|
||||
std::string materialExpireTime;
|
||||
std::string arn;
|
||||
std::string keyState;
|
||||
std::string deleteDate;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_KMS_MODEL_DESCRIBEKEYVERSIONREQUEST_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYVERSIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT DescribeKeyVersionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeKeyVersionRequest();
|
||||
~DescribeKeyVersionRequest();
|
||||
|
||||
std::string getKeyVersionId()const;
|
||||
void setKeyVersionId(const std::string& keyVersionId);
|
||||
std::string getKeyId()const;
|
||||
void setKeyId(const std::string& keyId);
|
||||
|
||||
private:
|
||||
std::string keyVersionId_;
|
||||
std::string keyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYVERSIONREQUEST_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_KMS_MODEL_DESCRIBEKEYVERSIONRESULT_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYVERSIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT DescribeKeyVersionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct KeyVersion
|
||||
{
|
||||
std::string creationDate;
|
||||
std::string keyId;
|
||||
std::string keyVersionId;
|
||||
};
|
||||
|
||||
|
||||
DescribeKeyVersionResult();
|
||||
explicit DescribeKeyVersionResult(const std::string &payload);
|
||||
~DescribeKeyVersionResult();
|
||||
KeyVersion getKeyVersion()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
KeyVersion keyVersion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYVERSIONRESULT_H_
|
||||
@@ -39,12 +39,14 @@ namespace AlibabaCloud
|
||||
~EncryptResult();
|
||||
std::string getCiphertextBlob()const;
|
||||
std::string getKeyId()const;
|
||||
std::string getKeyVersionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string ciphertextBlob_;
|
||||
std::string keyId_;
|
||||
std::string keyVersionId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string getCiphertextBlob()const;
|
||||
std::string getPlaintext()const;
|
||||
std::string getKeyId()const;
|
||||
std::string getKeyVersionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -47,6 +48,7 @@ namespace AlibabaCloud
|
||||
std::string ciphertextBlob_;
|
||||
std::string plaintext_;
|
||||
std::string keyId_;
|
||||
std::string keyVersionId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTREQUEST_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT GenerateDataKeyWithoutPlaintextRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GenerateDataKeyWithoutPlaintextRequest();
|
||||
~GenerateDataKeyWithoutPlaintextRequest();
|
||||
|
||||
std::string getEncryptionContext()const;
|
||||
void setEncryptionContext(const std::string& encryptionContext);
|
||||
std::string getKeyId()const;
|
||||
void setKeyId(const std::string& keyId);
|
||||
std::string getKeySpec()const;
|
||||
void setKeySpec(const std::string& keySpec);
|
||||
int getNumberOfBytes()const;
|
||||
void setNumberOfBytes(int numberOfBytes);
|
||||
|
||||
private:
|
||||
std::string encryptionContext_;
|
||||
std::string keyId_;
|
||||
std::string keySpec_;
|
||||
int numberOfBytes_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTREQUEST_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_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTRESULT_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT GenerateDataKeyWithoutPlaintextResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GenerateDataKeyWithoutPlaintextResult();
|
||||
explicit GenerateDataKeyWithoutPlaintextResult(const std::string &payload);
|
||||
~GenerateDataKeyWithoutPlaintextResult();
|
||||
std::string getCiphertextBlob()const;
|
||||
std::string getKeyId()const;
|
||||
std::string getKeyVersionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string ciphertextBlob_;
|
||||
std::string keyId_;
|
||||
std::string keyVersionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTRESULT_H_
|
||||
54
kms/include/alibabacloud/kms/model/ListKeyVersionsRequest.h
Normal file
54
kms/include/alibabacloud/kms/model/ListKeyVersionsRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSREQUEST_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT ListKeyVersionsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListKeyVersionsRequest();
|
||||
~ListKeyVersionsRequest();
|
||||
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getKeyId()const;
|
||||
void setKeyId(const std::string& keyId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
|
||||
private:
|
||||
int pageSize_;
|
||||
std::string keyId_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSREQUEST_H_
|
||||
63
kms/include/alibabacloud/kms/model/ListKeyVersionsResult.h
Normal file
63
kms/include/alibabacloud/kms/model/ListKeyVersionsResult.h
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_KMS_MODEL_LISTKEYVERSIONSRESULT_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT ListKeyVersionsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct KeyVersion
|
||||
{
|
||||
std::string creationDate;
|
||||
std::string keyId;
|
||||
std::string keyVersionId;
|
||||
};
|
||||
|
||||
|
||||
ListKeyVersionsResult();
|
||||
explicit ListKeyVersionsResult(const std::string &payload);
|
||||
~ListKeyVersionsResult();
|
||||
std::vector<KeyVersion> getKeyVersions()const;
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<KeyVersion> keyVersions_;
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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_KMS_MODEL_UPDATEKEYDESCRIPTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_UPDATEKEYDESCRIPTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT UpdateKeyDescriptionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateKeyDescriptionRequest();
|
||||
~UpdateKeyDescriptionRequest();
|
||||
|
||||
std::string getKeyId()const;
|
||||
void setKeyId(const std::string& keyId);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
|
||||
private:
|
||||
std::string keyId_;
|
||||
std::string description_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_UPDATEKEYDESCRIPTIONREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_KMS_MODEL_UPDATEKEYDESCRIPTIONRESULT_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_UPDATEKEYDESCRIPTIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT UpdateKeyDescriptionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateKeyDescriptionResult();
|
||||
explicit UpdateKeyDescriptionResult(const std::string &payload);
|
||||
~UpdateKeyDescriptionResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_UPDATEKEYDESCRIPTIONRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT UpdateRotationPolicyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateRotationPolicyRequest();
|
||||
~UpdateRotationPolicyRequest();
|
||||
|
||||
std::string getKeyId()const;
|
||||
void setKeyId(const std::string& keyId);
|
||||
std::string getRotationInterval()const;
|
||||
void setRotationInterval(const std::string& rotationInterval);
|
||||
bool getEnableAutomaticRotation()const;
|
||||
void setEnableAutomaticRotation(bool enableAutomaticRotation);
|
||||
|
||||
private:
|
||||
std::string keyId_;
|
||||
std::string rotationInterval_;
|
||||
bool enableAutomaticRotation_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYREQUEST_H_
|
||||
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* 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_KMS_MODEL_UPDATEROTATIONPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/kms/KmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Kms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_KMS_EXPORT UpdateRotationPolicyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateRotationPolicyResult();
|
||||
explicit UpdateRotationPolicyResult(const std::string &payload);
|
||||
~UpdateRotationPolicyResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYRESULT_H_
|
||||
Reference in New Issue
Block a user