diff --git a/CHANGELOG b/CHANGELOG index 8ec097203..c6a8be4f1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-08-01 Version: 1.36.1215 +- Update CreateKey and CreateSecret. + 2022-07-29 Version: 1.36.1213 - Change ListCheckInstanceResult Public. diff --git a/VERSION b/VERSION index ff68a78bd..81c724b46 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1214 \ No newline at end of file +1.36.1215 \ No newline at end of file diff --git a/kms/CMakeLists.txt b/kms/CMakeLists.txt index 037d96eb9..2929716a3 100644 --- a/kms/CMakeLists.txt +++ b/kms/CMakeLists.txt @@ -71,16 +71,12 @@ set(kms_public_header_model include/alibabacloud/kms/model/DescribeRegionsResult.h include/alibabacloud/kms/model/DescribeSecretRequest.h include/alibabacloud/kms/model/DescribeSecretResult.h - include/alibabacloud/kms/model/DescribeServiceRequest.h - include/alibabacloud/kms/model/DescribeServiceResult.h include/alibabacloud/kms/model/DisableKeyRequest.h include/alibabacloud/kms/model/DisableKeyResult.h include/alibabacloud/kms/model/EnableKeyRequest.h include/alibabacloud/kms/model/EnableKeyResult.h include/alibabacloud/kms/model/EncryptRequest.h include/alibabacloud/kms/model/EncryptResult.h - include/alibabacloud/kms/model/ExportCertificateRequest.h - include/alibabacloud/kms/model/ExportCertificateResult.h include/alibabacloud/kms/model/ExportDataKeyRequest.h include/alibabacloud/kms/model/ExportDataKeyResult.h include/alibabacloud/kms/model/GenerateAndExportDataKeyRequest.h @@ -99,18 +95,12 @@ set(kms_public_header_model include/alibabacloud/kms/model/GetRandomPasswordResult.h include/alibabacloud/kms/model/GetSecretValueRequest.h include/alibabacloud/kms/model/GetSecretValueResult.h - include/alibabacloud/kms/model/ImportCertificateRequest.h - include/alibabacloud/kms/model/ImportCertificateResult.h - include/alibabacloud/kms/model/ImportEncryptionCertificateRequest.h - include/alibabacloud/kms/model/ImportEncryptionCertificateResult.h include/alibabacloud/kms/model/ImportKeyMaterialRequest.h include/alibabacloud/kms/model/ImportKeyMaterialResult.h include/alibabacloud/kms/model/ListAliasesRequest.h include/alibabacloud/kms/model/ListAliasesResult.h include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h include/alibabacloud/kms/model/ListAliasesByKeyIdResult.h - include/alibabacloud/kms/model/ListCertificatesRequest.h - include/alibabacloud/kms/model/ListCertificatesResult.h include/alibabacloud/kms/model/ListKeyVersionsRequest.h include/alibabacloud/kms/model/ListKeyVersionsResult.h include/alibabacloud/kms/model/ListKeysRequest.h @@ -208,16 +198,12 @@ set(kms_src src/model/DescribeRegionsResult.cc src/model/DescribeSecretRequest.cc src/model/DescribeSecretResult.cc - src/model/DescribeServiceRequest.cc - src/model/DescribeServiceResult.cc src/model/DisableKeyRequest.cc src/model/DisableKeyResult.cc src/model/EnableKeyRequest.cc src/model/EnableKeyResult.cc src/model/EncryptRequest.cc src/model/EncryptResult.cc - src/model/ExportCertificateRequest.cc - src/model/ExportCertificateResult.cc src/model/ExportDataKeyRequest.cc src/model/ExportDataKeyResult.cc src/model/GenerateAndExportDataKeyRequest.cc @@ -236,18 +222,12 @@ set(kms_src src/model/GetRandomPasswordResult.cc src/model/GetSecretValueRequest.cc src/model/GetSecretValueResult.cc - src/model/ImportCertificateRequest.cc - src/model/ImportCertificateResult.cc - src/model/ImportEncryptionCertificateRequest.cc - src/model/ImportEncryptionCertificateResult.cc src/model/ImportKeyMaterialRequest.cc src/model/ImportKeyMaterialResult.cc src/model/ListAliasesRequest.cc src/model/ListAliasesResult.cc src/model/ListAliasesByKeyIdRequest.cc src/model/ListAliasesByKeyIdResult.cc - src/model/ListCertificatesRequest.cc - src/model/ListCertificatesResult.cc src/model/ListKeyVersionsRequest.cc src/model/ListKeyVersionsResult.cc src/model/ListKeysRequest.cc diff --git a/kms/include/alibabacloud/kms/KmsClient.h b/kms/include/alibabacloud/kms/KmsClient.h index 6285a6701..52dc52a85 100644 --- a/kms/include/alibabacloud/kms/KmsClient.h +++ b/kms/include/alibabacloud/kms/KmsClient.h @@ -72,16 +72,12 @@ #include "model/DescribeRegionsResult.h" #include "model/DescribeSecretRequest.h" #include "model/DescribeSecretResult.h" -#include "model/DescribeServiceRequest.h" -#include "model/DescribeServiceResult.h" #include "model/DisableKeyRequest.h" #include "model/DisableKeyResult.h" #include "model/EnableKeyRequest.h" #include "model/EnableKeyResult.h" #include "model/EncryptRequest.h" #include "model/EncryptResult.h" -#include "model/ExportCertificateRequest.h" -#include "model/ExportCertificateResult.h" #include "model/ExportDataKeyRequest.h" #include "model/ExportDataKeyResult.h" #include "model/GenerateAndExportDataKeyRequest.h" @@ -100,18 +96,12 @@ #include "model/GetRandomPasswordResult.h" #include "model/GetSecretValueRequest.h" #include "model/GetSecretValueResult.h" -#include "model/ImportCertificateRequest.h" -#include "model/ImportCertificateResult.h" -#include "model/ImportEncryptionCertificateRequest.h" -#include "model/ImportEncryptionCertificateResult.h" #include "model/ImportKeyMaterialRequest.h" #include "model/ImportKeyMaterialResult.h" #include "model/ListAliasesRequest.h" #include "model/ListAliasesResult.h" #include "model/ListAliasesByKeyIdRequest.h" #include "model/ListAliasesByKeyIdResult.h" -#include "model/ListCertificatesRequest.h" -#include "model/ListCertificatesResult.h" #include "model/ListKeyVersionsRequest.h" #include "model/ListKeyVersionsResult.h" #include "model/ListKeysRequest.h" @@ -240,9 +230,6 @@ namespace AlibabaCloud typedef Outcome DescribeSecretOutcome; typedef std::future DescribeSecretOutcomeCallable; typedef std::function&)> DescribeSecretAsyncHandler; - typedef Outcome DescribeServiceOutcome; - typedef std::future DescribeServiceOutcomeCallable; - typedef std::function&)> DescribeServiceAsyncHandler; typedef Outcome DisableKeyOutcome; typedef std::future DisableKeyOutcomeCallable; typedef std::function&)> DisableKeyAsyncHandler; @@ -252,9 +239,6 @@ namespace AlibabaCloud typedef Outcome EncryptOutcome; typedef std::future EncryptOutcomeCallable; typedef std::function&)> EncryptAsyncHandler; - typedef Outcome ExportCertificateOutcome; - typedef std::future ExportCertificateOutcomeCallable; - typedef std::function&)> ExportCertificateAsyncHandler; typedef Outcome ExportDataKeyOutcome; typedef std::future ExportDataKeyOutcomeCallable; typedef std::function&)> ExportDataKeyAsyncHandler; @@ -282,12 +266,6 @@ namespace AlibabaCloud typedef Outcome GetSecretValueOutcome; typedef std::future GetSecretValueOutcomeCallable; typedef std::function&)> GetSecretValueAsyncHandler; - typedef Outcome ImportCertificateOutcome; - typedef std::future ImportCertificateOutcomeCallable; - typedef std::function&)> ImportCertificateAsyncHandler; - typedef Outcome ImportEncryptionCertificateOutcome; - typedef std::future ImportEncryptionCertificateOutcomeCallable; - typedef std::function&)> ImportEncryptionCertificateAsyncHandler; typedef Outcome ImportKeyMaterialOutcome; typedef std::future ImportKeyMaterialOutcomeCallable; typedef std::function&)> ImportKeyMaterialAsyncHandler; @@ -297,9 +275,6 @@ namespace AlibabaCloud typedef Outcome ListAliasesByKeyIdOutcome; typedef std::future ListAliasesByKeyIdOutcomeCallable; typedef std::function&)> ListAliasesByKeyIdAsyncHandler; - typedef Outcome ListCertificatesOutcome; - typedef std::future ListCertificatesOutcomeCallable; - typedef std::function&)> ListCertificatesAsyncHandler; typedef Outcome ListKeyVersionsOutcome; typedef std::future ListKeyVersionsOutcomeCallable; typedef std::function&)> ListKeyVersionsAsyncHandler; @@ -446,9 +421,6 @@ namespace AlibabaCloud DescribeSecretOutcome describeSecret(const Model::DescribeSecretRequest &request)const; void describeSecretAsync(const Model::DescribeSecretRequest& request, const DescribeSecretAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSecretOutcomeCallable describeSecretCallable(const Model::DescribeSecretRequest& request) const; - DescribeServiceOutcome describeService(const Model::DescribeServiceRequest &request)const; - void describeServiceAsync(const Model::DescribeServiceRequest& request, const DescribeServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeServiceOutcomeCallable describeServiceCallable(const Model::DescribeServiceRequest& request) const; DisableKeyOutcome disableKey(const Model::DisableKeyRequest &request)const; void disableKeyAsync(const Model::DisableKeyRequest& request, const DisableKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableKeyOutcomeCallable disableKeyCallable(const Model::DisableKeyRequest& request) const; @@ -458,9 +430,6 @@ namespace AlibabaCloud EncryptOutcome encrypt(const Model::EncryptRequest &request)const; void encryptAsync(const Model::EncryptRequest& request, const EncryptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EncryptOutcomeCallable encryptCallable(const Model::EncryptRequest& request) const; - ExportCertificateOutcome exportCertificate(const Model::ExportCertificateRequest &request)const; - void exportCertificateAsync(const Model::ExportCertificateRequest& request, const ExportCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ExportCertificateOutcomeCallable exportCertificateCallable(const Model::ExportCertificateRequest& request) const; ExportDataKeyOutcome exportDataKey(const Model::ExportDataKeyRequest &request)const; void exportDataKeyAsync(const Model::ExportDataKeyRequest& request, const ExportDataKeyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportDataKeyOutcomeCallable exportDataKeyCallable(const Model::ExportDataKeyRequest& request) const; @@ -488,12 +457,6 @@ namespace AlibabaCloud GetSecretValueOutcome getSecretValue(const Model::GetSecretValueRequest &request)const; void getSecretValueAsync(const Model::GetSecretValueRequest& request, const GetSecretValueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetSecretValueOutcomeCallable getSecretValueCallable(const Model::GetSecretValueRequest& request) const; - ImportCertificateOutcome importCertificate(const Model::ImportCertificateRequest &request)const; - void importCertificateAsync(const Model::ImportCertificateRequest& request, const ImportCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ImportCertificateOutcomeCallable importCertificateCallable(const Model::ImportCertificateRequest& request) const; - ImportEncryptionCertificateOutcome importEncryptionCertificate(const Model::ImportEncryptionCertificateRequest &request)const; - void importEncryptionCertificateAsync(const Model::ImportEncryptionCertificateRequest& request, const ImportEncryptionCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ImportEncryptionCertificateOutcomeCallable importEncryptionCertificateCallable(const Model::ImportEncryptionCertificateRequest& request) const; ImportKeyMaterialOutcome importKeyMaterial(const Model::ImportKeyMaterialRequest &request)const; void importKeyMaterialAsync(const Model::ImportKeyMaterialRequest& request, const ImportKeyMaterialAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImportKeyMaterialOutcomeCallable importKeyMaterialCallable(const Model::ImportKeyMaterialRequest& request) const; @@ -503,9 +466,6 @@ namespace AlibabaCloud ListAliasesByKeyIdOutcome listAliasesByKeyId(const Model::ListAliasesByKeyIdRequest &request)const; void listAliasesByKeyIdAsync(const Model::ListAliasesByKeyIdRequest& request, const ListAliasesByKeyIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAliasesByKeyIdOutcomeCallable listAliasesByKeyIdCallable(const Model::ListAliasesByKeyIdRequest& request) const; - ListCertificatesOutcome listCertificates(const Model::ListCertificatesRequest &request)const; - void listCertificatesAsync(const Model::ListCertificatesRequest& request, const ListCertificatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListCertificatesOutcomeCallable listCertificatesCallable(const Model::ListCertificatesRequest& request) const; ListKeyVersionsOutcome listKeyVersions(const Model::ListKeyVersionsRequest &request)const; void listKeyVersionsAsync(const Model::ListKeyVersionsRequest& request, const ListKeyVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListKeyVersionsOutcomeCallable listKeyVersionsCallable(const Model::ListKeyVersionsRequest& request) const; diff --git a/kms/include/alibabacloud/kms/model/AsymmetricDecryptRequest.h b/kms/include/alibabacloud/kms/model/AsymmetricDecryptRequest.h index 4205c46fb..cfc9a3fee 100644 --- a/kms/include/alibabacloud/kms/model/AsymmetricDecryptRequest.h +++ b/kms/include/alibabacloud/kms/model/AsymmetricDecryptRequest.h @@ -1,57 +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_ASYMMETRICDECRYPTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_ASYMMETRICDECRYPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT AsymmetricDecryptRequest : public RpcServiceRequest - { - - public: - AsymmetricDecryptRequest(); - ~AsymmetricDecryptRequest(); - - std::string getKeyVersionId()const; - void setKeyVersionId(const std::string& keyVersionId); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - std::string getCiphertextBlob()const; - void setCiphertextBlob(const std::string& ciphertextBlob); - std::string getAlgorithm()const; - void setAlgorithm(const std::string& algorithm); - - private: - std::string keyVersionId_; - std::string keyId_; - std::string ciphertextBlob_; - std::string algorithm_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_ASYMMETRICDECRYPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_ASYMMETRICDECRYPTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_ASYMMETRICDECRYPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT AsymmetricDecryptRequest : public RpcServiceRequest { +public: + AsymmetricDecryptRequest(); + ~AsymmetricDecryptRequest(); + std::string getKeyVersionId() const; + void setKeyVersionId(const std::string &keyVersionId); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + std::string getCiphertextBlob() const; + void setCiphertextBlob(const std::string &ciphertextBlob); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::string keyVersionId_; + std::string keyId_; + std::string ciphertextBlob_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_ASYMMETRICDECRYPTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/AsymmetricEncryptRequest.h b/kms/include/alibabacloud/kms/model/AsymmetricEncryptRequest.h index 061ee8732..0d5784f8e 100644 --- a/kms/include/alibabacloud/kms/model/AsymmetricEncryptRequest.h +++ b/kms/include/alibabacloud/kms/model/AsymmetricEncryptRequest.h @@ -1,57 +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_ASYMMETRICENCRYPTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_ASYMMETRICENCRYPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT AsymmetricEncryptRequest : public RpcServiceRequest - { - - public: - AsymmetricEncryptRequest(); - ~AsymmetricEncryptRequest(); - - std::string getKeyVersionId()const; - void setKeyVersionId(const std::string& keyVersionId); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - std::string getPlaintext()const; - void setPlaintext(const std::string& plaintext); - std::string getAlgorithm()const; - void setAlgorithm(const std::string& algorithm); - - private: - std::string keyVersionId_; - std::string keyId_; - std::string plaintext_; - std::string algorithm_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_ASYMMETRICENCRYPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_ASYMMETRICENCRYPTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_ASYMMETRICENCRYPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT AsymmetricEncryptRequest : public RpcServiceRequest { +public: + AsymmetricEncryptRequest(); + ~AsymmetricEncryptRequest(); + std::string getKeyVersionId() const; + void setKeyVersionId(const std::string &keyVersionId); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + std::string getPlaintext() const; + void setPlaintext(const std::string &plaintext); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::string keyVersionId_; + std::string keyId_; + std::string plaintext_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_ASYMMETRICENCRYPTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/AsymmetricSignRequest.h b/kms/include/alibabacloud/kms/model/AsymmetricSignRequest.h index cbda1d73a..cf0e13afc 100644 --- a/kms/include/alibabacloud/kms/model/AsymmetricSignRequest.h +++ b/kms/include/alibabacloud/kms/model/AsymmetricSignRequest.h @@ -1,57 +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_ASYMMETRICSIGNREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_ASYMMETRICSIGNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT AsymmetricSignRequest : public RpcServiceRequest - { - - public: - AsymmetricSignRequest(); - ~AsymmetricSignRequest(); - - std::string getKeyVersionId()const; - void setKeyVersionId(const std::string& keyVersionId); - std::string getDigest()const; - void setDigest(const std::string& digest); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - std::string getAlgorithm()const; - void setAlgorithm(const std::string& algorithm); - - private: - std::string keyVersionId_; - std::string digest_; - std::string keyId_; - std::string algorithm_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_ASYMMETRICSIGNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_ASYMMETRICSIGNREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_ASYMMETRICSIGNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT AsymmetricSignRequest : public RpcServiceRequest { +public: + AsymmetricSignRequest(); + ~AsymmetricSignRequest(); + std::string getKeyVersionId() const; + void setKeyVersionId(const std::string &keyVersionId); + std::string getDigest() const; + void setDigest(const std::string &digest); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::string keyVersionId_; + std::string digest_; + std::string keyId_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_ASYMMETRICSIGNREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/AsymmetricVerifyRequest.h b/kms/include/alibabacloud/kms/model/AsymmetricVerifyRequest.h index 5b88cc25d..338fee3fb 100644 --- a/kms/include/alibabacloud/kms/model/AsymmetricVerifyRequest.h +++ b/kms/include/alibabacloud/kms/model/AsymmetricVerifyRequest.h @@ -1,60 +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_ASYMMETRICVERIFYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_ASYMMETRICVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT AsymmetricVerifyRequest : public RpcServiceRequest - { - - public: - AsymmetricVerifyRequest(); - ~AsymmetricVerifyRequest(); - - std::string getKeyVersionId()const; - void setKeyVersionId(const std::string& keyVersionId); - std::string getDigest()const; - void setDigest(const std::string& digest); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - std::string getValue()const; - void setValue(const std::string& value); - std::string getAlgorithm()const; - void setAlgorithm(const std::string& algorithm); - - private: - std::string keyVersionId_; - std::string digest_; - std::string keyId_; - std::string value_; - std::string algorithm_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_ASYMMETRICVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_ASYMMETRICVERIFYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_ASYMMETRICVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT AsymmetricVerifyRequest : public RpcServiceRequest { +public: + AsymmetricVerifyRequest(); + ~AsymmetricVerifyRequest(); + std::string getKeyVersionId() const; + void setKeyVersionId(const std::string &keyVersionId); + std::string getDigest() const; + void setDigest(const std::string &digest); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + std::string getValue() const; + void setValue(const std::string &value); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::string keyVersionId_; + std::string digest_; + std::string keyId_; + std::string value_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_ASYMMETRICVERIFYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CancelKeyDeletionRequest.h b/kms/include/alibabacloud/kms/model/CancelKeyDeletionRequest.h index 362c5b726..229cef2a8 100644 --- a/kms/include/alibabacloud/kms/model/CancelKeyDeletionRequest.h +++ b/kms/include/alibabacloud/kms/model/CancelKeyDeletionRequest.h @@ -1,48 +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_KMS_MODEL_CANCELKEYDELETIONREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CANCELKEYDELETIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CancelKeyDeletionRequest : public RpcServiceRequest - { - - public: - CancelKeyDeletionRequest(); - ~CancelKeyDeletionRequest(); - - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CANCELKEYDELETIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CANCELKEYDELETIONREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CANCELKEYDELETIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CancelKeyDeletionRequest : public RpcServiceRequest { +public: + CancelKeyDeletionRequest(); + ~CancelKeyDeletionRequest(); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CANCELKEYDELETIONREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CertificatePrivateKeyDecryptRequest.h b/kms/include/alibabacloud/kms/model/CertificatePrivateKeyDecryptRequest.h index 587cd3bf1..3e78c30f4 100644 --- a/kms/include/alibabacloud/kms/model/CertificatePrivateKeyDecryptRequest.h +++ b/kms/include/alibabacloud/kms/model/CertificatePrivateKeyDecryptRequest.h @@ -1,54 +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_KMS_MODEL_CERTIFICATEPRIVATEKEYDECRYPTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYDECRYPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CertificatePrivateKeyDecryptRequest : public RpcServiceRequest - { - - public: - CertificatePrivateKeyDecryptRequest(); - ~CertificatePrivateKeyDecryptRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getAlgorithm()const; - void setAlgorithm(const std::string& algorithm); - std::string getCiphertextBlob()const; - void setCiphertextBlob(const std::string& ciphertextBlob); - - private: - std::string certificateId_; - std::string algorithm_; - std::string ciphertextBlob_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYDECRYPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYDECRYPTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYDECRYPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CertificatePrivateKeyDecryptRequest : public RpcServiceRequest { +public: + CertificatePrivateKeyDecryptRequest(); + ~CertificatePrivateKeyDecryptRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + std::string getCiphertextBlob() const; + void setCiphertextBlob(const std::string &ciphertextBlob); + +private: + std::string certificateId_; + std::string algorithm_; + std::string ciphertextBlob_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYDECRYPTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CertificatePrivateKeySignRequest.h b/kms/include/alibabacloud/kms/model/CertificatePrivateKeySignRequest.h index e2572ec23..e199832ae 100644 --- a/kms/include/alibabacloud/kms/model/CertificatePrivateKeySignRequest.h +++ b/kms/include/alibabacloud/kms/model/CertificatePrivateKeySignRequest.h @@ -1,57 +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_CERTIFICATEPRIVATEKEYSIGNREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYSIGNREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CertificatePrivateKeySignRequest : public RpcServiceRequest - { - - public: - CertificatePrivateKeySignRequest(); - ~CertificatePrivateKeySignRequest(); - - std::string getMessageType()const; - void setMessageType(const std::string& messageType); - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getMessage()const; - void setMessage(const std::string& message); - std::string getAlgorithm()const; - void setAlgorithm(const std::string& algorithm); - - private: - std::string messageType_; - std::string certificateId_; - std::string message_; - std::string algorithm_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYSIGNREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYSIGNREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYSIGNREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CertificatePrivateKeySignRequest : public RpcServiceRequest { +public: + CertificatePrivateKeySignRequest(); + ~CertificatePrivateKeySignRequest(); + std::string getMessageType() const; + void setMessageType(const std::string &messageType); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getMessage() const; + void setMessage(const std::string &message); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::string messageType_; + std::string certificateId_; + std::string message_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CERTIFICATEPRIVATEKEYSIGNREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CertificatePublicKeyEncryptRequest.h b/kms/include/alibabacloud/kms/model/CertificatePublicKeyEncryptRequest.h index 0b19c7e53..83d33bc4c 100644 --- a/kms/include/alibabacloud/kms/model/CertificatePublicKeyEncryptRequest.h +++ b/kms/include/alibabacloud/kms/model/CertificatePublicKeyEncryptRequest.h @@ -1,54 +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_KMS_MODEL_CERTIFICATEPUBLICKEYENCRYPTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYENCRYPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CertificatePublicKeyEncryptRequest : public RpcServiceRequest - { - - public: - CertificatePublicKeyEncryptRequest(); - ~CertificatePublicKeyEncryptRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getPlaintext()const; - void setPlaintext(const std::string& plaintext); - std::string getAlgorithm()const; - void setAlgorithm(const std::string& algorithm); - - private: - std::string certificateId_; - std::string plaintext_; - std::string algorithm_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYENCRYPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYENCRYPTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYENCRYPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CertificatePublicKeyEncryptRequest : public RpcServiceRequest { +public: + CertificatePublicKeyEncryptRequest(); + ~CertificatePublicKeyEncryptRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getPlaintext() const; + void setPlaintext(const std::string &plaintext); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::string certificateId_; + std::string plaintext_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYENCRYPTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CertificatePublicKeyEncryptResult.h b/kms/include/alibabacloud/kms/model/CertificatePublicKeyEncryptResult.h index b4e0486ff..86deab32c 100644 --- a/kms/include/alibabacloud/kms/model/CertificatePublicKeyEncryptResult.h +++ b/kms/include/alibabacloud/kms/model/CertificatePublicKeyEncryptResult.h @@ -37,14 +37,14 @@ namespace AlibabaCloud CertificatePublicKeyEncryptResult(); explicit CertificatePublicKeyEncryptResult(const std::string &payload); ~CertificatePublicKeyEncryptResult(); - std::string getCertificateId()const; std::string getCiphertextBlob()const; + std::string getCertificateId()const; protected: void parse(const std::string &payload); private: - std::string certificateId_; std::string ciphertextBlob_; + std::string certificateId_; }; } diff --git a/kms/include/alibabacloud/kms/model/CertificatePublicKeyVerifyRequest.h b/kms/include/alibabacloud/kms/model/CertificatePublicKeyVerifyRequest.h index b48cd76ed..bafd72d08 100644 --- a/kms/include/alibabacloud/kms/model/CertificatePublicKeyVerifyRequest.h +++ b/kms/include/alibabacloud/kms/model/CertificatePublicKeyVerifyRequest.h @@ -1,60 +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_CERTIFICATEPUBLICKEYVERIFYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CertificatePublicKeyVerifyRequest : public RpcServiceRequest - { - - public: - CertificatePublicKeyVerifyRequest(); - ~CertificatePublicKeyVerifyRequest(); - - std::string getSignatureValue()const; - void setSignatureValue(const std::string& signatureValue); - std::string getMessageType()const; - void setMessageType(const std::string& messageType); - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getMessage()const; - void setMessage(const std::string& message); - std::string getAlgorithm()const; - void setAlgorithm(const std::string& algorithm); - - private: - std::string signatureValue_; - std::string messageType_; - std::string certificateId_; - std::string message_; - std::string algorithm_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYVERIFYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CertificatePublicKeyVerifyRequest : public RpcServiceRequest { +public: + CertificatePublicKeyVerifyRequest(); + ~CertificatePublicKeyVerifyRequest(); + std::string getSignatureValue() const; + void setSignatureValue(const std::string &signatureValue); + std::string getMessageType() const; + void setMessageType(const std::string &messageType); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getMessage() const; + void setMessage(const std::string &message); + std::string getAlgorithm() const; + void setAlgorithm(const std::string &algorithm); + +private: + std::string signatureValue_; + std::string messageType_; + std::string certificateId_; + std::string message_; + std::string algorithm_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CERTIFICATEPUBLICKEYVERIFYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CreateAliasRequest.h b/kms/include/alibabacloud/kms/model/CreateAliasRequest.h index 3af5c96d3..f6afe13ef 100644 --- a/kms/include/alibabacloud/kms/model/CreateAliasRequest.h +++ b/kms/include/alibabacloud/kms/model/CreateAliasRequest.h @@ -1,51 +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_KMS_MODEL_CREATEALIASREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CREATEALIASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CreateAliasRequest : public RpcServiceRequest - { - - public: - CreateAliasRequest(); - ~CreateAliasRequest(); - - std::string getAliasName()const; - void setAliasName(const std::string& aliasName); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string aliasName_; - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CREATEALIASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CREATEALIASREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CREATEALIASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CreateAliasRequest : public RpcServiceRequest { +public: + CreateAliasRequest(); + ~CreateAliasRequest(); + std::string getAliasName() const; + void setAliasName(const std::string &aliasName); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string aliasName_; + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CREATEALIASREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CreateCertificateRequest.h b/kms/include/alibabacloud/kms/model/CreateCertificateRequest.h index beeee8e2f..256db9c3d 100644 --- a/kms/include/alibabacloud/kms/model/CreateCertificateRequest.h +++ b/kms/include/alibabacloud/kms/model/CreateCertificateRequest.h @@ -1,63 +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_CREATECERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CREATECERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CreateCertificateRequest : public RpcServiceRequest - { - - public: - CreateCertificateRequest(); - ~CreateCertificateRequest(); - - 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 getSubjectAlternativeNames()const; - void setSubjectAlternativeNames(const std::map& subjectAlternativeNames); - std::string getKeySpec()const; - void setKeySpec(const std::string& keySpec); - - private: - std::string protectionLevel_; - bool exportablePrivateKey_; - std::string clientToken_; - std::string subject_; - std::map subjectAlternativeNames_; - std::string keySpec_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CREATECERTIFICATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CREATECERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CREATECERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CreateCertificateRequest : public RpcServiceRequest { +public: + CreateCertificateRequest(); + ~CreateCertificateRequest(); + 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 getSubjectAlternativeNames() const; + void setSubjectAlternativeNames(std::map subjectAlternativeNames); + std::string getKeySpec() const; + void setKeySpec(const std::string &keySpec); + +private: + std::string protectionLevel_; + bool exportablePrivateKey_; + std::string clientToken_; + std::string subject_; + std::map subjectAlternativeNames_; + std::string keySpec_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CREATECERTIFICATEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CreateKeyRequest.h b/kms/include/alibabacloud/kms/model/CreateKeyRequest.h index a23569a9a..826af0024 100644 --- a/kms/include/alibabacloud/kms/model/CreateKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/CreateKeyRequest.h @@ -1,66 +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_CREATEKEYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CREATEKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CreateKeyRequest : public RpcServiceRequest - { - - public: - CreateKeyRequest(); - ~CreateKeyRequest(); - - std::string getProtectionLevel()const; - void setProtectionLevel(const std::string& protectionLevel); - std::string getKeyUsage()const; - void setKeyUsage(const std::string& keyUsage); - std::string getOrigin()const; - void setOrigin(const std::string& origin); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getKeySpec()const; - void setKeySpec(const std::string& keySpec); - 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 keySpec_; - std::string rotationInterval_; - bool enableAutomaticRotation_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CREATEKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CREATEKEYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CREATEKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CreateKeyRequest : public RpcServiceRequest { +public: + CreateKeyRequest(); + ~CreateKeyRequest(); + std::string getProtectionLevel() const; + void setProtectionLevel(const std::string &protectionLevel); + std::string getKeyUsage() const; + void setKeyUsage(const std::string &keyUsage); + std::string getOrigin() const; + void setOrigin(const std::string &origin); + std::string getDKMSInstanceId() const; + void setDKMSInstanceId(const std::string &dKMSInstanceId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getKeySpec() const; + void setKeySpec(const std::string &keySpec); + 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 dKMSInstanceId_; + std::string description_; + std::string keySpec_; + std::string rotationInterval_; + bool enableAutomaticRotation_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CREATEKEYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CreateKeyResult.h b/kms/include/alibabacloud/kms/model/CreateKeyResult.h index 2ea8f7705..c15c5e7f7 100644 --- a/kms/include/alibabacloud/kms/model/CreateKeyResult.h +++ b/kms/include/alibabacloud/kms/model/CreateKeyResult.h @@ -35,16 +35,17 @@ namespace AlibabaCloud struct KeyMetadata { std::string origin; - std::string creationDate; std::string protectionLevel; + std::string creationDate; std::string description; - std::string lastRotationDate; std::string rotationInterval; + std::string lastRotationDate; std::string keySpec; std::string keyUsage; std::string keyId; std::string primaryKeyVersion; std::string creator; + std::string dKMSInstanceId; std::string deleteDate; std::string automaticRotation; std::string nextRotationDate; diff --git a/kms/include/alibabacloud/kms/model/CreateKeyVersionRequest.h b/kms/include/alibabacloud/kms/model/CreateKeyVersionRequest.h index 1a8ec66e5..624325c3c 100644 --- a/kms/include/alibabacloud/kms/model/CreateKeyVersionRequest.h +++ b/kms/include/alibabacloud/kms/model/CreateKeyVersionRequest.h @@ -1,48 +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_KMS_MODEL_CREATEKEYVERSIONREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CREATEKEYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CreateKeyVersionRequest : public RpcServiceRequest - { - - public: - CreateKeyVersionRequest(); - ~CreateKeyVersionRequest(); - - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CREATEKEYVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CREATEKEYVERSIONREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CREATEKEYVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CreateKeyVersionRequest : public RpcServiceRequest { +public: + CreateKeyVersionRequest(); + ~CreateKeyVersionRequest(); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CREATEKEYVERSIONREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CreateSecretRequest.h b/kms/include/alibabacloud/kms/model/CreateSecretRequest.h index 833ddcdd6..eb77c950d 100644 --- a/kms/include/alibabacloud/kms/model/CreateSecretRequest.h +++ b/kms/include/alibabacloud/kms/model/CreateSecretRequest.h @@ -1,78 +1,75 @@ /* * 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_CREATESECRETREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_CREATESECRETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT CreateSecretRequest : public RpcServiceRequest - { - - public: - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_CREATESECRETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_CREATESECRETREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_CREATESECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT CreateSecretRequest : public RpcServiceRequest { +public: + CreateSecretRequest(); + ~CreateSecretRequest(); + std::string getSecretType() const; + void setSecretType(const std::string &secretType); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + std::string getDKMSInstanceId() const; + void setDKMSInstanceId(const std::string &dKMSInstanceId); + 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 dKMSInstanceId_; + 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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_CREATESECRETREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/CreateSecretResult.h b/kms/include/alibabacloud/kms/model/CreateSecretResult.h index 382428ea6..341e60fe0 100644 --- a/kms/include/alibabacloud/kms/model/CreateSecretResult.h +++ b/kms/include/alibabacloud/kms/model/CreateSecretResult.h @@ -37,24 +37,26 @@ namespace AlibabaCloud CreateSecretResult(); explicit CreateSecretResult(const std::string &payload); ~CreateSecretResult(); - std::string getVersionId()const; std::string getSecretName()const; + std::string getVersionId()const; std::string getNextRotationDate()const; std::string getSecretType()const; std::string getRotationInterval()const; std::string getExtendedConfig()const; + std::string getDKMSInstanceId()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 versionId_; std::string nextRotationDate_; std::string secretType_; std::string rotationInterval_; std::string extendedConfig_; + std::string dKMSInstanceId_; std::string arn_; std::string automaticRotation_; diff --git a/kms/include/alibabacloud/kms/model/DecryptRequest.h b/kms/include/alibabacloud/kms/model/DecryptRequest.h index 15d7d6af0..0aeec89f6 100644 --- a/kms/include/alibabacloud/kms/model/DecryptRequest.h +++ b/kms/include/alibabacloud/kms/model/DecryptRequest.h @@ -1,51 +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_KMS_MODEL_DECRYPTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DECRYPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DecryptRequest : public RpcServiceRequest - { - - public: - DecryptRequest(); - ~DecryptRequest(); - - std::string getEncryptionContext()const; - void setEncryptionContext(const std::string& encryptionContext); - std::string getCiphertextBlob()const; - void setCiphertextBlob(const std::string& ciphertextBlob); - - private: - std::string encryptionContext_; - std::string ciphertextBlob_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DECRYPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DECRYPTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DECRYPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DecryptRequest : public RpcServiceRequest { +public: + DecryptRequest(); + ~DecryptRequest(); + std::string getEncryptionContext() const; + void setEncryptionContext(const std::string &encryptionContext); + std::string getCiphertextBlob() const; + void setCiphertextBlob(const std::string &ciphertextBlob); + +private: + std::string encryptionContext_; + std::string ciphertextBlob_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DECRYPTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DeleteAliasRequest.h b/kms/include/alibabacloud/kms/model/DeleteAliasRequest.h index aaf5edfe5..e505af18a 100644 --- a/kms/include/alibabacloud/kms/model/DeleteAliasRequest.h +++ b/kms/include/alibabacloud/kms/model/DeleteAliasRequest.h @@ -1,48 +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_KMS_MODEL_DELETEALIASREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DELETEALIASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DeleteAliasRequest : public RpcServiceRequest - { - - public: - DeleteAliasRequest(); - ~DeleteAliasRequest(); - - std::string getAliasName()const; - void setAliasName(const std::string& aliasName); - - private: - std::string aliasName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DELETEALIASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DELETEALIASREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DELETEALIASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DeleteAliasRequest : public RpcServiceRequest { +public: + DeleteAliasRequest(); + ~DeleteAliasRequest(); + std::string getAliasName() const; + void setAliasName(const std::string &aliasName); + +private: + std::string aliasName_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DELETEALIASREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DeleteCertificateRequest.h b/kms/include/alibabacloud/kms/model/DeleteCertificateRequest.h index d9c5a6cab..9df1ed4c9 100644 --- a/kms/include/alibabacloud/kms/model/DeleteCertificateRequest.h +++ b/kms/include/alibabacloud/kms/model/DeleteCertificateRequest.h @@ -1,48 +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_KMS_MODEL_DELETECERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DELETECERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DeleteCertificateRequest : public RpcServiceRequest - { - - public: - DeleteCertificateRequest(); - ~DeleteCertificateRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - - private: - std::string certificateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DELETECERTIFICATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DELETECERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DELETECERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DeleteCertificateRequest : public RpcServiceRequest { +public: + DeleteCertificateRequest(); + ~DeleteCertificateRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + +private: + std::string certificateId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DELETECERTIFICATEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DeleteKeyMaterialRequest.h b/kms/include/alibabacloud/kms/model/DeleteKeyMaterialRequest.h index 81e365277..7ceb9c9e7 100644 --- a/kms/include/alibabacloud/kms/model/DeleteKeyMaterialRequest.h +++ b/kms/include/alibabacloud/kms/model/DeleteKeyMaterialRequest.h @@ -1,48 +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_KMS_MODEL_DELETEKEYMATERIALREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DELETEKEYMATERIALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DeleteKeyMaterialRequest : public RpcServiceRequest - { - - public: - DeleteKeyMaterialRequest(); - ~DeleteKeyMaterialRequest(); - - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DELETEKEYMATERIALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DELETEKEYMATERIALREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DELETEKEYMATERIALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DeleteKeyMaterialRequest : public RpcServiceRequest { +public: + DeleteKeyMaterialRequest(); + ~DeleteKeyMaterialRequest(); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DELETEKEYMATERIALREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DeleteSecretRequest.h b/kms/include/alibabacloud/kms/model/DeleteSecretRequest.h index 710f3e0d0..56f1f16e9 100644 --- a/kms/include/alibabacloud/kms/model/DeleteSecretRequest.h +++ b/kms/include/alibabacloud/kms/model/DeleteSecretRequest.h @@ -1,54 +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_KMS_MODEL_DELETESECRETREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DELETESECRETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DeleteSecretRequest : public RpcServiceRequest - { - - public: - DeleteSecretRequest(); - ~DeleteSecretRequest(); - - std::string getForceDeleteWithoutRecovery()const; - void setForceDeleteWithoutRecovery(const std::string& forceDeleteWithoutRecovery); - std::string getRecoveryWindowInDays()const; - void setRecoveryWindowInDays(const std::string& recoveryWindowInDays); - std::string getSecretName()const; - void setSecretName(const std::string& secretName); - - private: - std::string forceDeleteWithoutRecovery_; - std::string recoveryWindowInDays_; - std::string secretName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DELETESECRETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DELETESECRETREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DELETESECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DeleteSecretRequest : public RpcServiceRequest { +public: + DeleteSecretRequest(); + ~DeleteSecretRequest(); + std::string getForceDeleteWithoutRecovery() const; + void setForceDeleteWithoutRecovery(const std::string &forceDeleteWithoutRecovery); + std::string getRecoveryWindowInDays() const; + void setRecoveryWindowInDays(const std::string &recoveryWindowInDays); + std::string getSecretName() const; + void setSecretName(const std::string &secretName); + +private: + std::string forceDeleteWithoutRecovery_; + std::string recoveryWindowInDays_; + std::string secretName_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DELETESECRETREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DescribeAccountKmsStatusRequest.h b/kms/include/alibabacloud/kms/model/DescribeAccountKmsStatusRequest.h index cb8444b03..8c8a40b52 100644 --- a/kms/include/alibabacloud/kms/model/DescribeAccountKmsStatusRequest.h +++ b/kms/include/alibabacloud/kms/model/DescribeAccountKmsStatusRequest.h @@ -1,45 +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_KMS_MODEL_DESCRIBEACCOUNTKMSSTATUSREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DESCRIBEACCOUNTKMSSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DescribeAccountKmsStatusRequest : public RpcServiceRequest - { - - public: - DescribeAccountKmsStatusRequest(); - ~DescribeAccountKmsStatusRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEACCOUNTKMSSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DESCRIBEACCOUNTKMSSTATUSREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DESCRIBEACCOUNTKMSSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DescribeAccountKmsStatusRequest : public RpcServiceRequest { +public: + DescribeAccountKmsStatusRequest(); + ~DescribeAccountKmsStatusRequest(); + +private: +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEACCOUNTKMSSTATUSREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DescribeCertificateRequest.h b/kms/include/alibabacloud/kms/model/DescribeCertificateRequest.h index d0ae871c7..3c552d8b8 100644 --- a/kms/include/alibabacloud/kms/model/DescribeCertificateRequest.h +++ b/kms/include/alibabacloud/kms/model/DescribeCertificateRequest.h @@ -1,48 +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_KMS_MODEL_DESCRIBECERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DESCRIBECERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DescribeCertificateRequest : public RpcServiceRequest - { - - public: - DescribeCertificateRequest(); - ~DescribeCertificateRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - - private: - std::string certificateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBECERTIFICATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DESCRIBECERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DESCRIBECERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DescribeCertificateRequest : public RpcServiceRequest { +public: + DescribeCertificateRequest(); + ~DescribeCertificateRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + +private: + std::string certificateId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBECERTIFICATEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DescribeCertificateResult.h b/kms/include/alibabacloud/kms/model/DescribeCertificateResult.h index 28cbb20e3..a84f90633 100644 --- a/kms/include/alibabacloud/kms/model/DescribeCertificateResult.h +++ b/kms/include/alibabacloud/kms/model/DescribeCertificateResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud std::string getProtectionLevel()const; std::string getIssuer()const; std::string getCertificateId()const; - std::string getKeySpec()const; std::string getCreatedAt()const; + std::string getKeySpec()const; std::vector getSubjectAlternativeNames()const; std::string getSignatureAlgorithm()const; std::string getSubjectKeyIdentifier()const; @@ -63,8 +63,8 @@ namespace AlibabaCloud std::string protectionLevel_; std::string issuer_; std::string certificateId_; - std::string keySpec_; std::string createdAt_; + std::string keySpec_; std::vector subjectAlternativeNames_; std::string signatureAlgorithm_; std::string subjectKeyIdentifier_; diff --git a/kms/include/alibabacloud/kms/model/DescribeKeyRequest.h b/kms/include/alibabacloud/kms/model/DescribeKeyRequest.h index d03f1960a..6bc98b2dc 100644 --- a/kms/include/alibabacloud/kms/model/DescribeKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/DescribeKeyRequest.h @@ -1,48 +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_KMS_MODEL_DESCRIBEKEYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DescribeKeyRequest : public RpcServiceRequest - { - - public: - DescribeKeyRequest(); - ~DescribeKeyRequest(); - - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DescribeKeyRequest : public RpcServiceRequest { +public: + DescribeKeyRequest(); + ~DescribeKeyRequest(); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DescribeKeyResult.h b/kms/include/alibabacloud/kms/model/DescribeKeyResult.h index 6f5d12311..0c07f8d0a 100644 --- a/kms/include/alibabacloud/kms/model/DescribeKeyResult.h +++ b/kms/include/alibabacloud/kms/model/DescribeKeyResult.h @@ -35,17 +35,18 @@ namespace AlibabaCloud struct KeyMetadata { std::string origin; - std::string creationDate; std::string protectionLevel; + std::string creationDate; std::string description; - std::string lastRotationDate; std::string rotationInterval; + std::string lastRotationDate; std::string keySpec; std::string keyUsage; std::string keyId; std::string primaryKeyVersion; - std::string creator; std::string deletionProtection; + std::string creator; + std::string dKMSInstanceId; std::string deleteDate; std::string automaticRotation; std::string nextRotationDate; diff --git a/kms/include/alibabacloud/kms/model/DescribeKeyVersionRequest.h b/kms/include/alibabacloud/kms/model/DescribeKeyVersionRequest.h index 325a2f795..d5a4844f4 100644 --- a/kms/include/alibabacloud/kms/model/DescribeKeyVersionRequest.h +++ b/kms/include/alibabacloud/kms/model/DescribeKeyVersionRequest.h @@ -1,51 +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_KMS_MODEL_DESCRIBEKEYVERSIONREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYVERSIONREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYVERSIONREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEKEYVERSIONREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DescribeRegionsRequest.h b/kms/include/alibabacloud/kms/model/DescribeRegionsRequest.h index 68a516d83..4ffe5faa5 100644 --- a/kms/include/alibabacloud/kms/model/DescribeRegionsRequest.h +++ b/kms/include/alibabacloud/kms/model/DescribeRegionsRequest.h @@ -1,45 +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_KMS_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DescribeRegionsRequest : public RpcServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DescribeRegionsRequest : public RpcServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + +private: +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DescribeSecretRequest.h b/kms/include/alibabacloud/kms/model/DescribeSecretRequest.h index 70c8cca9b..dd7e86400 100644 --- a/kms/include/alibabacloud/kms/model/DescribeSecretRequest.h +++ b/kms/include/alibabacloud/kms/model/DescribeSecretRequest.h @@ -1,51 +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_KMS_MODEL_DESCRIBESECRETREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DESCRIBESECRETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DescribeSecretRequest : public RpcServiceRequest - { - - public: - DescribeSecretRequest(); - ~DescribeSecretRequest(); - - std::string getSecretName()const; - void setSecretName(const std::string& secretName); - std::string getFetchTags()const; - void setFetchTags(const std::string& fetchTags); - - private: - std::string secretName_; - std::string fetchTags_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBESECRETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DESCRIBESECRETREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DESCRIBESECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DescribeSecretRequest : public RpcServiceRequest { +public: + DescribeSecretRequest(); + ~DescribeSecretRequest(); + std::string getSecretName() const; + void setSecretName(const std::string &secretName); + std::string getFetchTags() const; + void setFetchTags(const std::string &fetchTags); + +private: + std::string secretName_; + std::string fetchTags_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBESECRETREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/DescribeSecretResult.h b/kms/include/alibabacloud/kms/model/DescribeSecretResult.h index fc374e37f..17e002c8c 100644 --- a/kms/include/alibabacloud/kms/model/DescribeSecretResult.h +++ b/kms/include/alibabacloud/kms/model/DescribeSecretResult.h @@ -43,16 +43,17 @@ namespace AlibabaCloud explicit DescribeSecretResult(const std::string &payload); ~DescribeSecretResult(); std::string getDescription()const; - std::string getLastRotationDate()const; std::string getRotationInterval()const; + std::string getLastRotationDate()const; std::string getSecretType()const; std::string getCreateTime()const; + std::string getDKMSInstanceId()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 getPlannedDeleteTime()const; std::string getArn()const; std::vector getTags()const; std::string getEncryptionKeyId()const; @@ -61,16 +62,17 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string description_; - std::string lastRotationDate_; std::string rotationInterval_; + std::string lastRotationDate_; std::string secretType_; std::string createTime_; + std::string dKMSInstanceId_; std::string automaticRotation_; std::string secretName_; std::string nextRotationDate_; std::string updateTime_; - std::string plannedDeleteTime_; std::string extendedConfig_; + std::string plannedDeleteTime_; std::string arn_; std::vector tags_; std::string encryptionKeyId_; diff --git a/kms/include/alibabacloud/kms/model/DescribeServiceRequest.h b/kms/include/alibabacloud/kms/model/DescribeServiceRequest.h deleted file mode 100644 index 4170a09f8..000000000 --- a/kms/include/alibabacloud/kms/model/DescribeServiceRequest.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DescribeServiceRequest : public RpcServiceRequest - { - - public: - DescribeServiceRequest(); - ~DescribeServiceRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICEREQUEST_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/DescribeServiceResult.h b/kms/include/alibabacloud/kms/model/DescribeServiceResult.h deleted file mode 100644 index 76e5eda39..000000000 --- a/kms/include/alibabacloud/kms/model/DescribeServiceResult.h +++ /dev/null @@ -1,63 +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_KMS_MODEL_DESCRIBESERVICERESULT_H_ -#define ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DescribeServiceResult : public ServiceResult - { - public: - struct ProtectionLevel - { - std::string type; - }; - struct KeySpec - { - std::vector supportedProtectionLevels; - std::vector usages; - std::string name; - }; - - - DescribeServiceResult(); - explicit DescribeServiceResult(const std::string &payload); - ~DescribeServiceResult(); - std::vector getProtectionLevels()const; - std::vector getKeySpecs()const; - - protected: - void parse(const std::string &payload); - private: - std::vector protectionLevels_; - std::vector keySpecs_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DESCRIBESERVICERESULT_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/DisableKeyRequest.h b/kms/include/alibabacloud/kms/model/DisableKeyRequest.h index e62b52fd7..11cf25887 100644 --- a/kms/include/alibabacloud/kms/model/DisableKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/DisableKeyRequest.h @@ -1,48 +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_KMS_MODEL_DISABLEKEYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_DISABLEKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT DisableKeyRequest : public RpcServiceRequest - { - - public: - DisableKeyRequest(); - ~DisableKeyRequest(); - - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_DISABLEKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_DISABLEKEYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_DISABLEKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT DisableKeyRequest : public RpcServiceRequest { +public: + DisableKeyRequest(); + ~DisableKeyRequest(); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_DISABLEKEYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/EnableKeyRequest.h b/kms/include/alibabacloud/kms/model/EnableKeyRequest.h index 3ffd5a668..160382e76 100644 --- a/kms/include/alibabacloud/kms/model/EnableKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/EnableKeyRequest.h @@ -1,48 +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_KMS_MODEL_ENABLEKEYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_ENABLEKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT EnableKeyRequest : public RpcServiceRequest - { - - public: - EnableKeyRequest(); - ~EnableKeyRequest(); - - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_ENABLEKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_ENABLEKEYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_ENABLEKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT EnableKeyRequest : public RpcServiceRequest { +public: + EnableKeyRequest(); + ~EnableKeyRequest(); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_ENABLEKEYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/EncryptRequest.h b/kms/include/alibabacloud/kms/model/EncryptRequest.h index 0d89d8dfb..0c5c0c851 100644 --- a/kms/include/alibabacloud/kms/model/EncryptRequest.h +++ b/kms/include/alibabacloud/kms/model/EncryptRequest.h @@ -1,54 +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_KMS_MODEL_ENCRYPTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_ENCRYPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT EncryptRequest : public RpcServiceRequest - { - - public: - EncryptRequest(); - ~EncryptRequest(); - - std::string getEncryptionContext()const; - void setEncryptionContext(const std::string& encryptionContext); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - std::string getPlaintext()const; - void setPlaintext(const std::string& plaintext); - - private: - std::string encryptionContext_; - std::string keyId_; - std::string plaintext_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_ENCRYPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_ENCRYPTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_ENCRYPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT EncryptRequest : public RpcServiceRequest { +public: + EncryptRequest(); + ~EncryptRequest(); + std::string getEncryptionContext() const; + void setEncryptionContext(const std::string &encryptionContext); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + std::string getPlaintext() const; + void setPlaintext(const std::string &plaintext); + +private: + std::string encryptionContext_; + std::string keyId_; + std::string plaintext_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_ENCRYPTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ExportCertificateRequest.h b/kms/include/alibabacloud/kms/model/ExportCertificateRequest.h deleted file mode 100644 index 1fe2553de..000000000 --- a/kms/include/alibabacloud/kms/model/ExportCertificateRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_KMS_MODEL_EXPORTCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_EXPORTCERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ExportCertificateRequest : public RpcServiceRequest - { - - public: - ExportCertificateRequest(); - ~ExportCertificateRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getPassphrase()const; - void setPassphrase(const std::string& passphrase); - std::string getExportFormat()const; - void setExportFormat(const std::string& exportFormat); - - private: - std::string certificateId_; - std::string passphrase_; - std::string exportFormat_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_EXPORTCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/ExportCertificateResult.h b/kms/include/alibabacloud/kms/model/ExportCertificateResult.h deleted file mode 100644 index ebeb8468f..000000000 --- a/kms/include/alibabacloud/kms/model/ExportCertificateResult.h +++ /dev/null @@ -1,59 +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_KMS_MODEL_EXPORTCERTIFICATERESULT_H_ -#define ALIBABACLOUD_KMS_MODEL_EXPORTCERTIFICATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ExportCertificateResult : public ServiceResult - { - public: - - - ExportCertificateResult(); - explicit ExportCertificateResult(const std::string &payload); - ~ExportCertificateResult(); - std::string getPrivateKey()const; - std::string getCertificateId()const; - std::string getCertificateChain()const; - std::string getPKCS12Blob()const; - std::string getCertificate()const; - - protected: - void parse(const std::string &payload); - private: - std::string privateKey_; - std::string certificateId_; - std::string certificateChain_; - std::string pKCS12Blob_; - std::string certificate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_EXPORTCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/ExportDataKeyRequest.h b/kms/include/alibabacloud/kms/model/ExportDataKeyRequest.h index 2b548e2d8..3e442df95 100644 --- a/kms/include/alibabacloud/kms/model/ExportDataKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/ExportDataKeyRequest.h @@ -1,60 +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_EXPORTDATAKEYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_EXPORTDATAKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ExportDataKeyRequest : public RpcServiceRequest - { - - public: - ExportDataKeyRequest(); - ~ExportDataKeyRequest(); - - std::string getEncryptionContext()const; - void setEncryptionContext(const std::string& encryptionContext); - std::string getWrappingAlgorithm()const; - void setWrappingAlgorithm(const std::string& wrappingAlgorithm); - std::string getCiphertextBlob()const; - void setCiphertextBlob(const std::string& ciphertextBlob); - std::string getPublicKeyBlob()const; - void setPublicKeyBlob(const std::string& publicKeyBlob); - std::string getWrappingKeySpec()const; - void setWrappingKeySpec(const std::string& wrappingKeySpec); - - private: - std::string encryptionContext_; - std::string wrappingAlgorithm_; - std::string ciphertextBlob_; - std::string publicKeyBlob_; - std::string wrappingKeySpec_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_EXPORTDATAKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_EXPORTDATAKEYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_EXPORTDATAKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ExportDataKeyRequest : public RpcServiceRequest { +public: + ExportDataKeyRequest(); + ~ExportDataKeyRequest(); + std::string getEncryptionContext() const; + void setEncryptionContext(const std::string &encryptionContext); + std::string getWrappingAlgorithm() const; + void setWrappingAlgorithm(const std::string &wrappingAlgorithm); + std::string getCiphertextBlob() const; + void setCiphertextBlob(const std::string &ciphertextBlob); + std::string getPublicKeyBlob() const; + void setPublicKeyBlob(const std::string &publicKeyBlob); + std::string getWrappingKeySpec() const; + void setWrappingKeySpec(const std::string &wrappingKeySpec); + +private: + std::string encryptionContext_; + std::string wrappingAlgorithm_; + std::string ciphertextBlob_; + std::string publicKeyBlob_; + std::string wrappingKeySpec_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_EXPORTDATAKEYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GenerateAndExportDataKeyRequest.h b/kms/include/alibabacloud/kms/model/GenerateAndExportDataKeyRequest.h index b44b29470..209e83852 100644 --- a/kms/include/alibabacloud/kms/model/GenerateAndExportDataKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/GenerateAndExportDataKeyRequest.h @@ -1,66 +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_KMS_MODEL_GENERATEANDEXPORTDATAKEYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_GENERATEANDEXPORTDATAKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT GenerateAndExportDataKeyRequest : public RpcServiceRequest - { - - public: - GenerateAndExportDataKeyRequest(); - ~GenerateAndExportDataKeyRequest(); - - 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); - std::string getWrappingAlgorithm()const; - void setWrappingAlgorithm(const std::string& wrappingAlgorithm); - std::string getPublicKeyBlob()const; - void setPublicKeyBlob(const std::string& publicKeyBlob); - std::string getWrappingKeySpec()const; - void setWrappingKeySpec(const std::string& wrappingKeySpec); - - private: - std::string encryptionContext_; - std::string keyId_; - std::string keySpec_; - int numberOfBytes_; - std::string wrappingAlgorithm_; - std::string publicKeyBlob_; - std::string wrappingKeySpec_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_GENERATEANDEXPORTDATAKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_GENERATEANDEXPORTDATAKEYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_GENERATEANDEXPORTDATAKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT GenerateAndExportDataKeyRequest : public RpcServiceRequest { +public: + GenerateAndExportDataKeyRequest(); + ~GenerateAndExportDataKeyRequest(); + 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); + std::string getWrappingAlgorithm() const; + void setWrappingAlgorithm(const std::string &wrappingAlgorithm); + std::string getPublicKeyBlob() const; + void setPublicKeyBlob(const std::string &publicKeyBlob); + std::string getWrappingKeySpec() const; + void setWrappingKeySpec(const std::string &wrappingKeySpec); + +private: + std::string encryptionContext_; + std::string keyId_; + std::string keySpec_; + int numberOfBytes_; + std::string wrappingAlgorithm_; + std::string publicKeyBlob_; + std::string wrappingKeySpec_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_GENERATEANDEXPORTDATAKEYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GenerateDataKeyRequest.h b/kms/include/alibabacloud/kms/model/GenerateDataKeyRequest.h index f2e9c2181..c4f72b6ee 100644 --- a/kms/include/alibabacloud/kms/model/GenerateDataKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/GenerateDataKeyRequest.h @@ -1,57 +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_GENERATEDATAKEYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT GenerateDataKeyRequest : public RpcServiceRequest - { - - public: - GenerateDataKeyRequest(); - ~GenerateDataKeyRequest(); - - 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_GENERATEDATAKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT GenerateDataKeyRequest : public RpcServiceRequest { +public: + GenerateDataKeyRequest(); + ~GenerateDataKeyRequest(); + 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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GenerateDataKeyWithoutPlaintextRequest.h b/kms/include/alibabacloud/kms/model/GenerateDataKeyWithoutPlaintextRequest.h index aced2174c..f5d635632 100644 --- a/kms/include/alibabacloud/kms/model/GenerateDataKeyWithoutPlaintextRequest.h +++ b/kms/include/alibabacloud/kms/model/GenerateDataKeyWithoutPlaintextRequest.h @@ -1,57 +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_GENERATEDATAKEYWITHOUTPLAINTEXTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTREQUEST_H_ + +#include +#include +#include +#include +#include + +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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_GENERATEDATAKEYWITHOUTPLAINTEXTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GetCertificateRequest.h b/kms/include/alibabacloud/kms/model/GetCertificateRequest.h index 2e6983bfe..d0f82b722 100644 --- a/kms/include/alibabacloud/kms/model/GetCertificateRequest.h +++ b/kms/include/alibabacloud/kms/model/GetCertificateRequest.h @@ -1,48 +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_KMS_MODEL_GETCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_GETCERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT GetCertificateRequest : public RpcServiceRequest - { - - public: - GetCertificateRequest(); - ~GetCertificateRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - - private: - std::string certificateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_GETCERTIFICATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_GETCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_GETCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT GetCertificateRequest : public RpcServiceRequest { +public: + GetCertificateRequest(); + ~GetCertificateRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + +private: + std::string certificateId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_GETCERTIFICATEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GetParametersForImportRequest.h b/kms/include/alibabacloud/kms/model/GetParametersForImportRequest.h index 247e7e04f..e13c72e5b 100644 --- a/kms/include/alibabacloud/kms/model/GetParametersForImportRequest.h +++ b/kms/include/alibabacloud/kms/model/GetParametersForImportRequest.h @@ -1,54 +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_KMS_MODEL_GETPARAMETERSFORIMPORTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_GETPARAMETERSFORIMPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT GetParametersForImportRequest : public RpcServiceRequest - { - - public: - GetParametersForImportRequest(); - ~GetParametersForImportRequest(); - - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - std::string getWrappingAlgorithm()const; - void setWrappingAlgorithm(const std::string& wrappingAlgorithm); - std::string getWrappingKeySpec()const; - void setWrappingKeySpec(const std::string& wrappingKeySpec); - - private: - std::string keyId_; - std::string wrappingAlgorithm_; - std::string wrappingKeySpec_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_GETPARAMETERSFORIMPORTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_GETPARAMETERSFORIMPORTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_GETPARAMETERSFORIMPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT GetParametersForImportRequest : public RpcServiceRequest { +public: + GetParametersForImportRequest(); + ~GetParametersForImportRequest(); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + std::string getWrappingAlgorithm() const; + void setWrappingAlgorithm(const std::string &wrappingAlgorithm); + std::string getWrappingKeySpec() const; + void setWrappingKeySpec(const std::string &wrappingKeySpec); + +private: + std::string keyId_; + std::string wrappingAlgorithm_; + std::string wrappingKeySpec_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_GETPARAMETERSFORIMPORTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GetPublicKeyRequest.h b/kms/include/alibabacloud/kms/model/GetPublicKeyRequest.h index 1fb720abf..4e27ecdac 100644 --- a/kms/include/alibabacloud/kms/model/GetPublicKeyRequest.h +++ b/kms/include/alibabacloud/kms/model/GetPublicKeyRequest.h @@ -1,51 +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_KMS_MODEL_GETPUBLICKEYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_GETPUBLICKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT GetPublicKeyRequest : public RpcServiceRequest - { - - public: - GetPublicKeyRequest(); - ~GetPublicKeyRequest(); - - 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_GETPUBLICKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_GETPUBLICKEYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_GETPUBLICKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT GetPublicKeyRequest : public RpcServiceRequest { +public: + GetPublicKeyRequest(); + ~GetPublicKeyRequest(); + 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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_GETPUBLICKEYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GetRandomPasswordRequest.h b/kms/include/alibabacloud/kms/model/GetRandomPasswordRequest.h index d976b0fac..a6371c4fc 100644 --- a/kms/include/alibabacloud/kms/model/GetRandomPasswordRequest.h +++ b/kms/include/alibabacloud/kms/model/GetRandomPasswordRequest.h @@ -1,66 +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_KMS_MODEL_GETRANDOMPASSWORDREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_GETRANDOMPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT GetRandomPasswordRequest : public RpcServiceRequest - { - - public: - GetRandomPasswordRequest(); - ~GetRandomPasswordRequest(); - - std::string getExcludeLowercase()const; - void setExcludeLowercase(const std::string& excludeLowercase); - std::string getExcludeCharacters()const; - void setExcludeCharacters(const std::string& excludeCharacters); - std::string getPasswordLength()const; - void setPasswordLength(const std::string& passwordLength); - std::string getExcludePunctuation()const; - void setExcludePunctuation(const std::string& excludePunctuation); - std::string getExcludeUppercase()const; - void setExcludeUppercase(const std::string& excludeUppercase); - std::string getRequireEachIncludedType()const; - void setRequireEachIncludedType(const std::string& requireEachIncludedType); - std::string getExcludeNumbers()const; - void setExcludeNumbers(const std::string& excludeNumbers); - - private: - std::string excludeLowercase_; - std::string excludeCharacters_; - std::string passwordLength_; - std::string excludePunctuation_; - std::string excludeUppercase_; - std::string requireEachIncludedType_; - std::string excludeNumbers_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_GETRANDOMPASSWORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_GETRANDOMPASSWORDREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_GETRANDOMPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT GetRandomPasswordRequest : public RpcServiceRequest { +public: + GetRandomPasswordRequest(); + ~GetRandomPasswordRequest(); + std::string getExcludeLowercase() const; + void setExcludeLowercase(const std::string &excludeLowercase); + std::string getExcludeCharacters() const; + void setExcludeCharacters(const std::string &excludeCharacters); + std::string getPasswordLength() const; + void setPasswordLength(const std::string &passwordLength); + std::string getExcludePunctuation() const; + void setExcludePunctuation(const std::string &excludePunctuation); + std::string getExcludeUppercase() const; + void setExcludeUppercase(const std::string &excludeUppercase); + std::string getRequireEachIncludedType() const; + void setRequireEachIncludedType(const std::string &requireEachIncludedType); + std::string getExcludeNumbers() const; + void setExcludeNumbers(const std::string &excludeNumbers); + +private: + std::string excludeLowercase_; + std::string excludeCharacters_; + std::string passwordLength_; + std::string excludePunctuation_; + std::string excludeUppercase_; + std::string requireEachIncludedType_; + std::string excludeNumbers_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_GETRANDOMPASSWORDREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GetSecretValueRequest.h b/kms/include/alibabacloud/kms/model/GetSecretValueRequest.h index 55ebc7c4f..eb4bc76b0 100644 --- a/kms/include/alibabacloud/kms/model/GetSecretValueRequest.h +++ b/kms/include/alibabacloud/kms/model/GetSecretValueRequest.h @@ -1,57 +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_GETSECRETVALUEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_GETSECRETVALUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT GetSecretValueRequest : public RpcServiceRequest - { - - public: - GetSecretValueRequest(); - ~GetSecretValueRequest(); - - std::string getVersionId()const; - void setVersionId(const std::string& versionId); - std::string getVersionStage()const; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_GETSECRETVALUEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_GETSECRETVALUEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_GETSECRETVALUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT GetSecretValueRequest : public RpcServiceRequest { +public: + GetSecretValueRequest(); + ~GetSecretValueRequest(); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + std::string getVersionStage() const; + 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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_GETSECRETVALUEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/GetSecretValueResult.h b/kms/include/alibabacloud/kms/model/GetSecretValueResult.h index 2952c0749..76e55d16b 100644 --- a/kms/include/alibabacloud/kms/model/GetSecretValueResult.h +++ b/kms/include/alibabacloud/kms/model/GetSecretValueResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud GetSecretValueResult(); explicit GetSecretValueResult(const std::string &payload); ~GetSecretValueResult(); - std::string getSecretName()const; std::string getVersionId()const; + std::string getSecretName()const; std::string getNextRotationDate()const; std::string getRotationInterval()const; std::string getLastRotationDate()const; @@ -53,8 +53,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string secretName_; std::string versionId_; + std::string secretName_; std::string nextRotationDate_; std::string rotationInterval_; std::string lastRotationDate_; diff --git a/kms/include/alibabacloud/kms/model/ImportCertificateRequest.h b/kms/include/alibabacloud/kms/model/ImportCertificateRequest.h deleted file mode 100644 index dc50bdf8b..000000000 --- a/kms/include/alibabacloud/kms/model/ImportCertificateRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_KMS_MODEL_IMPORTCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_IMPORTCERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ImportCertificateRequest : public RpcServiceRequest - { - - public: - ImportCertificateRequest(); - ~ImportCertificateRequest(); - - std::string getPKCS12Blob()const; - void setPKCS12Blob(const std::string& pKCS12Blob); - std::string getPassphrase()const; - void setPassphrase(const std::string& passphrase); - - private: - std::string pKCS12Blob_; - std::string passphrase_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_IMPORTCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/ImportCertificateResult.h b/kms/include/alibabacloud/kms/model/ImportCertificateResult.h deleted file mode 100644 index 820598533..000000000 --- a/kms/include/alibabacloud/kms/model/ImportCertificateResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_KMS_MODEL_IMPORTCERTIFICATERESULT_H_ -#define ALIBABACLOUD_KMS_MODEL_IMPORTCERTIFICATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ImportCertificateResult : public ServiceResult - { - public: - - - ImportCertificateResult(); - explicit ImportCertificateResult(const std::string &payload); - ~ImportCertificateResult(); - std::string getCertificateId()const; - std::string getArn()const; - - protected: - void parse(const std::string &payload); - private: - std::string certificateId_; - std::string arn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_IMPORTCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/ImportEncryptionCertificateRequest.h b/kms/include/alibabacloud/kms/model/ImportEncryptionCertificateRequest.h deleted file mode 100644 index 97c354193..000000000 --- a/kms/include/alibabacloud/kms/model/ImportEncryptionCertificateRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_KMS_MODEL_IMPORTENCRYPTIONCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_IMPORTENCRYPTIONCERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ImportEncryptionCertificateRequest : public RpcServiceRequest - { - - public: - ImportEncryptionCertificateRequest(); - ~ImportEncryptionCertificateRequest(); - - std::string getAsymmetricAlgorithm()const; - void setAsymmetricAlgorithm(const std::string& asymmetricAlgorithm); - std::string getSymmetricAlgorithm()const; - void setSymmetricAlgorithm(const std::string& symmetricAlgorithm); - std::string getEncryptedPrivateKey()const; - void setEncryptedPrivateKey(const std::string& encryptedPrivateKey); - std::string getEncryptedSymmetricKey()const; - void setEncryptedSymmetricKey(const std::string& encryptedSymmetricKey); - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getCertificate()const; - void setCertificate(const std::string& certificate); - std::string getCertificateChain()const; - void setCertificateChain(const std::string& certificateChain); - - private: - std::string asymmetricAlgorithm_; - std::string symmetricAlgorithm_; - std::string encryptedPrivateKey_; - std::string encryptedSymmetricKey_; - std::string certificateId_; - std::string certificate_; - std::string certificateChain_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_IMPORTENCRYPTIONCERTIFICATEREQUEST_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/ImportEncryptionCertificateResult.h b/kms/include/alibabacloud/kms/model/ImportEncryptionCertificateResult.h deleted file mode 100644 index a49093f68..000000000 --- a/kms/include/alibabacloud/kms/model/ImportEncryptionCertificateResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_KMS_MODEL_IMPORTENCRYPTIONCERTIFICATERESULT_H_ -#define ALIBABACLOUD_KMS_MODEL_IMPORTENCRYPTIONCERTIFICATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ImportEncryptionCertificateResult : public ServiceResult - { - public: - - - ImportEncryptionCertificateResult(); - explicit ImportEncryptionCertificateResult(const std::string &payload); - ~ImportEncryptionCertificateResult(); - std::string getCertificateId()const; - std::string getArn()const; - - protected: - void parse(const std::string &payload); - private: - std::string certificateId_; - std::string arn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_IMPORTENCRYPTIONCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/ImportKeyMaterialRequest.h b/kms/include/alibabacloud/kms/model/ImportKeyMaterialRequest.h index f3ae944e6..19d2a0765 100644 --- a/kms/include/alibabacloud/kms/model/ImportKeyMaterialRequest.h +++ b/kms/include/alibabacloud/kms/model/ImportKeyMaterialRequest.h @@ -1,57 +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_IMPORTKEYMATERIALREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_IMPORTKEYMATERIALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ImportKeyMaterialRequest : public RpcServiceRequest - { - - public: - ImportKeyMaterialRequest(); - ~ImportKeyMaterialRequest(); - - std::string getImportToken()const; - void setImportToken(const std::string& importToken); - std::string getEncryptedKeyMaterial()const; - void setEncryptedKeyMaterial(const std::string& encryptedKeyMaterial); - long getKeyMaterialExpireUnix()const; - void setKeyMaterialExpireUnix(long keyMaterialExpireUnix); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string importToken_; - std::string encryptedKeyMaterial_; - long keyMaterialExpireUnix_; - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_IMPORTKEYMATERIALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_IMPORTKEYMATERIALREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_IMPORTKEYMATERIALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ImportKeyMaterialRequest : public RpcServiceRequest { +public: + ImportKeyMaterialRequest(); + ~ImportKeyMaterialRequest(); + std::string getImportToken() const; + void setImportToken(const std::string &importToken); + std::string getEncryptedKeyMaterial() const; + void setEncryptedKeyMaterial(const std::string &encryptedKeyMaterial); + long getKeyMaterialExpireUnix() const; + void setKeyMaterialExpireUnix(long keyMaterialExpireUnix); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string importToken_; + std::string encryptedKeyMaterial_; + long keyMaterialExpireUnix_; + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_IMPORTKEYMATERIALREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h b/kms/include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h index ee0f8151e..5e01143cd 100644 --- a/kms/include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h +++ b/kms/include/alibabacloud/kms/model/ListAliasesByKeyIdRequest.h @@ -1,54 +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_KMS_MODEL_LISTALIASESBYKEYIDREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTALIASESBYKEYIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ListAliasesByKeyIdRequest : public RpcServiceRequest - { - - public: - ListAliasesByKeyIdRequest(); - ~ListAliasesByKeyIdRequest(); - - 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_LISTALIASESBYKEYIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_LISTALIASESBYKEYIDREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_LISTALIASESBYKEYIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ListAliasesByKeyIdRequest : public RpcServiceRequest { +public: + ListAliasesByKeyIdRequest(); + ~ListAliasesByKeyIdRequest(); + 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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_LISTALIASESBYKEYIDREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ListAliasesRequest.h b/kms/include/alibabacloud/kms/model/ListAliasesRequest.h index 4d7121bd7..77fcda4aa 100644 --- a/kms/include/alibabacloud/kms/model/ListAliasesRequest.h +++ b/kms/include/alibabacloud/kms/model/ListAliasesRequest.h @@ -1,51 +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_KMS_MODEL_LISTALIASESREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTALIASESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ListAliasesRequest : public RpcServiceRequest - { - - public: - ListAliasesRequest(); - ~ListAliasesRequest(); - - int getPageSize()const; - void setPageSize(int pageSize); - int getPageNumber()const; - void setPageNumber(int pageNumber); - - private: - int pageSize_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_LISTALIASESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_LISTALIASESREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_LISTALIASESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ListAliasesRequest : public RpcServiceRequest { +public: + ListAliasesRequest(); + ~ListAliasesRequest(); + int getPageSize() const; + void setPageSize(int pageSize); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + int pageSize_; + int pageNumber_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_LISTALIASESREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ListCertificatesRequest.h b/kms/include/alibabacloud/kms/model/ListCertificatesRequest.h deleted file mode 100644 index ab6a72c88..000000000 --- a/kms/include/alibabacloud/kms/model/ListCertificatesRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_KMS_MODEL_LISTCERTIFICATESREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTCERTIFICATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ListCertificatesRequest : public RpcServiceRequest - { - - public: - ListCertificatesRequest(); - ~ListCertificatesRequest(); - - std::string getSubject()const; - void setSubject(const std::string& subject); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getIssuer()const; - void setIssuer(const std::string& issuer); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string subject_; - int pageSize_; - std::string issuer_; - int pageNumber_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_LISTCERTIFICATESREQUEST_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/ListCertificatesResult.h b/kms/include/alibabacloud/kms/model/ListCertificatesResult.h deleted file mode 100644 index 1eab76b41..000000000 --- a/kms/include/alibabacloud/kms/model/ListCertificatesResult.h +++ /dev/null @@ -1,67 +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_KMS_MODEL_LISTCERTIFICATESRESULT_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTCERTIFICATESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ListCertificatesResult : public ServiceResult - { - public: - struct CertificateSummary - { - std::string certificateId; - }; - struct Certificate - { - std::string certificateId; - }; - - - ListCertificatesResult(); - explicit ListCertificatesResult(const std::string &payload); - ~ListCertificatesResult(); - int getPageSize()const; - int getPageNumber()const; - std::vector getCertificateSummaryList()const; - std::vector getCertificates()const; - int getTotalSize()const; - - protected: - void parse(const std::string &payload); - private: - int pageSize_; - int pageNumber_; - std::vector certificateSummaryList_; - std::vector certificates_; - int totalSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_LISTCERTIFICATESRESULT_H_ \ No newline at end of file diff --git a/kms/include/alibabacloud/kms/model/ListKeyVersionsRequest.h b/kms/include/alibabacloud/kms/model/ListKeyVersionsRequest.h index a73bd8ca7..8c2ada219 100644 --- a/kms/include/alibabacloud/kms/model/ListKeyVersionsRequest.h +++ b/kms/include/alibabacloud/kms/model/ListKeyVersionsRequest.h @@ -1,54 +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_KMS_MODEL_LISTKEYVERSIONSREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_LISTKEYVERSIONSREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ListKeysRequest.h b/kms/include/alibabacloud/kms/model/ListKeysRequest.h index bf55fa67e..5104a8b31 100644 --- a/kms/include/alibabacloud/kms/model/ListKeysRequest.h +++ b/kms/include/alibabacloud/kms/model/ListKeysRequest.h @@ -1,54 +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_KMS_MODEL_LISTKEYSREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTKEYSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ListKeysRequest : public RpcServiceRequest - { - - public: - ListKeysRequest(); - ~ListKeysRequest(); - - int getPageSize()const; - void setPageSize(int pageSize); - std::string getFilters()const; - void setFilters(const std::string& filters); - int getPageNumber()const; - void setPageNumber(int pageNumber); - - private: - int pageSize_; - std::string filters_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_LISTKEYSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_LISTKEYSREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_LISTKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ListKeysRequest : public RpcServiceRequest { +public: + ListKeysRequest(); + ~ListKeysRequest(); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getFilters() const; + void setFilters(const std::string &filters); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + int pageSize_; + std::string filters_; + int pageNumber_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_LISTKEYSREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ListResourceTagsRequest.h b/kms/include/alibabacloud/kms/model/ListResourceTagsRequest.h index 77784a798..70e47d8a3 100644 --- a/kms/include/alibabacloud/kms/model/ListResourceTagsRequest.h +++ b/kms/include/alibabacloud/kms/model/ListResourceTagsRequest.h @@ -1,48 +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_KMS_MODEL_LISTRESOURCETAGSREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTRESOURCETAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ListResourceTagsRequest : public RpcServiceRequest - { - - public: - ListResourceTagsRequest(); - ~ListResourceTagsRequest(); - - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_LISTRESOURCETAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_LISTRESOURCETAGSREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_LISTRESOURCETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ListResourceTagsRequest : public RpcServiceRequest { +public: + ListResourceTagsRequest(); + ~ListResourceTagsRequest(); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_LISTRESOURCETAGSREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ListSecretVersionIdsRequest.h b/kms/include/alibabacloud/kms/model/ListSecretVersionIdsRequest.h index 41b0f4f90..f6acbadcf 100644 --- a/kms/include/alibabacloud/kms/model/ListSecretVersionIdsRequest.h +++ b/kms/include/alibabacloud/kms/model/ListSecretVersionIdsRequest.h @@ -1,57 +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_LISTSECRETVERSIONIDSREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTSECRETVERSIONIDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ListSecretVersionIdsRequest : public RpcServiceRequest - { - - public: - ListSecretVersionIdsRequest(); - ~ListSecretVersionIdsRequest(); - - std::string getIncludeDeprecated()const; - void setIncludeDeprecated(const std::string& includeDeprecated); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getSecretName()const; - void setSecretName(const std::string& secretName); - int getPageNumber()const; - void setPageNumber(int pageNumber); - - private: - std::string includeDeprecated_; - int pageSize_; - std::string secretName_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_LISTSECRETVERSIONIDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_LISTSECRETVERSIONIDSREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_LISTSECRETVERSIONIDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ListSecretVersionIdsRequest : public RpcServiceRequest { +public: + ListSecretVersionIdsRequest(); + ~ListSecretVersionIdsRequest(); + std::string getIncludeDeprecated() const; + void setIncludeDeprecated(const std::string &includeDeprecated); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSecretName() const; + void setSecretName(const std::string &secretName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + std::string includeDeprecated_; + int pageSize_; + std::string secretName_; + int pageNumber_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_LISTSECRETVERSIONIDSREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ListSecretsRequest.h b/kms/include/alibabacloud/kms/model/ListSecretsRequest.h index 6efa7313b..6565842b1 100644 --- a/kms/include/alibabacloud/kms/model/ListSecretsRequest.h +++ b/kms/include/alibabacloud/kms/model/ListSecretsRequest.h @@ -1,57 +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_LISTSECRETSREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_LISTSECRETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ListSecretsRequest : public RpcServiceRequest - { - - public: - ListSecretsRequest(); - ~ListSecretsRequest(); - - int getPageSize()const; - void setPageSize(int pageSize); - std::string getFilters()const; - void setFilters(const std::string& filters); - std::string getFetchTags()const; - void setFetchTags(const std::string& fetchTags); - int getPageNumber()const; - void setPageNumber(int pageNumber); - - private: - int pageSize_; - std::string filters_; - std::string fetchTags_; - int pageNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_LISTSECRETSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_LISTSECRETSREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_LISTSECRETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ListSecretsRequest : public RpcServiceRequest { +public: + ListSecretsRequest(); + ~ListSecretsRequest(); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getFilters() const; + void setFilters(const std::string &filters); + std::string getFetchTags() const; + void setFetchTags(const std::string &fetchTags); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + int pageSize_; + std::string filters_; + std::string fetchTags_; + int pageNumber_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_LISTSECRETSREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/OpenKmsServiceRequest.h b/kms/include/alibabacloud/kms/model/OpenKmsServiceRequest.h index 188710e1b..5be52cbab 100644 --- a/kms/include/alibabacloud/kms/model/OpenKmsServiceRequest.h +++ b/kms/include/alibabacloud/kms/model/OpenKmsServiceRequest.h @@ -1,45 +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_KMS_MODEL_OPENKMSSERVICEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_OPENKMSSERVICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT OpenKmsServiceRequest : public RpcServiceRequest - { - - public: - OpenKmsServiceRequest(); - ~OpenKmsServiceRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_OPENKMSSERVICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_OPENKMSSERVICEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_OPENKMSSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT OpenKmsServiceRequest : public RpcServiceRequest { +public: + OpenKmsServiceRequest(); + ~OpenKmsServiceRequest(); + +private: +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_OPENKMSSERVICEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/PutSecretValueRequest.h b/kms/include/alibabacloud/kms/model/PutSecretValueRequest.h index 2be71d12c..4b23c8fa9 100644 --- a/kms/include/alibabacloud/kms/model/PutSecretValueRequest.h +++ b/kms/include/alibabacloud/kms/model/PutSecretValueRequest.h @@ -1,60 +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_PUTSECRETVALUEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_PUTSECRETVALUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT PutSecretValueRequest : public RpcServiceRequest - { - - public: - PutSecretValueRequest(); - ~PutSecretValueRequest(); - - std::string getVersionId()const; - void setVersionId(const std::string& versionId); - std::string getVersionStages()const; - void setVersionStages(const std::string& versionStages); - std::string getSecretData()const; - void setSecretData(const std::string& secretData); - std::string getSecretName()const; - void setSecretName(const std::string& secretName); - std::string getSecretDataType()const; - void setSecretDataType(const std::string& secretDataType); - - private: - std::string versionId_; - std::string versionStages_; - std::string secretData_; - std::string secretName_; - std::string secretDataType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_PUTSECRETVALUEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_PUTSECRETVALUEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_PUTSECRETVALUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT PutSecretValueRequest : public RpcServiceRequest { +public: + PutSecretValueRequest(); + ~PutSecretValueRequest(); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + std::string getVersionStages() const; + void setVersionStages(const std::string &versionStages); + std::string getSecretData() const; + void setSecretData(const std::string &secretData); + std::string getSecretName() const; + void setSecretName(const std::string &secretName); + std::string getSecretDataType() const; + void setSecretDataType(const std::string &secretDataType); + +private: + std::string versionId_; + std::string versionStages_; + std::string secretData_; + std::string secretName_; + std::string secretDataType_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_PUTSECRETVALUEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ReEncryptRequest.h b/kms/include/alibabacloud/kms/model/ReEncryptRequest.h index 5d8046a3d..f0243254c 100644 --- a/kms/include/alibabacloud/kms/model/ReEncryptRequest.h +++ b/kms/include/alibabacloud/kms/model/ReEncryptRequest.h @@ -1,66 +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_KMS_MODEL_REENCRYPTREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_REENCRYPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ReEncryptRequest : public RpcServiceRequest - { - - public: - ReEncryptRequest(); - ~ReEncryptRequest(); - - std::string getDestinationEncryptionContext()const; - void setDestinationEncryptionContext(const std::string& destinationEncryptionContext); - std::string getSourceEncryptionAlgorithm()const; - void setSourceEncryptionAlgorithm(const std::string& sourceEncryptionAlgorithm); - std::string getSourceKeyVersionId()const; - void setSourceKeyVersionId(const std::string& sourceKeyVersionId); - std::string getDestinationKeyId()const; - void setDestinationKeyId(const std::string& destinationKeyId); - std::string getSourceKeyId()const; - void setSourceKeyId(const std::string& sourceKeyId); - std::string getSourceEncryptionContext()const; - void setSourceEncryptionContext(const std::string& sourceEncryptionContext); - std::string getCiphertextBlob()const; - void setCiphertextBlob(const std::string& ciphertextBlob); - - private: - std::string destinationEncryptionContext_; - std::string sourceEncryptionAlgorithm_; - std::string sourceKeyVersionId_; - std::string destinationKeyId_; - std::string sourceKeyId_; - std::string sourceEncryptionContext_; - std::string ciphertextBlob_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_REENCRYPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_REENCRYPTREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_REENCRYPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ReEncryptRequest : public RpcServiceRequest { +public: + ReEncryptRequest(); + ~ReEncryptRequest(); + std::string getDestinationEncryptionContext() const; + void setDestinationEncryptionContext(const std::string &destinationEncryptionContext); + std::string getSourceEncryptionAlgorithm() const; + void setSourceEncryptionAlgorithm(const std::string &sourceEncryptionAlgorithm); + std::string getSourceKeyVersionId() const; + void setSourceKeyVersionId(const std::string &sourceKeyVersionId); + std::string getDestinationKeyId() const; + void setDestinationKeyId(const std::string &destinationKeyId); + std::string getSourceKeyId() const; + void setSourceKeyId(const std::string &sourceKeyId); + std::string getSourceEncryptionContext() const; + void setSourceEncryptionContext(const std::string &sourceEncryptionContext); + std::string getCiphertextBlob() const; + void setCiphertextBlob(const std::string &ciphertextBlob); + +private: + std::string destinationEncryptionContext_; + std::string sourceEncryptionAlgorithm_; + std::string sourceKeyVersionId_; + std::string destinationKeyId_; + std::string sourceKeyId_; + std::string sourceEncryptionContext_; + std::string ciphertextBlob_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_REENCRYPTREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/RestoreSecretRequest.h b/kms/include/alibabacloud/kms/model/RestoreSecretRequest.h index cabd5b622..92c1c8e63 100644 --- a/kms/include/alibabacloud/kms/model/RestoreSecretRequest.h +++ b/kms/include/alibabacloud/kms/model/RestoreSecretRequest.h @@ -1,48 +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_KMS_MODEL_RESTORESECRETREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_RESTORESECRETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT RestoreSecretRequest : public RpcServiceRequest - { - - public: - RestoreSecretRequest(); - ~RestoreSecretRequest(); - - std::string getSecretName()const; - void setSecretName(const std::string& secretName); - - private: - std::string secretName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_RESTORESECRETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_RESTORESECRETREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_RESTORESECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT RestoreSecretRequest : public RpcServiceRequest { +public: + RestoreSecretRequest(); + ~RestoreSecretRequest(); + std::string getSecretName() const; + void setSecretName(const std::string &secretName); + +private: + std::string secretName_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_RESTORESECRETREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/RotateSecretRequest.h b/kms/include/alibabacloud/kms/model/RotateSecretRequest.h index 2b9453fc7..5b0f3bbdd 100644 --- a/kms/include/alibabacloud/kms/model/RotateSecretRequest.h +++ b/kms/include/alibabacloud/kms/model/RotateSecretRequest.h @@ -1,51 +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_KMS_MODEL_ROTATESECRETREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_ROTATESECRETREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_ROTATESECRETREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_ROTATESECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_ROTATESECRETREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h b/kms/include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h index b065f35a1..c3678417c 100644 --- a/kms/include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h +++ b/kms/include/alibabacloud/kms/model/ScheduleKeyDeletionRequest.h @@ -1,51 +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_KMS_MODEL_SCHEDULEKEYDELETIONREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_SCHEDULEKEYDELETIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT ScheduleKeyDeletionRequest : public RpcServiceRequest - { - - public: - ScheduleKeyDeletionRequest(); - ~ScheduleKeyDeletionRequest(); - - int getPendingWindowInDays()const; - void setPendingWindowInDays(int pendingWindowInDays); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - int pendingWindowInDays_; - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_SCHEDULEKEYDELETIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_SCHEDULEKEYDELETIONREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_SCHEDULEKEYDELETIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT ScheduleKeyDeletionRequest : public RpcServiceRequest { +public: + ScheduleKeyDeletionRequest(); + ~ScheduleKeyDeletionRequest(); + int getPendingWindowInDays() const; + void setPendingWindowInDays(int pendingWindowInDays); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + int pendingWindowInDays_; + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_SCHEDULEKEYDELETIONREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/SetDeletionProtectionRequest.h b/kms/include/alibabacloud/kms/model/SetDeletionProtectionRequest.h index b05b43e2d..d9ce88572 100644 --- a/kms/include/alibabacloud/kms/model/SetDeletionProtectionRequest.h +++ b/kms/include/alibabacloud/kms/model/SetDeletionProtectionRequest.h @@ -1,54 +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_KMS_MODEL_SETDELETIONPROTECTIONREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_SETDELETIONPROTECTIONREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_SETDELETIONPROTECTIONREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_SETDELETIONPROTECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_SETDELETIONPROTECTIONREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/TagResourceRequest.h b/kms/include/alibabacloud/kms/model/TagResourceRequest.h index a615d737e..dfbdd8951 100644 --- a/kms/include/alibabacloud/kms/model/TagResourceRequest.h +++ b/kms/include/alibabacloud/kms/model/TagResourceRequest.h @@ -1,57 +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_TAGRESOURCEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_TAGRESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT TagResourceRequest : public RpcServiceRequest - { - - public: - TagResourceRequest(); - ~TagResourceRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - std::string getSecretName()const; - void setSecretName(const std::string& secretName); - std::string getTags()const; - void setTags(const std::string& tags); - - private: - std::string certificateId_; - std::string keyId_; - std::string secretName_; - std::string tags_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_TAGRESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_TAGRESOURCEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_TAGRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT TagResourceRequest : public RpcServiceRequest { +public: + TagResourceRequest(); + ~TagResourceRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + std::string getSecretName() const; + void setSecretName(const std::string &secretName); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string certificateId_; + std::string keyId_; + std::string secretName_; + std::string tags_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_TAGRESOURCEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UntagResourceRequest.h b/kms/include/alibabacloud/kms/model/UntagResourceRequest.h index 8dac473ae..930f75daf 100644 --- a/kms/include/alibabacloud/kms/model/UntagResourceRequest.h +++ b/kms/include/alibabacloud/kms/model/UntagResourceRequest.h @@ -1,57 +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_UNTAGRESOURCEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UNTAGRESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT UntagResourceRequest : public RpcServiceRequest - { - - public: - UntagResourceRequest(); - ~UntagResourceRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getTagKeys()const; - void setTagKeys(const std::string& tagKeys); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - std::string getSecretName()const; - void setSecretName(const std::string& secretName); - - private: - std::string certificateId_; - std::string tagKeys_; - std::string keyId_; - std::string secretName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_UNTAGRESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UNTAGRESOURCEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UNTAGRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT UntagResourceRequest : public RpcServiceRequest { +public: + UntagResourceRequest(); + ~UntagResourceRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getTagKeys() const; + void setTagKeys(const std::string &tagKeys); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + std::string getSecretName() const; + void setSecretName(const std::string &secretName); + +private: + std::string certificateId_; + std::string tagKeys_; + std::string keyId_; + std::string secretName_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UNTAGRESOURCEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UpdateAliasRequest.h b/kms/include/alibabacloud/kms/model/UpdateAliasRequest.h index b87d57b5a..335c49600 100644 --- a/kms/include/alibabacloud/kms/model/UpdateAliasRequest.h +++ b/kms/include/alibabacloud/kms/model/UpdateAliasRequest.h @@ -1,51 +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_KMS_MODEL_UPDATEALIASREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UPDATEALIASREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT UpdateAliasRequest : public RpcServiceRequest - { - - public: - UpdateAliasRequest(); - ~UpdateAliasRequest(); - - std::string getAliasName()const; - void setAliasName(const std::string& aliasName); - std::string getKeyId()const; - void setKeyId(const std::string& keyId); - - private: - std::string aliasName_; - std::string keyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_UPDATEALIASREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UPDATEALIASREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UPDATEALIASREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT UpdateAliasRequest : public RpcServiceRequest { +public: + UpdateAliasRequest(); + ~UpdateAliasRequest(); + std::string getAliasName() const; + void setAliasName(const std::string &aliasName); + std::string getKeyId() const; + void setKeyId(const std::string &keyId); + +private: + std::string aliasName_; + std::string keyId_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UPDATEALIASREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UpdateCertificateStatusRequest.h b/kms/include/alibabacloud/kms/model/UpdateCertificateStatusRequest.h index 1b997e65e..6435eb072 100644 --- a/kms/include/alibabacloud/kms/model/UpdateCertificateStatusRequest.h +++ b/kms/include/alibabacloud/kms/model/UpdateCertificateStatusRequest.h @@ -1,51 +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_KMS_MODEL_UPDATECERTIFICATESTATUSREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UPDATECERTIFICATESTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT UpdateCertificateStatusRequest : public RpcServiceRequest - { - - public: - UpdateCertificateStatusRequest(); - ~UpdateCertificateStatusRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getStatus()const; - void setStatus(const std::string& status); - - private: - std::string certificateId_; - std::string status_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_UPDATECERTIFICATESTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UPDATECERTIFICATESTATUSREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UPDATECERTIFICATESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT UpdateCertificateStatusRequest : public RpcServiceRequest { +public: + UpdateCertificateStatusRequest(); + ~UpdateCertificateStatusRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getStatus() const; + void setStatus(const std::string &status); + +private: + std::string certificateId_; + std::string status_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UPDATECERTIFICATESTATUSREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UpdateKeyDescriptionRequest.h b/kms/include/alibabacloud/kms/model/UpdateKeyDescriptionRequest.h index 877f13317..2c562f91b 100644 --- a/kms/include/alibabacloud/kms/model/UpdateKeyDescriptionRequest.h +++ b/kms/include/alibabacloud/kms/model/UpdateKeyDescriptionRequest.h @@ -1,51 +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_KMS_MODEL_UPDATEKEYDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UPDATEKEYDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UPDATEKEYDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UPDATEKEYDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UPDATEKEYDESCRIPTIONREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UpdateRotationPolicyRequest.h b/kms/include/alibabacloud/kms/model/UpdateRotationPolicyRequest.h index 9659d947a..7ba171f2d 100644 --- a/kms/include/alibabacloud/kms/model/UpdateRotationPolicyRequest.h +++ b/kms/include/alibabacloud/kms/model/UpdateRotationPolicyRequest.h @@ -1,54 +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_KMS_MODEL_UPDATEROTATIONPOLICYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UPDATEROTATIONPOLICYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UpdateSecretRequest.h b/kms/include/alibabacloud/kms/model/UpdateSecretRequest.h index e23e63b97..92201780e 100644 --- a/kms/include/alibabacloud/kms/model/UpdateSecretRequest.h +++ b/kms/include/alibabacloud/kms/model/UpdateSecretRequest.h @@ -1,54 +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_KMS_MODEL_UPDATESECRETREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UPDATESECRETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT UpdateSecretRequest : public RpcServiceRequest - { - - public: - UpdateSecretRequest(); - ~UpdateSecretRequest(); - - std::string getDescription()const; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_UPDATESECRETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UPDATESECRETREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UPDATESECRETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT UpdateSecretRequest : public RpcServiceRequest { +public: + UpdateSecretRequest(); + ~UpdateSecretRequest(); + std::string getDescription() const; + 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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UPDATESECRETREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UpdateSecretRotationPolicyRequest.h b/kms/include/alibabacloud/kms/model/UpdateSecretRotationPolicyRequest.h index 00c465c5b..45911eaf6 100644 --- a/kms/include/alibabacloud/kms/model/UpdateSecretRotationPolicyRequest.h +++ b/kms/include/alibabacloud/kms/model/UpdateSecretRotationPolicyRequest.h @@ -1,54 +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_KMS_MODEL_UPDATESECRETROTATIONPOLICYREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UPDATESECRETROTATIONPOLICYREQUEST_H_ - -#include -#include -#include -#include - -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_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UPDATESECRETROTATIONPOLICYREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UPDATESECRETROTATIONPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +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_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UPDATESECRETROTATIONPOLICYREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UpdateSecretVersionStageRequest.h b/kms/include/alibabacloud/kms/model/UpdateSecretVersionStageRequest.h index d363eebad..c62629513 100644 --- a/kms/include/alibabacloud/kms/model/UpdateSecretVersionStageRequest.h +++ b/kms/include/alibabacloud/kms/model/UpdateSecretVersionStageRequest.h @@ -1,57 +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_UPDATESECRETVERSIONSTAGEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UPDATESECRETVERSIONSTAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT UpdateSecretVersionStageRequest : public RpcServiceRequest - { - - public: - UpdateSecretVersionStageRequest(); - ~UpdateSecretVersionStageRequest(); - - std::string getRemoveFromVersion()const; - void setRemoveFromVersion(const std::string& removeFromVersion); - std::string getMoveToVersion()const; - void setMoveToVersion(const std::string& moveToVersion); - std::string getVersionStage()const; - void setVersionStage(const std::string& versionStage); - std::string getSecretName()const; - void setSecretName(const std::string& secretName); - - private: - std::string removeFromVersion_; - std::string moveToVersion_; - std::string versionStage_; - std::string secretName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_UPDATESECRETVERSIONSTAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UPDATESECRETVERSIONSTAGEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UPDATESECRETVERSIONSTAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT UpdateSecretVersionStageRequest : public RpcServiceRequest { +public: + UpdateSecretVersionStageRequest(); + ~UpdateSecretVersionStageRequest(); + std::string getRemoveFromVersion() const; + void setRemoveFromVersion(const std::string &removeFromVersion); + std::string getMoveToVersion() const; + void setMoveToVersion(const std::string &moveToVersion); + std::string getVersionStage() const; + void setVersionStage(const std::string &versionStage); + std::string getSecretName() const; + void setSecretName(const std::string &secretName); + +private: + std::string removeFromVersion_; + std::string moveToVersion_; + std::string versionStage_; + std::string secretName_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UPDATESECRETVERSIONSTAGEREQUEST_H_ diff --git a/kms/include/alibabacloud/kms/model/UploadCertificateRequest.h b/kms/include/alibabacloud/kms/model/UploadCertificateRequest.h index d67f0aaa7..0a7f47066 100644 --- a/kms/include/alibabacloud/kms/model/UploadCertificateRequest.h +++ b/kms/include/alibabacloud/kms/model/UploadCertificateRequest.h @@ -1,54 +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_KMS_MODEL_UPLOADCERTIFICATEREQUEST_H_ -#define ALIBABACLOUD_KMS_MODEL_UPLOADCERTIFICATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Kms - { - namespace Model - { - class ALIBABACLOUD_KMS_EXPORT UploadCertificateRequest : public RpcServiceRequest - { - - public: - UploadCertificateRequest(); - ~UploadCertificateRequest(); - - std::string getCertificateId()const; - void setCertificateId(const std::string& certificateId); - std::string getCertificate()const; - void setCertificate(const std::string& certificate); - std::string getCertificateChain()const; - void setCertificateChain(const std::string& certificateChain); - - private: - std::string certificateId_; - std::string certificate_; - std::string certificateChain_; - - }; - } - } -} -#endif // !ALIBABACLOUD_KMS_MODEL_UPLOADCERTIFICATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_KMS_MODEL_UPLOADCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_KMS_MODEL_UPLOADCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Kms { +namespace Model { +class ALIBABACLOUD_KMS_EXPORT UploadCertificateRequest : public RpcServiceRequest { +public: + UploadCertificateRequest(); + ~UploadCertificateRequest(); + std::string getCertificateId() const; + void setCertificateId(const std::string &certificateId); + std::string getCertificate() const; + void setCertificate(const std::string &certificate); + std::string getCertificateChain() const; + void setCertificateChain(const std::string &certificateChain); + +private: + std::string certificateId_; + std::string certificate_; + std::string certificateChain_; +}; +} // namespace Model +} // namespace Kms +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_KMS_MODEL_UPLOADCERTIFICATEREQUEST_H_ diff --git a/kms/src/KmsClient.cc b/kms/src/KmsClient.cc index 7d1b0bad8..7c44d1c94 100644 --- a/kms/src/KmsClient.cc +++ b/kms/src/KmsClient.cc @@ -951,42 +951,6 @@ KmsClient::DescribeSecretOutcomeCallable KmsClient::describeSecretCallable(const return task->get_future(); } -KmsClient::DescribeServiceOutcome KmsClient::describeService(const DescribeServiceRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeServiceOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeServiceOutcome(DescribeServiceResult(outcome.result())); - else - return DescribeServiceOutcome(outcome.error()); -} - -void KmsClient::describeServiceAsync(const DescribeServiceRequest& request, const DescribeServiceAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeService(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -KmsClient::DescribeServiceOutcomeCallable KmsClient::describeServiceCallable(const DescribeServiceRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeService(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - KmsClient::DisableKeyOutcome KmsClient::disableKey(const DisableKeyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,42 +1059,6 @@ KmsClient::EncryptOutcomeCallable KmsClient::encryptCallable(const EncryptReques return task->get_future(); } -KmsClient::ExportCertificateOutcome KmsClient::exportCertificate(const ExportCertificateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ExportCertificateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ExportCertificateOutcome(ExportCertificateResult(outcome.result())); - else - return ExportCertificateOutcome(outcome.error()); -} - -void KmsClient::exportCertificateAsync(const ExportCertificateRequest& request, const ExportCertificateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, exportCertificate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -KmsClient::ExportCertificateOutcomeCallable KmsClient::exportCertificateCallable(const ExportCertificateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->exportCertificate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - KmsClient::ExportDataKeyOutcome KmsClient::exportDataKey(const ExportDataKeyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1455,78 +1383,6 @@ KmsClient::GetSecretValueOutcomeCallable KmsClient::getSecretValueCallable(const return task->get_future(); } -KmsClient::ImportCertificateOutcome KmsClient::importCertificate(const ImportCertificateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ImportCertificateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ImportCertificateOutcome(ImportCertificateResult(outcome.result())); - else - return ImportCertificateOutcome(outcome.error()); -} - -void KmsClient::importCertificateAsync(const ImportCertificateRequest& request, const ImportCertificateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, importCertificate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -KmsClient::ImportCertificateOutcomeCallable KmsClient::importCertificateCallable(const ImportCertificateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->importCertificate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -KmsClient::ImportEncryptionCertificateOutcome KmsClient::importEncryptionCertificate(const ImportEncryptionCertificateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ImportEncryptionCertificateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ImportEncryptionCertificateOutcome(ImportEncryptionCertificateResult(outcome.result())); - else - return ImportEncryptionCertificateOutcome(outcome.error()); -} - -void KmsClient::importEncryptionCertificateAsync(const ImportEncryptionCertificateRequest& request, const ImportEncryptionCertificateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, importEncryptionCertificate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -KmsClient::ImportEncryptionCertificateOutcomeCallable KmsClient::importEncryptionCertificateCallable(const ImportEncryptionCertificateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->importEncryptionCertificate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - KmsClient::ImportKeyMaterialOutcome KmsClient::importKeyMaterial(const ImportKeyMaterialRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,42 +1491,6 @@ KmsClient::ListAliasesByKeyIdOutcomeCallable KmsClient::listAliasesByKeyIdCallab return task->get_future(); } -KmsClient::ListCertificatesOutcome KmsClient::listCertificates(const ListCertificatesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListCertificatesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListCertificatesOutcome(ListCertificatesResult(outcome.result())); - else - return ListCertificatesOutcome(outcome.error()); -} - -void KmsClient::listCertificatesAsync(const ListCertificatesRequest& request, const ListCertificatesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listCertificates(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -KmsClient::ListCertificatesOutcomeCallable KmsClient::listCertificatesCallable(const ListCertificatesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listCertificates(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - KmsClient::ListKeyVersionsOutcome KmsClient::listKeyVersions(const ListKeyVersionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/kms/src/model/AsymmetricDecryptRequest.cc b/kms/src/model/AsymmetricDecryptRequest.cc index 0c863ee24..7379935c1 100644 --- a/kms/src/model/AsymmetricDecryptRequest.cc +++ b/kms/src/model/AsymmetricDecryptRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::AsymmetricDecryptRequest; - -AsymmetricDecryptRequest::AsymmetricDecryptRequest() : - RpcServiceRequest("kms", "2016-01-20", "AsymmetricDecrypt") -{ - setMethod(HttpRequest::Method::Post); -} - -AsymmetricDecryptRequest::~AsymmetricDecryptRequest() -{} - -std::string AsymmetricDecryptRequest::getKeyVersionId()const -{ - return keyVersionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::AsymmetricDecryptRequest; + +AsymmetricDecryptRequest::AsymmetricDecryptRequest() + : RpcServiceRequest("kms", "2016-01-20", "AsymmetricDecrypt") { + setMethod(HttpRequest::Method::Post); } -void AsymmetricDecryptRequest::setKeyVersionId(const std::string& keyVersionId) -{ - keyVersionId_ = keyVersionId; - setParameter("KeyVersionId", keyVersionId); +AsymmetricDecryptRequest::~AsymmetricDecryptRequest() {} + +std::string AsymmetricDecryptRequest::getKeyVersionId() const { + return keyVersionId_; } -std::string AsymmetricDecryptRequest::getKeyId()const -{ - return keyId_; +void AsymmetricDecryptRequest::setKeyVersionId(const std::string &keyVersionId) { + keyVersionId_ = keyVersionId; + setParameter(std::string("KeyVersionId"), keyVersionId); } -void AsymmetricDecryptRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string AsymmetricDecryptRequest::getKeyId() const { + return keyId_; } -std::string AsymmetricDecryptRequest::getCiphertextBlob()const -{ - return ciphertextBlob_; +void AsymmetricDecryptRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void AsymmetricDecryptRequest::setCiphertextBlob(const std::string& ciphertextBlob) -{ - ciphertextBlob_ = ciphertextBlob; - setParameter("CiphertextBlob", ciphertextBlob); +std::string AsymmetricDecryptRequest::getCiphertextBlob() const { + return ciphertextBlob_; } -std::string AsymmetricDecryptRequest::getAlgorithm()const -{ - return algorithm_; +void AsymmetricDecryptRequest::setCiphertextBlob(const std::string &ciphertextBlob) { + ciphertextBlob_ = ciphertextBlob; + setParameter(std::string("CiphertextBlob"), ciphertextBlob); } -void AsymmetricDecryptRequest::setAlgorithm(const std::string& algorithm) -{ - algorithm_ = algorithm; - setParameter("Algorithm", algorithm); +std::string AsymmetricDecryptRequest::getAlgorithm() const { + return algorithm_; +} + +void AsymmetricDecryptRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); } diff --git a/kms/src/model/AsymmetricDecryptResult.cc b/kms/src/model/AsymmetricDecryptResult.cc index 570cc42d0..d3971ffcf 100644 --- a/kms/src/model/AsymmetricDecryptResult.cc +++ b/kms/src/model/AsymmetricDecryptResult.cc @@ -39,12 +39,12 @@ void AsymmetricDecryptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Plaintext"].isNull()) - plaintext_ = value["Plaintext"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["Plaintext"].isNull()) + plaintext_ = value["Plaintext"].asString(); } diff --git a/kms/src/model/AsymmetricEncryptRequest.cc b/kms/src/model/AsymmetricEncryptRequest.cc index fdb7b6638..f825a7679 100644 --- a/kms/src/model/AsymmetricEncryptRequest.cc +++ b/kms/src/model/AsymmetricEncryptRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::AsymmetricEncryptRequest; - -AsymmetricEncryptRequest::AsymmetricEncryptRequest() : - RpcServiceRequest("kms", "2016-01-20", "AsymmetricEncrypt") -{ - setMethod(HttpRequest::Method::Post); -} - -AsymmetricEncryptRequest::~AsymmetricEncryptRequest() -{} - -std::string AsymmetricEncryptRequest::getKeyVersionId()const -{ - return keyVersionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::AsymmetricEncryptRequest; + +AsymmetricEncryptRequest::AsymmetricEncryptRequest() + : RpcServiceRequest("kms", "2016-01-20", "AsymmetricEncrypt") { + setMethod(HttpRequest::Method::Post); } -void AsymmetricEncryptRequest::setKeyVersionId(const std::string& keyVersionId) -{ - keyVersionId_ = keyVersionId; - setParameter("KeyVersionId", keyVersionId); +AsymmetricEncryptRequest::~AsymmetricEncryptRequest() {} + +std::string AsymmetricEncryptRequest::getKeyVersionId() const { + return keyVersionId_; } -std::string AsymmetricEncryptRequest::getKeyId()const -{ - return keyId_; +void AsymmetricEncryptRequest::setKeyVersionId(const std::string &keyVersionId) { + keyVersionId_ = keyVersionId; + setParameter(std::string("KeyVersionId"), keyVersionId); } -void AsymmetricEncryptRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string AsymmetricEncryptRequest::getKeyId() const { + return keyId_; } -std::string AsymmetricEncryptRequest::getPlaintext()const -{ - return plaintext_; +void AsymmetricEncryptRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void AsymmetricEncryptRequest::setPlaintext(const std::string& plaintext) -{ - plaintext_ = plaintext; - setParameter("Plaintext", plaintext); +std::string AsymmetricEncryptRequest::getPlaintext() const { + return plaintext_; } -std::string AsymmetricEncryptRequest::getAlgorithm()const -{ - return algorithm_; +void AsymmetricEncryptRequest::setPlaintext(const std::string &plaintext) { + plaintext_ = plaintext; + setParameter(std::string("Plaintext"), plaintext); } -void AsymmetricEncryptRequest::setAlgorithm(const std::string& algorithm) -{ - algorithm_ = algorithm; - setParameter("Algorithm", algorithm); +std::string AsymmetricEncryptRequest::getAlgorithm() const { + return algorithm_; +} + +void AsymmetricEncryptRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); } diff --git a/kms/src/model/AsymmetricEncryptResult.cc b/kms/src/model/AsymmetricEncryptResult.cc index a5dadb6c7..02e34d422 100644 --- a/kms/src/model/AsymmetricEncryptResult.cc +++ b/kms/src/model/AsymmetricEncryptResult.cc @@ -39,12 +39,12 @@ void AsymmetricEncryptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CiphertextBlob"].isNull()) - ciphertextBlob_ = value["CiphertextBlob"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["CiphertextBlob"].isNull()) + ciphertextBlob_ = value["CiphertextBlob"].asString(); } diff --git a/kms/src/model/AsymmetricSignRequest.cc b/kms/src/model/AsymmetricSignRequest.cc index b2bd9dbcb..d94b01a1b 100644 --- a/kms/src/model/AsymmetricSignRequest.cc +++ b/kms/src/model/AsymmetricSignRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::AsymmetricSignRequest; - -AsymmetricSignRequest::AsymmetricSignRequest() : - RpcServiceRequest("kms", "2016-01-20", "AsymmetricSign") -{ - setMethod(HttpRequest::Method::Post); -} - -AsymmetricSignRequest::~AsymmetricSignRequest() -{} - -std::string AsymmetricSignRequest::getKeyVersionId()const -{ - return keyVersionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::AsymmetricSignRequest; + +AsymmetricSignRequest::AsymmetricSignRequest() + : RpcServiceRequest("kms", "2016-01-20", "AsymmetricSign") { + setMethod(HttpRequest::Method::Post); } -void AsymmetricSignRequest::setKeyVersionId(const std::string& keyVersionId) -{ - keyVersionId_ = keyVersionId; - setParameter("KeyVersionId", keyVersionId); +AsymmetricSignRequest::~AsymmetricSignRequest() {} + +std::string AsymmetricSignRequest::getKeyVersionId() const { + return keyVersionId_; } -std::string AsymmetricSignRequest::getDigest()const -{ - return digest_; +void AsymmetricSignRequest::setKeyVersionId(const std::string &keyVersionId) { + keyVersionId_ = keyVersionId; + setParameter(std::string("KeyVersionId"), keyVersionId); } -void AsymmetricSignRequest::setDigest(const std::string& digest) -{ - digest_ = digest; - setParameter("Digest", digest); +std::string AsymmetricSignRequest::getDigest() const { + return digest_; } -std::string AsymmetricSignRequest::getKeyId()const -{ - return keyId_; +void AsymmetricSignRequest::setDigest(const std::string &digest) { + digest_ = digest; + setParameter(std::string("Digest"), digest); } -void AsymmetricSignRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string AsymmetricSignRequest::getKeyId() const { + return keyId_; } -std::string AsymmetricSignRequest::getAlgorithm()const -{ - return algorithm_; +void AsymmetricSignRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void AsymmetricSignRequest::setAlgorithm(const std::string& algorithm) -{ - algorithm_ = algorithm; - setParameter("Algorithm", algorithm); +std::string AsymmetricSignRequest::getAlgorithm() const { + return algorithm_; +} + +void AsymmetricSignRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); } diff --git a/kms/src/model/AsymmetricSignResult.cc b/kms/src/model/AsymmetricSignResult.cc index 10b52810c..073f9d74a 100644 --- a/kms/src/model/AsymmetricSignResult.cc +++ b/kms/src/model/AsymmetricSignResult.cc @@ -39,12 +39,12 @@ void AsymmetricSignResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Value"].isNull()) - value_ = value["Value"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["Value"].isNull()) + value_ = value["Value"].asString(); } diff --git a/kms/src/model/AsymmetricVerifyRequest.cc b/kms/src/model/AsymmetricVerifyRequest.cc index f4659fd6e..9625ef489 100644 --- a/kms/src/model/AsymmetricVerifyRequest.cc +++ b/kms/src/model/AsymmetricVerifyRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Kms::Model::AsymmetricVerifyRequest; - -AsymmetricVerifyRequest::AsymmetricVerifyRequest() : - RpcServiceRequest("kms", "2016-01-20", "AsymmetricVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -AsymmetricVerifyRequest::~AsymmetricVerifyRequest() -{} - -std::string AsymmetricVerifyRequest::getKeyVersionId()const -{ - return keyVersionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::AsymmetricVerifyRequest; + +AsymmetricVerifyRequest::AsymmetricVerifyRequest() + : RpcServiceRequest("kms", "2016-01-20", "AsymmetricVerify") { + setMethod(HttpRequest::Method::Post); } -void AsymmetricVerifyRequest::setKeyVersionId(const std::string& keyVersionId) -{ - keyVersionId_ = keyVersionId; - setParameter("KeyVersionId", keyVersionId); +AsymmetricVerifyRequest::~AsymmetricVerifyRequest() {} + +std::string AsymmetricVerifyRequest::getKeyVersionId() const { + return keyVersionId_; } -std::string AsymmetricVerifyRequest::getDigest()const -{ - return digest_; +void AsymmetricVerifyRequest::setKeyVersionId(const std::string &keyVersionId) { + keyVersionId_ = keyVersionId; + setParameter(std::string("KeyVersionId"), keyVersionId); } -void AsymmetricVerifyRequest::setDigest(const std::string& digest) -{ - digest_ = digest; - setParameter("Digest", digest); +std::string AsymmetricVerifyRequest::getDigest() const { + return digest_; } -std::string AsymmetricVerifyRequest::getKeyId()const -{ - return keyId_; +void AsymmetricVerifyRequest::setDigest(const std::string &digest) { + digest_ = digest; + setParameter(std::string("Digest"), digest); } -void AsymmetricVerifyRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string AsymmetricVerifyRequest::getKeyId() const { + return keyId_; } -std::string AsymmetricVerifyRequest::getValue()const -{ - return value_; +void AsymmetricVerifyRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void AsymmetricVerifyRequest::setValue(const std::string& value) -{ - value_ = value; - setParameter("Value", value); +std::string AsymmetricVerifyRequest::getValue() const { + return value_; } -std::string AsymmetricVerifyRequest::getAlgorithm()const -{ - return algorithm_; +void AsymmetricVerifyRequest::setValue(const std::string &value) { + value_ = value; + setParameter(std::string("Value"), value); } -void AsymmetricVerifyRequest::setAlgorithm(const std::string& algorithm) -{ - algorithm_ = algorithm; - setParameter("Algorithm", algorithm); +std::string AsymmetricVerifyRequest::getAlgorithm() const { + return algorithm_; +} + +void AsymmetricVerifyRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); } diff --git a/kms/src/model/AsymmetricVerifyResult.cc b/kms/src/model/AsymmetricVerifyResult.cc index f1376184e..99ab0c783 100644 --- a/kms/src/model/AsymmetricVerifyResult.cc +++ b/kms/src/model/AsymmetricVerifyResult.cc @@ -39,12 +39,12 @@ void AsymmetricVerifyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Value"].isNull()) - value_ = value["Value"].asString() == "true"; - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["Value"].isNull()) + value_ = value["Value"].asString() == "true"; } diff --git a/kms/src/model/CancelKeyDeletionRequest.cc b/kms/src/model/CancelKeyDeletionRequest.cc index 205e04a91..fa31150e6 100644 --- a/kms/src/model/CancelKeyDeletionRequest.cc +++ b/kms/src/model/CancelKeyDeletionRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::CancelKeyDeletionRequest; - -CancelKeyDeletionRequest::CancelKeyDeletionRequest() : - RpcServiceRequest("kms", "2016-01-20", "CancelKeyDeletion") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelKeyDeletionRequest::~CancelKeyDeletionRequest() -{} - -std::string CancelKeyDeletionRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::CancelKeyDeletionRequest; + +CancelKeyDeletionRequest::CancelKeyDeletionRequest() + : RpcServiceRequest("kms", "2016-01-20", "CancelKeyDeletion") { + setMethod(HttpRequest::Method::Post); } -void CancelKeyDeletionRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +CancelKeyDeletionRequest::~CancelKeyDeletionRequest() {} + +std::string CancelKeyDeletionRequest::getKeyId() const { + return keyId_; +} + +void CancelKeyDeletionRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/CertificatePrivateKeyDecryptRequest.cc b/kms/src/model/CertificatePrivateKeyDecryptRequest.cc index 57aa5535a..7801a9d6e 100644 --- a/kms/src/model/CertificatePrivateKeyDecryptRequest.cc +++ b/kms/src/model/CertificatePrivateKeyDecryptRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::CertificatePrivateKeyDecryptRequest; - -CertificatePrivateKeyDecryptRequest::CertificatePrivateKeyDecryptRequest() : - RpcServiceRequest("kms", "2016-01-20", "CertificatePrivateKeyDecrypt") -{ - setMethod(HttpRequest::Method::Post); -} - -CertificatePrivateKeyDecryptRequest::~CertificatePrivateKeyDecryptRequest() -{} - -std::string CertificatePrivateKeyDecryptRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::CertificatePrivateKeyDecryptRequest; + +CertificatePrivateKeyDecryptRequest::CertificatePrivateKeyDecryptRequest() + : RpcServiceRequest("kms", "2016-01-20", "CertificatePrivateKeyDecrypt") { + setMethod(HttpRequest::Method::Post); } -void CertificatePrivateKeyDecryptRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +CertificatePrivateKeyDecryptRequest::~CertificatePrivateKeyDecryptRequest() {} + +std::string CertificatePrivateKeyDecryptRequest::getCertificateId() const { + return certificateId_; } -std::string CertificatePrivateKeyDecryptRequest::getAlgorithm()const -{ - return algorithm_; +void CertificatePrivateKeyDecryptRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void CertificatePrivateKeyDecryptRequest::setAlgorithm(const std::string& algorithm) -{ - algorithm_ = algorithm; - setParameter("Algorithm", algorithm); +std::string CertificatePrivateKeyDecryptRequest::getAlgorithm() const { + return algorithm_; } -std::string CertificatePrivateKeyDecryptRequest::getCiphertextBlob()const -{ - return ciphertextBlob_; +void CertificatePrivateKeyDecryptRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); } -void CertificatePrivateKeyDecryptRequest::setCiphertextBlob(const std::string& ciphertextBlob) -{ - ciphertextBlob_ = ciphertextBlob; - setParameter("CiphertextBlob", ciphertextBlob); +std::string CertificatePrivateKeyDecryptRequest::getCiphertextBlob() const { + return ciphertextBlob_; +} + +void CertificatePrivateKeyDecryptRequest::setCiphertextBlob(const std::string &ciphertextBlob) { + ciphertextBlob_ = ciphertextBlob; + setParameter(std::string("CiphertextBlob"), ciphertextBlob); } diff --git a/kms/src/model/CertificatePrivateKeySignRequest.cc b/kms/src/model/CertificatePrivateKeySignRequest.cc index 758ee33c9..1a0e6ddda 100644 --- a/kms/src/model/CertificatePrivateKeySignRequest.cc +++ b/kms/src/model/CertificatePrivateKeySignRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::CertificatePrivateKeySignRequest; - -CertificatePrivateKeySignRequest::CertificatePrivateKeySignRequest() : - RpcServiceRequest("kms", "2016-01-20", "CertificatePrivateKeySign") -{ - setMethod(HttpRequest::Method::Post); -} - -CertificatePrivateKeySignRequest::~CertificatePrivateKeySignRequest() -{} - -std::string CertificatePrivateKeySignRequest::getMessageType()const -{ - return messageType_; + */ + +#include + +using AlibabaCloud::Kms::Model::CertificatePrivateKeySignRequest; + +CertificatePrivateKeySignRequest::CertificatePrivateKeySignRequest() + : RpcServiceRequest("kms", "2016-01-20", "CertificatePrivateKeySign") { + setMethod(HttpRequest::Method::Post); } -void CertificatePrivateKeySignRequest::setMessageType(const std::string& messageType) -{ - messageType_ = messageType; - setParameter("MessageType", messageType); +CertificatePrivateKeySignRequest::~CertificatePrivateKeySignRequest() {} + +std::string CertificatePrivateKeySignRequest::getMessageType() const { + return messageType_; } -std::string CertificatePrivateKeySignRequest::getCertificateId()const -{ - return certificateId_; +void CertificatePrivateKeySignRequest::setMessageType(const std::string &messageType) { + messageType_ = messageType; + setParameter(std::string("MessageType"), messageType); } -void CertificatePrivateKeySignRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +std::string CertificatePrivateKeySignRequest::getCertificateId() const { + return certificateId_; } -std::string CertificatePrivateKeySignRequest::getMessage()const -{ - return message_; +void CertificatePrivateKeySignRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void CertificatePrivateKeySignRequest::setMessage(const std::string& message) -{ - message_ = message; - setParameter("Message", message); +std::string CertificatePrivateKeySignRequest::getMessage() const { + return message_; } -std::string CertificatePrivateKeySignRequest::getAlgorithm()const -{ - return algorithm_; +void CertificatePrivateKeySignRequest::setMessage(const std::string &message) { + message_ = message; + setParameter(std::string("Message"), message); } -void CertificatePrivateKeySignRequest::setAlgorithm(const std::string& algorithm) -{ - algorithm_ = algorithm; - setParameter("Algorithm", algorithm); +std::string CertificatePrivateKeySignRequest::getAlgorithm() const { + return algorithm_; +} + +void CertificatePrivateKeySignRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); } diff --git a/kms/src/model/CertificatePrivateKeySignResult.cc b/kms/src/model/CertificatePrivateKeySignResult.cc index 2a59eaa90..06b6643e6 100644 --- a/kms/src/model/CertificatePrivateKeySignResult.cc +++ b/kms/src/model/CertificatePrivateKeySignResult.cc @@ -39,10 +39,10 @@ void CertificatePrivateKeySignResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CertificateId"].isNull()) - certificateId_ = value["CertificateId"].asString(); if(!value["SignatureValue"].isNull()) signatureValue_ = value["SignatureValue"].asString(); + if(!value["CertificateId"].isNull()) + certificateId_ = value["CertificateId"].asString(); } diff --git a/kms/src/model/CertificatePublicKeyEncryptRequest.cc b/kms/src/model/CertificatePublicKeyEncryptRequest.cc index b484be160..b2cb24b68 100644 --- a/kms/src/model/CertificatePublicKeyEncryptRequest.cc +++ b/kms/src/model/CertificatePublicKeyEncryptRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::CertificatePublicKeyEncryptRequest; - -CertificatePublicKeyEncryptRequest::CertificatePublicKeyEncryptRequest() : - RpcServiceRequest("kms", "2016-01-20", "CertificatePublicKeyEncrypt") -{ - setMethod(HttpRequest::Method::Post); -} - -CertificatePublicKeyEncryptRequest::~CertificatePublicKeyEncryptRequest() -{} - -std::string CertificatePublicKeyEncryptRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::CertificatePublicKeyEncryptRequest; + +CertificatePublicKeyEncryptRequest::CertificatePublicKeyEncryptRequest() + : RpcServiceRequest("kms", "2016-01-20", "CertificatePublicKeyEncrypt") { + setMethod(HttpRequest::Method::Post); } -void CertificatePublicKeyEncryptRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +CertificatePublicKeyEncryptRequest::~CertificatePublicKeyEncryptRequest() {} + +std::string CertificatePublicKeyEncryptRequest::getCertificateId() const { + return certificateId_; } -std::string CertificatePublicKeyEncryptRequest::getPlaintext()const -{ - return plaintext_; +void CertificatePublicKeyEncryptRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void CertificatePublicKeyEncryptRequest::setPlaintext(const std::string& plaintext) -{ - plaintext_ = plaintext; - setParameter("Plaintext", plaintext); +std::string CertificatePublicKeyEncryptRequest::getPlaintext() const { + return plaintext_; } -std::string CertificatePublicKeyEncryptRequest::getAlgorithm()const -{ - return algorithm_; +void CertificatePublicKeyEncryptRequest::setPlaintext(const std::string &plaintext) { + plaintext_ = plaintext; + setParameter(std::string("Plaintext"), plaintext); } -void CertificatePublicKeyEncryptRequest::setAlgorithm(const std::string& algorithm) -{ - algorithm_ = algorithm; - setParameter("Algorithm", algorithm); +std::string CertificatePublicKeyEncryptRequest::getAlgorithm() const { + return algorithm_; +} + +void CertificatePublicKeyEncryptRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); } diff --git a/kms/src/model/CertificatePublicKeyEncryptResult.cc b/kms/src/model/CertificatePublicKeyEncryptResult.cc index 28acbe0be..13f5c006a 100644 --- a/kms/src/model/CertificatePublicKeyEncryptResult.cc +++ b/kms/src/model/CertificatePublicKeyEncryptResult.cc @@ -39,20 +39,20 @@ void CertificatePublicKeyEncryptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CertificateId"].isNull()) - certificateId_ = value["CertificateId"].asString(); if(!value["CiphertextBlob"].isNull()) ciphertextBlob_ = value["CiphertextBlob"].asString(); + if(!value["CertificateId"].isNull()) + certificateId_ = value["CertificateId"].asString(); } -std::string CertificatePublicKeyEncryptResult::getCertificateId()const -{ - return certificateId_; -} - std::string CertificatePublicKeyEncryptResult::getCiphertextBlob()const { return ciphertextBlob_; } +std::string CertificatePublicKeyEncryptResult::getCertificateId()const +{ + return certificateId_; +} + diff --git a/kms/src/model/CertificatePublicKeyVerifyRequest.cc b/kms/src/model/CertificatePublicKeyVerifyRequest.cc index 89d9ababd..90efffdf2 100644 --- a/kms/src/model/CertificatePublicKeyVerifyRequest.cc +++ b/kms/src/model/CertificatePublicKeyVerifyRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Kms::Model::CertificatePublicKeyVerifyRequest; - -CertificatePublicKeyVerifyRequest::CertificatePublicKeyVerifyRequest() : - RpcServiceRequest("kms", "2016-01-20", "CertificatePublicKeyVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -CertificatePublicKeyVerifyRequest::~CertificatePublicKeyVerifyRequest() -{} - -std::string CertificatePublicKeyVerifyRequest::getSignatureValue()const -{ - return signatureValue_; + */ + +#include + +using AlibabaCloud::Kms::Model::CertificatePublicKeyVerifyRequest; + +CertificatePublicKeyVerifyRequest::CertificatePublicKeyVerifyRequest() + : RpcServiceRequest("kms", "2016-01-20", "CertificatePublicKeyVerify") { + setMethod(HttpRequest::Method::Post); } -void CertificatePublicKeyVerifyRequest::setSignatureValue(const std::string& signatureValue) -{ - signatureValue_ = signatureValue; - setParameter("SignatureValue", signatureValue); +CertificatePublicKeyVerifyRequest::~CertificatePublicKeyVerifyRequest() {} + +std::string CertificatePublicKeyVerifyRequest::getSignatureValue() const { + return signatureValue_; } -std::string CertificatePublicKeyVerifyRequest::getMessageType()const -{ - return messageType_; +void CertificatePublicKeyVerifyRequest::setSignatureValue(const std::string &signatureValue) { + signatureValue_ = signatureValue; + setParameter(std::string("SignatureValue"), signatureValue); } -void CertificatePublicKeyVerifyRequest::setMessageType(const std::string& messageType) -{ - messageType_ = messageType; - setParameter("MessageType", messageType); +std::string CertificatePublicKeyVerifyRequest::getMessageType() const { + return messageType_; } -std::string CertificatePublicKeyVerifyRequest::getCertificateId()const -{ - return certificateId_; +void CertificatePublicKeyVerifyRequest::setMessageType(const std::string &messageType) { + messageType_ = messageType; + setParameter(std::string("MessageType"), messageType); } -void CertificatePublicKeyVerifyRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +std::string CertificatePublicKeyVerifyRequest::getCertificateId() const { + return certificateId_; } -std::string CertificatePublicKeyVerifyRequest::getMessage()const -{ - return message_; +void CertificatePublicKeyVerifyRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void CertificatePublicKeyVerifyRequest::setMessage(const std::string& message) -{ - message_ = message; - setParameter("Message", message); +std::string CertificatePublicKeyVerifyRequest::getMessage() const { + return message_; } -std::string CertificatePublicKeyVerifyRequest::getAlgorithm()const -{ - return algorithm_; +void CertificatePublicKeyVerifyRequest::setMessage(const std::string &message) { + message_ = message; + setParameter(std::string("Message"), message); } -void CertificatePublicKeyVerifyRequest::setAlgorithm(const std::string& algorithm) -{ - algorithm_ = algorithm; - setParameter("Algorithm", algorithm); +std::string CertificatePublicKeyVerifyRequest::getAlgorithm() const { + return algorithm_; +} + +void CertificatePublicKeyVerifyRequest::setAlgorithm(const std::string &algorithm) { + algorithm_ = algorithm; + setParameter(std::string("Algorithm"), algorithm); } diff --git a/kms/src/model/CreateAliasRequest.cc b/kms/src/model/CreateAliasRequest.cc index 2b9e47d52..b7787a439 100644 --- a/kms/src/model/CreateAliasRequest.cc +++ b/kms/src/model/CreateAliasRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::CreateAliasRequest; - -CreateAliasRequest::CreateAliasRequest() : - RpcServiceRequest("kms", "2016-01-20", "CreateAlias") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAliasRequest::~CreateAliasRequest() -{} - -std::string CreateAliasRequest::getAliasName()const -{ - return aliasName_; + */ + +#include + +using AlibabaCloud::Kms::Model::CreateAliasRequest; + +CreateAliasRequest::CreateAliasRequest() + : RpcServiceRequest("kms", "2016-01-20", "CreateAlias") { + setMethod(HttpRequest::Method::Post); } -void CreateAliasRequest::setAliasName(const std::string& aliasName) -{ - aliasName_ = aliasName; - setParameter("AliasName", aliasName); +CreateAliasRequest::~CreateAliasRequest() {} + +std::string CreateAliasRequest::getAliasName() const { + return aliasName_; } -std::string CreateAliasRequest::getKeyId()const -{ - return keyId_; +void CreateAliasRequest::setAliasName(const std::string &aliasName) { + aliasName_ = aliasName; + setParameter(std::string("AliasName"), aliasName); } -void CreateAliasRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string CreateAliasRequest::getKeyId() const { + return keyId_; +} + +void CreateAliasRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/CreateCertificateRequest.cc b/kms/src/model/CreateCertificateRequest.cc index f1d20716f..2374513cc 100644 --- a/kms/src/model/CreateCertificateRequest.cc +++ b/kms/src/model/CreateCertificateRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::CreateCertificateRequest; - -CreateCertificateRequest::CreateCertificateRequest() : - RpcServiceRequest("kms", "2016-01-20", "CreateCertificate") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateCertificateRequest::~CreateCertificateRequest() -{} - -std::string CreateCertificateRequest::getProtectionLevel()const -{ - return protectionLevel_; + */ + +#include + +using AlibabaCloud::Kms::Model::CreateCertificateRequest; + +CreateCertificateRequest::CreateCertificateRequest() + : RpcServiceRequest("kms", "2016-01-20", "CreateCertificate") { + setMethod(HttpRequest::Method::Post); } -void CreateCertificateRequest::setProtectionLevel(const std::string& protectionLevel) -{ - protectionLevel_ = protectionLevel; - setParameter("ProtectionLevel", protectionLevel); +CreateCertificateRequest::~CreateCertificateRequest() {} + +std::string CreateCertificateRequest::getProtectionLevel() const { + return protectionLevel_; } -bool CreateCertificateRequest::getExportablePrivateKey()const -{ - return exportablePrivateKey_; +void CreateCertificateRequest::setProtectionLevel(const std::string &protectionLevel) { + protectionLevel_ = protectionLevel; + setParameter(std::string("ProtectionLevel"), protectionLevel); } -void CreateCertificateRequest::setExportablePrivateKey(bool exportablePrivateKey) -{ - exportablePrivateKey_ = exportablePrivateKey; - setParameter("ExportablePrivateKey", exportablePrivateKey ? "true" : "false"); +bool CreateCertificateRequest::getExportablePrivateKey() const { + return exportablePrivateKey_; } -std::string CreateCertificateRequest::getClientToken()const -{ - return clientToken_; +void CreateCertificateRequest::setExportablePrivateKey(bool exportablePrivateKey) { + exportablePrivateKey_ = exportablePrivateKey; + setParameter(std::string("ExportablePrivateKey"), exportablePrivateKey ? "true" : "false"); } -void CreateCertificateRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +std::string CreateCertificateRequest::getClientToken() const { + return clientToken_; } -std::string CreateCertificateRequest::getSubject()const -{ - return subject_; +void CreateCertificateRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } -void CreateCertificateRequest::setSubject(const std::string& subject) -{ - subject_ = subject; - setParameter("Subject", subject); +std::string CreateCertificateRequest::getSubject() const { + return subject_; } -std::map CreateCertificateRequest::getSubjectAlternativeNames()const -{ - return subjectAlternativeNames_; +void CreateCertificateRequest::setSubject(const std::string &subject) { + subject_ = subject; + setParameter(std::string("Subject"), subject); } -void CreateCertificateRequest::setSubjectAlternativeNames(const std::map& subjectAlternativeNames) -{ - subjectAlternativeNames_ = subjectAlternativeNames; - setJsonParameters("SubjectAlternativeNames", subjectAlternativeNames); +std::map CreateCertificateRequest::getSubjectAlternativeNames() const { + return subjectAlternativeNames_; } -std::string CreateCertificateRequest::getKeySpec()const -{ - return keySpec_; +void CreateCertificateRequest::setSubjectAlternativeNames(std::map subjectAlternativeNames) { + subjectAlternativeNames_ = subjectAlternativeNames; + setParameter(std::string("SubjectAlternativeNames"), subjectAlternativeNames); } -void CreateCertificateRequest::setKeySpec(const std::string& keySpec) -{ - keySpec_ = keySpec; - setParameter("KeySpec", keySpec); +std::string CreateCertificateRequest::getKeySpec() const { + return keySpec_; +} + +void CreateCertificateRequest::setKeySpec(const std::string &keySpec) { + keySpec_ = keySpec; + setParameter(std::string("KeySpec"), keySpec); } diff --git a/kms/src/model/CreateCertificateResult.cc b/kms/src/model/CreateCertificateResult.cc index fdfacddb9..220a22a16 100644 --- a/kms/src/model/CreateCertificateResult.cc +++ b/kms/src/model/CreateCertificateResult.cc @@ -39,12 +39,12 @@ void CreateCertificateResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Csr"].isNull()) + csr_ = value["Csr"].asString(); if(!value["CertificateId"].isNull()) certificateId_ = value["CertificateId"].asString(); if(!value["Arn"].isNull()) arn_ = value["Arn"].asString(); - if(!value["Csr"].isNull()) - csr_ = value["Csr"].asString(); } diff --git a/kms/src/model/CreateKeyRequest.cc b/kms/src/model/CreateKeyRequest.cc index fcb7b4805..7fbd6d115 100644 --- a/kms/src/model/CreateKeyRequest.cc +++ b/kms/src/model/CreateKeyRequest.cc @@ -1,106 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::CreateKeyRequest; - -CreateKeyRequest::CreateKeyRequest() : - RpcServiceRequest("kms", "2016-01-20", "CreateKey") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateKeyRequest::~CreateKeyRequest() -{} - -std::string CreateKeyRequest::getProtectionLevel()const -{ - return protectionLevel_; + */ + +#include + +using AlibabaCloud::Kms::Model::CreateKeyRequest; + +CreateKeyRequest::CreateKeyRequest() + : RpcServiceRequest("kms", "2016-01-20", "CreateKey") { + setMethod(HttpRequest::Method::Post); } -void CreateKeyRequest::setProtectionLevel(const std::string& protectionLevel) -{ - protectionLevel_ = protectionLevel; - setParameter("ProtectionLevel", protectionLevel); +CreateKeyRequest::~CreateKeyRequest() {} + +std::string CreateKeyRequest::getProtectionLevel() const { + return protectionLevel_; } -std::string CreateKeyRequest::getKeyUsage()const -{ - return keyUsage_; +void CreateKeyRequest::setProtectionLevel(const std::string &protectionLevel) { + protectionLevel_ = protectionLevel; + setParameter(std::string("ProtectionLevel"), protectionLevel); } -void CreateKeyRequest::setKeyUsage(const std::string& keyUsage) -{ - keyUsage_ = keyUsage; - setParameter("KeyUsage", keyUsage); +std::string CreateKeyRequest::getKeyUsage() const { + return keyUsage_; } -std::string CreateKeyRequest::getOrigin()const -{ - return origin_; +void CreateKeyRequest::setKeyUsage(const std::string &keyUsage) { + keyUsage_ = keyUsage; + setParameter(std::string("KeyUsage"), keyUsage); } -void CreateKeyRequest::setOrigin(const std::string& origin) -{ - origin_ = origin; - setParameter("Origin", origin); +std::string CreateKeyRequest::getOrigin() const { + return origin_; } -std::string CreateKeyRequest::getDescription()const -{ - return description_; +void CreateKeyRequest::setOrigin(const std::string &origin) { + origin_ = origin; + setParameter(std::string("Origin"), origin); } -void CreateKeyRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateKeyRequest::getDKMSInstanceId() const { + return dKMSInstanceId_; } -std::string CreateKeyRequest::getKeySpec()const -{ - return keySpec_; +void CreateKeyRequest::setDKMSInstanceId(const std::string &dKMSInstanceId) { + dKMSInstanceId_ = dKMSInstanceId; + setParameter(std::string("DKMSInstanceId"), dKMSInstanceId); } -void CreateKeyRequest::setKeySpec(const std::string& keySpec) -{ - keySpec_ = keySpec; - setParameter("KeySpec", keySpec); +std::string CreateKeyRequest::getDescription() const { + return description_; } -std::string CreateKeyRequest::getRotationInterval()const -{ - return rotationInterval_; +void CreateKeyRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateKeyRequest::setRotationInterval(const std::string& rotationInterval) -{ - rotationInterval_ = rotationInterval; - setParameter("RotationInterval", rotationInterval); +std::string CreateKeyRequest::getKeySpec() const { + return keySpec_; } -bool CreateKeyRequest::getEnableAutomaticRotation()const -{ - return enableAutomaticRotation_; +void CreateKeyRequest::setKeySpec(const std::string &keySpec) { + keySpec_ = keySpec; + setParameter(std::string("KeySpec"), keySpec); } -void CreateKeyRequest::setEnableAutomaticRotation(bool enableAutomaticRotation) -{ - enableAutomaticRotation_ = enableAutomaticRotation; - setParameter("EnableAutomaticRotation", enableAutomaticRotation ? "true" : "false"); +std::string CreateKeyRequest::getRotationInterval() const { + return rotationInterval_; +} + +void CreateKeyRequest::setRotationInterval(const std::string &rotationInterval) { + rotationInterval_ = rotationInterval; + setParameter(std::string("RotationInterval"), rotationInterval); +} + +bool CreateKeyRequest::getEnableAutomaticRotation() const { + return enableAutomaticRotation_; +} + +void CreateKeyRequest::setEnableAutomaticRotation(bool enableAutomaticRotation) { + enableAutomaticRotation_ = enableAutomaticRotation; + setParameter(std::string("EnableAutomaticRotation"), enableAutomaticRotation ? "true" : "false"); } diff --git a/kms/src/model/CreateKeyResult.cc b/kms/src/model/CreateKeyResult.cc index 946d5f94b..283334b7c 100644 --- a/kms/src/model/CreateKeyResult.cc +++ b/kms/src/model/CreateKeyResult.cc @@ -40,40 +40,42 @@ void CreateKeyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto keyMetadataNode = value["KeyMetadata"]; - if(!keyMetadataNode["CreationDate"].isNull()) - keyMetadata_.creationDate = keyMetadataNode["CreationDate"].asString(); - if(!keyMetadataNode["Description"].isNull()) - keyMetadata_.description = keyMetadataNode["Description"].asString(); if(!keyMetadataNode["KeyId"].isNull()) keyMetadata_.keyId = keyMetadataNode["KeyId"].asString(); + if(!keyMetadataNode["NextRotationDate"].isNull()) + keyMetadata_.nextRotationDate = keyMetadataNode["NextRotationDate"].asString(); if(!keyMetadataNode["KeyState"].isNull()) keyMetadata_.keyState = keyMetadataNode["KeyState"].asString(); - if(!keyMetadataNode["KeyUsage"].isNull()) - keyMetadata_.keyUsage = keyMetadataNode["KeyUsage"].asString(); - if(!keyMetadataNode["DeleteDate"].isNull()) - keyMetadata_.deleteDate = keyMetadataNode["DeleteDate"].asString(); - if(!keyMetadataNode["Creator"].isNull()) - keyMetadata_.creator = keyMetadataNode["Creator"].asString(); + if(!keyMetadataNode["RotationInterval"].isNull()) + keyMetadata_.rotationInterval = keyMetadataNode["RotationInterval"].asString(); if(!keyMetadataNode["Arn"].isNull()) keyMetadata_.arn = keyMetadataNode["Arn"].asString(); + if(!keyMetadataNode["Creator"].isNull()) + keyMetadata_.creator = keyMetadataNode["Creator"].asString(); + if(!keyMetadataNode["LastRotationDate"].isNull()) + keyMetadata_.lastRotationDate = keyMetadataNode["LastRotationDate"].asString(); + if(!keyMetadataNode["DeleteDate"].isNull()) + keyMetadata_.deleteDate = keyMetadataNode["DeleteDate"].asString(); + if(!keyMetadataNode["PrimaryKeyVersion"].isNull()) + keyMetadata_.primaryKeyVersion = keyMetadataNode["PrimaryKeyVersion"].asString(); + if(!keyMetadataNode["Description"].isNull()) + keyMetadata_.description = keyMetadataNode["Description"].asString(); + if(!keyMetadataNode["KeySpec"].isNull()) + keyMetadata_.keySpec = keyMetadataNode["KeySpec"].asString(); if(!keyMetadataNode["Origin"].isNull()) keyMetadata_.origin = keyMetadataNode["Origin"].asString(); if(!keyMetadataNode["MaterialExpireTime"].isNull()) keyMetadata_.materialExpireTime = keyMetadataNode["MaterialExpireTime"].asString(); - if(!keyMetadataNode["ProtectionLevel"].isNull()) - keyMetadata_.protectionLevel = keyMetadataNode["ProtectionLevel"].asString(); - if(!keyMetadataNode["PrimaryKeyVersion"].isNull()) - keyMetadata_.primaryKeyVersion = keyMetadataNode["PrimaryKeyVersion"].asString(); - if(!keyMetadataNode["LastRotationDate"].isNull()) - keyMetadata_.lastRotationDate = keyMetadataNode["LastRotationDate"].asString(); if(!keyMetadataNode["AutomaticRotation"].isNull()) keyMetadata_.automaticRotation = keyMetadataNode["AutomaticRotation"].asString(); - if(!keyMetadataNode["RotationInterval"].isNull()) - keyMetadata_.rotationInterval = keyMetadataNode["RotationInterval"].asString(); - if(!keyMetadataNode["NextRotationDate"].isNull()) - keyMetadata_.nextRotationDate = keyMetadataNode["NextRotationDate"].asString(); - if(!keyMetadataNode["KeySpec"].isNull()) - keyMetadata_.keySpec = keyMetadataNode["KeySpec"].asString(); + if(!keyMetadataNode["ProtectionLevel"].isNull()) + keyMetadata_.protectionLevel = keyMetadataNode["ProtectionLevel"].asString(); + if(!keyMetadataNode["KeyUsage"].isNull()) + keyMetadata_.keyUsage = keyMetadataNode["KeyUsage"].asString(); + if(!keyMetadataNode["CreationDate"].isNull()) + keyMetadata_.creationDate = keyMetadataNode["CreationDate"].asString(); + if(!keyMetadataNode["DKMSInstanceId"].isNull()) + keyMetadata_.dKMSInstanceId = keyMetadataNode["DKMSInstanceId"].asString(); } diff --git a/kms/src/model/CreateKeyVersionRequest.cc b/kms/src/model/CreateKeyVersionRequest.cc index 44e64d82d..ce760f721 100644 --- a/kms/src/model/CreateKeyVersionRequest.cc +++ b/kms/src/model/CreateKeyVersionRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::CreateKeyVersionRequest; - -CreateKeyVersionRequest::CreateKeyVersionRequest() : - RpcServiceRequest("kms", "2016-01-20", "CreateKeyVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateKeyVersionRequest::~CreateKeyVersionRequest() -{} - -std::string CreateKeyVersionRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::CreateKeyVersionRequest; + +CreateKeyVersionRequest::CreateKeyVersionRequest() + : RpcServiceRequest("kms", "2016-01-20", "CreateKeyVersion") { + setMethod(HttpRequest::Method::Post); } -void CreateKeyVersionRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +CreateKeyVersionRequest::~CreateKeyVersionRequest() {} + +std::string CreateKeyVersionRequest::getKeyId() const { + return keyId_; +} + +void CreateKeyVersionRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/CreateSecretRequest.cc b/kms/src/model/CreateSecretRequest.cc index ec1864c44..0381bf28d 100644 --- a/kms/src/model/CreateSecretRequest.cc +++ b/kms/src/model/CreateSecretRequest.cc @@ -1,150 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::CreateSecretRequest; - -CreateSecretRequest::CreateSecretRequest() : - RpcServiceRequest("kms", "2016-01-20", "CreateSecret") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSecretRequest::~CreateSecretRequest() -{} - -std::string CreateSecretRequest::getSecretType()const -{ - return secretType_; + */ + +#include + +using AlibabaCloud::Kms::Model::CreateSecretRequest; + +CreateSecretRequest::CreateSecretRequest() + : RpcServiceRequest("kms", "2016-01-20", "CreateSecret") { + setMethod(HttpRequest::Method::Post); } -void CreateSecretRequest::setSecretType(const std::string& secretType) -{ - secretType_ = secretType; - setParameter("SecretType", secretType); +CreateSecretRequest::~CreateSecretRequest() {} + +std::string CreateSecretRequest::getSecretType() const { + return secretType_; } -std::string CreateSecretRequest::getVersionId()const -{ - return versionId_; +void CreateSecretRequest::setSecretType(const std::string &secretType) { + secretType_ = secretType; + setParameter(std::string("SecretType"), secretType); } -void CreateSecretRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +std::string CreateSecretRequest::getVersionId() const { + return versionId_; } -std::string CreateSecretRequest::getSecretData()const -{ - return secretData_; +void CreateSecretRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } -void CreateSecretRequest::setSecretData(const std::string& secretData) -{ - secretData_ = secretData; - setParameter("SecretData", secretData); +std::string CreateSecretRequest::getDKMSInstanceId() const { + return dKMSInstanceId_; } -std::string CreateSecretRequest::getDescription()const -{ - return description_; +void CreateSecretRequest::setDKMSInstanceId(const std::string &dKMSInstanceId) { + dKMSInstanceId_ = dKMSInstanceId; + setParameter(std::string("DKMSInstanceId"), dKMSInstanceId); } -void CreateSecretRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateSecretRequest::getSecretData() const { + return secretData_; } -std::string CreateSecretRequest::getRotationInterval()const -{ - return rotationInterval_; +void CreateSecretRequest::setSecretData(const std::string &secretData) { + secretData_ = secretData; + setParameter(std::string("SecretData"), secretData); } -void CreateSecretRequest::setRotationInterval(const std::string& rotationInterval) -{ - rotationInterval_ = rotationInterval; - setParameter("RotationInterval", rotationInterval); +std::string CreateSecretRequest::getDescription() const { + return description_; } -std::string CreateSecretRequest::getSecretName()const -{ - return secretName_; +void CreateSecretRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateSecretRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string CreateSecretRequest::getRotationInterval() const { + return rotationInterval_; } -bool CreateSecretRequest::getEnableAutomaticRotation()const -{ - return enableAutomaticRotation_; +void CreateSecretRequest::setRotationInterval(const std::string &rotationInterval) { + rotationInterval_ = rotationInterval; + setParameter(std::string("RotationInterval"), rotationInterval); } -void CreateSecretRequest::setEnableAutomaticRotation(bool enableAutomaticRotation) -{ - enableAutomaticRotation_ = enableAutomaticRotation; - setParameter("EnableAutomaticRotation", enableAutomaticRotation ? "true" : "false"); +std::string CreateSecretRequest::getSecretName() const { + return secretName_; } -std::string CreateSecretRequest::getEncryptionKeyId()const -{ - return encryptionKeyId_; +void CreateSecretRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } -void CreateSecretRequest::setEncryptionKeyId(const std::string& encryptionKeyId) -{ - encryptionKeyId_ = encryptionKeyId; - setParameter("EncryptionKeyId", encryptionKeyId); +bool CreateSecretRequest::getEnableAutomaticRotation() const { + return enableAutomaticRotation_; } -std::string CreateSecretRequest::getSecretDataType()const -{ - return secretDataType_; +void CreateSecretRequest::setEnableAutomaticRotation(bool enableAutomaticRotation) { + enableAutomaticRotation_ = enableAutomaticRotation; + setParameter(std::string("EnableAutomaticRotation"), enableAutomaticRotation ? "true" : "false"); } -void CreateSecretRequest::setSecretDataType(const std::string& secretDataType) -{ - secretDataType_ = secretDataType; - setParameter("SecretDataType", secretDataType); +std::string CreateSecretRequest::getEncryptionKeyId() const { + return encryptionKeyId_; } -std::string CreateSecretRequest::getTags()const -{ - return tags_; +void CreateSecretRequest::setEncryptionKeyId(const std::string &encryptionKeyId) { + encryptionKeyId_ = encryptionKeyId; + setParameter(std::string("EncryptionKeyId"), encryptionKeyId); } -void CreateSecretRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +std::string CreateSecretRequest::getSecretDataType() const { + return secretDataType_; } -std::string CreateSecretRequest::getExtendedConfig()const -{ - return extendedConfig_; +void CreateSecretRequest::setSecretDataType(const std::string &secretDataType) { + secretDataType_ = secretDataType; + setParameter(std::string("SecretDataType"), secretDataType); } -void CreateSecretRequest::setExtendedConfig(const std::string& extendedConfig) -{ - extendedConfig_ = extendedConfig; - setParameter("ExtendedConfig", extendedConfig); +std::string CreateSecretRequest::getTags() const { + return tags_; +} + +void CreateSecretRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateSecretRequest::getExtendedConfig() const { + return extendedConfig_; +} + +void CreateSecretRequest::setExtendedConfig(const std::string &extendedConfig) { + extendedConfig_ = extendedConfig; + setParameter(std::string("ExtendedConfig"), extendedConfig); } diff --git a/kms/src/model/CreateSecretResult.cc b/kms/src/model/CreateSecretResult.cc index 292b91bfd..05a72b1c8 100644 --- a/kms/src/model/CreateSecretResult.cc +++ b/kms/src/model/CreateSecretResult.cc @@ -39,35 +39,37 @@ void CreateSecretResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Arn"].isNull()) - arn_ = value["Arn"].asString(); - if(!value["VersionId"].isNull()) - versionId_ = value["VersionId"].asString(); - if(!value["SecretName"].isNull()) - secretName_ = value["SecretName"].asString(); - if(!value["SecretType"].isNull()) - secretType_ = value["SecretType"].asString(); if(!value["AutomaticRotation"].isNull()) automaticRotation_ = value["AutomaticRotation"].asString(); - if(!value["RotationInterval"].isNull()) - rotationInterval_ = value["RotationInterval"].asString(); + if(!value["SecretName"].isNull()) + secretName_ = value["SecretName"].asString(); + if(!value["VersionId"].isNull()) + versionId_ = value["VersionId"].asString(); if(!value["NextRotationDate"].isNull()) nextRotationDate_ = value["NextRotationDate"].asString(); + if(!value["SecretType"].isNull()) + secretType_ = value["SecretType"].asString(); + if(!value["RotationInterval"].isNull()) + rotationInterval_ = value["RotationInterval"].asString(); + if(!value["Arn"].isNull()) + arn_ = value["Arn"].asString(); if(!value["ExtendedConfig"].isNull()) extendedConfig_ = value["ExtendedConfig"].asString(); + if(!value["DKMSInstanceId"].isNull()) + dKMSInstanceId_ = value["DKMSInstanceId"].asString(); } -std::string CreateSecretResult::getVersionId()const -{ - return versionId_; -} - std::string CreateSecretResult::getSecretName()const { return secretName_; } +std::string CreateSecretResult::getVersionId()const +{ + return versionId_; +} + std::string CreateSecretResult::getNextRotationDate()const { return nextRotationDate_; @@ -88,6 +90,11 @@ std::string CreateSecretResult::getExtendedConfig()const return extendedConfig_; } +std::string CreateSecretResult::getDKMSInstanceId()const +{ + return dKMSInstanceId_; +} + std::string CreateSecretResult::getArn()const { return arn_; diff --git a/kms/src/model/DecryptRequest.cc b/kms/src/model/DecryptRequest.cc index 28277a77f..dbf78ec6d 100644 --- a/kms/src/model/DecryptRequest.cc +++ b/kms/src/model/DecryptRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DecryptRequest; - -DecryptRequest::DecryptRequest() : - RpcServiceRequest("kms", "2016-01-20", "Decrypt") -{ - setMethod(HttpRequest::Method::Post); -} - -DecryptRequest::~DecryptRequest() -{} - -std::string DecryptRequest::getEncryptionContext()const -{ - return encryptionContext_; + */ + +#include + +using AlibabaCloud::Kms::Model::DecryptRequest; + +DecryptRequest::DecryptRequest() + : RpcServiceRequest("kms", "2016-01-20", "Decrypt") { + setMethod(HttpRequest::Method::Post); } -void DecryptRequest::setEncryptionContext(const std::string& encryptionContext) -{ - encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); +DecryptRequest::~DecryptRequest() {} + +std::string DecryptRequest::getEncryptionContext() const { + return encryptionContext_; } -std::string DecryptRequest::getCiphertextBlob()const -{ - return ciphertextBlob_; +void DecryptRequest::setEncryptionContext(const std::string &encryptionContext) { + encryptionContext_ = encryptionContext; + setParameter(std::string("EncryptionContext"), encryptionContext); } -void DecryptRequest::setCiphertextBlob(const std::string& ciphertextBlob) -{ - ciphertextBlob_ = ciphertextBlob; - setParameter("CiphertextBlob", ciphertextBlob); +std::string DecryptRequest::getCiphertextBlob() const { + return ciphertextBlob_; +} + +void DecryptRequest::setCiphertextBlob(const std::string &ciphertextBlob) { + ciphertextBlob_ = ciphertextBlob; + setParameter(std::string("CiphertextBlob"), ciphertextBlob); } diff --git a/kms/src/model/DecryptResult.cc b/kms/src/model/DecryptResult.cc index 98ea4208c..d3b23ea25 100644 --- a/kms/src/model/DecryptResult.cc +++ b/kms/src/model/DecryptResult.cc @@ -39,12 +39,12 @@ void DecryptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Plaintext"].isNull()) - plaintext_ = value["Plaintext"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["Plaintext"].isNull()) + plaintext_ = value["Plaintext"].asString(); } diff --git a/kms/src/model/DeleteAliasRequest.cc b/kms/src/model/DeleteAliasRequest.cc index da26ec9c5..223253450 100644 --- a/kms/src/model/DeleteAliasRequest.cc +++ b/kms/src/model/DeleteAliasRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DeleteAliasRequest; - -DeleteAliasRequest::DeleteAliasRequest() : - RpcServiceRequest("kms", "2016-01-20", "DeleteAlias") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAliasRequest::~DeleteAliasRequest() -{} - -std::string DeleteAliasRequest::getAliasName()const -{ - return aliasName_; + */ + +#include + +using AlibabaCloud::Kms::Model::DeleteAliasRequest; + +DeleteAliasRequest::DeleteAliasRequest() + : RpcServiceRequest("kms", "2016-01-20", "DeleteAlias") { + setMethod(HttpRequest::Method::Post); } -void DeleteAliasRequest::setAliasName(const std::string& aliasName) -{ - aliasName_ = aliasName; - setParameter("AliasName", aliasName); +DeleteAliasRequest::~DeleteAliasRequest() {} + +std::string DeleteAliasRequest::getAliasName() const { + return aliasName_; +} + +void DeleteAliasRequest::setAliasName(const std::string &aliasName) { + aliasName_ = aliasName; + setParameter(std::string("AliasName"), aliasName); } diff --git a/kms/src/model/DeleteCertificateRequest.cc b/kms/src/model/DeleteCertificateRequest.cc index a723069bf..8859cd063 100644 --- a/kms/src/model/DeleteCertificateRequest.cc +++ b/kms/src/model/DeleteCertificateRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DeleteCertificateRequest; - -DeleteCertificateRequest::DeleteCertificateRequest() : - RpcServiceRequest("kms", "2016-01-20", "DeleteCertificate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCertificateRequest::~DeleteCertificateRequest() -{} - -std::string DeleteCertificateRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::DeleteCertificateRequest; + +DeleteCertificateRequest::DeleteCertificateRequest() + : RpcServiceRequest("kms", "2016-01-20", "DeleteCertificate") { + setMethod(HttpRequest::Method::Post); } -void DeleteCertificateRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +DeleteCertificateRequest::~DeleteCertificateRequest() {} + +std::string DeleteCertificateRequest::getCertificateId() const { + return certificateId_; +} + +void DeleteCertificateRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } diff --git a/kms/src/model/DeleteKeyMaterialRequest.cc b/kms/src/model/DeleteKeyMaterialRequest.cc index 366210d00..682b77e5a 100644 --- a/kms/src/model/DeleteKeyMaterialRequest.cc +++ b/kms/src/model/DeleteKeyMaterialRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DeleteKeyMaterialRequest; - -DeleteKeyMaterialRequest::DeleteKeyMaterialRequest() : - RpcServiceRequest("kms", "2016-01-20", "DeleteKeyMaterial") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteKeyMaterialRequest::~DeleteKeyMaterialRequest() -{} - -std::string DeleteKeyMaterialRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::DeleteKeyMaterialRequest; + +DeleteKeyMaterialRequest::DeleteKeyMaterialRequest() + : RpcServiceRequest("kms", "2016-01-20", "DeleteKeyMaterial") { + setMethod(HttpRequest::Method::Post); } -void DeleteKeyMaterialRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +DeleteKeyMaterialRequest::~DeleteKeyMaterialRequest() {} + +std::string DeleteKeyMaterialRequest::getKeyId() const { + return keyId_; +} + +void DeleteKeyMaterialRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/DeleteSecretRequest.cc b/kms/src/model/DeleteSecretRequest.cc index 17d745f7a..61cea2b25 100644 --- a/kms/src/model/DeleteSecretRequest.cc +++ b/kms/src/model/DeleteSecretRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DeleteSecretRequest; - -DeleteSecretRequest::DeleteSecretRequest() : - RpcServiceRequest("kms", "2016-01-20", "DeleteSecret") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSecretRequest::~DeleteSecretRequest() -{} - -std::string DeleteSecretRequest::getForceDeleteWithoutRecovery()const -{ - return forceDeleteWithoutRecovery_; + */ + +#include + +using AlibabaCloud::Kms::Model::DeleteSecretRequest; + +DeleteSecretRequest::DeleteSecretRequest() + : RpcServiceRequest("kms", "2016-01-20", "DeleteSecret") { + setMethod(HttpRequest::Method::Post); } -void DeleteSecretRequest::setForceDeleteWithoutRecovery(const std::string& forceDeleteWithoutRecovery) -{ - forceDeleteWithoutRecovery_ = forceDeleteWithoutRecovery; - setParameter("ForceDeleteWithoutRecovery", forceDeleteWithoutRecovery); +DeleteSecretRequest::~DeleteSecretRequest() {} + +std::string DeleteSecretRequest::getForceDeleteWithoutRecovery() const { + return forceDeleteWithoutRecovery_; } -std::string DeleteSecretRequest::getRecoveryWindowInDays()const -{ - return recoveryWindowInDays_; +void DeleteSecretRequest::setForceDeleteWithoutRecovery(const std::string &forceDeleteWithoutRecovery) { + forceDeleteWithoutRecovery_ = forceDeleteWithoutRecovery; + setParameter(std::string("ForceDeleteWithoutRecovery"), forceDeleteWithoutRecovery); } -void DeleteSecretRequest::setRecoveryWindowInDays(const std::string& recoveryWindowInDays) -{ - recoveryWindowInDays_ = recoveryWindowInDays; - setParameter("RecoveryWindowInDays", recoveryWindowInDays); +std::string DeleteSecretRequest::getRecoveryWindowInDays() const { + return recoveryWindowInDays_; } -std::string DeleteSecretRequest::getSecretName()const -{ - return secretName_; +void DeleteSecretRequest::setRecoveryWindowInDays(const std::string &recoveryWindowInDays) { + recoveryWindowInDays_ = recoveryWindowInDays; + setParameter(std::string("RecoveryWindowInDays"), recoveryWindowInDays); } -void DeleteSecretRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string DeleteSecretRequest::getSecretName() const { + return secretName_; +} + +void DeleteSecretRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } diff --git a/kms/src/model/DescribeAccountKmsStatusRequest.cc b/kms/src/model/DescribeAccountKmsStatusRequest.cc index 4e74db11c..38ada0052 100644 --- a/kms/src/model/DescribeAccountKmsStatusRequest.cc +++ b/kms/src/model/DescribeAccountKmsStatusRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DescribeAccountKmsStatusRequest; - -DescribeAccountKmsStatusRequest::DescribeAccountKmsStatusRequest() : - RpcServiceRequest("kms", "2016-01-20", "DescribeAccountKmsStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeAccountKmsStatusRequest::~DescribeAccountKmsStatusRequest() -{} - + */ + +#include + +using AlibabaCloud::Kms::Model::DescribeAccountKmsStatusRequest; + +DescribeAccountKmsStatusRequest::DescribeAccountKmsStatusRequest() + : RpcServiceRequest("kms", "2016-01-20", "DescribeAccountKmsStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccountKmsStatusRequest::~DescribeAccountKmsStatusRequest() {} + diff --git a/kms/src/model/DescribeCertificateRequest.cc b/kms/src/model/DescribeCertificateRequest.cc index 1bcf0fcd1..92469a9ed 100644 --- a/kms/src/model/DescribeCertificateRequest.cc +++ b/kms/src/model/DescribeCertificateRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DescribeCertificateRequest; - -DescribeCertificateRequest::DescribeCertificateRequest() : - RpcServiceRequest("kms", "2016-01-20", "DescribeCertificate") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeCertificateRequest::~DescribeCertificateRequest() -{} - -std::string DescribeCertificateRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::DescribeCertificateRequest; + +DescribeCertificateRequest::DescribeCertificateRequest() + : RpcServiceRequest("kms", "2016-01-20", "DescribeCertificate") { + setMethod(HttpRequest::Method::Post); } -void DescribeCertificateRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +DescribeCertificateRequest::~DescribeCertificateRequest() {} + +std::string DescribeCertificateRequest::getCertificateId() const { + return certificateId_; +} + +void DescribeCertificateRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } diff --git a/kms/src/model/DescribeCertificateResult.cc b/kms/src/model/DescribeCertificateResult.cc index 326793282..d578666d1 100644 --- a/kms/src/model/DescribeCertificateResult.cc +++ b/kms/src/model/DescribeCertificateResult.cc @@ -42,40 +42,40 @@ void DescribeCertificateResult::parse(const std::string &payload) auto allSubjectAlternativeNames = value["SubjectAlternativeNames"]["SubjectAlternativeName"]; for (const auto &item : allSubjectAlternativeNames) subjectAlternativeNames_.push_back(item.asString()); - if(!value["CertificateId"].isNull()) - certificateId_ = value["CertificateId"].asString(); - if(!value["Arn"].isNull()) - arn_ = value["Arn"].asString(); - if(!value["KeySpec"].isNull()) - keySpec_ = value["KeySpec"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["CreatedAt"].isNull()) - createdAt_ = value["CreatedAt"].asString(); - if(!value["UpdatedAt"].isNull()) - updatedAt_ = value["UpdatedAt"].asString(); if(!value["Serial"].isNull()) serial_ = value["Serial"].asString(); - if(!value["Subject"].isNull()) - subject_ = value["Subject"].asString(); - if(!value["Issuer"].isNull()) - issuer_ = value["Issuer"].asString(); - if(!value["NotBefore"].isNull()) - notBefore_ = value["NotBefore"].asString(); - if(!value["NotAfter"].isNull()) - notAfter_ = value["NotAfter"].asString(); - if(!value["SignatureAlgorithm"].isNull()) - signatureAlgorithm_ = value["SignatureAlgorithm"].asString(); - if(!value["SubjectPublicKey"].isNull()) - subjectPublicKey_ = value["SubjectPublicKey"].asString(); - if(!value["SubjectKeyIdentifier"].isNull()) - subjectKeyIdentifier_ = value["SubjectKeyIdentifier"].asString(); + if(!value["CreatedAt"].isNull()) + createdAt_ = value["CreatedAt"].asString(); if(!value["Tags"].isNull()) tags_ = value["Tags"].asString(); + if(!value["SubjectKeyIdentifier"].isNull()) + subjectKeyIdentifier_ = value["SubjectKeyIdentifier"].asString(); if(!value["ExportablePrivateKey"].isNull()) exportablePrivateKey_ = value["ExportablePrivateKey"].asString() == "true"; + if(!value["Issuer"].isNull()) + issuer_ = value["Issuer"].asString(); + if(!value["SignatureAlgorithm"].isNull()) + signatureAlgorithm_ = value["SignatureAlgorithm"].asString(); + if(!value["NotAfter"].isNull()) + notAfter_ = value["NotAfter"].asString(); + if(!value["Arn"].isNull()) + arn_ = value["Arn"].asString(); + if(!value["CertificateId"].isNull()) + certificateId_ = value["CertificateId"].asString(); + if(!value["KeySpec"].isNull()) + keySpec_ = value["KeySpec"].asString(); if(!value["ProtectionLevel"].isNull()) protectionLevel_ = value["ProtectionLevel"].asString(); + if(!value["SubjectPublicKey"].isNull()) + subjectPublicKey_ = value["SubjectPublicKey"].asString(); + if(!value["Subject"].isNull()) + subject_ = value["Subject"].asString(); + if(!value["NotBefore"].isNull()) + notBefore_ = value["NotBefore"].asString(); + if(!value["UpdatedAt"].isNull()) + updatedAt_ = value["UpdatedAt"].asString(); } @@ -99,16 +99,16 @@ std::string DescribeCertificateResult::getCertificateId()const return certificateId_; } -std::string DescribeCertificateResult::getKeySpec()const -{ - return keySpec_; -} - std::string DescribeCertificateResult::getCreatedAt()const { return createdAt_; } +std::string DescribeCertificateResult::getKeySpec()const +{ + return keySpec_; +} + std::vector DescribeCertificateResult::getSubjectAlternativeNames()const { return subjectAlternativeNames_; diff --git a/kms/src/model/DescribeKeyRequest.cc b/kms/src/model/DescribeKeyRequest.cc index 509144164..6b86665c2 100644 --- a/kms/src/model/DescribeKeyRequest.cc +++ b/kms/src/model/DescribeKeyRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DescribeKeyRequest; - -DescribeKeyRequest::DescribeKeyRequest() : - RpcServiceRequest("kms", "2016-01-20", "DescribeKey") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeKeyRequest::~DescribeKeyRequest() -{} - -std::string DescribeKeyRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::DescribeKeyRequest; + +DescribeKeyRequest::DescribeKeyRequest() + : RpcServiceRequest("kms", "2016-01-20", "DescribeKey") { + setMethod(HttpRequest::Method::Post); } -void DescribeKeyRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +DescribeKeyRequest::~DescribeKeyRequest() {} + +std::string DescribeKeyRequest::getKeyId() const { + return keyId_; +} + +void DescribeKeyRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/DescribeKeyResult.cc b/kms/src/model/DescribeKeyResult.cc index 4d1a9105d..2944819ff 100644 --- a/kms/src/model/DescribeKeyResult.cc +++ b/kms/src/model/DescribeKeyResult.cc @@ -40,44 +40,46 @@ void DescribeKeyResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto keyMetadataNode = value["KeyMetadata"]; - if(!keyMetadataNode["CreationDate"].isNull()) - keyMetadata_.creationDate = keyMetadataNode["CreationDate"].asString(); - if(!keyMetadataNode["Description"].isNull()) - keyMetadata_.description = keyMetadataNode["Description"].asString(); + if(!keyMetadataNode["DeletionProtection"].isNull()) + keyMetadata_.deletionProtection = keyMetadataNode["DeletionProtection"].asString(); if(!keyMetadataNode["KeyId"].isNull()) keyMetadata_.keyId = keyMetadataNode["KeyId"].asString(); + if(!keyMetadataNode["NextRotationDate"].isNull()) + keyMetadata_.nextRotationDate = keyMetadataNode["NextRotationDate"].asString(); if(!keyMetadataNode["KeyState"].isNull()) keyMetadata_.keyState = keyMetadataNode["KeyState"].asString(); - if(!keyMetadataNode["KeyUsage"].isNull()) - keyMetadata_.keyUsage = keyMetadataNode["KeyUsage"].asString(); - if(!keyMetadataNode["DeleteDate"].isNull()) - keyMetadata_.deleteDate = keyMetadataNode["DeleteDate"].asString(); - if(!keyMetadataNode["Creator"].isNull()) - keyMetadata_.creator = keyMetadataNode["Creator"].asString(); + if(!keyMetadataNode["RotationInterval"].isNull()) + keyMetadata_.rotationInterval = keyMetadataNode["RotationInterval"].asString(); if(!keyMetadataNode["Arn"].isNull()) keyMetadata_.arn = keyMetadataNode["Arn"].asString(); + if(!keyMetadataNode["Creator"].isNull()) + keyMetadata_.creator = keyMetadataNode["Creator"].asString(); + if(!keyMetadataNode["LastRotationDate"].isNull()) + keyMetadata_.lastRotationDate = keyMetadataNode["LastRotationDate"].asString(); + if(!keyMetadataNode["DeleteDate"].isNull()) + keyMetadata_.deleteDate = keyMetadataNode["DeleteDate"].asString(); + if(!keyMetadataNode["PrimaryKeyVersion"].isNull()) + keyMetadata_.primaryKeyVersion = keyMetadataNode["PrimaryKeyVersion"].asString(); + if(!keyMetadataNode["Description"].isNull()) + keyMetadata_.description = keyMetadataNode["Description"].asString(); + if(!keyMetadataNode["KeySpec"].isNull()) + keyMetadata_.keySpec = keyMetadataNode["KeySpec"].asString(); if(!keyMetadataNode["Origin"].isNull()) keyMetadata_.origin = keyMetadataNode["Origin"].asString(); if(!keyMetadataNode["MaterialExpireTime"].isNull()) keyMetadata_.materialExpireTime = keyMetadataNode["MaterialExpireTime"].asString(); - if(!keyMetadataNode["ProtectionLevel"].isNull()) - keyMetadata_.protectionLevel = keyMetadataNode["ProtectionLevel"].asString(); - if(!keyMetadataNode["PrimaryKeyVersion"].isNull()) - keyMetadata_.primaryKeyVersion = keyMetadataNode["PrimaryKeyVersion"].asString(); - if(!keyMetadataNode["LastRotationDate"].isNull()) - keyMetadata_.lastRotationDate = keyMetadataNode["LastRotationDate"].asString(); - if(!keyMetadataNode["AutomaticRotation"].isNull()) - keyMetadata_.automaticRotation = keyMetadataNode["AutomaticRotation"].asString(); - if(!keyMetadataNode["RotationInterval"].isNull()) - keyMetadata_.rotationInterval = keyMetadataNode["RotationInterval"].asString(); - if(!keyMetadataNode["NextRotationDate"].isNull()) - keyMetadata_.nextRotationDate = keyMetadataNode["NextRotationDate"].asString(); - if(!keyMetadataNode["KeySpec"].isNull()) - keyMetadata_.keySpec = keyMetadataNode["KeySpec"].asString(); - if(!keyMetadataNode["DeletionProtection"].isNull()) - keyMetadata_.deletionProtection = keyMetadataNode["DeletionProtection"].asString(); if(!keyMetadataNode["DeletionProtectionDescription"].isNull()) keyMetadata_.deletionProtectionDescription = keyMetadataNode["DeletionProtectionDescription"].asString(); + if(!keyMetadataNode["AutomaticRotation"].isNull()) + keyMetadata_.automaticRotation = keyMetadataNode["AutomaticRotation"].asString(); + if(!keyMetadataNode["ProtectionLevel"].isNull()) + keyMetadata_.protectionLevel = keyMetadataNode["ProtectionLevel"].asString(); + if(!keyMetadataNode["KeyUsage"].isNull()) + keyMetadata_.keyUsage = keyMetadataNode["KeyUsage"].asString(); + if(!keyMetadataNode["CreationDate"].isNull()) + keyMetadata_.creationDate = keyMetadataNode["CreationDate"].asString(); + if(!keyMetadataNode["DKMSInstanceId"].isNull()) + keyMetadata_.dKMSInstanceId = keyMetadataNode["DKMSInstanceId"].asString(); } diff --git a/kms/src/model/DescribeKeyVersionRequest.cc b/kms/src/model/DescribeKeyVersionRequest.cc index 5db378e6f..b03298c26 100644 --- a/kms/src/model/DescribeKeyVersionRequest.cc +++ b/kms/src/model/DescribeKeyVersionRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DescribeKeyVersionRequest; - -DescribeKeyVersionRequest::DescribeKeyVersionRequest() : - RpcServiceRequest("kms", "2016-01-20", "DescribeKeyVersion") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeKeyVersionRequest::~DescribeKeyVersionRequest() -{} - -std::string DescribeKeyVersionRequest::getKeyVersionId()const -{ - return keyVersionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::DescribeKeyVersionRequest; + +DescribeKeyVersionRequest::DescribeKeyVersionRequest() + : RpcServiceRequest("kms", "2016-01-20", "DescribeKeyVersion") { + setMethod(HttpRequest::Method::Post); } -void DescribeKeyVersionRequest::setKeyVersionId(const std::string& keyVersionId) -{ - keyVersionId_ = keyVersionId; - setParameter("KeyVersionId", keyVersionId); +DescribeKeyVersionRequest::~DescribeKeyVersionRequest() {} + +std::string DescribeKeyVersionRequest::getKeyVersionId() const { + return keyVersionId_; } -std::string DescribeKeyVersionRequest::getKeyId()const -{ - return keyId_; +void DescribeKeyVersionRequest::setKeyVersionId(const std::string &keyVersionId) { + keyVersionId_ = keyVersionId; + setParameter(std::string("KeyVersionId"), keyVersionId); } -void DescribeKeyVersionRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string DescribeKeyVersionRequest::getKeyId() const { + return keyId_; +} + +void DescribeKeyVersionRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/DescribeRegionsRequest.cc b/kms/src/model/DescribeRegionsRequest.cc index 8deaad873..36b77ccb8 100644 --- a/kms/src/model/DescribeRegionsRequest.cc +++ b/kms/src/model/DescribeRegionsRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RpcServiceRequest("kms", "2016-01-20", "DescribeRegions") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - + */ + +#include + +using AlibabaCloud::Kms::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RpcServiceRequest("kms", "2016-01-20", "DescribeRegions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() {} + diff --git a/kms/src/model/DescribeSecretRequest.cc b/kms/src/model/DescribeSecretRequest.cc index 1d509bf22..7f468622f 100644 --- a/kms/src/model/DescribeSecretRequest.cc +++ b/kms/src/model/DescribeSecretRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DescribeSecretRequest; - -DescribeSecretRequest::DescribeSecretRequest() : - RpcServiceRequest("kms", "2016-01-20", "DescribeSecret") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeSecretRequest::~DescribeSecretRequest() -{} - -std::string DescribeSecretRequest::getSecretName()const -{ - return secretName_; + */ + +#include + +using AlibabaCloud::Kms::Model::DescribeSecretRequest; + +DescribeSecretRequest::DescribeSecretRequest() + : RpcServiceRequest("kms", "2016-01-20", "DescribeSecret") { + setMethod(HttpRequest::Method::Post); } -void DescribeSecretRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +DescribeSecretRequest::~DescribeSecretRequest() {} + +std::string DescribeSecretRequest::getSecretName() const { + return secretName_; } -std::string DescribeSecretRequest::getFetchTags()const -{ - return fetchTags_; +void DescribeSecretRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } -void DescribeSecretRequest::setFetchTags(const std::string& fetchTags) -{ - fetchTags_ = fetchTags; - setParameter("FetchTags", fetchTags); +std::string DescribeSecretRequest::getFetchTags() const { + return fetchTags_; +} + +void DescribeSecretRequest::setFetchTags(const std::string &fetchTags) { + fetchTags_ = fetchTags; + setParameter(std::string("FetchTags"), fetchTags); } diff --git a/kms/src/model/DescribeSecretResult.cc b/kms/src/model/DescribeSecretResult.cc index cb667482c..dd80e1f4e 100644 --- a/kms/src/model/DescribeSecretResult.cc +++ b/kms/src/model/DescribeSecretResult.cc @@ -43,38 +43,40 @@ void DescribeSecretResult::parse(const std::string &payload) for (auto valueTagsTag : allTagsNode) { Tag tagsObject; - if(!valueTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueTagsTag["TagKey"].asString(); if(!valueTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueTagsTag["TagValue"].asString(); + if(!valueTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueTagsTag["TagKey"].asString(); tags_.push_back(tagsObject); } - if(!value["Arn"].isNull()) - arn_ = value["Arn"].asString(); - if(!value["SecretName"].isNull()) - secretName_ = value["SecretName"].asString(); - if(!value["EncryptionKeyId"].isNull()) - encryptionKeyId_ = value["EncryptionKeyId"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); if(!value["UpdateTime"].isNull()) updateTime_ = value["UpdateTime"].asString(); - if(!value["PlannedDeleteTime"].isNull()) - plannedDeleteTime_ = value["PlannedDeleteTime"].asString(); - if(!value["AutomaticRotation"].isNull()) - automaticRotation_ = value["AutomaticRotation"].asString(); - if(!value["LastRotationDate"].isNull()) - lastRotationDate_ = value["LastRotationDate"].asString(); - if(!value["RotationInterval"].isNull()) - rotationInterval_ = value["RotationInterval"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); if(!value["NextRotationDate"].isNull()) nextRotationDate_ = value["NextRotationDate"].asString(); + if(!value["EncryptionKeyId"].isNull()) + encryptionKeyId_ = value["EncryptionKeyId"].asString(); + if(!value["RotationInterval"].isNull()) + rotationInterval_ = value["RotationInterval"].asString(); + if(!value["Arn"].isNull()) + arn_ = value["Arn"].asString(); if(!value["ExtendedConfig"].isNull()) extendedConfig_ = value["ExtendedConfig"].asString(); + if(!value["LastRotationDate"].isNull()) + lastRotationDate_ = value["LastRotationDate"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["SecretName"].isNull()) + secretName_ = value["SecretName"].asString(); + if(!value["AutomaticRotation"].isNull()) + automaticRotation_ = value["AutomaticRotation"].asString(); if(!value["SecretType"].isNull()) secretType_ = value["SecretType"].asString(); + if(!value["PlannedDeleteTime"].isNull()) + plannedDeleteTime_ = value["PlannedDeleteTime"].asString(); + if(!value["DKMSInstanceId"].isNull()) + dKMSInstanceId_ = value["DKMSInstanceId"].asString(); } @@ -83,16 +85,16 @@ std::string DescribeSecretResult::getDescription()const return description_; } -std::string DescribeSecretResult::getLastRotationDate()const -{ - return lastRotationDate_; -} - std::string DescribeSecretResult::getRotationInterval()const { return rotationInterval_; } +std::string DescribeSecretResult::getLastRotationDate()const +{ + return lastRotationDate_; +} + std::string DescribeSecretResult::getSecretType()const { return secretType_; @@ -103,6 +105,11 @@ std::string DescribeSecretResult::getCreateTime()const return createTime_; } +std::string DescribeSecretResult::getDKMSInstanceId()const +{ + return dKMSInstanceId_; +} + std::string DescribeSecretResult::getAutomaticRotation()const { return automaticRotation_; @@ -123,16 +130,16 @@ std::string DescribeSecretResult::getUpdateTime()const return updateTime_; } -std::string DescribeSecretResult::getPlannedDeleteTime()const -{ - return plannedDeleteTime_; -} - std::string DescribeSecretResult::getExtendedConfig()const { return extendedConfig_; } +std::string DescribeSecretResult::getPlannedDeleteTime()const +{ + return plannedDeleteTime_; +} + std::string DescribeSecretResult::getArn()const { return arn_; diff --git a/kms/src/model/DescribeServiceRequest.cc b/kms/src/model/DescribeServiceRequest.cc deleted file mode 100644 index b10dbdc1e..000000000 --- a/kms/src/model/DescribeServiceRequest.cc +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DescribeServiceRequest; - -DescribeServiceRequest::DescribeServiceRequest() : - RpcServiceRequest("kms", "2016-01-20", "DescribeService") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeServiceRequest::~DescribeServiceRequest() -{} - diff --git a/kms/src/model/DescribeServiceResult.cc b/kms/src/model/DescribeServiceResult.cc deleted file mode 100644 index 9be5e602f..000000000 --- a/kms/src/model/DescribeServiceResult.cc +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Kms; -using namespace AlibabaCloud::Kms::Model; - -DescribeServiceResult::DescribeServiceResult() : - ServiceResult() -{} - -DescribeServiceResult::DescribeServiceResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeServiceResult::~DescribeServiceResult() -{} - -void DescribeServiceResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allProtectionLevelsNode = value["ProtectionLevels"]["ProtectionLevel"]; - for (auto valueProtectionLevelsProtectionLevel : allProtectionLevelsNode) - { - ProtectionLevel protectionLevelsObject; - if(!valueProtectionLevelsProtectionLevel["Type"].isNull()) - protectionLevelsObject.type = valueProtectionLevelsProtectionLevel["Type"].asString(); - protectionLevels_.push_back(protectionLevelsObject); - } - auto allKeySpecsNode = value["KeySpecs"]["KeySpec"]; - for (auto valueKeySpecsKeySpec : allKeySpecsNode) - { - KeySpec keySpecsObject; - if(!valueKeySpecsKeySpec["Name"].isNull()) - keySpecsObject.name = valueKeySpecsKeySpec["Name"].asString(); - auto allSupportedProtectionLevels = value["SupportedProtectionLevels"]["SupportedProtectionLevel"]; - for (auto value : allSupportedProtectionLevels) - keySpecsObject.supportedProtectionLevels.push_back(value.asString()); - auto allUsages = value["Usages"]["Usage"]; - for (auto value : allUsages) - keySpecsObject.usages.push_back(value.asString()); - keySpecs_.push_back(keySpecsObject); - } - -} - -std::vector DescribeServiceResult::getProtectionLevels()const -{ - return protectionLevels_; -} - -std::vector DescribeServiceResult::getKeySpecs()const -{ - return keySpecs_; -} - diff --git a/kms/src/model/DisableKeyRequest.cc b/kms/src/model/DisableKeyRequest.cc index f5591e61b..642b32248 100644 --- a/kms/src/model/DisableKeyRequest.cc +++ b/kms/src/model/DisableKeyRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::DisableKeyRequest; - -DisableKeyRequest::DisableKeyRequest() : - RpcServiceRequest("kms", "2016-01-20", "DisableKey") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableKeyRequest::~DisableKeyRequest() -{} - -std::string DisableKeyRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::DisableKeyRequest; + +DisableKeyRequest::DisableKeyRequest() + : RpcServiceRequest("kms", "2016-01-20", "DisableKey") { + setMethod(HttpRequest::Method::Post); } -void DisableKeyRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +DisableKeyRequest::~DisableKeyRequest() {} + +std::string DisableKeyRequest::getKeyId() const { + return keyId_; +} + +void DisableKeyRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/EnableKeyRequest.cc b/kms/src/model/EnableKeyRequest.cc index 90b008a05..c69724641 100644 --- a/kms/src/model/EnableKeyRequest.cc +++ b/kms/src/model/EnableKeyRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::EnableKeyRequest; - -EnableKeyRequest::EnableKeyRequest() : - RpcServiceRequest("kms", "2016-01-20", "EnableKey") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableKeyRequest::~EnableKeyRequest() -{} - -std::string EnableKeyRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::EnableKeyRequest; + +EnableKeyRequest::EnableKeyRequest() + : RpcServiceRequest("kms", "2016-01-20", "EnableKey") { + setMethod(HttpRequest::Method::Post); } -void EnableKeyRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +EnableKeyRequest::~EnableKeyRequest() {} + +std::string EnableKeyRequest::getKeyId() const { + return keyId_; +} + +void EnableKeyRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/EncryptRequest.cc b/kms/src/model/EncryptRequest.cc index dee5f6f59..dd80c863f 100644 --- a/kms/src/model/EncryptRequest.cc +++ b/kms/src/model/EncryptRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::EncryptRequest; - -EncryptRequest::EncryptRequest() : - RpcServiceRequest("kms", "2016-01-20", "Encrypt") -{ - setMethod(HttpRequest::Method::Post); -} - -EncryptRequest::~EncryptRequest() -{} - -std::string EncryptRequest::getEncryptionContext()const -{ - return encryptionContext_; + */ + +#include + +using AlibabaCloud::Kms::Model::EncryptRequest; + +EncryptRequest::EncryptRequest() + : RpcServiceRequest("kms", "2016-01-20", "Encrypt") { + setMethod(HttpRequest::Method::Post); } -void EncryptRequest::setEncryptionContext(const std::string& encryptionContext) -{ - encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); +EncryptRequest::~EncryptRequest() {} + +std::string EncryptRequest::getEncryptionContext() const { + return encryptionContext_; } -std::string EncryptRequest::getKeyId()const -{ - return keyId_; +void EncryptRequest::setEncryptionContext(const std::string &encryptionContext) { + encryptionContext_ = encryptionContext; + setParameter(std::string("EncryptionContext"), encryptionContext); } -void EncryptRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string EncryptRequest::getKeyId() const { + return keyId_; } -std::string EncryptRequest::getPlaintext()const -{ - return plaintext_; +void EncryptRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void EncryptRequest::setPlaintext(const std::string& plaintext) -{ - plaintext_ = plaintext; - setParameter("Plaintext", plaintext); +std::string EncryptRequest::getPlaintext() const { + return plaintext_; +} + +void EncryptRequest::setPlaintext(const std::string &plaintext) { + plaintext_ = plaintext; + setParameter(std::string("Plaintext"), plaintext); } diff --git a/kms/src/model/EncryptResult.cc b/kms/src/model/EncryptResult.cc index 224066621..58735681d 100644 --- a/kms/src/model/EncryptResult.cc +++ b/kms/src/model/EncryptResult.cc @@ -39,12 +39,12 @@ void EncryptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CiphertextBlob"].isNull()) - ciphertextBlob_ = value["CiphertextBlob"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["CiphertextBlob"].isNull()) + ciphertextBlob_ = value["CiphertextBlob"].asString(); } diff --git a/kms/src/model/ExportCertificateRequest.cc b/kms/src/model/ExportCertificateRequest.cc deleted file mode 100644 index d191ab5ed..000000000 --- a/kms/src/model/ExportCertificateRequest.cc +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ExportCertificateRequest; - -ExportCertificateRequest::ExportCertificateRequest() : - RpcServiceRequest("kms", "2016-01-20", "ExportCertificate") -{ - setMethod(HttpRequest::Method::Post); -} - -ExportCertificateRequest::~ExportCertificateRequest() -{} - -std::string ExportCertificateRequest::getCertificateId()const -{ - return certificateId_; -} - -void ExportCertificateRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); -} - -std::string ExportCertificateRequest::getPassphrase()const -{ - return passphrase_; -} - -void ExportCertificateRequest::setPassphrase(const std::string& passphrase) -{ - passphrase_ = passphrase; - setParameter("Passphrase", passphrase); -} - -std::string ExportCertificateRequest::getExportFormat()const -{ - return exportFormat_; -} - -void ExportCertificateRequest::setExportFormat(const std::string& exportFormat) -{ - exportFormat_ = exportFormat; - setParameter("ExportFormat", exportFormat); -} - diff --git a/kms/src/model/ExportCertificateResult.cc b/kms/src/model/ExportCertificateResult.cc deleted file mode 100644 index a05f099ec..000000000 --- a/kms/src/model/ExportCertificateResult.cc +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Kms; -using namespace AlibabaCloud::Kms::Model; - -ExportCertificateResult::ExportCertificateResult() : - ServiceResult() -{} - -ExportCertificateResult::ExportCertificateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ExportCertificateResult::~ExportCertificateResult() -{} - -void ExportCertificateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CertificateId"].isNull()) - certificateId_ = value["CertificateId"].asString(); - if(!value["Certificate"].isNull()) - certificate_ = value["Certificate"].asString(); - if(!value["CertificateChain"].isNull()) - certificateChain_ = value["CertificateChain"].asString(); - if(!value["PrivateKey"].isNull()) - privateKey_ = value["PrivateKey"].asString(); - if(!value["PKCS12Blob"].isNull()) - pKCS12Blob_ = value["PKCS12Blob"].asString(); - -} - -std::string ExportCertificateResult::getPrivateKey()const -{ - return privateKey_; -} - -std::string ExportCertificateResult::getCertificateId()const -{ - return certificateId_; -} - -std::string ExportCertificateResult::getCertificateChain()const -{ - return certificateChain_; -} - -std::string ExportCertificateResult::getPKCS12Blob()const -{ - return pKCS12Blob_; -} - -std::string ExportCertificateResult::getCertificate()const -{ - return certificate_; -} - diff --git a/kms/src/model/ExportDataKeyRequest.cc b/kms/src/model/ExportDataKeyRequest.cc index 16237799d..ff62604de 100644 --- a/kms/src/model/ExportDataKeyRequest.cc +++ b/kms/src/model/ExportDataKeyRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Kms::Model::ExportDataKeyRequest; - -ExportDataKeyRequest::ExportDataKeyRequest() : - RpcServiceRequest("kms", "2016-01-20", "ExportDataKey") -{ - setMethod(HttpRequest::Method::Post); -} - -ExportDataKeyRequest::~ExportDataKeyRequest() -{} - -std::string ExportDataKeyRequest::getEncryptionContext()const -{ - return encryptionContext_; + */ + +#include + +using AlibabaCloud::Kms::Model::ExportDataKeyRequest; + +ExportDataKeyRequest::ExportDataKeyRequest() + : RpcServiceRequest("kms", "2016-01-20", "ExportDataKey") { + setMethod(HttpRequest::Method::Post); } -void ExportDataKeyRequest::setEncryptionContext(const std::string& encryptionContext) -{ - encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); +ExportDataKeyRequest::~ExportDataKeyRequest() {} + +std::string ExportDataKeyRequest::getEncryptionContext() const { + return encryptionContext_; } -std::string ExportDataKeyRequest::getWrappingAlgorithm()const -{ - return wrappingAlgorithm_; +void ExportDataKeyRequest::setEncryptionContext(const std::string &encryptionContext) { + encryptionContext_ = encryptionContext; + setParameter(std::string("EncryptionContext"), encryptionContext); } -void ExportDataKeyRequest::setWrappingAlgorithm(const std::string& wrappingAlgorithm) -{ - wrappingAlgorithm_ = wrappingAlgorithm; - setParameter("WrappingAlgorithm", wrappingAlgorithm); +std::string ExportDataKeyRequest::getWrappingAlgorithm() const { + return wrappingAlgorithm_; } -std::string ExportDataKeyRequest::getCiphertextBlob()const -{ - return ciphertextBlob_; +void ExportDataKeyRequest::setWrappingAlgorithm(const std::string &wrappingAlgorithm) { + wrappingAlgorithm_ = wrappingAlgorithm; + setParameter(std::string("WrappingAlgorithm"), wrappingAlgorithm); } -void ExportDataKeyRequest::setCiphertextBlob(const std::string& ciphertextBlob) -{ - ciphertextBlob_ = ciphertextBlob; - setParameter("CiphertextBlob", ciphertextBlob); +std::string ExportDataKeyRequest::getCiphertextBlob() const { + return ciphertextBlob_; } -std::string ExportDataKeyRequest::getPublicKeyBlob()const -{ - return publicKeyBlob_; +void ExportDataKeyRequest::setCiphertextBlob(const std::string &ciphertextBlob) { + ciphertextBlob_ = ciphertextBlob; + setParameter(std::string("CiphertextBlob"), ciphertextBlob); } -void ExportDataKeyRequest::setPublicKeyBlob(const std::string& publicKeyBlob) -{ - publicKeyBlob_ = publicKeyBlob; - setParameter("PublicKeyBlob", publicKeyBlob); +std::string ExportDataKeyRequest::getPublicKeyBlob() const { + return publicKeyBlob_; } -std::string ExportDataKeyRequest::getWrappingKeySpec()const -{ - return wrappingKeySpec_; +void ExportDataKeyRequest::setPublicKeyBlob(const std::string &publicKeyBlob) { + publicKeyBlob_ = publicKeyBlob; + setParameter(std::string("PublicKeyBlob"), publicKeyBlob); } -void ExportDataKeyRequest::setWrappingKeySpec(const std::string& wrappingKeySpec) -{ - wrappingKeySpec_ = wrappingKeySpec; - setParameter("WrappingKeySpec", wrappingKeySpec); +std::string ExportDataKeyRequest::getWrappingKeySpec() const { + return wrappingKeySpec_; +} + +void ExportDataKeyRequest::setWrappingKeySpec(const std::string &wrappingKeySpec) { + wrappingKeySpec_ = wrappingKeySpec; + setParameter(std::string("WrappingKeySpec"), wrappingKeySpec); } diff --git a/kms/src/model/ExportDataKeyResult.cc b/kms/src/model/ExportDataKeyResult.cc index 90cf2e5a3..27e56b3e9 100644 --- a/kms/src/model/ExportDataKeyResult.cc +++ b/kms/src/model/ExportDataKeyResult.cc @@ -39,12 +39,12 @@ void ExportDataKeyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ExportedDataKey"].isNull()) - exportedDataKey_ = value["ExportedDataKey"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["ExportedDataKey"].isNull()) + exportedDataKey_ = value["ExportedDataKey"].asString(); } diff --git a/kms/src/model/GenerateAndExportDataKeyRequest.cc b/kms/src/model/GenerateAndExportDataKeyRequest.cc index cb6033b7e..0b3a089e7 100644 --- a/kms/src/model/GenerateAndExportDataKeyRequest.cc +++ b/kms/src/model/GenerateAndExportDataKeyRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::GenerateAndExportDataKeyRequest; - -GenerateAndExportDataKeyRequest::GenerateAndExportDataKeyRequest() : - RpcServiceRequest("kms", "2016-01-20", "GenerateAndExportDataKey") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateAndExportDataKeyRequest::~GenerateAndExportDataKeyRequest() -{} - -std::string GenerateAndExportDataKeyRequest::getEncryptionContext()const -{ - return encryptionContext_; + */ + +#include + +using AlibabaCloud::Kms::Model::GenerateAndExportDataKeyRequest; + +GenerateAndExportDataKeyRequest::GenerateAndExportDataKeyRequest() + : RpcServiceRequest("kms", "2016-01-20", "GenerateAndExportDataKey") { + setMethod(HttpRequest::Method::Post); } -void GenerateAndExportDataKeyRequest::setEncryptionContext(const std::string& encryptionContext) -{ - encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); +GenerateAndExportDataKeyRequest::~GenerateAndExportDataKeyRequest() {} + +std::string GenerateAndExportDataKeyRequest::getEncryptionContext() const { + return encryptionContext_; } -std::string GenerateAndExportDataKeyRequest::getKeyId()const -{ - return keyId_; +void GenerateAndExportDataKeyRequest::setEncryptionContext(const std::string &encryptionContext) { + encryptionContext_ = encryptionContext; + setParameter(std::string("EncryptionContext"), encryptionContext); } -void GenerateAndExportDataKeyRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string GenerateAndExportDataKeyRequest::getKeyId() const { + return keyId_; } -std::string GenerateAndExportDataKeyRequest::getKeySpec()const -{ - return keySpec_; +void GenerateAndExportDataKeyRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void GenerateAndExportDataKeyRequest::setKeySpec(const std::string& keySpec) -{ - keySpec_ = keySpec; - setParameter("KeySpec", keySpec); +std::string GenerateAndExportDataKeyRequest::getKeySpec() const { + return keySpec_; } -int GenerateAndExportDataKeyRequest::getNumberOfBytes()const -{ - return numberOfBytes_; +void GenerateAndExportDataKeyRequest::setKeySpec(const std::string &keySpec) { + keySpec_ = keySpec; + setParameter(std::string("KeySpec"), keySpec); } -void GenerateAndExportDataKeyRequest::setNumberOfBytes(int numberOfBytes) -{ - numberOfBytes_ = numberOfBytes; - setParameter("NumberOfBytes", std::to_string(numberOfBytes)); +int GenerateAndExportDataKeyRequest::getNumberOfBytes() const { + return numberOfBytes_; } -std::string GenerateAndExportDataKeyRequest::getWrappingAlgorithm()const -{ - return wrappingAlgorithm_; +void GenerateAndExportDataKeyRequest::setNumberOfBytes(int numberOfBytes) { + numberOfBytes_ = numberOfBytes; + setParameter(std::string("NumberOfBytes"), std::to_string(numberOfBytes)); } -void GenerateAndExportDataKeyRequest::setWrappingAlgorithm(const std::string& wrappingAlgorithm) -{ - wrappingAlgorithm_ = wrappingAlgorithm; - setParameter("WrappingAlgorithm", wrappingAlgorithm); +std::string GenerateAndExportDataKeyRequest::getWrappingAlgorithm() const { + return wrappingAlgorithm_; } -std::string GenerateAndExportDataKeyRequest::getPublicKeyBlob()const -{ - return publicKeyBlob_; +void GenerateAndExportDataKeyRequest::setWrappingAlgorithm(const std::string &wrappingAlgorithm) { + wrappingAlgorithm_ = wrappingAlgorithm; + setParameter(std::string("WrappingAlgorithm"), wrappingAlgorithm); } -void GenerateAndExportDataKeyRequest::setPublicKeyBlob(const std::string& publicKeyBlob) -{ - publicKeyBlob_ = publicKeyBlob; - setParameter("PublicKeyBlob", publicKeyBlob); +std::string GenerateAndExportDataKeyRequest::getPublicKeyBlob() const { + return publicKeyBlob_; } -std::string GenerateAndExportDataKeyRequest::getWrappingKeySpec()const -{ - return wrappingKeySpec_; +void GenerateAndExportDataKeyRequest::setPublicKeyBlob(const std::string &publicKeyBlob) { + publicKeyBlob_ = publicKeyBlob; + setParameter(std::string("PublicKeyBlob"), publicKeyBlob); } -void GenerateAndExportDataKeyRequest::setWrappingKeySpec(const std::string& wrappingKeySpec) -{ - wrappingKeySpec_ = wrappingKeySpec; - setParameter("WrappingKeySpec", wrappingKeySpec); +std::string GenerateAndExportDataKeyRequest::getWrappingKeySpec() const { + return wrappingKeySpec_; +} + +void GenerateAndExportDataKeyRequest::setWrappingKeySpec(const std::string &wrappingKeySpec) { + wrappingKeySpec_ = wrappingKeySpec; + setParameter(std::string("WrappingKeySpec"), wrappingKeySpec); } diff --git a/kms/src/model/GenerateAndExportDataKeyResult.cc b/kms/src/model/GenerateAndExportDataKeyResult.cc index f466e5c36..7290b26de 100644 --- a/kms/src/model/GenerateAndExportDataKeyResult.cc +++ b/kms/src/model/GenerateAndExportDataKeyResult.cc @@ -39,14 +39,14 @@ void GenerateAndExportDataKeyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CiphertextBlob"].isNull()) - ciphertextBlob_ = value["CiphertextBlob"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); - if(!value["ExportedDataKey"].isNull()) - exportedDataKey_ = value["ExportedDataKey"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["CiphertextBlob"].isNull()) + ciphertextBlob_ = value["CiphertextBlob"].asString(); + if(!value["ExportedDataKey"].isNull()) + exportedDataKey_ = value["ExportedDataKey"].asString(); } diff --git a/kms/src/model/GenerateDataKeyRequest.cc b/kms/src/model/GenerateDataKeyRequest.cc index e28745aea..dacd73421 100644 --- a/kms/src/model/GenerateDataKeyRequest.cc +++ b/kms/src/model/GenerateDataKeyRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::GenerateDataKeyRequest; - -GenerateDataKeyRequest::GenerateDataKeyRequest() : - RpcServiceRequest("kms", "2016-01-20", "GenerateDataKey") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateDataKeyRequest::~GenerateDataKeyRequest() -{} - -std::string GenerateDataKeyRequest::getEncryptionContext()const -{ - return encryptionContext_; + */ + +#include + +using AlibabaCloud::Kms::Model::GenerateDataKeyRequest; + +GenerateDataKeyRequest::GenerateDataKeyRequest() + : RpcServiceRequest("kms", "2016-01-20", "GenerateDataKey") { + setMethod(HttpRequest::Method::Post); } -void GenerateDataKeyRequest::setEncryptionContext(const std::string& encryptionContext) -{ - encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); +GenerateDataKeyRequest::~GenerateDataKeyRequest() {} + +std::string GenerateDataKeyRequest::getEncryptionContext() const { + return encryptionContext_; } -std::string GenerateDataKeyRequest::getKeyId()const -{ - return keyId_; +void GenerateDataKeyRequest::setEncryptionContext(const std::string &encryptionContext) { + encryptionContext_ = encryptionContext; + setParameter(std::string("EncryptionContext"), encryptionContext); } -void GenerateDataKeyRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string GenerateDataKeyRequest::getKeyId() const { + return keyId_; } -std::string GenerateDataKeyRequest::getKeySpec()const -{ - return keySpec_; +void GenerateDataKeyRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void GenerateDataKeyRequest::setKeySpec(const std::string& keySpec) -{ - keySpec_ = keySpec; - setParameter("KeySpec", keySpec); +std::string GenerateDataKeyRequest::getKeySpec() const { + return keySpec_; } -int GenerateDataKeyRequest::getNumberOfBytes()const -{ - return numberOfBytes_; +void GenerateDataKeyRequest::setKeySpec(const std::string &keySpec) { + keySpec_ = keySpec; + setParameter(std::string("KeySpec"), keySpec); } -void GenerateDataKeyRequest::setNumberOfBytes(int numberOfBytes) -{ - numberOfBytes_ = numberOfBytes; - setParameter("NumberOfBytes", std::to_string(numberOfBytes)); +int GenerateDataKeyRequest::getNumberOfBytes() const { + return numberOfBytes_; +} + +void GenerateDataKeyRequest::setNumberOfBytes(int numberOfBytes) { + numberOfBytes_ = numberOfBytes; + setParameter(std::string("NumberOfBytes"), std::to_string(numberOfBytes)); } diff --git a/kms/src/model/GenerateDataKeyResult.cc b/kms/src/model/GenerateDataKeyResult.cc index e485307d7..7f650455c 100644 --- a/kms/src/model/GenerateDataKeyResult.cc +++ b/kms/src/model/GenerateDataKeyResult.cc @@ -39,14 +39,14 @@ void GenerateDataKeyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CiphertextBlob"].isNull()) - ciphertextBlob_ = value["CiphertextBlob"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); - if(!value["Plaintext"].isNull()) - plaintext_ = value["Plaintext"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["CiphertextBlob"].isNull()) + ciphertextBlob_ = value["CiphertextBlob"].asString(); + if(!value["Plaintext"].isNull()) + plaintext_ = value["Plaintext"].asString(); } diff --git a/kms/src/model/GenerateDataKeyWithoutPlaintextRequest.cc b/kms/src/model/GenerateDataKeyWithoutPlaintextRequest.cc index c4f4abe27..550da21c2 100644 --- a/kms/src/model/GenerateDataKeyWithoutPlaintextRequest.cc +++ b/kms/src/model/GenerateDataKeyWithoutPlaintextRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::GenerateDataKeyWithoutPlaintextRequest; - -GenerateDataKeyWithoutPlaintextRequest::GenerateDataKeyWithoutPlaintextRequest() : - RpcServiceRequest("kms", "2016-01-20", "GenerateDataKeyWithoutPlaintext") -{ - setMethod(HttpRequest::Method::Post); -} - -GenerateDataKeyWithoutPlaintextRequest::~GenerateDataKeyWithoutPlaintextRequest() -{} - -std::string GenerateDataKeyWithoutPlaintextRequest::getEncryptionContext()const -{ - return encryptionContext_; + */ + +#include + +using AlibabaCloud::Kms::Model::GenerateDataKeyWithoutPlaintextRequest; + +GenerateDataKeyWithoutPlaintextRequest::GenerateDataKeyWithoutPlaintextRequest() + : RpcServiceRequest("kms", "2016-01-20", "GenerateDataKeyWithoutPlaintext") { + setMethod(HttpRequest::Method::Post); } -void GenerateDataKeyWithoutPlaintextRequest::setEncryptionContext(const std::string& encryptionContext) -{ - encryptionContext_ = encryptionContext; - setParameter("EncryptionContext", encryptionContext); +GenerateDataKeyWithoutPlaintextRequest::~GenerateDataKeyWithoutPlaintextRequest() {} + +std::string GenerateDataKeyWithoutPlaintextRequest::getEncryptionContext() const { + return encryptionContext_; } -std::string GenerateDataKeyWithoutPlaintextRequest::getKeyId()const -{ - return keyId_; +void GenerateDataKeyWithoutPlaintextRequest::setEncryptionContext(const std::string &encryptionContext) { + encryptionContext_ = encryptionContext; + setParameter(std::string("EncryptionContext"), encryptionContext); } -void GenerateDataKeyWithoutPlaintextRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string GenerateDataKeyWithoutPlaintextRequest::getKeyId() const { + return keyId_; } -std::string GenerateDataKeyWithoutPlaintextRequest::getKeySpec()const -{ - return keySpec_; +void GenerateDataKeyWithoutPlaintextRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void GenerateDataKeyWithoutPlaintextRequest::setKeySpec(const std::string& keySpec) -{ - keySpec_ = keySpec; - setParameter("KeySpec", keySpec); +std::string GenerateDataKeyWithoutPlaintextRequest::getKeySpec() const { + return keySpec_; } -int GenerateDataKeyWithoutPlaintextRequest::getNumberOfBytes()const -{ - return numberOfBytes_; +void GenerateDataKeyWithoutPlaintextRequest::setKeySpec(const std::string &keySpec) { + keySpec_ = keySpec; + setParameter(std::string("KeySpec"), keySpec); } -void GenerateDataKeyWithoutPlaintextRequest::setNumberOfBytes(int numberOfBytes) -{ - numberOfBytes_ = numberOfBytes; - setParameter("NumberOfBytes", std::to_string(numberOfBytes)); +int GenerateDataKeyWithoutPlaintextRequest::getNumberOfBytes() const { + return numberOfBytes_; +} + +void GenerateDataKeyWithoutPlaintextRequest::setNumberOfBytes(int numberOfBytes) { + numberOfBytes_ = numberOfBytes; + setParameter(std::string("NumberOfBytes"), std::to_string(numberOfBytes)); } diff --git a/kms/src/model/GenerateDataKeyWithoutPlaintextResult.cc b/kms/src/model/GenerateDataKeyWithoutPlaintextResult.cc index 243e488db..5cc6226b1 100644 --- a/kms/src/model/GenerateDataKeyWithoutPlaintextResult.cc +++ b/kms/src/model/GenerateDataKeyWithoutPlaintextResult.cc @@ -39,12 +39,12 @@ void GenerateDataKeyWithoutPlaintextResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CiphertextBlob"].isNull()) - ciphertextBlob_ = value["CiphertextBlob"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["CiphertextBlob"].isNull()) + ciphertextBlob_ = value["CiphertextBlob"].asString(); } diff --git a/kms/src/model/GetCertificateRequest.cc b/kms/src/model/GetCertificateRequest.cc index c685f40bb..1869a5c71 100644 --- a/kms/src/model/GetCertificateRequest.cc +++ b/kms/src/model/GetCertificateRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::GetCertificateRequest; - -GetCertificateRequest::GetCertificateRequest() : - RpcServiceRequest("kms", "2016-01-20", "GetCertificate") -{ - setMethod(HttpRequest::Method::Post); -} - -GetCertificateRequest::~GetCertificateRequest() -{} - -std::string GetCertificateRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::GetCertificateRequest; + +GetCertificateRequest::GetCertificateRequest() + : RpcServiceRequest("kms", "2016-01-20", "GetCertificate") { + setMethod(HttpRequest::Method::Post); } -void GetCertificateRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +GetCertificateRequest::~GetCertificateRequest() {} + +std::string GetCertificateRequest::getCertificateId() const { + return certificateId_; +} + +void GetCertificateRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } diff --git a/kms/src/model/GetCertificateResult.cc b/kms/src/model/GetCertificateResult.cc index ce4ad7e2e..ffa1d080f 100644 --- a/kms/src/model/GetCertificateResult.cc +++ b/kms/src/model/GetCertificateResult.cc @@ -39,14 +39,14 @@ void GetCertificateResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Certificate"].isNull()) - certificate_ = value["Certificate"].asString(); if(!value["CertificateChain"].isNull()) certificateChain_ = value["CertificateChain"].asString(); - if(!value["Csr"].isNull()) - csr_ = value["Csr"].asString(); + if(!value["Certificate"].isNull()) + certificate_ = value["Certificate"].asString(); if(!value["CertificateId"].isNull()) certificateId_ = value["CertificateId"].asString(); + if(!value["Csr"].isNull()) + csr_ = value["Csr"].asString(); } diff --git a/kms/src/model/GetParametersForImportRequest.cc b/kms/src/model/GetParametersForImportRequest.cc index ee069a84f..2c77b599a 100644 --- a/kms/src/model/GetParametersForImportRequest.cc +++ b/kms/src/model/GetParametersForImportRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::GetParametersForImportRequest; - -GetParametersForImportRequest::GetParametersForImportRequest() : - RpcServiceRequest("kms", "2016-01-20", "GetParametersForImport") -{ - setMethod(HttpRequest::Method::Post); -} - -GetParametersForImportRequest::~GetParametersForImportRequest() -{} - -std::string GetParametersForImportRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::GetParametersForImportRequest; + +GetParametersForImportRequest::GetParametersForImportRequest() + : RpcServiceRequest("kms", "2016-01-20", "GetParametersForImport") { + setMethod(HttpRequest::Method::Post); } -void GetParametersForImportRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +GetParametersForImportRequest::~GetParametersForImportRequest() {} + +std::string GetParametersForImportRequest::getKeyId() const { + return keyId_; } -std::string GetParametersForImportRequest::getWrappingAlgorithm()const -{ - return wrappingAlgorithm_; +void GetParametersForImportRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void GetParametersForImportRequest::setWrappingAlgorithm(const std::string& wrappingAlgorithm) -{ - wrappingAlgorithm_ = wrappingAlgorithm; - setParameter("WrappingAlgorithm", wrappingAlgorithm); +std::string GetParametersForImportRequest::getWrappingAlgorithm() const { + return wrappingAlgorithm_; } -std::string GetParametersForImportRequest::getWrappingKeySpec()const -{ - return wrappingKeySpec_; +void GetParametersForImportRequest::setWrappingAlgorithm(const std::string &wrappingAlgorithm) { + wrappingAlgorithm_ = wrappingAlgorithm; + setParameter(std::string("WrappingAlgorithm"), wrappingAlgorithm); } -void GetParametersForImportRequest::setWrappingKeySpec(const std::string& wrappingKeySpec) -{ - wrappingKeySpec_ = wrappingKeySpec; - setParameter("WrappingKeySpec", wrappingKeySpec); +std::string GetParametersForImportRequest::getWrappingKeySpec() const { + return wrappingKeySpec_; +} + +void GetParametersForImportRequest::setWrappingKeySpec(const std::string &wrappingKeySpec) { + wrappingKeySpec_ = wrappingKeySpec; + setParameter(std::string("WrappingKeySpec"), wrappingKeySpec); } diff --git a/kms/src/model/GetParametersForImportResult.cc b/kms/src/model/GetParametersForImportResult.cc index 9adbd39df..076531c97 100644 --- a/kms/src/model/GetParametersForImportResult.cc +++ b/kms/src/model/GetParametersForImportResult.cc @@ -43,10 +43,10 @@ void GetParametersForImportResult::parse(const std::string &payload) keyId_ = value["KeyId"].asString(); if(!value["ImportToken"].isNull()) importToken_ = value["ImportToken"].asString(); - if(!value["PublicKey"].isNull()) - publicKey_ = value["PublicKey"].asString(); if(!value["TokenExpireTime"].isNull()) tokenExpireTime_ = value["TokenExpireTime"].asString(); + if(!value["PublicKey"].isNull()) + publicKey_ = value["PublicKey"].asString(); } diff --git a/kms/src/model/GetPublicKeyRequest.cc b/kms/src/model/GetPublicKeyRequest.cc index d4575ef0a..c8698e6ad 100644 --- a/kms/src/model/GetPublicKeyRequest.cc +++ b/kms/src/model/GetPublicKeyRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::GetPublicKeyRequest; - -GetPublicKeyRequest::GetPublicKeyRequest() : - RpcServiceRequest("kms", "2016-01-20", "GetPublicKey") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPublicKeyRequest::~GetPublicKeyRequest() -{} - -std::string GetPublicKeyRequest::getKeyVersionId()const -{ - return keyVersionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::GetPublicKeyRequest; + +GetPublicKeyRequest::GetPublicKeyRequest() + : RpcServiceRequest("kms", "2016-01-20", "GetPublicKey") { + setMethod(HttpRequest::Method::Post); } -void GetPublicKeyRequest::setKeyVersionId(const std::string& keyVersionId) -{ - keyVersionId_ = keyVersionId; - setParameter("KeyVersionId", keyVersionId); +GetPublicKeyRequest::~GetPublicKeyRequest() {} + +std::string GetPublicKeyRequest::getKeyVersionId() const { + return keyVersionId_; } -std::string GetPublicKeyRequest::getKeyId()const -{ - return keyId_; +void GetPublicKeyRequest::setKeyVersionId(const std::string &keyVersionId) { + keyVersionId_ = keyVersionId; + setParameter(std::string("KeyVersionId"), keyVersionId); } -void GetPublicKeyRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string GetPublicKeyRequest::getKeyId() const { + return keyId_; +} + +void GetPublicKeyRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/GetPublicKeyResult.cc b/kms/src/model/GetPublicKeyResult.cc index 8fb5be1f6..5ce8c49ca 100644 --- a/kms/src/model/GetPublicKeyResult.cc +++ b/kms/src/model/GetPublicKeyResult.cc @@ -39,12 +39,12 @@ void GetPublicKeyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["PublicKey"].isNull()) - publicKey_ = value["PublicKey"].asString(); - if(!value["KeyId"].isNull()) - keyId_ = value["KeyId"].asString(); if(!value["KeyVersionId"].isNull()) keyVersionId_ = value["KeyVersionId"].asString(); + if(!value["KeyId"].isNull()) + keyId_ = value["KeyId"].asString(); + if(!value["PublicKey"].isNull()) + publicKey_ = value["PublicKey"].asString(); } diff --git a/kms/src/model/GetRandomPasswordRequest.cc b/kms/src/model/GetRandomPasswordRequest.cc index 46756768b..2501421a7 100644 --- a/kms/src/model/GetRandomPasswordRequest.cc +++ b/kms/src/model/GetRandomPasswordRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::GetRandomPasswordRequest; - -GetRandomPasswordRequest::GetRandomPasswordRequest() : - RpcServiceRequest("kms", "2016-01-20", "GetRandomPassword") -{ - setMethod(HttpRequest::Method::Post); -} - -GetRandomPasswordRequest::~GetRandomPasswordRequest() -{} - -std::string GetRandomPasswordRequest::getExcludeLowercase()const -{ - return excludeLowercase_; + */ + +#include + +using AlibabaCloud::Kms::Model::GetRandomPasswordRequest; + +GetRandomPasswordRequest::GetRandomPasswordRequest() + : RpcServiceRequest("kms", "2016-01-20", "GetRandomPassword") { + setMethod(HttpRequest::Method::Post); } -void GetRandomPasswordRequest::setExcludeLowercase(const std::string& excludeLowercase) -{ - excludeLowercase_ = excludeLowercase; - setParameter("ExcludeLowercase", excludeLowercase); +GetRandomPasswordRequest::~GetRandomPasswordRequest() {} + +std::string GetRandomPasswordRequest::getExcludeLowercase() const { + return excludeLowercase_; } -std::string GetRandomPasswordRequest::getExcludeCharacters()const -{ - return excludeCharacters_; +void GetRandomPasswordRequest::setExcludeLowercase(const std::string &excludeLowercase) { + excludeLowercase_ = excludeLowercase; + setParameter(std::string("ExcludeLowercase"), excludeLowercase); } -void GetRandomPasswordRequest::setExcludeCharacters(const std::string& excludeCharacters) -{ - excludeCharacters_ = excludeCharacters; - setParameter("ExcludeCharacters", excludeCharacters); +std::string GetRandomPasswordRequest::getExcludeCharacters() const { + return excludeCharacters_; } -std::string GetRandomPasswordRequest::getPasswordLength()const -{ - return passwordLength_; +void GetRandomPasswordRequest::setExcludeCharacters(const std::string &excludeCharacters) { + excludeCharacters_ = excludeCharacters; + setParameter(std::string("ExcludeCharacters"), excludeCharacters); } -void GetRandomPasswordRequest::setPasswordLength(const std::string& passwordLength) -{ - passwordLength_ = passwordLength; - setParameter("PasswordLength", passwordLength); +std::string GetRandomPasswordRequest::getPasswordLength() const { + return passwordLength_; } -std::string GetRandomPasswordRequest::getExcludePunctuation()const -{ - return excludePunctuation_; +void GetRandomPasswordRequest::setPasswordLength(const std::string &passwordLength) { + passwordLength_ = passwordLength; + setParameter(std::string("PasswordLength"), passwordLength); } -void GetRandomPasswordRequest::setExcludePunctuation(const std::string& excludePunctuation) -{ - excludePunctuation_ = excludePunctuation; - setParameter("ExcludePunctuation", excludePunctuation); +std::string GetRandomPasswordRequest::getExcludePunctuation() const { + return excludePunctuation_; } -std::string GetRandomPasswordRequest::getExcludeUppercase()const -{ - return excludeUppercase_; +void GetRandomPasswordRequest::setExcludePunctuation(const std::string &excludePunctuation) { + excludePunctuation_ = excludePunctuation; + setParameter(std::string("ExcludePunctuation"), excludePunctuation); } -void GetRandomPasswordRequest::setExcludeUppercase(const std::string& excludeUppercase) -{ - excludeUppercase_ = excludeUppercase; - setParameter("ExcludeUppercase", excludeUppercase); +std::string GetRandomPasswordRequest::getExcludeUppercase() const { + return excludeUppercase_; } -std::string GetRandomPasswordRequest::getRequireEachIncludedType()const -{ - return requireEachIncludedType_; +void GetRandomPasswordRequest::setExcludeUppercase(const std::string &excludeUppercase) { + excludeUppercase_ = excludeUppercase; + setParameter(std::string("ExcludeUppercase"), excludeUppercase); } -void GetRandomPasswordRequest::setRequireEachIncludedType(const std::string& requireEachIncludedType) -{ - requireEachIncludedType_ = requireEachIncludedType; - setParameter("RequireEachIncludedType", requireEachIncludedType); +std::string GetRandomPasswordRequest::getRequireEachIncludedType() const { + return requireEachIncludedType_; } -std::string GetRandomPasswordRequest::getExcludeNumbers()const -{ - return excludeNumbers_; +void GetRandomPasswordRequest::setRequireEachIncludedType(const std::string &requireEachIncludedType) { + requireEachIncludedType_ = requireEachIncludedType; + setParameter(std::string("RequireEachIncludedType"), requireEachIncludedType); } -void GetRandomPasswordRequest::setExcludeNumbers(const std::string& excludeNumbers) -{ - excludeNumbers_ = excludeNumbers; - setParameter("ExcludeNumbers", excludeNumbers); +std::string GetRandomPasswordRequest::getExcludeNumbers() const { + return excludeNumbers_; +} + +void GetRandomPasswordRequest::setExcludeNumbers(const std::string &excludeNumbers) { + excludeNumbers_ = excludeNumbers; + setParameter(std::string("ExcludeNumbers"), excludeNumbers); } diff --git a/kms/src/model/GetSecretValueRequest.cc b/kms/src/model/GetSecretValueRequest.cc index 52fa61ca8..f5f1c1df8 100644 --- a/kms/src/model/GetSecretValueRequest.cc +++ b/kms/src/model/GetSecretValueRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::GetSecretValueRequest; - -GetSecretValueRequest::GetSecretValueRequest() : - RpcServiceRequest("kms", "2016-01-20", "GetSecretValue") -{ - setMethod(HttpRequest::Method::Post); -} - -GetSecretValueRequest::~GetSecretValueRequest() -{} - -std::string GetSecretValueRequest::getVersionId()const -{ - return versionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::GetSecretValueRequest; + +GetSecretValueRequest::GetSecretValueRequest() + : RpcServiceRequest("kms", "2016-01-20", "GetSecretValue") { + setMethod(HttpRequest::Method::Post); } -void GetSecretValueRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +GetSecretValueRequest::~GetSecretValueRequest() {} + +std::string GetSecretValueRequest::getVersionId() const { + return versionId_; } -std::string GetSecretValueRequest::getVersionStage()const -{ - return versionStage_; +void GetSecretValueRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } -void GetSecretValueRequest::setVersionStage(const std::string& versionStage) -{ - versionStage_ = versionStage; - setParameter("VersionStage", versionStage); +std::string GetSecretValueRequest::getVersionStage() const { + return versionStage_; } -std::string GetSecretValueRequest::getSecretName()const -{ - return secretName_; +void GetSecretValueRequest::setVersionStage(const std::string &versionStage) { + versionStage_ = versionStage; + setParameter(std::string("VersionStage"), versionStage); } -void GetSecretValueRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string GetSecretValueRequest::getSecretName() const { + return secretName_; } -bool GetSecretValueRequest::getFetchExtendedConfig()const -{ - return fetchExtendedConfig_; +void GetSecretValueRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } -void GetSecretValueRequest::setFetchExtendedConfig(bool fetchExtendedConfig) -{ - fetchExtendedConfig_ = fetchExtendedConfig; - setParameter("FetchExtendedConfig", fetchExtendedConfig ? "true" : "false"); +bool GetSecretValueRequest::getFetchExtendedConfig() const { + return fetchExtendedConfig_; +} + +void GetSecretValueRequest::setFetchExtendedConfig(bool fetchExtendedConfig) { + fetchExtendedConfig_ = fetchExtendedConfig; + setParameter(std::string("FetchExtendedConfig"), fetchExtendedConfig ? "true" : "false"); } diff --git a/kms/src/model/GetSecretValueResult.cc b/kms/src/model/GetSecretValueResult.cc index 4ba5e89a1..febb0eb07 100644 --- a/kms/src/model/GetSecretValueResult.cc +++ b/kms/src/model/GetSecretValueResult.cc @@ -42,41 +42,41 @@ void GetSecretValueResult::parse(const std::string &payload) auto allVersionStages = value["VersionStages"]["VersionStage"]; for (const auto &item : allVersionStages) versionStages_.push_back(item.asString()); - if(!value["SecretName"].isNull()) - secretName_ = value["SecretName"].asString(); - if(!value["VersionId"].isNull()) - versionId_ = value["VersionId"].asString(); - if(!value["CreateTime"].isNull()) - createTime_ = value["CreateTime"].asString(); - if(!value["SecretData"].isNull()) - secretData_ = value["SecretData"].asString(); if(!value["SecretDataType"].isNull()) secretDataType_ = value["SecretDataType"].asString(); - if(!value["AutomaticRotation"].isNull()) - automaticRotation_ = value["AutomaticRotation"].asString(); - if(!value["RotationInterval"].isNull()) - rotationInterval_ = value["RotationInterval"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["VersionId"].isNull()) + versionId_ = value["VersionId"].asString(); if(!value["NextRotationDate"].isNull()) nextRotationDate_ = value["NextRotationDate"].asString(); + if(!value["SecretData"].isNull()) + secretData_ = value["SecretData"].asString(); + if(!value["RotationInterval"].isNull()) + rotationInterval_ = value["RotationInterval"].asString(); if(!value["ExtendedConfig"].isNull()) extendedConfig_ = value["ExtendedConfig"].asString(); if(!value["LastRotationDate"].isNull()) lastRotationDate_ = value["LastRotationDate"].asString(); + if(!value["SecretName"].isNull()) + secretName_ = value["SecretName"].asString(); + if(!value["AutomaticRotation"].isNull()) + automaticRotation_ = value["AutomaticRotation"].asString(); if(!value["SecretType"].isNull()) secretType_ = value["SecretType"].asString(); } -std::string GetSecretValueResult::getSecretName()const -{ - return secretName_; -} - std::string GetSecretValueResult::getVersionId()const { return versionId_; } +std::string GetSecretValueResult::getSecretName()const +{ + return secretName_; +} + std::string GetSecretValueResult::getNextRotationDate()const { return nextRotationDate_; diff --git a/kms/src/model/ImportCertificateRequest.cc b/kms/src/model/ImportCertificateRequest.cc deleted file mode 100644 index 100490fa5..000000000 --- a/kms/src/model/ImportCertificateRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ImportCertificateRequest; - -ImportCertificateRequest::ImportCertificateRequest() : - RpcServiceRequest("kms", "2016-01-20", "ImportCertificate") -{ - setMethod(HttpRequest::Method::Post); -} - -ImportCertificateRequest::~ImportCertificateRequest() -{} - -std::string ImportCertificateRequest::getPKCS12Blob()const -{ - return pKCS12Blob_; -} - -void ImportCertificateRequest::setPKCS12Blob(const std::string& pKCS12Blob) -{ - pKCS12Blob_ = pKCS12Blob; - setParameter("PKCS12Blob", pKCS12Blob); -} - -std::string ImportCertificateRequest::getPassphrase()const -{ - return passphrase_; -} - -void ImportCertificateRequest::setPassphrase(const std::string& passphrase) -{ - passphrase_ = passphrase; - setParameter("Passphrase", passphrase); -} - diff --git a/kms/src/model/ImportCertificateResult.cc b/kms/src/model/ImportCertificateResult.cc deleted file mode 100644 index 0e0cc6c1e..000000000 --- a/kms/src/model/ImportCertificateResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Kms; -using namespace AlibabaCloud::Kms::Model; - -ImportCertificateResult::ImportCertificateResult() : - ServiceResult() -{} - -ImportCertificateResult::ImportCertificateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportCertificateResult::~ImportCertificateResult() -{} - -void ImportCertificateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CertificateId"].isNull()) - certificateId_ = value["CertificateId"].asString(); - if(!value["Arn"].isNull()) - arn_ = value["Arn"].asString(); - -} - -std::string ImportCertificateResult::getCertificateId()const -{ - return certificateId_; -} - -std::string ImportCertificateResult::getArn()const -{ - return arn_; -} - diff --git a/kms/src/model/ImportEncryptionCertificateRequest.cc b/kms/src/model/ImportEncryptionCertificateRequest.cc deleted file mode 100644 index 9fa2e1b1c..000000000 --- a/kms/src/model/ImportEncryptionCertificateRequest.cc +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ImportEncryptionCertificateRequest; - -ImportEncryptionCertificateRequest::ImportEncryptionCertificateRequest() : - RpcServiceRequest("kms", "2016-01-20", "ImportEncryptionCertificate") -{ - setMethod(HttpRequest::Method::Post); -} - -ImportEncryptionCertificateRequest::~ImportEncryptionCertificateRequest() -{} - -std::string ImportEncryptionCertificateRequest::getAsymmetricAlgorithm()const -{ - return asymmetricAlgorithm_; -} - -void ImportEncryptionCertificateRequest::setAsymmetricAlgorithm(const std::string& asymmetricAlgorithm) -{ - asymmetricAlgorithm_ = asymmetricAlgorithm; - setParameter("AsymmetricAlgorithm", asymmetricAlgorithm); -} - -std::string ImportEncryptionCertificateRequest::getSymmetricAlgorithm()const -{ - return symmetricAlgorithm_; -} - -void ImportEncryptionCertificateRequest::setSymmetricAlgorithm(const std::string& symmetricAlgorithm) -{ - symmetricAlgorithm_ = symmetricAlgorithm; - setParameter("SymmetricAlgorithm", symmetricAlgorithm); -} - -std::string ImportEncryptionCertificateRequest::getEncryptedPrivateKey()const -{ - return encryptedPrivateKey_; -} - -void ImportEncryptionCertificateRequest::setEncryptedPrivateKey(const std::string& encryptedPrivateKey) -{ - encryptedPrivateKey_ = encryptedPrivateKey; - setParameter("EncryptedPrivateKey", encryptedPrivateKey); -} - -std::string ImportEncryptionCertificateRequest::getEncryptedSymmetricKey()const -{ - return encryptedSymmetricKey_; -} - -void ImportEncryptionCertificateRequest::setEncryptedSymmetricKey(const std::string& encryptedSymmetricKey) -{ - encryptedSymmetricKey_ = encryptedSymmetricKey; - setParameter("EncryptedSymmetricKey", encryptedSymmetricKey); -} - -std::string ImportEncryptionCertificateRequest::getCertificateId()const -{ - return certificateId_; -} - -void ImportEncryptionCertificateRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); -} - -std::string ImportEncryptionCertificateRequest::getCertificate()const -{ - return certificate_; -} - -void ImportEncryptionCertificateRequest::setCertificate(const std::string& certificate) -{ - certificate_ = certificate; - setParameter("Certificate", certificate); -} - -std::string ImportEncryptionCertificateRequest::getCertificateChain()const -{ - return certificateChain_; -} - -void ImportEncryptionCertificateRequest::setCertificateChain(const std::string& certificateChain) -{ - certificateChain_ = certificateChain; - setParameter("CertificateChain", certificateChain); -} - diff --git a/kms/src/model/ImportEncryptionCertificateResult.cc b/kms/src/model/ImportEncryptionCertificateResult.cc deleted file mode 100644 index bc3ae89e9..000000000 --- a/kms/src/model/ImportEncryptionCertificateResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Kms; -using namespace AlibabaCloud::Kms::Model; - -ImportEncryptionCertificateResult::ImportEncryptionCertificateResult() : - ServiceResult() -{} - -ImportEncryptionCertificateResult::ImportEncryptionCertificateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ImportEncryptionCertificateResult::~ImportEncryptionCertificateResult() -{} - -void ImportEncryptionCertificateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["CertificateId"].isNull()) - certificateId_ = value["CertificateId"].asString(); - if(!value["Arn"].isNull()) - arn_ = value["Arn"].asString(); - -} - -std::string ImportEncryptionCertificateResult::getCertificateId()const -{ - return certificateId_; -} - -std::string ImportEncryptionCertificateResult::getArn()const -{ - return arn_; -} - diff --git a/kms/src/model/ImportKeyMaterialRequest.cc b/kms/src/model/ImportKeyMaterialRequest.cc index 349dddbde..95c7d84bc 100644 --- a/kms/src/model/ImportKeyMaterialRequest.cc +++ b/kms/src/model/ImportKeyMaterialRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::ImportKeyMaterialRequest; - -ImportKeyMaterialRequest::ImportKeyMaterialRequest() : - RpcServiceRequest("kms", "2016-01-20", "ImportKeyMaterial") -{ - setMethod(HttpRequest::Method::Post); -} - -ImportKeyMaterialRequest::~ImportKeyMaterialRequest() -{} - -std::string ImportKeyMaterialRequest::getImportToken()const -{ - return importToken_; + */ + +#include + +using AlibabaCloud::Kms::Model::ImportKeyMaterialRequest; + +ImportKeyMaterialRequest::ImportKeyMaterialRequest() + : RpcServiceRequest("kms", "2016-01-20", "ImportKeyMaterial") { + setMethod(HttpRequest::Method::Post); } -void ImportKeyMaterialRequest::setImportToken(const std::string& importToken) -{ - importToken_ = importToken; - setParameter("ImportToken", importToken); +ImportKeyMaterialRequest::~ImportKeyMaterialRequest() {} + +std::string ImportKeyMaterialRequest::getImportToken() const { + return importToken_; } -std::string ImportKeyMaterialRequest::getEncryptedKeyMaterial()const -{ - return encryptedKeyMaterial_; +void ImportKeyMaterialRequest::setImportToken(const std::string &importToken) { + importToken_ = importToken; + setParameter(std::string("ImportToken"), importToken); } -void ImportKeyMaterialRequest::setEncryptedKeyMaterial(const std::string& encryptedKeyMaterial) -{ - encryptedKeyMaterial_ = encryptedKeyMaterial; - setParameter("EncryptedKeyMaterial", encryptedKeyMaterial); +std::string ImportKeyMaterialRequest::getEncryptedKeyMaterial() const { + return encryptedKeyMaterial_; } -long ImportKeyMaterialRequest::getKeyMaterialExpireUnix()const -{ - return keyMaterialExpireUnix_; +void ImportKeyMaterialRequest::setEncryptedKeyMaterial(const std::string &encryptedKeyMaterial) { + encryptedKeyMaterial_ = encryptedKeyMaterial; + setParameter(std::string("EncryptedKeyMaterial"), encryptedKeyMaterial); } -void ImportKeyMaterialRequest::setKeyMaterialExpireUnix(long keyMaterialExpireUnix) -{ - keyMaterialExpireUnix_ = keyMaterialExpireUnix; - setParameter("KeyMaterialExpireUnix", std::to_string(keyMaterialExpireUnix)); +long ImportKeyMaterialRequest::getKeyMaterialExpireUnix() const { + return keyMaterialExpireUnix_; } -std::string ImportKeyMaterialRequest::getKeyId()const -{ - return keyId_; +void ImportKeyMaterialRequest::setKeyMaterialExpireUnix(long keyMaterialExpireUnix) { + keyMaterialExpireUnix_ = keyMaterialExpireUnix; + setParameter(std::string("KeyMaterialExpireUnix"), std::to_string(keyMaterialExpireUnix)); } -void ImportKeyMaterialRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string ImportKeyMaterialRequest::getKeyId() const { + return keyId_; +} + +void ImportKeyMaterialRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/ListAliasesByKeyIdRequest.cc b/kms/src/model/ListAliasesByKeyIdRequest.cc index 95c0700cf..7d71e90e9 100644 --- a/kms/src/model/ListAliasesByKeyIdRequest.cc +++ b/kms/src/model/ListAliasesByKeyIdRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ListAliasesByKeyIdRequest; - -ListAliasesByKeyIdRequest::ListAliasesByKeyIdRequest() : - RpcServiceRequest("kms", "2016-01-20", "ListAliasesByKeyId") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAliasesByKeyIdRequest::~ListAliasesByKeyIdRequest() -{} - -int ListAliasesByKeyIdRequest::getPageSize()const -{ - return pageSize_; + */ + +#include + +using AlibabaCloud::Kms::Model::ListAliasesByKeyIdRequest; + +ListAliasesByKeyIdRequest::ListAliasesByKeyIdRequest() + : RpcServiceRequest("kms", "2016-01-20", "ListAliasesByKeyId") { + setMethod(HttpRequest::Method::Post); } -void ListAliasesByKeyIdRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListAliasesByKeyIdRequest::~ListAliasesByKeyIdRequest() {} + +int ListAliasesByKeyIdRequest::getPageSize() const { + return pageSize_; } -std::string ListAliasesByKeyIdRequest::getKeyId()const -{ - return keyId_; +void ListAliasesByKeyIdRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListAliasesByKeyIdRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string ListAliasesByKeyIdRequest::getKeyId() const { + return keyId_; } -int ListAliasesByKeyIdRequest::getPageNumber()const -{ - return pageNumber_; +void ListAliasesByKeyIdRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void ListAliasesByKeyIdRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListAliasesByKeyIdRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAliasesByKeyIdRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/kms/src/model/ListAliasesByKeyIdResult.cc b/kms/src/model/ListAliasesByKeyIdResult.cc index bb053c22f..f52242324 100644 --- a/kms/src/model/ListAliasesByKeyIdResult.cc +++ b/kms/src/model/ListAliasesByKeyIdResult.cc @@ -45,18 +45,18 @@ void ListAliasesByKeyIdResult::parse(const std::string &payload) Alias aliasesObject; if(!valueAliasesAlias["KeyId"].isNull()) aliasesObject.keyId = valueAliasesAlias["KeyId"].asString(); - if(!valueAliasesAlias["AliasName"].isNull()) - aliasesObject.aliasName = valueAliasesAlias["AliasName"].asString(); if(!valueAliasesAlias["AliasArn"].isNull()) aliasesObject.aliasArn = valueAliasesAlias["AliasArn"].asString(); + if(!valueAliasesAlias["AliasName"].isNull()) + aliasesObject.aliasName = valueAliasesAlias["AliasName"].asString(); aliases_.push_back(aliasesObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/kms/src/model/ListAliasesRequest.cc b/kms/src/model/ListAliasesRequest.cc index 8a9c46805..60312e61f 100644 --- a/kms/src/model/ListAliasesRequest.cc +++ b/kms/src/model/ListAliasesRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ListAliasesRequest; - -ListAliasesRequest::ListAliasesRequest() : - RpcServiceRequest("kms", "2016-01-20", "ListAliases") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAliasesRequest::~ListAliasesRequest() -{} - -int ListAliasesRequest::getPageSize()const -{ - return pageSize_; + */ + +#include + +using AlibabaCloud::Kms::Model::ListAliasesRequest; + +ListAliasesRequest::ListAliasesRequest() + : RpcServiceRequest("kms", "2016-01-20", "ListAliases") { + setMethod(HttpRequest::Method::Post); } -void ListAliasesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListAliasesRequest::~ListAliasesRequest() {} + +int ListAliasesRequest::getPageSize() const { + return pageSize_; } -int ListAliasesRequest::getPageNumber()const -{ - return pageNumber_; +void ListAliasesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListAliasesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListAliasesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListAliasesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/kms/src/model/ListAliasesResult.cc b/kms/src/model/ListAliasesResult.cc index 7cb44ad17..61b7c9481 100644 --- a/kms/src/model/ListAliasesResult.cc +++ b/kms/src/model/ListAliasesResult.cc @@ -45,18 +45,18 @@ void ListAliasesResult::parse(const std::string &payload) Alias aliasesObject; if(!valueAliasesAlias["KeyId"].isNull()) aliasesObject.keyId = valueAliasesAlias["KeyId"].asString(); - if(!valueAliasesAlias["AliasName"].isNull()) - aliasesObject.aliasName = valueAliasesAlias["AliasName"].asString(); if(!valueAliasesAlias["AliasArn"].isNull()) aliasesObject.aliasArn = valueAliasesAlias["AliasArn"].asString(); + if(!valueAliasesAlias["AliasName"].isNull()) + aliasesObject.aliasName = valueAliasesAlias["AliasName"].asString(); aliases_.push_back(aliasesObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); if(!value["PageNumber"].isNull()) pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/kms/src/model/ListCertificatesRequest.cc b/kms/src/model/ListCertificatesRequest.cc deleted file mode 100644 index cfbc9993b..000000000 --- a/kms/src/model/ListCertificatesRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ListCertificatesRequest; - -ListCertificatesRequest::ListCertificatesRequest() : - RpcServiceRequest("kms", "2016-01-20", "ListCertificates") -{ - setMethod(HttpRequest::Method::Post); -} - -ListCertificatesRequest::~ListCertificatesRequest() -{} - -std::string ListCertificatesRequest::getSubject()const -{ - return subject_; -} - -void ListCertificatesRequest::setSubject(const std::string& subject) -{ - subject_ = subject; - setParameter("Subject", subject); -} - -int ListCertificatesRequest::getPageSize()const -{ - return pageSize_; -} - -void ListCertificatesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListCertificatesRequest::getIssuer()const -{ - return issuer_; -} - -void ListCertificatesRequest::setIssuer(const std::string& issuer) -{ - issuer_ = issuer; - setParameter("Issuer", issuer); -} - -int ListCertificatesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListCertificatesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListCertificatesRequest::getStatus()const -{ - return status_; -} - -void ListCertificatesRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); -} - diff --git a/kms/src/model/ListCertificatesResult.cc b/kms/src/model/ListCertificatesResult.cc deleted file mode 100644 index 4de1a4a8a..000000000 --- a/kms/src/model/ListCertificatesResult.cc +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Kms; -using namespace AlibabaCloud::Kms::Model; - -ListCertificatesResult::ListCertificatesResult() : - ServiceResult() -{} - -ListCertificatesResult::ListCertificatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListCertificatesResult::~ListCertificatesResult() -{} - -void ListCertificatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allCertificateSummaryListNode = value["CertificateSummaryList"]["CertificateSummary"]; - for (auto valueCertificateSummaryListCertificateSummary : allCertificateSummaryListNode) - { - CertificateSummary certificateSummaryListObject; - if(!valueCertificateSummaryListCertificateSummary["CertificateId"].isNull()) - certificateSummaryListObject.certificateId = valueCertificateSummaryListCertificateSummary["CertificateId"].asString(); - certificateSummaryList_.push_back(certificateSummaryListObject); - } - auto allCertificatesNode = value["Certificates"]["Certificate"]; - for (auto valueCertificatesCertificate : allCertificatesNode) - { - Certificate certificatesObject; - if(!valueCertificatesCertificate["CertificateId"].isNull()) - certificatesObject.certificateId = valueCertificatesCertificate["CertificateId"].asString(); - certificates_.push_back(certificatesObject); - } - if(!value["TotalSize"].isNull()) - totalSize_ = std::stoi(value["TotalSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - -} - -int ListCertificatesResult::getPageSize()const -{ - return pageSize_; -} - -int ListCertificatesResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector ListCertificatesResult::getCertificateSummaryList()const -{ - return certificateSummaryList_; -} - -std::vector ListCertificatesResult::getCertificates()const -{ - return certificates_; -} - -int ListCertificatesResult::getTotalSize()const -{ - return totalSize_; -} - diff --git a/kms/src/model/ListKeyVersionsRequest.cc b/kms/src/model/ListKeyVersionsRequest.cc index a91ed25da..019612256 100644 --- a/kms/src/model/ListKeyVersionsRequest.cc +++ b/kms/src/model/ListKeyVersionsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ListKeyVersionsRequest; - -ListKeyVersionsRequest::ListKeyVersionsRequest() : - RpcServiceRequest("kms", "2016-01-20", "ListKeyVersions") -{ - setMethod(HttpRequest::Method::Post); -} - -ListKeyVersionsRequest::~ListKeyVersionsRequest() -{} - -int ListKeyVersionsRequest::getPageSize()const -{ - return pageSize_; + */ + +#include + +using AlibabaCloud::Kms::Model::ListKeyVersionsRequest; + +ListKeyVersionsRequest::ListKeyVersionsRequest() + : RpcServiceRequest("kms", "2016-01-20", "ListKeyVersions") { + setMethod(HttpRequest::Method::Post); } -void ListKeyVersionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListKeyVersionsRequest::~ListKeyVersionsRequest() {} + +int ListKeyVersionsRequest::getPageSize() const { + return pageSize_; } -std::string ListKeyVersionsRequest::getKeyId()const -{ - return keyId_; +void ListKeyVersionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListKeyVersionsRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string ListKeyVersionsRequest::getKeyId() const { + return keyId_; } -int ListKeyVersionsRequest::getPageNumber()const -{ - return pageNumber_; +void ListKeyVersionsRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void ListKeyVersionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListKeyVersionsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListKeyVersionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/kms/src/model/ListKeyVersionsResult.cc b/kms/src/model/ListKeyVersionsResult.cc index 711cdd917..80c51525b 100644 --- a/kms/src/model/ListKeyVersionsResult.cc +++ b/kms/src/model/ListKeyVersionsResult.cc @@ -51,12 +51,12 @@ void ListKeyVersionsResult::parse(const std::string &payload) keyVersionsObject.creationDate = valueKeyVersionsKeyVersion["CreationDate"].asString(); keyVersions_.push_back(keyVersionsObject); } - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/kms/src/model/ListKeysRequest.cc b/kms/src/model/ListKeysRequest.cc index 33fd21cf9..a1858b5e3 100644 --- a/kms/src/model/ListKeysRequest.cc +++ b/kms/src/model/ListKeysRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ListKeysRequest; - -ListKeysRequest::ListKeysRequest() : - RpcServiceRequest("kms", "2016-01-20", "ListKeys") -{ - setMethod(HttpRequest::Method::Post); -} - -ListKeysRequest::~ListKeysRequest() -{} - -int ListKeysRequest::getPageSize()const -{ - return pageSize_; + */ + +#include + +using AlibabaCloud::Kms::Model::ListKeysRequest; + +ListKeysRequest::ListKeysRequest() + : RpcServiceRequest("kms", "2016-01-20", "ListKeys") { + setMethod(HttpRequest::Method::Post); } -void ListKeysRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListKeysRequest::~ListKeysRequest() {} + +int ListKeysRequest::getPageSize() const { + return pageSize_; } -std::string ListKeysRequest::getFilters()const -{ - return filters_; +void ListKeysRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListKeysRequest::setFilters(const std::string& filters) -{ - filters_ = filters; - setParameter("Filters", filters); +std::string ListKeysRequest::getFilters() const { + return filters_; } -int ListKeysRequest::getPageNumber()const -{ - return pageNumber_; +void ListKeysRequest::setFilters(const std::string &filters) { + filters_ = filters; + setParameter(std::string("Filters"), filters); } -void ListKeysRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListKeysRequest::getPageNumber() const { + return pageNumber_; +} + +void ListKeysRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/kms/src/model/ListKeysResult.cc b/kms/src/model/ListKeysResult.cc index 3acc2a05d..846c91b31 100644 --- a/kms/src/model/ListKeysResult.cc +++ b/kms/src/model/ListKeysResult.cc @@ -43,10 +43,10 @@ void ListKeysResult::parse(const std::string &payload) for (auto valueKeysKey : allKeysNode) { Key keysObject; - if(!valueKeysKey["KeyArn"].isNull()) - keysObject.keyArn = valueKeysKey["KeyArn"].asString(); if(!valueKeysKey["KeyId"].isNull()) keysObject.keyId = valueKeysKey["KeyId"].asString(); + if(!valueKeysKey["KeyArn"].isNull()) + keysObject.keyArn = valueKeysKey["KeyArn"].asString(); keys_.push_back(keysObject); } if(!value["PageNumber"].isNull()) diff --git a/kms/src/model/ListResourceTagsRequest.cc b/kms/src/model/ListResourceTagsRequest.cc index 6219e117c..2dd3c02ce 100644 --- a/kms/src/model/ListResourceTagsRequest.cc +++ b/kms/src/model/ListResourceTagsRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ListResourceTagsRequest; - -ListResourceTagsRequest::ListResourceTagsRequest() : - RpcServiceRequest("kms", "2016-01-20", "ListResourceTags") -{ - setMethod(HttpRequest::Method::Post); -} - -ListResourceTagsRequest::~ListResourceTagsRequest() -{} - -std::string ListResourceTagsRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::ListResourceTagsRequest; + +ListResourceTagsRequest::ListResourceTagsRequest() + : RpcServiceRequest("kms", "2016-01-20", "ListResourceTags") { + setMethod(HttpRequest::Method::Post); } -void ListResourceTagsRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +ListResourceTagsRequest::~ListResourceTagsRequest() {} + +std::string ListResourceTagsRequest::getKeyId() const { + return keyId_; +} + +void ListResourceTagsRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/ListResourceTagsResult.cc b/kms/src/model/ListResourceTagsResult.cc index 779a928ef..4e38f15ba 100644 --- a/kms/src/model/ListResourceTagsResult.cc +++ b/kms/src/model/ListResourceTagsResult.cc @@ -45,10 +45,10 @@ void ListResourceTagsResult::parse(const std::string &payload) Tag tagsObject; if(!valueTagsTag["KeyId"].isNull()) tagsObject.keyId = valueTagsTag["KeyId"].asString(); - if(!valueTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueTagsTag["TagKey"].asString(); if(!valueTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueTagsTag["TagValue"].asString(); + if(!valueTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueTagsTag["TagKey"].asString(); tags_.push_back(tagsObject); } diff --git a/kms/src/model/ListSecretVersionIdsRequest.cc b/kms/src/model/ListSecretVersionIdsRequest.cc index 9c3f1e625..360bd2b7b 100644 --- a/kms/src/model/ListSecretVersionIdsRequest.cc +++ b/kms/src/model/ListSecretVersionIdsRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::ListSecretVersionIdsRequest; - -ListSecretVersionIdsRequest::ListSecretVersionIdsRequest() : - RpcServiceRequest("kms", "2016-01-20", "ListSecretVersionIds") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSecretVersionIdsRequest::~ListSecretVersionIdsRequest() -{} - -std::string ListSecretVersionIdsRequest::getIncludeDeprecated()const -{ - return includeDeprecated_; + */ + +#include + +using AlibabaCloud::Kms::Model::ListSecretVersionIdsRequest; + +ListSecretVersionIdsRequest::ListSecretVersionIdsRequest() + : RpcServiceRequest("kms", "2016-01-20", "ListSecretVersionIds") { + setMethod(HttpRequest::Method::Post); } -void ListSecretVersionIdsRequest::setIncludeDeprecated(const std::string& includeDeprecated) -{ - includeDeprecated_ = includeDeprecated; - setParameter("IncludeDeprecated", includeDeprecated); +ListSecretVersionIdsRequest::~ListSecretVersionIdsRequest() {} + +std::string ListSecretVersionIdsRequest::getIncludeDeprecated() const { + return includeDeprecated_; } -int ListSecretVersionIdsRequest::getPageSize()const -{ - return pageSize_; +void ListSecretVersionIdsRequest::setIncludeDeprecated(const std::string &includeDeprecated) { + includeDeprecated_ = includeDeprecated; + setParameter(std::string("IncludeDeprecated"), includeDeprecated); } -void ListSecretVersionIdsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListSecretVersionIdsRequest::getPageSize() const { + return pageSize_; } -std::string ListSecretVersionIdsRequest::getSecretName()const -{ - return secretName_; +void ListSecretVersionIdsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListSecretVersionIdsRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string ListSecretVersionIdsRequest::getSecretName() const { + return secretName_; } -int ListSecretVersionIdsRequest::getPageNumber()const -{ - return pageNumber_; +void ListSecretVersionIdsRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } -void ListSecretVersionIdsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListSecretVersionIdsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListSecretVersionIdsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/kms/src/model/ListSecretVersionIdsResult.cc b/kms/src/model/ListSecretVersionIdsResult.cc index 8657eaf22..1bfd29880 100644 --- a/kms/src/model/ListSecretVersionIdsResult.cc +++ b/kms/src/model/ListSecretVersionIdsResult.cc @@ -43,21 +43,21 @@ void ListSecretVersionIdsResult::parse(const std::string &payload) for (auto valueVersionIdsVersionId : allVersionIdsNode) { VersionId versionIdsObject; - if(!valueVersionIdsVersionId["CreateTime"].isNull()) - versionIdsObject.createTime = valueVersionIdsVersionId["CreateTime"].asString(); if(!valueVersionIdsVersionId["VersionId"].isNull()) versionIdsObject.versionId = valueVersionIdsVersionId["VersionId"].asString(); + if(!valueVersionIdsVersionId["CreateTime"].isNull()) + versionIdsObject.createTime = valueVersionIdsVersionId["CreateTime"].asString(); auto allVersionStages = value["VersionStages"]["VersionStage"]; for (auto value : allVersionStages) versionIdsObject.versionStages.push_back(value.asString()); versionIds_.push_back(versionIdsObject); } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["SecretName"].isNull()) secretName_ = value["SecretName"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); diff --git a/kms/src/model/ListSecretsRequest.cc b/kms/src/model/ListSecretsRequest.cc index 90221d2cc..629b0f6e8 100644 --- a/kms/src/model/ListSecretsRequest.cc +++ b/kms/src/model/ListSecretsRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::ListSecretsRequest; - -ListSecretsRequest::ListSecretsRequest() : - RpcServiceRequest("kms", "2016-01-20", "ListSecrets") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSecretsRequest::~ListSecretsRequest() -{} - -int ListSecretsRequest::getPageSize()const -{ - return pageSize_; + */ + +#include + +using AlibabaCloud::Kms::Model::ListSecretsRequest; + +ListSecretsRequest::ListSecretsRequest() + : RpcServiceRequest("kms", "2016-01-20", "ListSecrets") { + setMethod(HttpRequest::Method::Post); } -void ListSecretsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListSecretsRequest::~ListSecretsRequest() {} + +int ListSecretsRequest::getPageSize() const { + return pageSize_; } -std::string ListSecretsRequest::getFilters()const -{ - return filters_; +void ListSecretsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListSecretsRequest::setFilters(const std::string& filters) -{ - filters_ = filters; - setParameter("Filters", filters); +std::string ListSecretsRequest::getFilters() const { + return filters_; } -std::string ListSecretsRequest::getFetchTags()const -{ - return fetchTags_; +void ListSecretsRequest::setFilters(const std::string &filters) { + filters_ = filters; + setParameter(std::string("Filters"), filters); } -void ListSecretsRequest::setFetchTags(const std::string& fetchTags) -{ - fetchTags_ = fetchTags; - setParameter("FetchTags", fetchTags); +std::string ListSecretsRequest::getFetchTags() const { + return fetchTags_; } -int ListSecretsRequest::getPageNumber()const -{ - return pageNumber_; +void ListSecretsRequest::setFetchTags(const std::string &fetchTags) { + fetchTags_ = fetchTags; + setParameter(std::string("FetchTags"), fetchTags); } -void ListSecretsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListSecretsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListSecretsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/kms/src/model/ListSecretsResult.cc b/kms/src/model/ListSecretsResult.cc index 87737866d..440adf472 100644 --- a/kms/src/model/ListSecretsResult.cc +++ b/kms/src/model/ListSecretsResult.cc @@ -43,24 +43,24 @@ void ListSecretsResult::parse(const std::string &payload) for (auto valueSecretListSecret : allSecretListNode) { Secret secretListObject; - if(!valueSecretListSecret["CreateTime"].isNull()) - secretListObject.createTime = valueSecretListSecret["CreateTime"].asString(); - if(!valueSecretListSecret["PlannedDeleteTime"].isNull()) - secretListObject.plannedDeleteTime = valueSecretListSecret["PlannedDeleteTime"].asString(); if(!valueSecretListSecret["SecretName"].isNull()) secretListObject.secretName = valueSecretListSecret["SecretName"].asString(); if(!valueSecretListSecret["UpdateTime"].isNull()) secretListObject.updateTime = valueSecretListSecret["UpdateTime"].asString(); if(!valueSecretListSecret["SecretType"].isNull()) secretListObject.secretType = valueSecretListSecret["SecretType"].asString(); + if(!valueSecretListSecret["PlannedDeleteTime"].isNull()) + secretListObject.plannedDeleteTime = valueSecretListSecret["PlannedDeleteTime"].asString(); + if(!valueSecretListSecret["CreateTime"].isNull()) + secretListObject.createTime = valueSecretListSecret["CreateTime"].asString(); auto allTagsNode = valueSecretListSecret["Tags"]["Tag"]; for (auto valueSecretListSecretTagsTag : allTagsNode) { Secret::Tag tagsObject; - if(!valueSecretListSecretTagsTag["TagKey"].isNull()) - tagsObject.tagKey = valueSecretListSecretTagsTag["TagKey"].asString(); if(!valueSecretListSecretTagsTag["TagValue"].isNull()) tagsObject.tagValue = valueSecretListSecretTagsTag["TagValue"].asString(); + if(!valueSecretListSecretTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueSecretListSecretTagsTag["TagKey"].asString(); secretListObject.tags.push_back(tagsObject); } secretList_.push_back(secretListObject); diff --git a/kms/src/model/OpenKmsServiceRequest.cc b/kms/src/model/OpenKmsServiceRequest.cc index 101f43730..ebca19b34 100644 --- a/kms/src/model/OpenKmsServiceRequest.cc +++ b/kms/src/model/OpenKmsServiceRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::OpenKmsServiceRequest; - -OpenKmsServiceRequest::OpenKmsServiceRequest() : - RpcServiceRequest("kms", "2016-01-20", "OpenKmsService") -{ - setMethod(HttpRequest::Method::Post); -} - -OpenKmsServiceRequest::~OpenKmsServiceRequest() -{} - + */ + +#include + +using AlibabaCloud::Kms::Model::OpenKmsServiceRequest; + +OpenKmsServiceRequest::OpenKmsServiceRequest() + : RpcServiceRequest("kms", "2016-01-20", "OpenKmsService") { + setMethod(HttpRequest::Method::Post); +} + +OpenKmsServiceRequest::~OpenKmsServiceRequest() {} + diff --git a/kms/src/model/PutSecretValueRequest.cc b/kms/src/model/PutSecretValueRequest.cc index 8eee8fb43..b417238aa 100644 --- a/kms/src/model/PutSecretValueRequest.cc +++ b/kms/src/model/PutSecretValueRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Kms::Model::PutSecretValueRequest; - -PutSecretValueRequest::PutSecretValueRequest() : - RpcServiceRequest("kms", "2016-01-20", "PutSecretValue") -{ - setMethod(HttpRequest::Method::Post); -} - -PutSecretValueRequest::~PutSecretValueRequest() -{} - -std::string PutSecretValueRequest::getVersionId()const -{ - return versionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::PutSecretValueRequest; + +PutSecretValueRequest::PutSecretValueRequest() + : RpcServiceRequest("kms", "2016-01-20", "PutSecretValue") { + setMethod(HttpRequest::Method::Post); } -void PutSecretValueRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +PutSecretValueRequest::~PutSecretValueRequest() {} + +std::string PutSecretValueRequest::getVersionId() const { + return versionId_; } -std::string PutSecretValueRequest::getVersionStages()const -{ - return versionStages_; +void PutSecretValueRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } -void PutSecretValueRequest::setVersionStages(const std::string& versionStages) -{ - versionStages_ = versionStages; - setParameter("VersionStages", versionStages); +std::string PutSecretValueRequest::getVersionStages() const { + return versionStages_; } -std::string PutSecretValueRequest::getSecretData()const -{ - return secretData_; +void PutSecretValueRequest::setVersionStages(const std::string &versionStages) { + versionStages_ = versionStages; + setParameter(std::string("VersionStages"), versionStages); } -void PutSecretValueRequest::setSecretData(const std::string& secretData) -{ - secretData_ = secretData; - setParameter("SecretData", secretData); +std::string PutSecretValueRequest::getSecretData() const { + return secretData_; } -std::string PutSecretValueRequest::getSecretName()const -{ - return secretName_; +void PutSecretValueRequest::setSecretData(const std::string &secretData) { + secretData_ = secretData; + setParameter(std::string("SecretData"), secretData); } -void PutSecretValueRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string PutSecretValueRequest::getSecretName() const { + return secretName_; } -std::string PutSecretValueRequest::getSecretDataType()const -{ - return secretDataType_; +void PutSecretValueRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } -void PutSecretValueRequest::setSecretDataType(const std::string& secretDataType) -{ - secretDataType_ = secretDataType; - setParameter("SecretDataType", secretDataType); +std::string PutSecretValueRequest::getSecretDataType() const { + return secretDataType_; +} + +void PutSecretValueRequest::setSecretDataType(const std::string &secretDataType) { + secretDataType_ = secretDataType; + setParameter(std::string("SecretDataType"), secretDataType); } diff --git a/kms/src/model/ReEncryptRequest.cc b/kms/src/model/ReEncryptRequest.cc index 5cbf655ea..0227d247b 100644 --- a/kms/src/model/ReEncryptRequest.cc +++ b/kms/src/model/ReEncryptRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ReEncryptRequest; - -ReEncryptRequest::ReEncryptRequest() : - RpcServiceRequest("kms", "2016-01-20", "ReEncrypt") -{ - setMethod(HttpRequest::Method::Post); -} - -ReEncryptRequest::~ReEncryptRequest() -{} - -std::string ReEncryptRequest::getDestinationEncryptionContext()const -{ - return destinationEncryptionContext_; + */ + +#include + +using AlibabaCloud::Kms::Model::ReEncryptRequest; + +ReEncryptRequest::ReEncryptRequest() + : RpcServiceRequest("kms", "2016-01-20", "ReEncrypt") { + setMethod(HttpRequest::Method::Post); } -void ReEncryptRequest::setDestinationEncryptionContext(const std::string& destinationEncryptionContext) -{ - destinationEncryptionContext_ = destinationEncryptionContext; - setParameter("DestinationEncryptionContext", destinationEncryptionContext); +ReEncryptRequest::~ReEncryptRequest() {} + +std::string ReEncryptRequest::getDestinationEncryptionContext() const { + return destinationEncryptionContext_; } -std::string ReEncryptRequest::getSourceEncryptionAlgorithm()const -{ - return sourceEncryptionAlgorithm_; +void ReEncryptRequest::setDestinationEncryptionContext(const std::string &destinationEncryptionContext) { + destinationEncryptionContext_ = destinationEncryptionContext; + setParameter(std::string("DestinationEncryptionContext"), destinationEncryptionContext); } -void ReEncryptRequest::setSourceEncryptionAlgorithm(const std::string& sourceEncryptionAlgorithm) -{ - sourceEncryptionAlgorithm_ = sourceEncryptionAlgorithm; - setParameter("SourceEncryptionAlgorithm", sourceEncryptionAlgorithm); +std::string ReEncryptRequest::getSourceEncryptionAlgorithm() const { + return sourceEncryptionAlgorithm_; } -std::string ReEncryptRequest::getSourceKeyVersionId()const -{ - return sourceKeyVersionId_; +void ReEncryptRequest::setSourceEncryptionAlgorithm(const std::string &sourceEncryptionAlgorithm) { + sourceEncryptionAlgorithm_ = sourceEncryptionAlgorithm; + setParameter(std::string("SourceEncryptionAlgorithm"), sourceEncryptionAlgorithm); } -void ReEncryptRequest::setSourceKeyVersionId(const std::string& sourceKeyVersionId) -{ - sourceKeyVersionId_ = sourceKeyVersionId; - setParameter("SourceKeyVersionId", sourceKeyVersionId); +std::string ReEncryptRequest::getSourceKeyVersionId() const { + return sourceKeyVersionId_; } -std::string ReEncryptRequest::getDestinationKeyId()const -{ - return destinationKeyId_; +void ReEncryptRequest::setSourceKeyVersionId(const std::string &sourceKeyVersionId) { + sourceKeyVersionId_ = sourceKeyVersionId; + setParameter(std::string("SourceKeyVersionId"), sourceKeyVersionId); } -void ReEncryptRequest::setDestinationKeyId(const std::string& destinationKeyId) -{ - destinationKeyId_ = destinationKeyId; - setParameter("DestinationKeyId", destinationKeyId); +std::string ReEncryptRequest::getDestinationKeyId() const { + return destinationKeyId_; } -std::string ReEncryptRequest::getSourceKeyId()const -{ - return sourceKeyId_; +void ReEncryptRequest::setDestinationKeyId(const std::string &destinationKeyId) { + destinationKeyId_ = destinationKeyId; + setParameter(std::string("DestinationKeyId"), destinationKeyId); } -void ReEncryptRequest::setSourceKeyId(const std::string& sourceKeyId) -{ - sourceKeyId_ = sourceKeyId; - setParameter("SourceKeyId", sourceKeyId); +std::string ReEncryptRequest::getSourceKeyId() const { + return sourceKeyId_; } -std::string ReEncryptRequest::getSourceEncryptionContext()const -{ - return sourceEncryptionContext_; +void ReEncryptRequest::setSourceKeyId(const std::string &sourceKeyId) { + sourceKeyId_ = sourceKeyId; + setParameter(std::string("SourceKeyId"), sourceKeyId); } -void ReEncryptRequest::setSourceEncryptionContext(const std::string& sourceEncryptionContext) -{ - sourceEncryptionContext_ = sourceEncryptionContext; - setParameter("SourceEncryptionContext", sourceEncryptionContext); +std::string ReEncryptRequest::getSourceEncryptionContext() const { + return sourceEncryptionContext_; } -std::string ReEncryptRequest::getCiphertextBlob()const -{ - return ciphertextBlob_; +void ReEncryptRequest::setSourceEncryptionContext(const std::string &sourceEncryptionContext) { + sourceEncryptionContext_ = sourceEncryptionContext; + setParameter(std::string("SourceEncryptionContext"), sourceEncryptionContext); } -void ReEncryptRequest::setCiphertextBlob(const std::string& ciphertextBlob) -{ - ciphertextBlob_ = ciphertextBlob; - setParameter("CiphertextBlob", ciphertextBlob); +std::string ReEncryptRequest::getCiphertextBlob() const { + return ciphertextBlob_; +} + +void ReEncryptRequest::setCiphertextBlob(const std::string &ciphertextBlob) { + ciphertextBlob_ = ciphertextBlob; + setParameter(std::string("CiphertextBlob"), ciphertextBlob); } diff --git a/kms/src/model/RestoreSecretRequest.cc b/kms/src/model/RestoreSecretRequest.cc index 09cfb9854..f4c7f8af2 100644 --- a/kms/src/model/RestoreSecretRequest.cc +++ b/kms/src/model/RestoreSecretRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::RestoreSecretRequest; - -RestoreSecretRequest::RestoreSecretRequest() : - RpcServiceRequest("kms", "2016-01-20", "RestoreSecret") -{ - setMethod(HttpRequest::Method::Post); -} - -RestoreSecretRequest::~RestoreSecretRequest() -{} - -std::string RestoreSecretRequest::getSecretName()const -{ - return secretName_; + */ + +#include + +using AlibabaCloud::Kms::Model::RestoreSecretRequest; + +RestoreSecretRequest::RestoreSecretRequest() + : RpcServiceRequest("kms", "2016-01-20", "RestoreSecret") { + setMethod(HttpRequest::Method::Post); } -void RestoreSecretRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +RestoreSecretRequest::~RestoreSecretRequest() {} + +std::string RestoreSecretRequest::getSecretName() const { + return secretName_; +} + +void RestoreSecretRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } diff --git a/kms/src/model/RotateSecretRequest.cc b/kms/src/model/RotateSecretRequest.cc index 078753ef2..d75f3b6c1 100644 --- a/kms/src/model/RotateSecretRequest.cc +++ b/kms/src/model/RotateSecretRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::RotateSecretRequest; - -RotateSecretRequest::RotateSecretRequest() : - RpcServiceRequest("kms", "2016-01-20", "RotateSecret") -{ - setMethod(HttpRequest::Method::Post); -} - -RotateSecretRequest::~RotateSecretRequest() -{} - -std::string RotateSecretRequest::getVersionId()const -{ - return versionId_; + */ + +#include + +using AlibabaCloud::Kms::Model::RotateSecretRequest; + +RotateSecretRequest::RotateSecretRequest() + : RpcServiceRequest("kms", "2016-01-20", "RotateSecret") { + setMethod(HttpRequest::Method::Post); } -void RotateSecretRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +RotateSecretRequest::~RotateSecretRequest() {} + +std::string RotateSecretRequest::getVersionId() const { + return versionId_; } -std::string RotateSecretRequest::getSecretName()const -{ - return secretName_; +void RotateSecretRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } -void RotateSecretRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string RotateSecretRequest::getSecretName() const { + return secretName_; +} + +void RotateSecretRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } diff --git a/kms/src/model/RotateSecretResult.cc b/kms/src/model/RotateSecretResult.cc index a235abd11..664c8f2c9 100644 --- a/kms/src/model/RotateSecretResult.cc +++ b/kms/src/model/RotateSecretResult.cc @@ -39,12 +39,12 @@ void RotateSecretResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Arn"].isNull()) - arn_ = value["Arn"].asString(); if(!value["VersionId"].isNull()) versionId_ = value["VersionId"].asString(); if(!value["SecretName"].isNull()) secretName_ = value["SecretName"].asString(); + if(!value["Arn"].isNull()) + arn_ = value["Arn"].asString(); } diff --git a/kms/src/model/ScheduleKeyDeletionRequest.cc b/kms/src/model/ScheduleKeyDeletionRequest.cc index 93b857e06..67991ce15 100644 --- a/kms/src/model/ScheduleKeyDeletionRequest.cc +++ b/kms/src/model/ScheduleKeyDeletionRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::ScheduleKeyDeletionRequest; - -ScheduleKeyDeletionRequest::ScheduleKeyDeletionRequest() : - RpcServiceRequest("kms", "2016-01-20", "ScheduleKeyDeletion") -{ - setMethod(HttpRequest::Method::Post); -} - -ScheduleKeyDeletionRequest::~ScheduleKeyDeletionRequest() -{} - -int ScheduleKeyDeletionRequest::getPendingWindowInDays()const -{ - return pendingWindowInDays_; + */ + +#include + +using AlibabaCloud::Kms::Model::ScheduleKeyDeletionRequest; + +ScheduleKeyDeletionRequest::ScheduleKeyDeletionRequest() + : RpcServiceRequest("kms", "2016-01-20", "ScheduleKeyDeletion") { + setMethod(HttpRequest::Method::Post); } -void ScheduleKeyDeletionRequest::setPendingWindowInDays(int pendingWindowInDays) -{ - pendingWindowInDays_ = pendingWindowInDays; - setParameter("PendingWindowInDays", std::to_string(pendingWindowInDays)); +ScheduleKeyDeletionRequest::~ScheduleKeyDeletionRequest() {} + +int ScheduleKeyDeletionRequest::getPendingWindowInDays() const { + return pendingWindowInDays_; } -std::string ScheduleKeyDeletionRequest::getKeyId()const -{ - return keyId_; +void ScheduleKeyDeletionRequest::setPendingWindowInDays(int pendingWindowInDays) { + pendingWindowInDays_ = pendingWindowInDays; + setParameter(std::string("PendingWindowInDays"), std::to_string(pendingWindowInDays)); } -void ScheduleKeyDeletionRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string ScheduleKeyDeletionRequest::getKeyId() const { + return keyId_; +} + +void ScheduleKeyDeletionRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/SetDeletionProtectionRequest.cc b/kms/src/model/SetDeletionProtectionRequest.cc index 7bdd3b012..babf5b5a9 100644 --- a/kms/src/model/SetDeletionProtectionRequest.cc +++ b/kms/src/model/SetDeletionProtectionRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::SetDeletionProtectionRequest; - -SetDeletionProtectionRequest::SetDeletionProtectionRequest() : - RpcServiceRequest("kms", "2016-01-20", "SetDeletionProtection") -{ - setMethod(HttpRequest::Method::Post); -} - -SetDeletionProtectionRequest::~SetDeletionProtectionRequest() -{} - -bool SetDeletionProtectionRequest::getEnableDeletionProtection()const -{ - return enableDeletionProtection_; + */ + +#include + +using AlibabaCloud::Kms::Model::SetDeletionProtectionRequest; + +SetDeletionProtectionRequest::SetDeletionProtectionRequest() + : RpcServiceRequest("kms", "2016-01-20", "SetDeletionProtection") { + setMethod(HttpRequest::Method::Post); } -void SetDeletionProtectionRequest::setEnableDeletionProtection(bool enableDeletionProtection) -{ - enableDeletionProtection_ = enableDeletionProtection; - setParameter("EnableDeletionProtection", enableDeletionProtection ? "true" : "false"); +SetDeletionProtectionRequest::~SetDeletionProtectionRequest() {} + +bool SetDeletionProtectionRequest::getEnableDeletionProtection() const { + return enableDeletionProtection_; } -std::string SetDeletionProtectionRequest::getProtectedResourceArn()const -{ - return protectedResourceArn_; +void SetDeletionProtectionRequest::setEnableDeletionProtection(bool enableDeletionProtection) { + enableDeletionProtection_ = enableDeletionProtection; + setParameter(std::string("EnableDeletionProtection"), enableDeletionProtection ? "true" : "false"); } -void SetDeletionProtectionRequest::setProtectedResourceArn(const std::string& protectedResourceArn) -{ - protectedResourceArn_ = protectedResourceArn; - setParameter("ProtectedResourceArn", protectedResourceArn); +std::string SetDeletionProtectionRequest::getProtectedResourceArn() const { + return protectedResourceArn_; } -std::string SetDeletionProtectionRequest::getDeletionProtectionDescription()const -{ - return deletionProtectionDescription_; +void SetDeletionProtectionRequest::setProtectedResourceArn(const std::string &protectedResourceArn) { + protectedResourceArn_ = protectedResourceArn; + setParameter(std::string("ProtectedResourceArn"), protectedResourceArn); } -void SetDeletionProtectionRequest::setDeletionProtectionDescription(const std::string& deletionProtectionDescription) -{ - deletionProtectionDescription_ = deletionProtectionDescription; - setParameter("DeletionProtectionDescription", deletionProtectionDescription); +std::string SetDeletionProtectionRequest::getDeletionProtectionDescription() const { + return deletionProtectionDescription_; +} + +void SetDeletionProtectionRequest::setDeletionProtectionDescription(const std::string &deletionProtectionDescription) { + deletionProtectionDescription_ = deletionProtectionDescription; + setParameter(std::string("DeletionProtectionDescription"), deletionProtectionDescription); } diff --git a/kms/src/model/TagResourceRequest.cc b/kms/src/model/TagResourceRequest.cc index 62c82ebc2..f22c02811 100644 --- a/kms/src/model/TagResourceRequest.cc +++ b/kms/src/model/TagResourceRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::TagResourceRequest; - -TagResourceRequest::TagResourceRequest() : - RpcServiceRequest("kms", "2016-01-20", "TagResource") -{ - setMethod(HttpRequest::Method::Post); -} - -TagResourceRequest::~TagResourceRequest() -{} - -std::string TagResourceRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::TagResourceRequest; + +TagResourceRequest::TagResourceRequest() + : RpcServiceRequest("kms", "2016-01-20", "TagResource") { + setMethod(HttpRequest::Method::Post); } -void TagResourceRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +TagResourceRequest::~TagResourceRequest() {} + +std::string TagResourceRequest::getCertificateId() const { + return certificateId_; } -std::string TagResourceRequest::getKeyId()const -{ - return keyId_; +void TagResourceRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void TagResourceRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string TagResourceRequest::getKeyId() const { + return keyId_; } -std::string TagResourceRequest::getSecretName()const -{ - return secretName_; +void TagResourceRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void TagResourceRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string TagResourceRequest::getSecretName() const { + return secretName_; } -std::string TagResourceRequest::getTags()const -{ - return tags_; +void TagResourceRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } -void TagResourceRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +std::string TagResourceRequest::getTags() const { + return tags_; +} + +void TagResourceRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); } diff --git a/kms/src/model/UntagResourceRequest.cc b/kms/src/model/UntagResourceRequest.cc index 42682bd25..09acfd716 100644 --- a/kms/src/model/UntagResourceRequest.cc +++ b/kms/src/model/UntagResourceRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::UntagResourceRequest; - -UntagResourceRequest::UntagResourceRequest() : - RpcServiceRequest("kms", "2016-01-20", "UntagResource") -{ - setMethod(HttpRequest::Method::Post); -} - -UntagResourceRequest::~UntagResourceRequest() -{} - -std::string UntagResourceRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::UntagResourceRequest; + +UntagResourceRequest::UntagResourceRequest() + : RpcServiceRequest("kms", "2016-01-20", "UntagResource") { + setMethod(HttpRequest::Method::Post); } -void UntagResourceRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +UntagResourceRequest::~UntagResourceRequest() {} + +std::string UntagResourceRequest::getCertificateId() const { + return certificateId_; } -std::string UntagResourceRequest::getTagKeys()const -{ - return tagKeys_; +void UntagResourceRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void UntagResourceRequest::setTagKeys(const std::string& tagKeys) -{ - tagKeys_ = tagKeys; - setParameter("TagKeys", tagKeys); +std::string UntagResourceRequest::getTagKeys() const { + return tagKeys_; } -std::string UntagResourceRequest::getKeyId()const -{ - return keyId_; +void UntagResourceRequest::setTagKeys(const std::string &tagKeys) { + tagKeys_ = tagKeys; + setParameter(std::string("TagKeys"), tagKeys); } -void UntagResourceRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string UntagResourceRequest::getKeyId() const { + return keyId_; } -std::string UntagResourceRequest::getSecretName()const -{ - return secretName_; +void UntagResourceRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void UntagResourceRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string UntagResourceRequest::getSecretName() const { + return secretName_; +} + +void UntagResourceRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } diff --git a/kms/src/model/UpdateAliasRequest.cc b/kms/src/model/UpdateAliasRequest.cc index 930e02662..f03c156ff 100644 --- a/kms/src/model/UpdateAliasRequest.cc +++ b/kms/src/model/UpdateAliasRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::UpdateAliasRequest; - -UpdateAliasRequest::UpdateAliasRequest() : - RpcServiceRequest("kms", "2016-01-20", "UpdateAlias") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateAliasRequest::~UpdateAliasRequest() -{} - -std::string UpdateAliasRequest::getAliasName()const -{ - return aliasName_; + */ + +#include + +using AlibabaCloud::Kms::Model::UpdateAliasRequest; + +UpdateAliasRequest::UpdateAliasRequest() + : RpcServiceRequest("kms", "2016-01-20", "UpdateAlias") { + setMethod(HttpRequest::Method::Post); } -void UpdateAliasRequest::setAliasName(const std::string& aliasName) -{ - aliasName_ = aliasName; - setParameter("AliasName", aliasName); +UpdateAliasRequest::~UpdateAliasRequest() {} + +std::string UpdateAliasRequest::getAliasName() const { + return aliasName_; } -std::string UpdateAliasRequest::getKeyId()const -{ - return keyId_; +void UpdateAliasRequest::setAliasName(const std::string &aliasName) { + aliasName_ = aliasName; + setParameter(std::string("AliasName"), aliasName); } -void UpdateAliasRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +std::string UpdateAliasRequest::getKeyId() const { + return keyId_; +} + +void UpdateAliasRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } diff --git a/kms/src/model/UpdateCertificateStatusRequest.cc b/kms/src/model/UpdateCertificateStatusRequest.cc index 813b02004..c424437a0 100644 --- a/kms/src/model/UpdateCertificateStatusRequest.cc +++ b/kms/src/model/UpdateCertificateStatusRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::UpdateCertificateStatusRequest; - -UpdateCertificateStatusRequest::UpdateCertificateStatusRequest() : - RpcServiceRequest("kms", "2016-01-20", "UpdateCertificateStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateCertificateStatusRequest::~UpdateCertificateStatusRequest() -{} - -std::string UpdateCertificateStatusRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::UpdateCertificateStatusRequest; + +UpdateCertificateStatusRequest::UpdateCertificateStatusRequest() + : RpcServiceRequest("kms", "2016-01-20", "UpdateCertificateStatus") { + setMethod(HttpRequest::Method::Post); } -void UpdateCertificateStatusRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +UpdateCertificateStatusRequest::~UpdateCertificateStatusRequest() {} + +std::string UpdateCertificateStatusRequest::getCertificateId() const { + return certificateId_; } -std::string UpdateCertificateStatusRequest::getStatus()const -{ - return status_; +void UpdateCertificateStatusRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void UpdateCertificateStatusRequest::setStatus(const std::string& status) -{ - status_ = status; - setParameter("Status", status); +std::string UpdateCertificateStatusRequest::getStatus() const { + return status_; +} + +void UpdateCertificateStatusRequest::setStatus(const std::string &status) { + status_ = status; + setParameter(std::string("Status"), status); } diff --git a/kms/src/model/UpdateKeyDescriptionRequest.cc b/kms/src/model/UpdateKeyDescriptionRequest.cc index f1bd217a1..4cfd532d4 100644 --- a/kms/src/model/UpdateKeyDescriptionRequest.cc +++ b/kms/src/model/UpdateKeyDescriptionRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::UpdateKeyDescriptionRequest; - -UpdateKeyDescriptionRequest::UpdateKeyDescriptionRequest() : - RpcServiceRequest("kms", "2016-01-20", "UpdateKeyDescription") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateKeyDescriptionRequest::~UpdateKeyDescriptionRequest() -{} - -std::string UpdateKeyDescriptionRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::UpdateKeyDescriptionRequest; + +UpdateKeyDescriptionRequest::UpdateKeyDescriptionRequest() + : RpcServiceRequest("kms", "2016-01-20", "UpdateKeyDescription") { + setMethod(HttpRequest::Method::Post); } -void UpdateKeyDescriptionRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +UpdateKeyDescriptionRequest::~UpdateKeyDescriptionRequest() {} + +std::string UpdateKeyDescriptionRequest::getKeyId() const { + return keyId_; } -std::string UpdateKeyDescriptionRequest::getDescription()const -{ - return description_; +void UpdateKeyDescriptionRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void UpdateKeyDescriptionRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string UpdateKeyDescriptionRequest::getDescription() const { + return description_; +} + +void UpdateKeyDescriptionRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } diff --git a/kms/src/model/UpdateRotationPolicyRequest.cc b/kms/src/model/UpdateRotationPolicyRequest.cc index f54af5992..ea545036a 100644 --- a/kms/src/model/UpdateRotationPolicyRequest.cc +++ b/kms/src/model/UpdateRotationPolicyRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::UpdateRotationPolicyRequest; - -UpdateRotationPolicyRequest::UpdateRotationPolicyRequest() : - RpcServiceRequest("kms", "2016-01-20", "UpdateRotationPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateRotationPolicyRequest::~UpdateRotationPolicyRequest() -{} - -std::string UpdateRotationPolicyRequest::getKeyId()const -{ - return keyId_; + */ + +#include + +using AlibabaCloud::Kms::Model::UpdateRotationPolicyRequest; + +UpdateRotationPolicyRequest::UpdateRotationPolicyRequest() + : RpcServiceRequest("kms", "2016-01-20", "UpdateRotationPolicy") { + setMethod(HttpRequest::Method::Post); } -void UpdateRotationPolicyRequest::setKeyId(const std::string& keyId) -{ - keyId_ = keyId; - setParameter("KeyId", keyId); +UpdateRotationPolicyRequest::~UpdateRotationPolicyRequest() {} + +std::string UpdateRotationPolicyRequest::getKeyId() const { + return keyId_; } -std::string UpdateRotationPolicyRequest::getRotationInterval()const -{ - return rotationInterval_; +void UpdateRotationPolicyRequest::setKeyId(const std::string &keyId) { + keyId_ = keyId; + setParameter(std::string("KeyId"), keyId); } -void UpdateRotationPolicyRequest::setRotationInterval(const std::string& rotationInterval) -{ - rotationInterval_ = rotationInterval; - setParameter("RotationInterval", rotationInterval); +std::string UpdateRotationPolicyRequest::getRotationInterval() const { + return rotationInterval_; } -bool UpdateRotationPolicyRequest::getEnableAutomaticRotation()const -{ - return enableAutomaticRotation_; +void UpdateRotationPolicyRequest::setRotationInterval(const std::string &rotationInterval) { + rotationInterval_ = rotationInterval; + setParameter(std::string("RotationInterval"), rotationInterval); } -void UpdateRotationPolicyRequest::setEnableAutomaticRotation(bool enableAutomaticRotation) -{ - enableAutomaticRotation_ = enableAutomaticRotation; - setParameter("EnableAutomaticRotation", enableAutomaticRotation ? "true" : "false"); +bool UpdateRotationPolicyRequest::getEnableAutomaticRotation() const { + return enableAutomaticRotation_; +} + +void UpdateRotationPolicyRequest::setEnableAutomaticRotation(bool enableAutomaticRotation) { + enableAutomaticRotation_ = enableAutomaticRotation; + setParameter(std::string("EnableAutomaticRotation"), enableAutomaticRotation ? "true" : "false"); } diff --git a/kms/src/model/UpdateSecretRequest.cc b/kms/src/model/UpdateSecretRequest.cc index 6631a7d65..37ba993b1 100644 --- a/kms/src/model/UpdateSecretRequest.cc +++ b/kms/src/model/UpdateSecretRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::UpdateSecretRequest; - -UpdateSecretRequest::UpdateSecretRequest() : - RpcServiceRequest("kms", "2016-01-20", "UpdateSecret") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSecretRequest::~UpdateSecretRequest() -{} - -std::string UpdateSecretRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::Kms::Model::UpdateSecretRequest; + +UpdateSecretRequest::UpdateSecretRequest() + : RpcServiceRequest("kms", "2016-01-20", "UpdateSecret") { + setMethod(HttpRequest::Method::Post); } -void UpdateSecretRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +UpdateSecretRequest::~UpdateSecretRequest() {} + +std::string UpdateSecretRequest::getDescription() const { + return description_; } -std::string UpdateSecretRequest::getSecretName()const -{ - return secretName_; +void UpdateSecretRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void UpdateSecretRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string UpdateSecretRequest::getSecretName() const { + return secretName_; } -std::string UpdateSecretRequest::getExtendedConfigCustomData()const -{ - return extendedConfigCustomData_; +void UpdateSecretRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } -void UpdateSecretRequest::setExtendedConfigCustomData(const std::string& extendedConfigCustomData) -{ - extendedConfigCustomData_ = extendedConfigCustomData; - setParameter("ExtendedConfigCustomData", extendedConfigCustomData); +std::string UpdateSecretRequest::getExtendedConfigCustomData() const { + return extendedConfigCustomData_; +} + +void UpdateSecretRequest::setExtendedConfigCustomData(const std::string &extendedConfigCustomData) { + extendedConfigCustomData_ = extendedConfigCustomData; + setParameter(std::string("ExtendedConfig.CustomData"), extendedConfigCustomData); } diff --git a/kms/src/model/UpdateSecretRotationPolicyRequest.cc b/kms/src/model/UpdateSecretRotationPolicyRequest.cc index 6691ea110..33f25bdcc 100644 --- a/kms/src/model/UpdateSecretRotationPolicyRequest.cc +++ b/kms/src/model/UpdateSecretRotationPolicyRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::UpdateSecretRotationPolicyRequest; - -UpdateSecretRotationPolicyRequest::UpdateSecretRotationPolicyRequest() : - RpcServiceRequest("kms", "2016-01-20", "UpdateSecretRotationPolicy") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSecretRotationPolicyRequest::~UpdateSecretRotationPolicyRequest() -{} - -std::string UpdateSecretRotationPolicyRequest::getRotationInterval()const -{ - return rotationInterval_; + */ + +#include + +using AlibabaCloud::Kms::Model::UpdateSecretRotationPolicyRequest; + +UpdateSecretRotationPolicyRequest::UpdateSecretRotationPolicyRequest() + : RpcServiceRequest("kms", "2016-01-20", "UpdateSecretRotationPolicy") { + setMethod(HttpRequest::Method::Post); } -void UpdateSecretRotationPolicyRequest::setRotationInterval(const std::string& rotationInterval) -{ - rotationInterval_ = rotationInterval; - setParameter("RotationInterval", rotationInterval); +UpdateSecretRotationPolicyRequest::~UpdateSecretRotationPolicyRequest() {} + +std::string UpdateSecretRotationPolicyRequest::getRotationInterval() const { + return rotationInterval_; } -std::string UpdateSecretRotationPolicyRequest::getSecretName()const -{ - return secretName_; +void UpdateSecretRotationPolicyRequest::setRotationInterval(const std::string &rotationInterval) { + rotationInterval_ = rotationInterval; + setParameter(std::string("RotationInterval"), rotationInterval); } -void UpdateSecretRotationPolicyRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string UpdateSecretRotationPolicyRequest::getSecretName() const { + return secretName_; } -bool UpdateSecretRotationPolicyRequest::getEnableAutomaticRotation()const -{ - return enableAutomaticRotation_; +void UpdateSecretRotationPolicyRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } -void UpdateSecretRotationPolicyRequest::setEnableAutomaticRotation(bool enableAutomaticRotation) -{ - enableAutomaticRotation_ = enableAutomaticRotation; - setParameter("EnableAutomaticRotation", enableAutomaticRotation ? "true" : "false"); +bool UpdateSecretRotationPolicyRequest::getEnableAutomaticRotation() const { + return enableAutomaticRotation_; +} + +void UpdateSecretRotationPolicyRequest::setEnableAutomaticRotation(bool enableAutomaticRotation) { + enableAutomaticRotation_ = enableAutomaticRotation; + setParameter(std::string("EnableAutomaticRotation"), enableAutomaticRotation ? "true" : "false"); } diff --git a/kms/src/model/UpdateSecretVersionStageRequest.cc b/kms/src/model/UpdateSecretVersionStageRequest.cc index 1765330bb..02449f4ae 100644 --- a/kms/src/model/UpdateSecretVersionStageRequest.cc +++ b/kms/src/model/UpdateSecretVersionStageRequest.cc @@ -1,73 +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. - */ - -#include - -using AlibabaCloud::Kms::Model::UpdateSecretVersionStageRequest; - -UpdateSecretVersionStageRequest::UpdateSecretVersionStageRequest() : - RpcServiceRequest("kms", "2016-01-20", "UpdateSecretVersionStage") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateSecretVersionStageRequest::~UpdateSecretVersionStageRequest() -{} - -std::string UpdateSecretVersionStageRequest::getRemoveFromVersion()const -{ - return removeFromVersion_; + */ + +#include + +using AlibabaCloud::Kms::Model::UpdateSecretVersionStageRequest; + +UpdateSecretVersionStageRequest::UpdateSecretVersionStageRequest() + : RpcServiceRequest("kms", "2016-01-20", "UpdateSecretVersionStage") { + setMethod(HttpRequest::Method::Post); } -void UpdateSecretVersionStageRequest::setRemoveFromVersion(const std::string& removeFromVersion) -{ - removeFromVersion_ = removeFromVersion; - setParameter("RemoveFromVersion", removeFromVersion); +UpdateSecretVersionStageRequest::~UpdateSecretVersionStageRequest() {} + +std::string UpdateSecretVersionStageRequest::getRemoveFromVersion() const { + return removeFromVersion_; } -std::string UpdateSecretVersionStageRequest::getMoveToVersion()const -{ - return moveToVersion_; +void UpdateSecretVersionStageRequest::setRemoveFromVersion(const std::string &removeFromVersion) { + removeFromVersion_ = removeFromVersion; + setParameter(std::string("RemoveFromVersion"), removeFromVersion); } -void UpdateSecretVersionStageRequest::setMoveToVersion(const std::string& moveToVersion) -{ - moveToVersion_ = moveToVersion; - setParameter("MoveToVersion", moveToVersion); +std::string UpdateSecretVersionStageRequest::getMoveToVersion() const { + return moveToVersion_; } -std::string UpdateSecretVersionStageRequest::getVersionStage()const -{ - return versionStage_; +void UpdateSecretVersionStageRequest::setMoveToVersion(const std::string &moveToVersion) { + moveToVersion_ = moveToVersion; + setParameter(std::string("MoveToVersion"), moveToVersion); } -void UpdateSecretVersionStageRequest::setVersionStage(const std::string& versionStage) -{ - versionStage_ = versionStage; - setParameter("VersionStage", versionStage); +std::string UpdateSecretVersionStageRequest::getVersionStage() const { + return versionStage_; } -std::string UpdateSecretVersionStageRequest::getSecretName()const -{ - return secretName_; +void UpdateSecretVersionStageRequest::setVersionStage(const std::string &versionStage) { + versionStage_ = versionStage; + setParameter(std::string("VersionStage"), versionStage); } -void UpdateSecretVersionStageRequest::setSecretName(const std::string& secretName) -{ - secretName_ = secretName; - setParameter("SecretName", secretName); +std::string UpdateSecretVersionStageRequest::getSecretName() const { + return secretName_; +} + +void UpdateSecretVersionStageRequest::setSecretName(const std::string &secretName) { + secretName_ = secretName; + setParameter(std::string("SecretName"), secretName); } diff --git a/kms/src/model/UploadCertificateRequest.cc b/kms/src/model/UploadCertificateRequest.cc index f5ef93917..74e9629ea 100644 --- a/kms/src/model/UploadCertificateRequest.cc +++ b/kms/src/model/UploadCertificateRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Kms::Model::UploadCertificateRequest; - -UploadCertificateRequest::UploadCertificateRequest() : - RpcServiceRequest("kms", "2016-01-20", "UploadCertificate") -{ - setMethod(HttpRequest::Method::Post); -} - -UploadCertificateRequest::~UploadCertificateRequest() -{} - -std::string UploadCertificateRequest::getCertificateId()const -{ - return certificateId_; + */ + +#include + +using AlibabaCloud::Kms::Model::UploadCertificateRequest; + +UploadCertificateRequest::UploadCertificateRequest() + : RpcServiceRequest("kms", "2016-01-20", "UploadCertificate") { + setMethod(HttpRequest::Method::Post); } -void UploadCertificateRequest::setCertificateId(const std::string& certificateId) -{ - certificateId_ = certificateId; - setParameter("CertificateId", certificateId); +UploadCertificateRequest::~UploadCertificateRequest() {} + +std::string UploadCertificateRequest::getCertificateId() const { + return certificateId_; } -std::string UploadCertificateRequest::getCertificate()const -{ - return certificate_; +void UploadCertificateRequest::setCertificateId(const std::string &certificateId) { + certificateId_ = certificateId; + setParameter(std::string("CertificateId"), certificateId); } -void UploadCertificateRequest::setCertificate(const std::string& certificate) -{ - certificate_ = certificate; - setParameter("Certificate", certificate); +std::string UploadCertificateRequest::getCertificate() const { + return certificate_; } -std::string UploadCertificateRequest::getCertificateChain()const -{ - return certificateChain_; +void UploadCertificateRequest::setCertificate(const std::string &certificate) { + certificate_ = certificate; + setParameter(std::string("Certificate"), certificate); } -void UploadCertificateRequest::setCertificateChain(const std::string& certificateChain) -{ - certificateChain_ = certificateChain; - setParameter("CertificateChain", certificateChain); +std::string UploadCertificateRequest::getCertificateChain() const { + return certificateChain_; +} + +void UploadCertificateRequest::setCertificateChain(const std::string &certificateChain) { + certificateChain_ = certificateChain; + setParameter(std::string("CertificateChain"), certificateChain); }