diff --git a/sdk/attestation/azure-security-attestation/src/attestation_administration_client.cpp b/sdk/attestation/azure-security-attestation/src/attestation_administration_client.cpp index 1627211c9d..da9ff53d94 100644 --- a/sdk/attestation/azure-security-attestation/src/attestation_administration_client.cpp +++ b/sdk/attestation/azure-security-attestation/src/attestation_administration_client.cpp @@ -3,7 +3,6 @@ #include "azure/attestation/attestation_administration_client.hpp" -#include "azure/attestation/attestation_client.hpp" #include "private/attestation_client_models_private.hpp" #include "private/attestation_client_private.hpp" #include "private/attestation_common_request.hpp" @@ -12,7 +11,6 @@ #include #include -#include #include #include @@ -28,7 +26,6 @@ using namespace Azure::Core::Http; using namespace Azure::Core::Http::Policies; using namespace Azure::Core::Http::Policies::_internal; using namespace Azure::Core::Http::_internal; -using namespace Azure::Core::Diagnostics::_internal; using namespace Azure::Core::Diagnostics; using namespace Azure::Core::_internal; diff --git a/sdk/attestation/azure-security-attestation/src/attestation_client.cpp b/sdk/attestation/azure-security-attestation/src/attestation_client.cpp index db066520f5..aee46a7a9c 100644 --- a/sdk/attestation/azure-security-attestation/src/attestation_client.cpp +++ b/sdk/attestation/azure-security-attestation/src/attestation_client.cpp @@ -3,7 +3,6 @@ #include "azure/attestation/attestation_client.hpp" -#include "azure/attestation/attestation_administration_client.hpp" #include "private/attestation_client_models_private.hpp" #include "private/attestation_client_private.hpp" #include "private/attestation_common_request.hpp" @@ -13,7 +12,6 @@ #include #include #include -#include #include #include diff --git a/sdk/attestation/azure-security-attestation/src/private/attestation_client_private.cpp b/sdk/attestation/azure-security-attestation/src/private/attestation_client_private.cpp index 7854df7052..5de6d9cb50 100644 --- a/sdk/attestation/azure-security-attestation/src/private/attestation_client_private.cpp +++ b/sdk/attestation/azure-security-attestation/src/private/attestation_client_private.cpp @@ -12,8 +12,6 @@ #include -#include -#include #include #include #include diff --git a/sdk/attestation/azure-security-attestation/src/private/attestation_deserializers_private.cpp b/sdk/attestation/azure-security-attestation/src/private/attestation_deserializers_private.cpp index e85bac4a4f..5a3c77726c 100644 --- a/sdk/attestation/azure-security-attestation/src/private/attestation_deserializers_private.cpp +++ b/sdk/attestation/azure-security-attestation/src/private/attestation_deserializers_private.cpp @@ -19,14 +19,10 @@ #include "jsonhelpers_private.hpp" #include -#include #include -#include #include #include -#include #include -#include #include #include diff --git a/sdk/attestation/azure-security-attestation/src/private/jsonhelpers.cpp b/sdk/attestation/azure-security-attestation/src/private/jsonhelpers.cpp index d7132cbca6..1016b0bd3a 100644 --- a/sdk/attestation/azure-security-attestation/src/private/jsonhelpers.cpp +++ b/sdk/attestation/azure-security-attestation/src/private/jsonhelpers.cpp @@ -14,13 +14,9 @@ #include "jsonhelpers_private.hpp" #include -#include #include -#include -#include #include -#include #include #include diff --git a/sdk/core/azure-core/src/http/transport_policy.cpp b/sdk/core/azure-core/src/http/transport_policy.cpp index 10d037011d..78b235c9ef 100644 --- a/sdk/core/azure-core/src/http/transport_policy.cpp +++ b/sdk/core/azure-core/src/http/transport_policy.cpp @@ -2,7 +2,6 @@ // Licensed under the MIT License. #include "azure/core/http/policies/policy.hpp" -#include "azure/core/platform.hpp" #if defined(BUILD_CURL_HTTP_TRANSPORT_ADAPTER) #include "azure/core/http/curl_transport.hpp" diff --git a/sdk/core/azure-core/src/resource_identifier.cpp b/sdk/core/azure-core/src/resource_identifier.cpp index f23f853eb1..d9c1e853d2 100644 --- a/sdk/core/azure-core/src/resource_identifier.cpp +++ b/sdk/core/azure-core/src/resource_identifier.cpp @@ -4,7 +4,6 @@ #include "azure/core/resource_identifier.hpp" #include -#include namespace { const std::string SubscriptionStart = "/subscriptions/"; diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/consumer_client.cpp b/sdk/eventhubs/azure-messaging-eventhubs/src/consumer_client.cpp index 97e98a7f35..fd5f3d3a2d 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/consumer_client.cpp +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/consumer_client.cpp @@ -6,7 +6,6 @@ #include "private/package_version.hpp" #include -#include #include using namespace Azure::Core::Diagnostics::_internal; diff --git a/sdk/eventhubs/azure-messaging-eventhubs/src/event_data.cpp b/sdk/eventhubs/azure-messaging-eventhubs/src/event_data.cpp index 5212e9a417..2c7a11393c 100644 --- a/sdk/eventhubs/azure-messaging-eventhubs/src/event_data.cpp +++ b/sdk/eventhubs/azure-messaging-eventhubs/src/event_data.cpp @@ -9,9 +9,7 @@ #include #include -#include #include -#include using namespace Azure::Core::Diagnostics::_internal; using namespace Azure::Core::Diagnostics; diff --git a/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt b/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt index 0c08f15766..3e314ebd60 100644 --- a/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt +++ b/sdk/keyvault/azure-security-keyvault-certificates/CMakeLists.txt @@ -60,12 +60,12 @@ set( set( AZURE_KEYVAULT_CERTIFICATES_SOURCE src/certificate_client.cpp + src/certificate_client_models.cpp src/certificate_client_operations.cpp src/certificate_client_paged_response.cpp src/certificate_serializers.cpp src/keyvault_certificates_common_request.cpp src/private/certificate_constants.hpp - src/private/certificate_key_usage.hpp src/private/certificate_serializers.hpp src/private/keyvault_certificates_common_request.hpp src/private/package_version.hpp diff --git a/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_client.cpp b/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_client.cpp index dfb8eb889f..188fdb5ca3 100644 --- a/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_client.cpp +++ b/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_client.cpp @@ -10,7 +10,6 @@ #include "private/keyvault_certificates_common_request.hpp" #include "private/package_version.hpp" -#include #include #include #include diff --git a/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_client_models.cpp b/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_client_models.cpp new file mode 100644 index 0000000000..0280d6b64e --- /dev/null +++ b/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_client_models.cpp @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. + +#include "azure/keyvault/certificates/certificate_client_models.hpp" + +#include "private/certificate_constants.hpp" + +using namespace Azure::Security::KeyVault::Certificates; + +const CertificateKeyUsage CertificateKeyUsage::DigitalSignature(_detail::DigitalSignatureValue); +const CertificateKeyUsage CertificateKeyUsage::NonRepudiation(_detail::NonRepudiationValue); +const CertificateKeyUsage CertificateKeyUsage::KeyEncipherment(_detail::KeyEnciphermentValue); +const CertificateKeyUsage CertificateKeyUsage::DataEncipherment(_detail::DataEnciphermentValue); +const CertificateKeyUsage CertificateKeyUsage::KeyAgreement(_detail::KeyAgreementValue); +const CertificateKeyUsage CertificateKeyUsage::KeyCertSign(_detail::KeyCertSignValue); +const CertificateKeyUsage CertificateKeyUsage::CrlSign(_detail::CrlSignValue); +const CertificateKeyUsage CertificateKeyUsage::EncipherOnly(_detail::EncipherOnlyValue); +const CertificateKeyUsage CertificateKeyUsage::DecipherOnly(_detail::DecipherOnlyValue); + +const CertificateKeyType CertificateKeyType::Ec(_detail::EcValue); +const CertificateKeyType CertificateKeyType::EcHsm(_detail::EcHsmValue); +const CertificateKeyType CertificateKeyType::Rsa(_detail::RsaValue); +const CertificateKeyType CertificateKeyType::RsaHsm(_detail::RsaHsmValue); + +const CertificateKeyCurveName CertificateKeyCurveName::P256(_detail::P256Value); +const CertificateKeyCurveName CertificateKeyCurveName::P256K(_detail::P256KValue); +const CertificateKeyCurveName CertificateKeyCurveName::P384(_detail::P384Value); +const CertificateKeyCurveName CertificateKeyCurveName::P521(_detail::P521Value); + +const CertificateContentType CertificateContentType::Pkcs12(_detail::Pkc12Value); +const CertificateContentType CertificateContentType::Pem(_detail::PemValue); + +const CertificatePolicyAction CertificatePolicyAction::AutoRenew(_detail::AutoRenewValue); +const CertificatePolicyAction CertificatePolicyAction::EmailContacts(_detail::EmailContactsValue); diff --git a/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_serializers.cpp b/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_serializers.cpp index 3ace87d76b..dedca3b1f5 100644 --- a/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_serializers.cpp +++ b/sdk/keyvault/azure-security-keyvault-certificates/src/certificate_serializers.cpp @@ -5,7 +5,6 @@ #include "azure/keyvault/certificates/certificate_client_models.hpp" #include "private/certificate_constants.hpp" -#include "private/certificate_key_usage.hpp" #include #include diff --git a/sdk/keyvault/azure-security-keyvault-certificates/src/keyvault_certificates_common_request.cpp b/sdk/keyvault/azure-security-keyvault-certificates/src/keyvault_certificates_common_request.cpp index 5c5c1dcb08..de0e0efa93 100644 --- a/sdk/keyvault/azure-security-keyvault-certificates/src/keyvault_certificates_common_request.cpp +++ b/sdk/keyvault/azure-security-keyvault-certificates/src/keyvault_certificates_common_request.cpp @@ -3,8 +3,6 @@ #include "private/keyvault_certificates_common_request.hpp" -#include "private/certificate_constants.hpp" - #include #include diff --git a/sdk/keyvault/azure-security-keyvault-certificates/src/private/certificate_key_usage.hpp b/sdk/keyvault/azure-security-keyvault-certificates/src/private/certificate_key_usage.hpp deleted file mode 100644 index 4e81d38280..0000000000 --- a/sdk/keyvault/azure-security-keyvault-certificates/src/private/certificate_key_usage.hpp +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -/** - * @file - * @brief Key Usage constants. - * - */ -#pragma once -#include - -namespace Azure { namespace Security { namespace KeyVault { namespace Certificates { - - const CertificateKeyUsage CertificateKeyUsage::DigitalSignature(_detail::DigitalSignatureValue); - const CertificateKeyUsage CertificateKeyUsage::NonRepudiation(_detail::NonRepudiationValue); - const CertificateKeyUsage CertificateKeyUsage::KeyEncipherment(_detail::KeyEnciphermentValue); - const CertificateKeyUsage CertificateKeyUsage::DataEncipherment(_detail::DataEnciphermentValue); - const CertificateKeyUsage CertificateKeyUsage::KeyAgreement(_detail::KeyAgreementValue); - const CertificateKeyUsage CertificateKeyUsage::KeyCertSign(_detail::KeyCertSignValue); - const CertificateKeyUsage CertificateKeyUsage::CrlSign(_detail::CrlSignValue); - const CertificateKeyUsage CertificateKeyUsage::EncipherOnly(_detail::EncipherOnlyValue); - const CertificateKeyUsage CertificateKeyUsage::DecipherOnly(_detail::DecipherOnlyValue); - - const CertificateKeyType CertificateKeyType::Ec(_detail::EcValue); - const CertificateKeyType CertificateKeyType::EcHsm(_detail::EcHsmValue); - const CertificateKeyType CertificateKeyType::Rsa(_detail::RsaValue); - const CertificateKeyType CertificateKeyType::RsaHsm(_detail::RsaHsmValue); - - const CertificateKeyCurveName CertificateKeyCurveName::P256(_detail::P256Value); - const CertificateKeyCurveName CertificateKeyCurveName::P256K(_detail::P256KValue); - const CertificateKeyCurveName CertificateKeyCurveName::P384(_detail::P384Value); - const CertificateKeyCurveName CertificateKeyCurveName::P521(_detail::P521Value); - - const CertificateContentType CertificateContentType::Pkcs12(_detail::Pkc12Value); - const CertificateContentType CertificateContentType::Pem(_detail::PemValue); - - const CertificatePolicyAction CertificatePolicyAction::AutoRenew(_detail::AutoRenewValue); - const CertificatePolicyAction CertificatePolicyAction::EmailContacts(_detail::EmailContactsValue); - -}}}} // namespace Azure::Security::KeyVault::Certificates diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/decrypt_parameters.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/decrypt_parameters.cpp index 1887a45239..d74d3aa4bd 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/decrypt_parameters.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/decrypt_parameters.cpp @@ -8,7 +8,6 @@ #include #include -#include namespace Azure { namespace Security { diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/decrypt_result.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/decrypt_result.cpp index 6e58c4eb5e..b6e6c0a463 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/decrypt_result.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/decrypt_result.cpp @@ -9,7 +9,6 @@ #include #include -#include using namespace Azure::Core::_internal; using namespace Azure::Core::Json::_internal; diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/encrypt_parameters.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/encrypt_parameters.cpp index 1091aaf060..60cb487fae 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/encrypt_parameters.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/encrypt_parameters.cpp @@ -8,7 +8,6 @@ #include #include -#include namespace Azure { namespace Security { diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/key_sign_parameters.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/key_sign_parameters.cpp index 2364ae1c83..fa3dfebba7 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/key_sign_parameters.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/key_sign_parameters.cpp @@ -9,7 +9,6 @@ #include #include -#include namespace Azure { namespace Security { diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/key_wrap_parameters.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/key_wrap_parameters.cpp index 9af8b26985..eb209edb87 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/key_wrap_parameters.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/key_wrap_parameters.cpp @@ -3,12 +3,10 @@ #include "../private/cryptography_serializers.hpp" #include "../private/key_constants.hpp" -#include "azure/keyvault/keys/cryptography/cryptography_client_models.hpp" #include #include -#include namespace Azure { namespace Security { diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/sign_result.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/sign_result.cpp index c338c1b726..4171758590 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/sign_result.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/sign_result.cpp @@ -9,7 +9,6 @@ #include #include -#include using namespace Azure::Core::_internal; using namespace Azure::Core::Json::_internal; diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/wrap_result.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/wrap_result.cpp index 3bb62b3476..e7ad1f982b 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/wrap_result.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/cryptography/wrap_result.cpp @@ -9,7 +9,6 @@ #include #include -#include using namespace Azure::Core::_internal; using namespace Azure::Core::Json::_internal; diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/key_backup.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/key_backup.cpp index 493e55a6b2..fa8d448ce0 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/key_backup.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/key_backup.cpp @@ -3,8 +3,6 @@ #include "private/key_backup.hpp" -#include "private/key_constants.hpp" - #include #include #include diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/key_client_paged_responses.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/key_client_paged_responses.cpp index c0810ab851..2ce014d88f 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/key_client_paged_responses.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/key_client_paged_responses.cpp @@ -9,7 +9,6 @@ #include #include #include -#include using namespace Azure::Security::KeyVault::Keys; using namespace Azure::Core::Json::_internal; diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/key_get_random_bytes.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/key_get_random_bytes.cpp index 863ead57c2..eeee95a64e 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/key_get_random_bytes.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/key_get_random_bytes.cpp @@ -7,7 +7,6 @@ #include #include -#include using namespace Azure::Security::KeyVault::Keys; using namespace Azure::Core::Json::_internal; diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/key_release_policy.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/key_release_policy.cpp index 5076155c22..058d2f54ae 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/key_release_policy.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/key_release_policy.cpp @@ -5,12 +5,9 @@ #include "private/key_constants.hpp" #include "private/key_serializers.hpp" -#include #include -#include #include -#include using namespace Azure::Security::KeyVault::Keys; using namespace Azure::Core::_internal; diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/key_type.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/key_type.cpp index daff4ae4ad..783c156adb 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/key_type.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/key_type.cpp @@ -4,8 +4,6 @@ #include "azure/keyvault/keys/key_client_models.hpp" #include "private/key_constants.hpp" -#include - using namespace Azure::Security::KeyVault::Keys; const KeyVaultKeyType KeyVaultKeyType::Ec(_detail::EcValue); diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/keyvault_key.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/keyvault_key.cpp index 865f5cdf9a..429b1b66b9 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/keyvault_key.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/keyvault_key.cpp @@ -8,7 +8,6 @@ #include #include #include -#include using namespace Azure::Security::KeyVault::Keys; using namespace Azure::Core::Json::_internal; diff --git a/sdk/keyvault/azure-security-keyvault-keys/src/recover_deleted_key_operation.cpp b/sdk/keyvault/azure-security-keyvault-keys/src/recover_deleted_key_operation.cpp index 25a65a3ffe..3753e7cdc5 100644 --- a/sdk/keyvault/azure-security-keyvault-keys/src/recover_deleted_key_operation.cpp +++ b/sdk/keyvault/azure-security-keyvault-keys/src/recover_deleted_key_operation.cpp @@ -3,7 +3,6 @@ #include "azure/keyvault/keys/key_client.hpp" #include "azure/keyvault/keys/key_client_models.hpp" -#include "private/key_constants.hpp" #include "private/key_serializers.hpp" #include