Skip to content

Commit

Permalink
version 0: refactor with smithy client for json protocol non customized
Browse files Browse the repository at this point in the history
  • Loading branch information
sbera87 committed Dec 10, 2024
1 parent ceca736 commit 3973d48
Show file tree
Hide file tree
Showing 55 changed files with 4,396 additions and 3,742 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 @@ -6,15 +6,18 @@
#pragma once
#include <aws/logs/CloudWatchLogs_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/logs/CloudWatchLogsServiceClientModel.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 CloudWatchLogs
{
AWS_CLOUDWATCHLOGS_API extern const char SERVICE_NAME[];
/**
* <p>You can use Amazon CloudWatch Logs to monitor, store, and access your log
* files from EC2 instances, CloudTrail, and other sources. You can then retrieve
Expand Down Expand Up @@ -42,12 +45,19 @@ namespace CloudWatchLogs
* log service. You can then access the raw log data when you need it.</p> </li>
* </ul>
*/
class AWS_CLOUDWATCHLOGS_API CloudWatchLogsClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods<CloudWatchLogsClient>
class AWS_CLOUDWATCHLOGS_API CloudWatchLogsClient : smithy::client::AwsSmithyClientT<Aws::CloudWatchLogs::SERVICE_NAME,
Aws::CloudWatchLogs::CloudWatchLogsClientConfiguration,
smithy::SigV4AuthSchemeResolver<>,
Aws::Crt::Variant<smithy::SigV4AuthScheme>,
CloudWatchLogsEndpointProviderBase,
smithy::client::JsonOutcomeSerializer,
smithy::client::JsonOutcome>,
Aws::Client::ClientWithAsyncTemplateMethods<CloudWatchLogsClient>
{
public:
typedef Aws::Client::AWSJsonClient BASECLASS;
static const char* GetServiceName();
static const char* GetAllocationTag();
inline const char* GetServiceClientName() const override { return "CloudWatch Logs"; }

typedef CloudWatchLogsClientConfiguration ClientConfigurationType;
typedef CloudWatchLogsEndpointProvider EndpointProviderType;
Expand Down Expand Up @@ -3098,8 +3108,6 @@ namespace CloudWatchLogs
friend class Aws::Client::ClientWithAsyncTemplateMethods<CloudWatchLogsClient>;
void init(const CloudWatchLogsClientConfiguration& clientConfiguration);

CloudWatchLogsClientConfiguration m_clientConfiguration;
std::shared_ptr<CloudWatchLogsEndpointProviderBase> m_endpointProvider;
};

} // namespace CloudWatchLogs
Expand Down
Loading

0 comments on commit 3973d48

Please sign in to comment.