diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/Event.cpp | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/Event.cpp')
-rw-r--r-- | contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/Event.cpp | 320 |
1 files changed, 160 insertions, 160 deletions
diff --git a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/Event.cpp b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/Event.cpp index a0fbcd1cc4..c6e779ab06 100644 --- a/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/Event.cpp +++ b/contrib/libs/aws-sdk-cpp/aws-cpp-sdk-s3/source/model/Event.cpp @@ -1,87 +1,87 @@ -/** - * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. - * SPDX-License-Identifier: Apache-2.0. - */ - -#include <aws/s3/model/Event.h> -#include <aws/core/utils/HashingUtils.h> -#include <aws/core/Globals.h> -#include <aws/core/utils/EnumParseOverflowContainer.h> - -using namespace Aws::Utils; - - -namespace Aws -{ - namespace S3 - { - namespace Model - { - namespace EventMapper - { - - static const int s3_ReducedRedundancyLostObject_HASH = HashingUtils::HashString("s3:ReducedRedundancyLostObject"); - static const int s3_ObjectCreated_HASH = HashingUtils::HashString("s3:ObjectCreated:*"); - static const int s3_ObjectCreated_Put_HASH = HashingUtils::HashString("s3:ObjectCreated:Put"); - static const int s3_ObjectCreated_Post_HASH = HashingUtils::HashString("s3:ObjectCreated:Post"); - static const int s3_ObjectCreated_Copy_HASH = HashingUtils::HashString("s3:ObjectCreated:Copy"); - static const int s3_ObjectCreated_CompleteMultipartUpload_HASH = HashingUtils::HashString("s3:ObjectCreated:CompleteMultipartUpload"); - static const int s3_ObjectRemoved_HASH = HashingUtils::HashString("s3:ObjectRemoved:*"); - static const int s3_ObjectRemoved_Delete_HASH = HashingUtils::HashString("s3:ObjectRemoved:Delete"); - static const int s3_ObjectRemoved_DeleteMarkerCreated_HASH = HashingUtils::HashString("s3:ObjectRemoved:DeleteMarkerCreated"); - static const int s3_ObjectRestore_HASH = HashingUtils::HashString("s3:ObjectRestore:*"); +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include <aws/s3/model/Event.h> +#include <aws/core/utils/HashingUtils.h> +#include <aws/core/Globals.h> +#include <aws/core/utils/EnumParseOverflowContainer.h> + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace S3 + { + namespace Model + { + namespace EventMapper + { + + static const int s3_ReducedRedundancyLostObject_HASH = HashingUtils::HashString("s3:ReducedRedundancyLostObject"); + static const int s3_ObjectCreated_HASH = HashingUtils::HashString("s3:ObjectCreated:*"); + static const int s3_ObjectCreated_Put_HASH = HashingUtils::HashString("s3:ObjectCreated:Put"); + static const int s3_ObjectCreated_Post_HASH = HashingUtils::HashString("s3:ObjectCreated:Post"); + static const int s3_ObjectCreated_Copy_HASH = HashingUtils::HashString("s3:ObjectCreated:Copy"); + static const int s3_ObjectCreated_CompleteMultipartUpload_HASH = HashingUtils::HashString("s3:ObjectCreated:CompleteMultipartUpload"); + static const int s3_ObjectRemoved_HASH = HashingUtils::HashString("s3:ObjectRemoved:*"); + static const int s3_ObjectRemoved_Delete_HASH = HashingUtils::HashString("s3:ObjectRemoved:Delete"); + static const int s3_ObjectRemoved_DeleteMarkerCreated_HASH = HashingUtils::HashString("s3:ObjectRemoved:DeleteMarkerCreated"); + static const int s3_ObjectRestore_HASH = HashingUtils::HashString("s3:ObjectRestore:*"); static const int s3_ObjectRestore_Post_HASH = HashingUtils::HashString("s3:ObjectRestore:Post"); static const int s3_ObjectRestore_Completed_HASH = HashingUtils::HashString("s3:ObjectRestore:Completed"); - static const int s3_Replication_HASH = HashingUtils::HashString("s3:Replication:*"); - static const int s3_Replication_OperationFailedReplication_HASH = HashingUtils::HashString("s3:Replication:OperationFailedReplication"); - static const int s3_Replication_OperationNotTracked_HASH = HashingUtils::HashString("s3:Replication:OperationNotTracked"); - static const int s3_Replication_OperationMissedThreshold_HASH = HashingUtils::HashString("s3:Replication:OperationMissedThreshold"); - static const int s3_Replication_OperationReplicatedAfterThreshold_HASH = HashingUtils::HashString("s3:Replication:OperationReplicatedAfterThreshold"); - - - Event GetEventForName(const Aws::String& name) - { - int hashCode = HashingUtils::HashString(name.c_str()); - if (hashCode == s3_ReducedRedundancyLostObject_HASH) - { - return Event::s3_ReducedRedundancyLostObject; - } - else if (hashCode == s3_ObjectCreated_HASH) - { - return Event::s3_ObjectCreated; - } - else if (hashCode == s3_ObjectCreated_Put_HASH) - { - return Event::s3_ObjectCreated_Put; - } - else if (hashCode == s3_ObjectCreated_Post_HASH) - { - return Event::s3_ObjectCreated_Post; - } - else if (hashCode == s3_ObjectCreated_Copy_HASH) - { - return Event::s3_ObjectCreated_Copy; - } - else if (hashCode == s3_ObjectCreated_CompleteMultipartUpload_HASH) - { - return Event::s3_ObjectCreated_CompleteMultipartUpload; - } - else if (hashCode == s3_ObjectRemoved_HASH) - { - return Event::s3_ObjectRemoved; - } - else if (hashCode == s3_ObjectRemoved_Delete_HASH) - { - return Event::s3_ObjectRemoved_Delete; - } - else if (hashCode == s3_ObjectRemoved_DeleteMarkerCreated_HASH) - { - return Event::s3_ObjectRemoved_DeleteMarkerCreated; - } - else if (hashCode == s3_ObjectRestore_HASH) - { - return Event::s3_ObjectRestore; - } + static const int s3_Replication_HASH = HashingUtils::HashString("s3:Replication:*"); + static const int s3_Replication_OperationFailedReplication_HASH = HashingUtils::HashString("s3:Replication:OperationFailedReplication"); + static const int s3_Replication_OperationNotTracked_HASH = HashingUtils::HashString("s3:Replication:OperationNotTracked"); + static const int s3_Replication_OperationMissedThreshold_HASH = HashingUtils::HashString("s3:Replication:OperationMissedThreshold"); + static const int s3_Replication_OperationReplicatedAfterThreshold_HASH = HashingUtils::HashString("s3:Replication:OperationReplicatedAfterThreshold"); + + + Event GetEventForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == s3_ReducedRedundancyLostObject_HASH) + { + return Event::s3_ReducedRedundancyLostObject; + } + else if (hashCode == s3_ObjectCreated_HASH) + { + return Event::s3_ObjectCreated; + } + else if (hashCode == s3_ObjectCreated_Put_HASH) + { + return Event::s3_ObjectCreated_Put; + } + else if (hashCode == s3_ObjectCreated_Post_HASH) + { + return Event::s3_ObjectCreated_Post; + } + else if (hashCode == s3_ObjectCreated_Copy_HASH) + { + return Event::s3_ObjectCreated_Copy; + } + else if (hashCode == s3_ObjectCreated_CompleteMultipartUpload_HASH) + { + return Event::s3_ObjectCreated_CompleteMultipartUpload; + } + else if (hashCode == s3_ObjectRemoved_HASH) + { + return Event::s3_ObjectRemoved; + } + else if (hashCode == s3_ObjectRemoved_Delete_HASH) + { + return Event::s3_ObjectRemoved_Delete; + } + else if (hashCode == s3_ObjectRemoved_DeleteMarkerCreated_HASH) + { + return Event::s3_ObjectRemoved_DeleteMarkerCreated; + } + else if (hashCode == s3_ObjectRestore_HASH) + { + return Event::s3_ObjectRestore; + } else if (hashCode == s3_ObjectRestore_Post_HASH) { return Event::s3_ObjectRestore_Post; @@ -90,86 +90,86 @@ namespace Aws { return Event::s3_ObjectRestore_Completed; } - else if (hashCode == s3_Replication_HASH) - { - return Event::s3_Replication; - } - else if (hashCode == s3_Replication_OperationFailedReplication_HASH) - { - return Event::s3_Replication_OperationFailedReplication; - } - else if (hashCode == s3_Replication_OperationNotTracked_HASH) - { - return Event::s3_Replication_OperationNotTracked; - } - else if (hashCode == s3_Replication_OperationMissedThreshold_HASH) - { - return Event::s3_Replication_OperationMissedThreshold; - } - else if (hashCode == s3_Replication_OperationReplicatedAfterThreshold_HASH) - { - return Event::s3_Replication_OperationReplicatedAfterThreshold; - } - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - overflowContainer->StoreOverflow(hashCode, name); - return static_cast<Event>(hashCode); - } - - return Event::NOT_SET; - } - - Aws::String GetNameForEvent(Event enumValue) - { - switch(enumValue) - { - case Event::s3_ReducedRedundancyLostObject: - return "s3:ReducedRedundancyLostObject"; - case Event::s3_ObjectCreated: - return "s3:ObjectCreated:*"; - case Event::s3_ObjectCreated_Put: - return "s3:ObjectCreated:Put"; - case Event::s3_ObjectCreated_Post: - return "s3:ObjectCreated:Post"; - case Event::s3_ObjectCreated_Copy: - return "s3:ObjectCreated:Copy"; - case Event::s3_ObjectCreated_CompleteMultipartUpload: - return "s3:ObjectCreated:CompleteMultipartUpload"; - case Event::s3_ObjectRemoved: - return "s3:ObjectRemoved:*"; - case Event::s3_ObjectRemoved_Delete: - return "s3:ObjectRemoved:Delete"; - case Event::s3_ObjectRemoved_DeleteMarkerCreated: - return "s3:ObjectRemoved:DeleteMarkerCreated"; - case Event::s3_ObjectRestore: - return "s3:ObjectRestore:*"; + else if (hashCode == s3_Replication_HASH) + { + return Event::s3_Replication; + } + else if (hashCode == s3_Replication_OperationFailedReplication_HASH) + { + return Event::s3_Replication_OperationFailedReplication; + } + else if (hashCode == s3_Replication_OperationNotTracked_HASH) + { + return Event::s3_Replication_OperationNotTracked; + } + else if (hashCode == s3_Replication_OperationMissedThreshold_HASH) + { + return Event::s3_Replication_OperationMissedThreshold; + } + else if (hashCode == s3_Replication_OperationReplicatedAfterThreshold_HASH) + { + return Event::s3_Replication_OperationReplicatedAfterThreshold; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast<Event>(hashCode); + } + + return Event::NOT_SET; + } + + Aws::String GetNameForEvent(Event enumValue) + { + switch(enumValue) + { + case Event::s3_ReducedRedundancyLostObject: + return "s3:ReducedRedundancyLostObject"; + case Event::s3_ObjectCreated: + return "s3:ObjectCreated:*"; + case Event::s3_ObjectCreated_Put: + return "s3:ObjectCreated:Put"; + case Event::s3_ObjectCreated_Post: + return "s3:ObjectCreated:Post"; + case Event::s3_ObjectCreated_Copy: + return "s3:ObjectCreated:Copy"; + case Event::s3_ObjectCreated_CompleteMultipartUpload: + return "s3:ObjectCreated:CompleteMultipartUpload"; + case Event::s3_ObjectRemoved: + return "s3:ObjectRemoved:*"; + case Event::s3_ObjectRemoved_Delete: + return "s3:ObjectRemoved:Delete"; + case Event::s3_ObjectRemoved_DeleteMarkerCreated: + return "s3:ObjectRemoved:DeleteMarkerCreated"; + case Event::s3_ObjectRestore: + return "s3:ObjectRestore:*"; case Event::s3_ObjectRestore_Post: return "s3:ObjectRestore:Post"; case Event::s3_ObjectRestore_Completed: return "s3:ObjectRestore:Completed"; - case Event::s3_Replication: - return "s3:Replication:*"; - case Event::s3_Replication_OperationFailedReplication: - return "s3:Replication:OperationFailedReplication"; - case Event::s3_Replication_OperationNotTracked: - return "s3:Replication:OperationNotTracked"; - case Event::s3_Replication_OperationMissedThreshold: - return "s3:Replication:OperationMissedThreshold"; - case Event::s3_Replication_OperationReplicatedAfterThreshold: - return "s3:Replication:OperationReplicatedAfterThreshold"; - default: - EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); - if(overflowContainer) - { - return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue)); - } - + case Event::s3_Replication: + return "s3:Replication:*"; + case Event::s3_Replication_OperationFailedReplication: + return "s3:Replication:OperationFailedReplication"; + case Event::s3_Replication_OperationNotTracked: + return "s3:Replication:OperationNotTracked"; + case Event::s3_Replication_OperationMissedThreshold: + return "s3:Replication:OperationMissedThreshold"; + case Event::s3_Replication_OperationReplicatedAfterThreshold: + return "s3:Replication:OperationReplicatedAfterThreshold"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue)); + } + return {}; - } - } - - } // namespace EventMapper - } // namespace Model - } // namespace S3 -} // namespace Aws + } + } + + } // namespace EventMapper + } // namespace Model + } // namespace S3 +} // namespace Aws |