Skip to content

chore: prettify client-api-gateway #632

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
1,681 changes: 960 additions & 721 deletions clients/client-api-gateway/APIGateway.ts

Large diffs are not rendered by default.

55 changes: 29 additions & 26 deletions clients/client-api-gateway/APIGatewayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ import {
UsagePlanKeys,
UsagePlans,
VpcLink,
VpcLinks,
VpcLinks
} from "./models/index";
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
import {
Expand All @@ -177,39 +177,39 @@ import {
RegionInputConfig,
RegionResolvedConfig,
resolveEndpointsConfig,
resolveRegionConfig,
resolveRegionConfig
} from "@aws-sdk/config-resolver";
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
import {
HostHeaderInputConfig,
HostHeaderResolvedConfig,
getHostHeaderPlugin,
resolveHostHeaderConfig,
resolveHostHeaderConfig
} from "@aws-sdk/middleware-host-header";
import {
RetryInputConfig,
RetryResolvedConfig,
getRetryPlugin,
resolveRetryConfig,
resolveRetryConfig
} from "@aws-sdk/middleware-retry";
import { getAcceptsHeaderPlugin } from "@aws-sdk/middleware-sdk-api-gateway";
import {
AwsAuthInputConfig,
AwsAuthResolvedConfig,
getAwsAuthPlugin,
resolveAwsAuthConfig,
resolveAwsAuthConfig
} from "@aws-sdk/middleware-signing";
import {
UserAgentInputConfig,
UserAgentResolvedConfig,
getUserAgentPlugin,
resolveUserAgentConfig,
resolveUserAgentConfig
} from "@aws-sdk/middleware-user-agent";
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
import {
Client as __Client,
SmithyConfiguration as __SmithyConfiguration,
SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
SmithyResolvedConfiguration as __SmithyResolvedConfiguration
} from "@aws-sdk/smithy-client";
import {
RegionInfoProvider,
Expand All @@ -221,7 +221,7 @@ import {
MetadataBearer as __MetadataBearer,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
UrlParser as __UrlParser
} from "@aws-sdk/types";

export type ServiceInputTypes =
Expand Down Expand Up @@ -523,23 +523,27 @@ export interface ClientDefaults
regionInfoProvider?: RegionInfoProvider;
}

export type APIGatewayClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>>
& ClientDefaults
& RegionInputConfig
& EndpointsInputConfig
& AwsAuthInputConfig
& RetryInputConfig
& UserAgentInputConfig
& HostHeaderInputConfig
export type APIGatewayClientConfig = Partial<
__SmithyConfiguration<__HttpHandlerOptions>
> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
AwsAuthInputConfig &
RetryInputConfig &
UserAgentInputConfig &
HostHeaderInputConfig;

export type APIGatewayClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions>
& Required<ClientDefaults>
& RegionResolvedConfig
& EndpointsResolvedConfig
& AwsAuthResolvedConfig
& RetryResolvedConfig
& UserAgentResolvedConfig
& HostHeaderResolvedConfig
export type APIGatewayClientResolvedConfig = __SmithyResolvedConfiguration<
__HttpHandlerOptions
> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
AwsAuthResolvedConfig &
RetryResolvedConfig &
UserAgentResolvedConfig &
HostHeaderResolvedConfig;

/**
* <fullname>
Expand Down Expand Up @@ -578,6 +582,5 @@ export class APIGatewayClient extends __Client<
this.middlewareStack.use(getHostHeaderPlugin(this.config));
}

destroy(): void {
}
destroy(): void {}
}
27 changes: 15 additions & 12 deletions clients/client-api-gateway/commands/CreateApiKeyCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import {
APIGatewayClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../APIGatewayClient";
import {
ApiKey,
CreateApiKeyRequest,
} from "../models/index";
import { ApiKey, CreateApiKeyRequest } from "../models/index";
import {
deserializeAws_restJson1_1CreateApiKeyCommand,
serializeAws_restJson1_1CreateApiKeyCommand,
serializeAws_restJson1_1CreateApiKeyCommand
} 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 CreateApiKeyCommandInput = CreateApiKeyRequest;
export type CreateApiKeyCommandOutput = ApiKey;

export class CreateApiKeyCommand extends $Command<CreateApiKeyCommandInput, CreateApiKeyCommandOutput, APIGatewayClientResolvedConfig> {
export class CreateApiKeyCommand extends $Command<
CreateApiKeyCommandInput,
CreateApiKeyCommandOutput,
APIGatewayClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -44,13 +45,15 @@ export class CreateApiKeyCommand extends $Command<CreateApiKeyCommandInput, Crea
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateApiKeyCommandInput, CreateApiKeyCommandOutput> {
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-api-gateway/commands/CreateAuthorizerCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import {
APIGatewayClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../APIGatewayClient";
import {
Authorizer,
CreateAuthorizerRequest,
} from "../models/index";
import { Authorizer, CreateAuthorizerRequest } from "../models/index";
import {
deserializeAws_restJson1_1CreateAuthorizerCommand,
serializeAws_restJson1_1CreateAuthorizerCommand,
serializeAws_restJson1_1CreateAuthorizerCommand
} 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 CreateAuthorizerCommandInput = CreateAuthorizerRequest;
export type CreateAuthorizerCommandOutput = Authorizer;

export class CreateAuthorizerCommand extends $Command<CreateAuthorizerCommandInput, CreateAuthorizerCommandOutput, APIGatewayClientResolvedConfig> {
export class CreateAuthorizerCommand extends $Command<
CreateAuthorizerCommandInput,
CreateAuthorizerCommandOutput,
APIGatewayClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -44,13 +45,15 @@ export class CreateAuthorizerCommand extends $Command<CreateAuthorizerCommandInp
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateAuthorizerCommandInput, CreateAuthorizerCommandOutput> {
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
37 changes: 23 additions & 14 deletions clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import {
APIGatewayClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../APIGatewayClient";
import {
BasePathMapping,
CreateBasePathMappingRequest,
} from "../models/index";
import { BasePathMapping, CreateBasePathMappingRequest } from "../models/index";
import {
deserializeAws_restJson1_1CreateBasePathMappingCommand,
serializeAws_restJson1_1CreateBasePathMappingCommand,
serializeAws_restJson1_1CreateBasePathMappingCommand
} 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 CreateBasePathMappingCommandInput = CreateBasePathMappingRequest;
export type CreateBasePathMappingCommandOutput = BasePathMapping;

export class CreateBasePathMappingCommand extends $Command<CreateBasePathMappingCommandInput, CreateBasePathMappingCommandOutput, APIGatewayClientResolvedConfig> {
export class CreateBasePathMappingCommand extends $Command<
CreateBasePathMappingCommandInput,
CreateBasePathMappingCommandOutput,
APIGatewayClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -43,14 +44,19 @@ export class CreateBasePathMappingCommand extends $Command<CreateBasePathMapping
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateBasePathMappingCommandInput, CreateBasePathMappingCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
): Handler<
CreateBasePathMappingCommandInput,
CreateBasePathMappingCommandOutput
> {
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 +76,10 @@ export class CreateBasePathMappingCommand extends $Command<CreateBasePathMapping
output: __HttpResponse,
context: SerdeContext
): Promise<CreateBasePathMappingCommandOutput> {
return deserializeAws_restJson1_1CreateBasePathMappingCommand(output, context);
return deserializeAws_restJson1_1CreateBasePathMappingCommand(
output,
context
);
}

// Start section: command_body_extra
Expand Down
27 changes: 15 additions & 12 deletions clients/client-api-gateway/commands/CreateDeploymentCommand.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import {
APIGatewayClientResolvedConfig,
ServiceInputTypes,
ServiceOutputTypes,
ServiceOutputTypes
} from "../APIGatewayClient";
import {
CreateDeploymentRequest,
Deployment,
} from "../models/index";
import { CreateDeploymentRequest, Deployment } from "../models/index";
import {
deserializeAws_restJson1_1CreateDeploymentCommand,
serializeAws_restJson1_1CreateDeploymentCommand,
serializeAws_restJson1_1CreateDeploymentCommand
} 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 CreateDeploymentCommandInput = CreateDeploymentRequest;
export type CreateDeploymentCommandOutput = Deployment;

export class CreateDeploymentCommand extends $Command<CreateDeploymentCommandInput, CreateDeploymentCommandOutput, APIGatewayClientResolvedConfig> {
export class CreateDeploymentCommand extends $Command<
CreateDeploymentCommandInput,
CreateDeploymentCommandOutput,
APIGatewayClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

Expand All @@ -44,13 +45,15 @@ export class CreateDeploymentCommand extends $Command<CreateDeploymentCommandInp
configuration: APIGatewayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<CreateDeploymentCommandInput, CreateDeploymentCommandOutput> {
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