Skip to content

Commit

Permalink
compiling changes for refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
sbera87 committed Dec 10, 2024
1 parent 08d9c36 commit f0b1bc2
Show file tree
Hide file tree
Showing 46 changed files with 1,808 additions and 1,703 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
#pragma once
#include <aws/codecatalyst/CodeCatalyst_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/codecatalyst/CodeCatalystServiceClientModel.h>
#include <smithy/client/AwsSmithyClient.h>
#include <smithy/identity/auth/built-in/BearerTokenAuthSchemeResolver.h>
#include <smithy/identity/auth/built-in/BearerTokenAuthScheme.h>
#include <smithy/client/serializer/JsonOutcomeSerializer.h>

namespace Aws
{
namespace CodeCatalyst
{
AWS_CODECATALYST_API extern const char SERVICE_NAME[];
/**
* <p>Welcome to the Amazon CodeCatalyst API reference. This reference provides
* descriptions of operations and data types for Amazon CodeCatalyst. You can use
Expand Down Expand Up @@ -84,12 +87,19 @@ namespace CodeCatalyst
* up to use the CLI with Amazon CodeCatalyst</a> and the SSO documentation for
* your SDK.</p>
*/
class AWS_CODECATALYST_API CodeCatalystClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<CodeCatalystClient>
class AWS_CODECATALYST_API CodeCatalystClient : smithy::client::AwsSmithyClientT<Aws::CodeCatalyst::SERVICE_NAME,
Aws::CodeCatalyst::CodeCatalystClientConfiguration,
smithy::BearerTokenAuthSchemeResolver<>,
Aws::Crt::Variant<smithy::BearerTokenAuthScheme>,
CodeCatalystEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<CodeCatalystClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "CodeCatalyst"; }

typedef CodeCatalystClientConfiguration ClientConfigurationType;
typedef CodeCatalystEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -1127,8 +1137,6 @@ namespace CodeCatalyst
friend class Aws::Client::ClientWithAsyncTemplateMethods<CodeCatalystClient>;
void init(const CodeCatalystClientConfiguration& clientConfiguration);

CodeCatalystClientConfiguration m_clientConfiguration;
std::shared_ptr<CodeCatalystEndpointProviderBase> m_endpointProvider;
};

} // namespace CodeCatalyst
Expand Down
1,273 changes: 699 additions & 574 deletions generated/src/aws-cpp-sdk-codecatalyst/source/CodeCatalystClient.cpp

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2285,7 +2285,6 @@ namespace DynamoDB
friend class Aws::Client::ClientWithAsyncTemplateMethods<DynamoDBClient>;
void init(const DynamoDBClientConfiguration& clientConfiguration);


void OptionallyUpdateDescribeEndpointsCache(Aws::Endpoint::AWSEndpoint& resolvedEndpoint,
const Aws::String& operationName,
const Aws::String& endpointKey,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3108,7 +3108,6 @@ namespace CloudWatchLogs
friend class Aws::Client::ClientWithAsyncTemplateMethods<CloudWatchLogsClient>;
void init(const CloudWatchLogsClientConfiguration& clientConfiguration);


};

} // namespace CloudWatchLogs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,6 @@ namespace MarketplaceCatalog
friend class Aws::Client::ClientWithAsyncTemplateMethods<MarketplaceCatalogClient>;
void init(const MarketplaceCatalogClientConfiguration& clientConfiguration);


};

} // namespace MarketplaceCatalog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,6 @@ namespace QBusiness
friend class Aws::Client::ClientWithAsyncTemplateMethods<QBusinessClient>;
void init(const QBusinessClientConfiguration& clientConfiguration);


};

} // namespace QBusiness
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace Model
* href="http://docs.aws.amazon.com/goto/WebAPI/qbusiness-2023-11-27/ChatInputStream">AWS
* API Reference</a></p>
*/
class AWS_QBUSINESS_API ChatInputStream : public Aws::Utils::Event::SmithyEventEncoderStream<smithy::AwsCredentialIdentityBase>
class AWS_QBUSINESS_API ChatInputStream : public Aws::Utils::Event::SmithyEventEncoderStream
{
public:
ChatInputStream& WriteConfigurationEvent(const ConfigurationEvent& value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,10 @@ void QBusinessClient::ChatAsync(Model::ChatRequest& request,

auto eventEncoderStream = Aws::MakeShared<Model::ChatInputStream>(ALLOCATION_TAG);
request.SetInputStream(eventEncoderStream); // this becomes the body of the request
m_clientConfiguration.executor->Submit([this, &request, handler, handlerContext, endpointOverrides , eventEncoderStream] () mutable {
JsonOutcome outcome = MakeRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
auto streamReadySemaphore = Aws::MakeShared<Aws::Utils::Threading::Semaphore>(ALLOCATION_TAG, 0, 1);
m_clientConfiguration.executor->Submit([this, &request, handler, handlerContext, endpointOverrides , eventEncoderStream, streamReadySemaphore] () mutable {
JsonOutcome outcome = MakeEventStreamRequestDeserialize(&request, request.GetServiceRequestName(), Aws::Http::HttpMethod::HTTP_POST, [&](Aws::Endpoint::AWSEndpoint& resolvedEndpoint) -> void {
streamReadySemaphore->ReleaseAll();
for(const auto& pathSegment : endpointOverrides.pathSegments)
{
resolvedEndpoint.AddPathSegment(pathSegment);
Expand All @@ -352,7 +354,6 @@ void QBusinessClient::ChatAsync(Model::ChatRequest& request,
resolvedEndpoint.SetQueryString(endpointOverrides.queryString);
AWS_UNREFERENCED_PARAM(resolvedEndpoint);
},
true,
eventEncoderStream
);
if(outcome.IsSuccess())
Expand All @@ -366,6 +367,7 @@ void QBusinessClient::ChatAsync(Model::ChatRequest& request,
}
return ChatOutcome(NoResult());
});
streamReadySemaphore->WaitOne();
streamReadyHandler(*request.GetInputStream());
}
ChatSyncOutcome QBusinessClient::ChatSync(const ChatSyncRequest& request) const
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,6 @@ namespace Route53Profiles
friend class Aws::Client::ClientWithAsyncTemplateMethods<Route53ProfilesClient>;
void init(const Route53ProfilesClientConfiguration& clientConfiguration);


};

} // namespace Route53Profiles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@
#pragma once
#include <aws/transcribestreaming/TranscribeStreamingService_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/transcribestreaming/TranscribeStreamingServiceServiceClientModel.h>
#include <smithy/client/AwsSmithyClient.h>
#include <smithy/identity/auth/built-in/SigV4AuthSchemeResolver.h>
#include <smithy/identity/auth/built-in/SigV4AuthScheme.h>
#include <smithy/client/serializer/JsonOutcomeSerializer.h>

namespace Aws
{
namespace TranscribeStreamingService
{
AWS_TRANSCRIBESTREAMINGSERVICE_API extern const char SERVICE_NAME[];
/**
* <p>Amazon Transcribe streaming offers three main types of real-time
* transcription: <b>Standard</b>, <b>Medical</b>, and <b>Call Analytics</b>.</p>
Expand All @@ -27,12 +30,19 @@ namespace TranscribeStreamingService
* center audio on two different channels; if you're looking for insight into
* customer service calls, use this option. Refer to for details.</p> </li> </ul>
*/
class AWS_TRANSCRIBESTREAMINGSERVICE_API TranscribeStreamingServiceClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<TranscribeStreamingServiceClient>
class AWS_TRANSCRIBESTREAMINGSERVICE_API TranscribeStreamingServiceClient : smithy::client::AwsSmithyClientT<Aws::TranscribeStreamingService::SERVICE_NAME,
Aws::TranscribeStreamingService::TranscribeStreamingServiceClientConfiguration,
smithy::SigV4AuthSchemeResolver<>,
Aws::Crt::Variant<smithy::SigV4AuthScheme>,
TranscribeStreamingServiceEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<TranscribeStreamingServiceClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "Transcribe Streaming"; }

typedef TranscribeStreamingServiceClientConfiguration ClientConfigurationType;
typedef TranscribeStreamingServiceEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -158,8 +168,6 @@ namespace TranscribeStreamingService
friend class Aws::Client::ClientWithAsyncTemplateMethods<TranscribeStreamingServiceClient>;
void init(const TranscribeStreamingServiceClientConfiguration& clientConfiguration);

TranscribeStreamingServiceClientConfiguration m_clientConfiguration;
std::shared_ptr<TranscribeStreamingServiceEndpointProviderBase> m_endpointProvider;
};

} // namespace TranscribeStreamingService
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace Model
* href="http://docs.aws.amazon.com/goto/WebAPI/transcribe-streaming-2017-10-26/AudioStream">AWS
* API Reference</a></p>
*/
class AWS_TRANSCRIBESTREAMINGSERVICE_API AudioStream : public Aws::Utils::Event::EventEncoderStream
class AWS_TRANSCRIBESTREAMINGSERVICE_API AudioStream : public Aws::Utils::Event::SmithyEventEncoderStream
{
public:
AudioStream& WriteAudioEvent(const AudioEvent& value)
Expand Down
Loading

0 comments on commit f0b1bc2

Please sign in to comment.