Skip to content

Commit

Permalink
add something to test windows longpath ci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiscigl committed Nov 27, 2024
1 parent ad9e08e commit ca27b36
Show file tree
Hide file tree
Showing 21 changed files with 1,780 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
add_project(aws-cpp-sdk-areallylongverboseservicenamethatwillcreatealongpath "C++ SDK for the AWS areallylongverboseservicenamethatwillcreatealongpath service" aws-cpp-sdk-core)

file(GLOB AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_HEADERS
"include/aws/areallylongverboseservicenamethatwillcreatealongpath/*.h"
)

file(GLOB AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_MODEL_HEADERS
"include/aws/areallylongverboseservicenamethatwillcreatealongpath/model/*.h"
)

file(GLOB AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_SOURCE
"source/*.cpp"
)

file(GLOB AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_MODEL_SOURCE
"source/model/*.cpp"
)

file(GLOB AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_UNIFIED_HEADERS
${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_HEADERS}
${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_MODEL_HEADERS}
)

file(GLOB AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_UNITY_SRC
${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_SOURCE}
${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_MODEL_SOURCE}
)

if(ENABLE_UNITY_BUILD)
enable_unity_build("AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH" AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_UNITY_SRC)
endif()

file(GLOB AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_SRC
${AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_UNIFIED_HEADERS}
${AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_UNITY_SRC}
)

if(WIN32)
#if we are compiling for visual studio, create a sane directory tree.
if(MSVC)
source_group("Header Files\\aws\\areallylongverboseservicenamethatwillcreatealongpath" FILES ${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_HEADERS})
source_group("Header Files\\aws\\areallylongverboseservicenamethatwillcreatealongpath\\model" FILES ${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_MODEL_HEADERS})
source_group("Source Files" FILES ${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_SOURCE})
source_group("Source Files\\model" FILES ${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_MODEL_SOURCE})
endif(MSVC)
endif()

set(AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
)

add_library(${PROJECT_NAME} ${AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_SRC})
add_library(AWS::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

set_compiler_flags(${PROJECT_NAME})
set_compiler_warnings(${PROJECT_NAME})

if(USE_WINDOWS_DLL_SEMANTICS AND BUILD_SHARED_LIBS)
target_compile_definitions(${PROJECT_NAME} PRIVATE "AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_EXPORTS")
endif()

target_include_directories(${PROJECT_NAME} PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)

target_link_libraries(${PROJECT_NAME} PRIVATE ${PLATFORM_DEP_LIBS} ${PROJECT_LIBS})


setup_install()

install (FILES ${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/areallylongverboseservicenamethatwillcreatealongpath)
install (FILES ${AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_MODEL_HEADERS} DESTINATION ${INCLUDE_DIRECTORY}/aws/areallylongverboseservicenamethatwillcreatealongpath/model)

do_packaging()


Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/areallylongverboseservicenamethatwillcreatealongpath/Areallylongverboseservicenamethatwillcreatealongpath_EXPORTS.h>
#include <aws/core/client/ClientConfiguration.h>
#include <aws/core/client/AWSClient.h>
#include <aws/core/client/AWSClientAsyncCRTP.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/areallylongverboseservicenamethatwillcreatealongpath/AreallylongverboseservicenamethatwillcreatealongpathServiceClientModel.h>

namespace Aws
{
namespace areallylongverboseservicenamethatwillcreatealongpath
{
class AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_API AreallylongverboseservicenamethatwillcreatealongpathClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<AreallylongverboseservicenamethatwillcreatealongpathClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();

typedef AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration ClientConfigurationType;
typedef AreallylongverboseservicenamethatwillcreatealongpathEndpointProvider EndpointProviderType;

/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
AreallylongverboseservicenamethatwillcreatealongpathClient(const Aws::areallylongverboseservicenamethatwillcreatealongpath::AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration& clientConfiguration = Aws::areallylongverboseservicenamethatwillcreatealongpath::AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration(),
std::shared_ptr<AreallylongverboseservicenamethatwillcreatealongpathEndpointProviderBase> endpointProvider = nullptr);

/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
AreallylongverboseservicenamethatwillcreatealongpathClient(const Aws::Auth::AWSCredentials& credentials,
std::shared_ptr<AreallylongverboseservicenamethatwillcreatealongpathEndpointProviderBase> endpointProvider = nullptr,
const Aws::areallylongverboseservicenamethatwillcreatealongpath::AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration& clientConfiguration = Aws::areallylongverboseservicenamethatwillcreatealongpath::AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration());

/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
AreallylongverboseservicenamethatwillcreatealongpathClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
std::shared_ptr<AreallylongverboseservicenamethatwillcreatealongpathEndpointProviderBase> endpointProvider = nullptr,
const Aws::areallylongverboseservicenamethatwillcreatealongpath::AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration& clientConfiguration = Aws::areallylongverboseservicenamethatwillcreatealongpath::AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration());


/* Legacy constructors due deprecation */
/**
* Initializes client to use DefaultCredentialProviderChain, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
AreallylongverboseservicenamethatwillcreatealongpathClient(const Aws::Client::ClientConfiguration& clientConfiguration);

/**
* Initializes client to use SimpleAWSCredentialsProvider, with default http client factory, and optional client config. If client config
* is not specified, it will be initialized to default values.
*/
AreallylongverboseservicenamethatwillcreatealongpathClient(const Aws::Auth::AWSCredentials& credentials,
const Aws::Client::ClientConfiguration& clientConfiguration);

/**
* Initializes client to use specified credentials provider with specified client config. If http client factory is not supplied,
* the default http client factory will be used
*/
AreallylongverboseservicenamethatwillcreatealongpathClient(const std::shared_ptr<Aws::Auth::AWSCredentialsProvider>& credentialsProvider,
const Aws::Client::ClientConfiguration& clientConfiguration);

/* End of legacy constructors due deprecation */
virtual ~AreallylongverboseservicenamethatwillcreatealongpathClient();


void OverrideEndpoint(const Aws::String& endpoint);
std::shared_ptr<AreallylongverboseservicenamethatwillcreatealongpathEndpointProviderBase>& accessEndpointProvider();
private:
friend class Aws::Client::ClientWithAsyncTemplateMethods<AreallylongverboseservicenamethatwillcreatealongpathClient>;
void init(const AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration& clientConfiguration);

AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration m_clientConfiguration;
std::shared_ptr<AreallylongverboseservicenamethatwillcreatealongpathEndpointProviderBase> m_endpointProvider;
};

} // namespace areallylongverboseservicenamethatwillcreatealongpath
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/areallylongverboseservicenamethatwillcreatealongpath/Areallylongverboseservicenamethatwillcreatealongpath_EXPORTS.h>
#include <aws/core/client/GenericClientConfiguration.h>
#include <aws/core/endpoint/DefaultEndpointProvider.h>
#include <aws/core/endpoint/EndpointParameter.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>

#include <aws/areallylongverboseservicenamethatwillcreatealongpath/AreallylongverboseservicenamethatwillcreatealongpathEndpointRules.h>


namespace Aws
{
namespace areallylongverboseservicenamethatwillcreatealongpath
{
namespace Endpoint
{
using EndpointParameters = Aws::Endpoint::EndpointParameters;
using Aws::Endpoint::EndpointProviderBase;
using Aws::Endpoint::DefaultEndpointProvider;

using AreallylongverboseservicenamethatwillcreatealongpathClientContextParameters = Aws::Endpoint::ClientContextParameters;

using AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration = Aws::Client::GenericClientConfiguration;
using AreallylongverboseservicenamethatwillcreatealongpathBuiltInParameters = Aws::Endpoint::BuiltInParameters;

/**
* The type for the areallylongverboseservicenamethatwillcreatealongpath Client Endpoint Provider.
* Inherit from this Base class / "Interface" should you want to provide a custom endpoint provider.
* The SDK must use service-specific type for each service per specification.
*/
using AreallylongverboseservicenamethatwillcreatealongpathEndpointProviderBase =
EndpointProviderBase<AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration, AreallylongverboseservicenamethatwillcreatealongpathBuiltInParameters, AreallylongverboseservicenamethatwillcreatealongpathClientContextParameters>;

using AreallylongverboseservicenamethatwillcreatealongpathDefaultEpProviderBase =
DefaultEndpointProvider<AreallylongverboseservicenamethatwillcreatealongpathClientConfiguration, AreallylongverboseservicenamethatwillcreatealongpathBuiltInParameters, AreallylongverboseservicenamethatwillcreatealongpathClientContextParameters>;

/**
* Default endpoint provider used for this service
*/
class AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_API AreallylongverboseservicenamethatwillcreatealongpathEndpointProvider : public AreallylongverboseservicenamethatwillcreatealongpathDefaultEpProviderBase
{
public:
using AreallylongverboseservicenamethatwillcreatealongpathResolveEndpointOutcome = Aws::Endpoint::ResolveEndpointOutcome;

AreallylongverboseservicenamethatwillcreatealongpathEndpointProvider()
: AreallylongverboseservicenamethatwillcreatealongpathDefaultEpProviderBase(Aws::areallylongverboseservicenamethatwillcreatealongpath::AreallylongverboseservicenamethatwillcreatealongpathEndpointRules::GetRulesBlob(), Aws::areallylongverboseservicenamethatwillcreatealongpath::AreallylongverboseservicenamethatwillcreatealongpathEndpointRules::RulesBlobSize)
{}

~AreallylongverboseservicenamethatwillcreatealongpathEndpointProvider()
{
}
};
} // namespace Endpoint
} // namespace areallylongverboseservicenamethatwillcreatealongpath
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <cstddef>
#include <aws/areallylongverboseservicenamethatwillcreatealongpath/Areallylongverboseservicenamethatwillcreatealongpath_EXPORTS.h>

namespace Aws
{
namespace areallylongverboseservicenamethatwillcreatealongpath
{
class AreallylongverboseservicenamethatwillcreatealongpathEndpointRules
{
public:
static const size_t RulesBlobStrLen;
static const size_t RulesBlobSize;

static const char* GetRulesBlob();
};
} // namespace areallylongverboseservicenamethatwillcreatealongpath
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once

#include <aws/areallylongverboseservicenamethatwillcreatealongpath/Areallylongverboseservicenamethatwillcreatealongpath_EXPORTS.h>
#include <aws/core/client/AWSErrorMarshaller.h>

namespace Aws
{
namespace Client
{

class AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_API AreallylongverboseservicenamethatwillcreatealongpathErrorMarshaller : public Aws::Client::JsonErrorMarshaller
{
public:
Aws::Client::AWSError<Aws::Client::CoreErrors> FindErrorByName(const char* exceptionName) const override;
};

} // namespace Client
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once

#include <aws/core/client/AWSError.h>
#include <aws/core/client/CoreErrors.h>
#include <aws/areallylongverboseservicenamethatwillcreatealongpath/Areallylongverboseservicenamethatwillcreatealongpath_EXPORTS.h>

namespace Aws
{
namespace areallylongverboseservicenamethatwillcreatealongpath
{
enum class AreallylongverboseservicenamethatwillcreatealongpathErrors
{
//From Core//
//////////////////////////////////////////////////////////////////////////////////////////
INCOMPLETE_SIGNATURE = 0,
INTERNAL_FAILURE = 1,
INVALID_ACTION = 2,
INVALID_CLIENT_TOKEN_ID = 3,
INVALID_PARAMETER_COMBINATION = 4,
INVALID_QUERY_PARAMETER = 5,
INVALID_PARAMETER_VALUE = 6,
MISSING_ACTION = 7, // SDK should never allow
MISSING_AUTHENTICATION_TOKEN = 8, // SDK should never allow
MISSING_PARAMETER = 9, // SDK should never allow
OPT_IN_REQUIRED = 10,
REQUEST_EXPIRED = 11,
SERVICE_UNAVAILABLE = 12,
THROTTLING = 13,
VALIDATION = 14,
ACCESS_DENIED = 15,
RESOURCE_NOT_FOUND = 16,
UNRECOGNIZED_CLIENT = 17,
MALFORMED_QUERY_STRING = 18,
SLOW_DOWN = 19,
REQUEST_TIME_TOO_SKEWED = 20,
INVALID_SIGNATURE = 21,
SIGNATURE_DOES_NOT_MATCH = 22,
INVALID_ACCESS_KEY_ID = 23,
REQUEST_TIMEOUT = 24,
NETWORK_CONNECTION = 99,

UNKNOWN = 100,
///////////////////////////////////////////////////////////////////////////////////////////


};

class AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_API AreallylongverboseservicenamethatwillcreatealongpathError : public Aws::Client::AWSError<AreallylongverboseservicenamethatwillcreatealongpathErrors>
{
public:
AreallylongverboseservicenamethatwillcreatealongpathError() {}
AreallylongverboseservicenamethatwillcreatealongpathError(const Aws::Client::AWSError<Aws::Client::CoreErrors>& rhs) : Aws::Client::AWSError<AreallylongverboseservicenamethatwillcreatealongpathErrors>(rhs) {}
AreallylongverboseservicenamethatwillcreatealongpathError(Aws::Client::AWSError<Aws::Client::CoreErrors>&& rhs) : Aws::Client::AWSError<AreallylongverboseservicenamethatwillcreatealongpathErrors>(rhs) {}
AreallylongverboseservicenamethatwillcreatealongpathError(const Aws::Client::AWSError<AreallylongverboseservicenamethatwillcreatealongpathErrors>& rhs) : Aws::Client::AWSError<AreallylongverboseservicenamethatwillcreatealongpathErrors>(rhs) {}
AreallylongverboseservicenamethatwillcreatealongpathError(Aws::Client::AWSError<AreallylongverboseservicenamethatwillcreatealongpathErrors>&& rhs) : Aws::Client::AWSError<AreallylongverboseservicenamethatwillcreatealongpathErrors>(rhs) {}

template <typename T>
T GetModeledError();
};

namespace AreallylongverboseservicenamethatwillcreatealongpathErrorMapper
{
AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_API Aws::Client::AWSError<Aws::Client::CoreErrors> GetErrorForName(const char* errorName);
}

} // namespace areallylongverboseservicenamethatwillcreatealongpath
} // namespace Aws
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/areallylongverboseservicenamethatwillcreatealongpath/Areallylongverboseservicenamethatwillcreatealongpath_EXPORTS.h>
#include <aws/core/endpoint/AWSEndpoint.h>
#include <aws/core/AmazonSerializableWebServiceRequest.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <aws/core/http/HttpRequest.h>

namespace Aws
{
namespace areallylongverboseservicenamethatwillcreatealongpath
{
class AWS_AREALLYLONGVERBOSESERVICENAMETHATWILLCREATEALONGPATH_API AreallylongverboseservicenamethatwillcreatealongpathRequest : public Aws::AmazonSerializableWebServiceRequest
{
public:
using EndpointParameter = Aws::Endpoint::EndpointParameter;
using EndpointParameters = Aws::Endpoint::EndpointParameters;

virtual ~AreallylongverboseservicenamethatwillcreatealongpathRequest () {}

void AddParametersToRequest(Aws::Http::HttpRequest& httpRequest) const { AWS_UNREFERENCED_PARAM(httpRequest); }

inline Aws::Http::HeaderValueCollection GetHeaders() const override
{
auto headers = GetRequestSpecificHeaders();

if(headers.size() == 0 || (headers.size() > 0 && headers.count(Aws::Http::CONTENT_TYPE_HEADER) == 0))
{
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::CONTENT_TYPE_HEADER, Aws::AMZN_JSON_CONTENT_TYPE_1_0 ));
}
headers.emplace(Aws::Http::HeaderValuePair(Aws::Http::API_VERSION_HEADER, "2024-11-14"));
return headers;
}

protected:
virtual Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const { return Aws::Http::HeaderValueCollection(); }

};


} // namespace areallylongverboseservicenamethatwillcreatealongpath
} // namespace Aws
Loading

0 comments on commit ca27b36

Please sign in to comment.