Skip to content

chore: prettify client-rds-data #633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 23 additions & 11 deletions clients/client-rds-data/commands/BatchExecuteStatementCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import {
RDSDataClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../RDSDataClient";
import {
BatchExecuteStatementRequest,
BatchExecuteStatementResponse,
BatchExecuteStatementResponse
} from "../models/index";
import {
deserializeAws_restJson1_1BatchExecuteStatementCommand,
serializeAws_restJson1_1BatchExecuteStatementCommand,
serializeAws_restJson1_1BatchExecuteStatementCommand
} from "../protocols/Aws_restJson1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import {
HttpRequest as __HttpRequest,
HttpResponse as __HttpResponse,
HttpResponse as __HttpResponse
} from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
Expand All @@ -23,13 +23,17 @@ import {
HandlerExecutionContext,
MiddlewareStack,
SerdeContext,
HttpHandlerOptions as __HttpHandlerOptions,
HttpHandlerOptions as __HttpHandlerOptions
} from "@aws-sdk/types";

export type BatchExecuteStatementCommandInput = BatchExecuteStatementRequest;
export type BatchExecuteStatementCommandOutput = BatchExecuteStatementResponse;

export class BatchExecuteStatementCommand extends $Command<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput, RDSDataClientResolvedConfig> {
export class BatchExecuteStatementCommand extends $Command<
BatchExecuteStatementCommandInput,
BatchExecuteStatementCommandOutput,
RDSDataClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -43,14 +47,19 @@ export class BatchExecuteStatementCommand extends $Command<BatchExecuteStatement
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: RDSDataClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<BatchExecuteStatementCommandInput, BatchExecuteStatementCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
): Handler<
BatchExecuteStatementCommandInput,
BatchExecuteStatementCommandOutput
> {
this.middlewareStack.use(
getSerdePlugin(configuration, this.serialize, this.deserialize)
);

const stack = clientStack.concat(this.middlewareStack);

const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any,
}
logger: {} as any
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
Expand All @@ -70,7 +79,10 @@ export class BatchExecuteStatementCommand extends $Command<BatchExecuteStatement
output: __HttpResponse,
context: SerdeContext
): Promise<BatchExecuteStatementCommandOutput> {
return deserializeAws_restJson1_1BatchExecuteStatementCommand(output, context);
return deserializeAws_restJson1_1BatchExecuteStatementCommand(
output,
context
);
}

// Start section: command_body_extra
Expand Down
24 changes: 15 additions & 9 deletions clients/client-rds-data/commands/BeginTransactionCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import {
RDSDataClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../RDSDataClient";
import {
BeginTransactionRequest,
BeginTransactionResponse,
BeginTransactionResponse
} from "../models/index";
import {
deserializeAws_restJson1_1BeginTransactionCommand,
serializeAws_restJson1_1BeginTransactionCommand,
serializeAws_restJson1_1BeginTransactionCommand
} from "../protocols/Aws_restJson1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import {
HttpRequest as __HttpRequest,
HttpResponse as __HttpResponse,
HttpResponse as __HttpResponse
} from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
Expand All @@ -23,13 +23,17 @@ import {
HandlerExecutionContext,
MiddlewareStack,
SerdeContext,
HttpHandlerOptions as __HttpHandlerOptions,
HttpHandlerOptions as __HttpHandlerOptions
} from "@aws-sdk/types";

export type BeginTransactionCommandInput = BeginTransactionRequest;
export type BeginTransactionCommandOutput = BeginTransactionResponse;

export class BeginTransactionCommand extends $Command<BeginTransactionCommandInput, BeginTransactionCommandOutput, RDSDataClientResolvedConfig> {
export class BeginTransactionCommand extends $Command<
BeginTransactionCommandInput,
BeginTransactionCommandOutput,
RDSDataClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -44,13 +48,15 @@ export class BeginTransactionCommand extends $Command<BeginTransactionCommandInp
configuration: RDSDataClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<BeginTransactionCommandInput, BeginTransactionCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(
getSerdePlugin(configuration, this.serialize, this.deserialize)
);

const stack = clientStack.concat(this.middlewareStack);

const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any,
}
logger: {} as any
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
Expand Down
24 changes: 15 additions & 9 deletions clients/client-rds-data/commands/CommitTransactionCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import {
RDSDataClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../RDSDataClient";
import {
CommitTransactionRequest,
CommitTransactionResponse,
CommitTransactionResponse
} from "../models/index";
import {
deserializeAws_restJson1_1CommitTransactionCommand,
serializeAws_restJson1_1CommitTransactionCommand,
serializeAws_restJson1_1CommitTransactionCommand
} from "../protocols/Aws_restJson1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import {
HttpRequest as __HttpRequest,
HttpResponse as __HttpResponse,
HttpResponse as __HttpResponse
} from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
Expand All @@ -23,13 +23,17 @@ import {
HandlerExecutionContext,
MiddlewareStack,
SerdeContext,
HttpHandlerOptions as __HttpHandlerOptions,
HttpHandlerOptions as __HttpHandlerOptions
} from "@aws-sdk/types";

export type CommitTransactionCommandInput = CommitTransactionRequest;
export type CommitTransactionCommandOutput = CommitTransactionResponse;

export class CommitTransactionCommand extends $Command<CommitTransactionCommandInput, CommitTransactionCommandOutput, RDSDataClientResolvedConfig> {
export class CommitTransactionCommand extends $Command<
CommitTransactionCommandInput,
CommitTransactionCommandOutput,
RDSDataClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -44,13 +48,15 @@ export class CommitTransactionCommand extends $Command<CommitTransactionCommandI
configuration: RDSDataClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CommitTransactionCommandInput, CommitTransactionCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(
getSerdePlugin(configuration, this.serialize, this.deserialize)
);

const stack = clientStack.concat(this.middlewareStack);

const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any,
}
logger: {} as any
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
Expand Down
27 changes: 15 additions & 12 deletions clients/client-rds-data/commands/ExecuteSqlCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import {
RDSDataClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../RDSDataClient";
import {
ExecuteSqlRequest,
ExecuteSqlResponse,
} from "../models/index";
import { ExecuteSqlRequest, ExecuteSqlResponse } from "../models/index";
import {
deserializeAws_restJson1_1ExecuteSqlCommand,
serializeAws_restJson1_1ExecuteSqlCommand,
serializeAws_restJson1_1ExecuteSqlCommand
} from "../protocols/Aws_restJson1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import {
HttpRequest as __HttpRequest,
HttpResponse as __HttpResponse,
HttpResponse as __HttpResponse
} from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
Expand All @@ -23,13 +20,17 @@ import {
HandlerExecutionContext,
MiddlewareStack,
SerdeContext,
HttpHandlerOptions as __HttpHandlerOptions,
HttpHandlerOptions as __HttpHandlerOptions
} from "@aws-sdk/types";

export type ExecuteSqlCommandInput = ExecuteSqlRequest;
export type ExecuteSqlCommandOutput = ExecuteSqlResponse;

export class ExecuteSqlCommand extends $Command<ExecuteSqlCommandInput, ExecuteSqlCommandOutput, RDSDataClientResolvedConfig> {
export class ExecuteSqlCommand extends $Command<
ExecuteSqlCommandInput,
ExecuteSqlCommandOutput,
RDSDataClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -44,13 +45,15 @@ export class ExecuteSqlCommand extends $Command<ExecuteSqlCommandInput, ExecuteS
configuration: RDSDataClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<ExecuteSqlCommandInput, ExecuteSqlCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(
getSerdePlugin(configuration, this.serialize, this.deserialize)
);

const stack = clientStack.concat(this.middlewareStack);

const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any,
}
logger: {} as any
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
Expand Down
24 changes: 15 additions & 9 deletions clients/client-rds-data/commands/ExecuteStatementCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import {
RDSDataClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../RDSDataClient";
import {
ExecuteStatementRequest,
ExecuteStatementResponse,
ExecuteStatementResponse
} from "../models/index";
import {
deserializeAws_restJson1_1ExecuteStatementCommand,
serializeAws_restJson1_1ExecuteStatementCommand,
serializeAws_restJson1_1ExecuteStatementCommand
} from "../protocols/Aws_restJson1_1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import {
HttpRequest as __HttpRequest,
HttpResponse as __HttpResponse,
HttpResponse as __HttpResponse
} from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
Expand All @@ -23,13 +23,17 @@ import {
HandlerExecutionContext,
MiddlewareStack,
SerdeContext,
HttpHandlerOptions as __HttpHandlerOptions,
HttpHandlerOptions as __HttpHandlerOptions
} from "@aws-sdk/types";

export type ExecuteStatementCommandInput = ExecuteStatementRequest;
export type ExecuteStatementCommandOutput = ExecuteStatementResponse;

export class ExecuteStatementCommand extends $Command<ExecuteStatementCommandInput, ExecuteStatementCommandOutput, RDSDataClientResolvedConfig> {
export class ExecuteStatementCommand extends $Command<
ExecuteStatementCommandInput,
ExecuteStatementCommandOutput,
RDSDataClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -44,13 +48,15 @@ export class ExecuteStatementCommand extends $Command<ExecuteStatementCommandInp
configuration: RDSDataClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<ExecuteStatementCommandInput, ExecuteStatementCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
this.middlewareStack.use(
getSerdePlugin(configuration, this.serialize, this.deserialize)
);

const stack = clientStack.concat(this.middlewareStack);

const handlerExecutionContext: HandlerExecutionContext = {
logger: {} as any,
}
logger: {} as any
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
Expand Down
Loading