Support key deletion protection.
This commit is contained in:
@@ -130,8 +130,12 @@
|
||||
#include "model/ReEncryptResult.h"
|
||||
#include "model/RestoreSecretRequest.h"
|
||||
#include "model/RestoreSecretResult.h"
|
||||
#include "model/RotateSecretRequest.h"
|
||||
#include "model/RotateSecretResult.h"
|
||||
#include "model/ScheduleKeyDeletionRequest.h"
|
||||
#include "model/ScheduleKeyDeletionResult.h"
|
||||
#include "model/SetDeletionProtectionRequest.h"
|
||||
#include "model/SetDeletionProtectionResult.h"
|
||||
#include "model/TagResourceRequest.h"
|
||||
#include "model/TagResourceResult.h"
|
||||
#include "model/UntagResourceRequest.h"
|
||||
@@ -146,6 +150,8 @@
|
||||
#include "model/UpdateRotationPolicyResult.h"
|
||||
#include "model/UpdateSecretRequest.h"
|
||||
#include "model/UpdateSecretResult.h"
|
||||
#include "model/UpdateSecretRotationPolicyRequest.h"
|
||||
#include "model/UpdateSecretRotationPolicyResult.h"
|
||||
#include "model/UpdateSecretVersionStageRequest.h"
|
||||
#include "model/UpdateSecretVersionStageResult.h"
|
||||
#include "model/UploadCertificateRequest.h"
|
||||
@@ -321,9 +327,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RestoreSecretResult> RestoreSecretOutcome;
|
||||
typedef std::future<RestoreSecretOutcome> RestoreSecretOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::RestoreSecretRequest&, const RestoreSecretOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestoreSecretAsyncHandler;
|
||||
typedef Outcome<Error, Model::RotateSecretResult> RotateSecretOutcome;
|
||||
typedef std::future<RotateSecretOutcome> RotateSecretOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::RotateSecretRequest&, const RotateSecretOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RotateSecretAsyncHandler;
|
||||
typedef Outcome<Error, Model::ScheduleKeyDeletionResult> ScheduleKeyDeletionOutcome;
|
||||
typedef std::future<ScheduleKeyDeletionOutcome> ScheduleKeyDeletionOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::ScheduleKeyDeletionRequest&, const ScheduleKeyDeletionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ScheduleKeyDeletionAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetDeletionProtectionResult> SetDeletionProtectionOutcome;
|
||||
typedef std::future<SetDeletionProtectionOutcome> SetDeletionProtectionOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::SetDeletionProtectionRequest&, const SetDeletionProtectionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetDeletionProtectionAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourceResult> TagResourceOutcome;
|
||||
typedef std::future<TagResourceOutcome> TagResourceOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::TagResourceRequest&, const TagResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourceAsyncHandler;
|
||||
@@ -345,6 +357,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateSecretResult> UpdateSecretOutcome;
|
||||
typedef std::future<UpdateSecretOutcome> UpdateSecretOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::UpdateSecretRequest&, const UpdateSecretOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSecretAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateSecretRotationPolicyResult> UpdateSecretRotationPolicyOutcome;
|
||||
typedef std::future<UpdateSecretRotationPolicyOutcome> UpdateSecretRotationPolicyOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::UpdateSecretRotationPolicyRequest&, const UpdateSecretRotationPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSecretRotationPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateSecretVersionStageResult> UpdateSecretVersionStageOutcome;
|
||||
typedef std::future<UpdateSecretVersionStageOutcome> UpdateSecretVersionStageOutcomeCallable;
|
||||
typedef std::function<void(const KmsClient*, const Model::UpdateSecretVersionStageRequest&, const UpdateSecretVersionStageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSecretVersionStageAsyncHandler;
|
||||
@@ -518,9 +533,15 @@ namespace AlibabaCloud
|
||||
RestoreSecretOutcome restoreSecret(const Model::RestoreSecretRequest &request)const;
|
||||
void restoreSecretAsync(const Model::RestoreSecretRequest& request, const RestoreSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RestoreSecretOutcomeCallable restoreSecretCallable(const Model::RestoreSecretRequest& request) const;
|
||||
RotateSecretOutcome rotateSecret(const Model::RotateSecretRequest &request)const;
|
||||
void rotateSecretAsync(const Model::RotateSecretRequest& request, const RotateSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RotateSecretOutcomeCallable rotateSecretCallable(const Model::RotateSecretRequest& request) const;
|
||||
ScheduleKeyDeletionOutcome scheduleKeyDeletion(const Model::ScheduleKeyDeletionRequest &request)const;
|
||||
void scheduleKeyDeletionAsync(const Model::ScheduleKeyDeletionRequest& request, const ScheduleKeyDeletionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ScheduleKeyDeletionOutcomeCallable scheduleKeyDeletionCallable(const Model::ScheduleKeyDeletionRequest& request) const;
|
||||
SetDeletionProtectionOutcome setDeletionProtection(const Model::SetDeletionProtectionRequest &request)const;
|
||||
void setDeletionProtectionAsync(const Model::SetDeletionProtectionRequest& request, const SetDeletionProtectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetDeletionProtectionOutcomeCallable setDeletionProtectionCallable(const Model::SetDeletionProtectionRequest& request) const;
|
||||
TagResourceOutcome tagResource(const Model::TagResourceRequest &request)const;
|
||||
void tagResourceAsync(const Model::TagResourceRequest& request, const TagResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourceOutcomeCallable tagResourceCallable(const Model::TagResourceRequest& request) const;
|
||||
@@ -542,6 +563,9 @@ namespace AlibabaCloud
|
||||
UpdateSecretOutcome updateSecret(const Model::UpdateSecretRequest &request)const;
|
||||
void updateSecretAsync(const Model::UpdateSecretRequest& request, const UpdateSecretAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSecretOutcomeCallable updateSecretCallable(const Model::UpdateSecretRequest& request) const;
|
||||
UpdateSecretRotationPolicyOutcome updateSecretRotationPolicy(const Model::UpdateSecretRotationPolicyRequest &request)const;
|
||||
void updateSecretRotationPolicyAsync(const Model::UpdateSecretRotationPolicyRequest& request, const UpdateSecretRotationPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSecretRotationPolicyOutcomeCallable updateSecretRotationPolicyCallable(const Model::UpdateSecretRotationPolicyRequest& request) const;
|
||||
UpdateSecretVersionStageOutcome updateSecretVersionStage(const Model::UpdateSecretVersionStageRequest &request)const;
|
||||
void updateSecretVersionStageAsync(const Model::UpdateSecretVersionStageRequest& request, const UpdateSecretVersionStageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateSecretVersionStageOutcomeCallable updateSecretVersionStageCallable(const Model::UpdateSecretVersionStageRequest& request) const;
|
||||
|
||||
@@ -37,6 +37,10 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getProtectionLevel()const;
|
||||
void setProtectionLevel(const std::string& protectionLevel);
|
||||
bool getExportablePrivateKey()const;
|
||||
void setExportablePrivateKey(bool exportablePrivateKey);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getSubject()const;
|
||||
void setSubject(const std::string& subject);
|
||||
std::map<std::string, std::string> getSubjectAlternativeNames()const;
|
||||
@@ -46,6 +50,8 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string protectionLevel_;
|
||||
bool exportablePrivateKey_;
|
||||
std::string clientToken_;
|
||||
std::string subject_;
|
||||
std::map<std::string, std::string> subjectAlternativeNames_;
|
||||
std::string keySpec_;
|
||||
|
||||
@@ -35,29 +35,41 @@ namespace AlibabaCloud
|
||||
CreateSecretRequest();
|
||||
~CreateSecretRequest();
|
||||
|
||||
std::string getSecretType()const;
|
||||
void setSecretType(const std::string& secretType);
|
||||
std::string getVersionId()const;
|
||||
void setVersionId(const std::string& versionId);
|
||||
std::string getSecretData()const;
|
||||
void setSecretData(const std::string& secretData);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getRotationInterval()const;
|
||||
void setRotationInterval(const std::string& rotationInterval);
|
||||
std::string getSecretName()const;
|
||||
void setSecretName(const std::string& secretName);
|
||||
bool getEnableAutomaticRotation()const;
|
||||
void setEnableAutomaticRotation(bool enableAutomaticRotation);
|
||||
std::string getEncryptionKeyId()const;
|
||||
void setEncryptionKeyId(const std::string& encryptionKeyId);
|
||||
std::string getSecretDataType()const;
|
||||
void setSecretDataType(const std::string& secretDataType);
|
||||
std::string getTags()const;
|
||||
void setTags(const std::string& tags);
|
||||
std::string getExtendedConfig()const;
|
||||
void setExtendedConfig(const std::string& extendedConfig);
|
||||
|
||||
private:
|
||||
std::string secretType_;
|
||||
std::string versionId_;
|
||||
std::string secretData_;
|
||||
std::string description_;
|
||||
std::string rotationInterval_;
|
||||
std::string secretName_;
|
||||
bool enableAutomaticRotation_;
|
||||
std::string encryptionKeyId_;
|
||||
std::string secretDataType_;
|
||||
std::string tags_;
|
||||
std::string extendedConfig_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,14 +39,24 @@ namespace AlibabaCloud
|
||||
~CreateSecretResult();
|
||||
std::string getVersionId()const;
|
||||
std::string getSecretName()const;
|
||||
std::string getNextRotationDate()const;
|
||||
std::string getSecretType()const;
|
||||
std::string getRotationInterval()const;
|
||||
std::string getExtendedConfig()const;
|
||||
std::string getArn()const;
|
||||
std::string getAutomaticRotation()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string versionId_;
|
||||
std::string secretName_;
|
||||
std::string nextRotationDate_;
|
||||
std::string secretType_;
|
||||
std::string rotationInterval_;
|
||||
std::string extendedConfig_;
|
||||
std::string arn_;
|
||||
std::string automaticRotation_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -54,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string getArn()const;
|
||||
std::string getNotBefore()const;
|
||||
std::string getTags()const;
|
||||
bool getExportablePrivateKey()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -75,6 +76,7 @@ namespace AlibabaCloud
|
||||
std::string arn_;
|
||||
std::string notBefore_;
|
||||
std::string tags_;
|
||||
bool exportablePrivateKey_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -45,10 +45,12 @@ namespace AlibabaCloud
|
||||
std::string keyId;
|
||||
std::string primaryKeyVersion;
|
||||
std::string creator;
|
||||
std::string deletionProtection;
|
||||
std::string deleteDate;
|
||||
std::string automaticRotation;
|
||||
std::string nextRotationDate;
|
||||
std::string materialExpireTime;
|
||||
std::string deletionProtectionDescription;
|
||||
std::string arn;
|
||||
std::string keyState;
|
||||
};
|
||||
|
||||
@@ -42,11 +42,17 @@ namespace AlibabaCloud
|
||||
DescribeSecretResult();
|
||||
explicit DescribeSecretResult(const std::string &payload);
|
||||
~DescribeSecretResult();
|
||||
std::string getSecretName()const;
|
||||
std::string getDescription()const;
|
||||
std::string getLastRotationDate()const;
|
||||
std::string getRotationInterval()const;
|
||||
std::string getSecretType()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getAutomaticRotation()const;
|
||||
std::string getSecretName()const;
|
||||
std::string getNextRotationDate()const;
|
||||
std::string getUpdateTime()const;
|
||||
std::string getPlannedDeleteTime()const;
|
||||
std::string getExtendedConfig()const;
|
||||
std::string getArn()const;
|
||||
std::vector<Tag> getTags()const;
|
||||
std::string getEncryptionKeyId()const;
|
||||
@@ -54,11 +60,17 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string secretName_;
|
||||
std::string description_;
|
||||
std::string lastRotationDate_;
|
||||
std::string rotationInterval_;
|
||||
std::string secretType_;
|
||||
std::string createTime_;
|
||||
std::string automaticRotation_;
|
||||
std::string secretName_;
|
||||
std::string nextRotationDate_;
|
||||
std::string updateTime_;
|
||||
std::string plannedDeleteTime_;
|
||||
std::string extendedConfig_;
|
||||
std::string arn_;
|
||||
std::vector<Tag> tags_;
|
||||
std::string encryptionKeyId_;
|
||||
|
||||
@@ -41,11 +41,14 @@ namespace AlibabaCloud
|
||||
void setVersionStage(const std::string& versionStage);
|
||||
std::string getSecretName()const;
|
||||
void setSecretName(const std::string& secretName);
|
||||
bool getFetchExtendedConfig()const;
|
||||
void setFetchExtendedConfig(bool fetchExtendedConfig);
|
||||
|
||||
private:
|
||||
std::string versionId_;
|
||||
std::string versionStage_;
|
||||
std::string secretName_;
|
||||
bool fetchExtendedConfig_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,20 +39,32 @@ namespace AlibabaCloud
|
||||
~GetSecretValueResult();
|
||||
std::string getSecretName()const;
|
||||
std::string getVersionId()const;
|
||||
std::string getNextRotationDate()const;
|
||||
std::string getRotationInterval()const;
|
||||
std::string getLastRotationDate()const;
|
||||
std::string getSecretType()const;
|
||||
std::string getCreateTime()const;
|
||||
std::string getSecretDataType()const;
|
||||
std::string getExtendedConfig()const;
|
||||
std::string getSecretData()const;
|
||||
std::vector<std::string> getVersionStages()const;
|
||||
std::string getAutomaticRotation()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string secretName_;
|
||||
std::string versionId_;
|
||||
std::string nextRotationDate_;
|
||||
std::string rotationInterval_;
|
||||
std::string lastRotationDate_;
|
||||
std::string secretType_;
|
||||
std::string createTime_;
|
||||
std::string secretDataType_;
|
||||
std::string extendedConfig_;
|
||||
std::string secretData_;
|
||||
std::vector<std::string> versionStages_;
|
||||
std::string automaticRotation_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,14 +34,11 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct CertificateSummary
|
||||
{
|
||||
std::string status;
|
||||
std::string protectionLevel;
|
||||
std::string issuer;
|
||||
std::string certificateId;
|
||||
std::string keySpec;
|
||||
std::string notBefore;
|
||||
std::string notAfter;
|
||||
std::string subject;
|
||||
};
|
||||
struct Certificate
|
||||
{
|
||||
std::string certificateId;
|
||||
};
|
||||
|
||||
|
||||
@@ -51,6 +48,7 @@ namespace AlibabaCloud
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
std::vector<CertificateSummary> getCertificateSummaryList()const;
|
||||
std::vector<Certificate> getCertificates()const;
|
||||
int getTotalSize()const;
|
||||
|
||||
protected:
|
||||
@@ -59,6 +57,7 @@ namespace AlibabaCloud
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
std::vector<CertificateSummary> certificateSummaryList_;
|
||||
std::vector<Certificate> certificates_;
|
||||
int totalSize_;
|
||||
|
||||
};
|
||||
|
||||
@@ -40,6 +40,7 @@ namespace AlibabaCloud
|
||||
std::string tagValue;
|
||||
};
|
||||
std::string secretName;
|
||||
std::string secretType;
|
||||
std::string createTime;
|
||||
std::string updateTime;
|
||||
std::string plannedDeleteTime;
|
||||
|
||||
51
kms/include/alibabacloud/kms/model/RotateSecretRequest.h
Normal file
51
kms/include/alibabacloud/kms/model/RotateSecretRequest.h
Normal file
@@ -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_ROTATESECRETREQUEST_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_ROTATESECRETREQUEST_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 RotateSecretRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
RotateSecretRequest();
|
||||
~RotateSecretRequest();
|
||||
|
||||
std::string getVersionId()const;
|
||||
void setVersionId(const std::string& versionId);
|
||||
std::string getSecretName()const;
|
||||
void setSecretName(const std::string& secretName);
|
||||
|
||||
private:
|
||||
std::string versionId_;
|
||||
std::string secretName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_ROTATESECRETREQUEST_H_
|
||||
55
kms/include/alibabacloud/kms/model/RotateSecretResult.h
Normal file
55
kms/include/alibabacloud/kms/model/RotateSecretResult.h
Normal file
@@ -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_ROTATESECRETRESULT_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_ROTATESECRETRESULT_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 RotateSecretResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
RotateSecretResult();
|
||||
explicit RotateSecretResult(const std::string &payload);
|
||||
~RotateSecretResult();
|
||||
std::string getVersionId()const;
|
||||
std::string getSecretName()const;
|
||||
std::string getArn()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string versionId_;
|
||||
std::string secretName_;
|
||||
std::string arn_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_ROTATESECRETRESULT_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_SETDELETIONPROTECTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_SETDELETIONPROTECTIONREQUEST_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 SetDeletionProtectionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetDeletionProtectionRequest();
|
||||
~SetDeletionProtectionRequest();
|
||||
|
||||
bool getEnableDeletionProtection()const;
|
||||
void setEnableDeletionProtection(bool enableDeletionProtection);
|
||||
std::string getProtectedResourceArn()const;
|
||||
void setProtectedResourceArn(const std::string& protectedResourceArn);
|
||||
std::string getDeletionProtectionDescription()const;
|
||||
void setDeletionProtectionDescription(const std::string& deletionProtectionDescription);
|
||||
|
||||
private:
|
||||
bool enableDeletionProtection_;
|
||||
std::string protectedResourceArn_;
|
||||
std::string deletionProtectionDescription_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_SETDELETIONPROTECTIONREQUEST_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_SETDELETIONPROTECTIONRESULT_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_SETDELETIONPROTECTIONRESULT_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 SetDeletionProtectionResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetDeletionProtectionResult();
|
||||
explicit SetDeletionProtectionResult(const std::string &payload);
|
||||
~SetDeletionProtectionResult();
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_SETDELETIONPROTECTIONRESULT_H_
|
||||
@@ -39,10 +39,13 @@ namespace AlibabaCloud
|
||||
void setDescription(const std::string& description);
|
||||
std::string getSecretName()const;
|
||||
void setSecretName(const std::string& secretName);
|
||||
std::string getExtendedConfigCustomData()const;
|
||||
void setExtendedConfigCustomData(const std::string& extendedConfigCustomData);
|
||||
|
||||
private:
|
||||
std::string description_;
|
||||
std::string secretName_;
|
||||
std::string extendedConfigCustomData_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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_UPDATESECRETROTATIONPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_UPDATESECRETROTATIONPOLICYREQUEST_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 UpdateSecretRotationPolicyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateSecretRotationPolicyRequest();
|
||||
~UpdateSecretRotationPolicyRequest();
|
||||
|
||||
std::string getRotationInterval()const;
|
||||
void setRotationInterval(const std::string& rotationInterval);
|
||||
std::string getSecretName()const;
|
||||
void setSecretName(const std::string& secretName);
|
||||
bool getEnableAutomaticRotation()const;
|
||||
void setEnableAutomaticRotation(bool enableAutomaticRotation);
|
||||
|
||||
private:
|
||||
std::string rotationInterval_;
|
||||
std::string secretName_;
|
||||
bool enableAutomaticRotation_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_UPDATESECRETROTATIONPOLICYREQUEST_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_UPDATESECRETROTATIONPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_KMS_MODEL_UPDATESECRETROTATIONPOLICYRESULT_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 UpdateSecretRotationPolicyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateSecretRotationPolicyResult();
|
||||
explicit UpdateSecretRotationPolicyResult(const std::string &payload);
|
||||
~UpdateSecretRotationPolicyResult();
|
||||
std::string getSecretName()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string secretName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_KMS_MODEL_UPDATESECRETROTATIONPOLICYRESULT_H_
|
||||
Reference in New Issue
Block a user