Skip to content

feat: make operation model accessible from commands #242

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 2 commits into from
May 6, 2019
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class BatchGetRepositoriesCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = BatchGetRepositories;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
BatchGetRepositoriesInput,
BatchGetRepositoriesOutput,
Expand All @@ -45,7 +46,7 @@ export class BatchGetRepositoriesCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: BatchGetRepositories
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class CreateBranchCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = CreateBranch;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
CreateBranchInput,
CreateBranchOutput,
Expand All @@ -42,7 +43,7 @@ export class CreateBranchCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: CreateBranch
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class CreatePullRequestCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = CreatePullRequest;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
CreatePullRequestInput,
CreatePullRequestOutput,
Expand All @@ -42,7 +43,7 @@ export class CreatePullRequestCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: CreatePullRequest
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class CreateRepositoryCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = CreateRepository;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
CreateRepositoryInput,
CreateRepositoryOutput,
Expand All @@ -42,7 +43,7 @@ export class CreateRepositoryCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: CreateRepository
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DeleteBranchCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = DeleteBranch;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
DeleteBranchInput,
DeleteBranchOutput,
Expand All @@ -42,7 +43,7 @@ export class DeleteBranchCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: DeleteBranch
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DeleteCommentContentCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = DeleteCommentContent;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
DeleteCommentContentInput,
DeleteCommentContentOutput,
Expand All @@ -45,7 +46,7 @@ export class DeleteCommentContentCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: DeleteCommentContent
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DeleteFileCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = DeleteFile;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
DeleteFileInput,
DeleteFileOutput,
Expand All @@ -42,7 +43,7 @@ export class DeleteFileCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: DeleteFile
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DeleteRepositoryCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = DeleteRepository;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
DeleteRepositoryInput,
DeleteRepositoryOutput,
Expand All @@ -42,7 +43,7 @@ export class DeleteRepositoryCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: DeleteRepository
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class DescribePullRequestEventsCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = DescribePullRequestEvents;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
DescribePullRequestEventsInput,
DescribePullRequestEventsOutput,
Expand All @@ -45,7 +46,7 @@ export class DescribePullRequestEventsCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: DescribePullRequestEvents
model: this.model
};

return stack.resolve(
Expand Down
3 changes: 2 additions & 1 deletion packages/client-codecommit-node/commands/GetBlobCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetBlobCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetBlob;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetBlobInput,
GetBlobOutput,
Expand All @@ -42,7 +43,7 @@ export class GetBlobCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetBlob
model: this.model
};

return stack.resolve(
Expand Down
3 changes: 2 additions & 1 deletion packages/client-codecommit-node/commands/GetBranchCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetBranchCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetBranch;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetBranchInput,
GetBranchOutput,
Expand All @@ -42,7 +43,7 @@ export class GetBranchCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetBranch
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetCommentCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetComment;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetCommentInput,
GetCommentOutput,
Expand All @@ -42,7 +43,7 @@ export class GetCommentCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetComment
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetCommentsForComparedCommitCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetCommentsForComparedCommit;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetCommentsForComparedCommitInput,
GetCommentsForComparedCommitOutput,
Expand All @@ -45,7 +46,7 @@ export class GetCommentsForComparedCommitCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetCommentsForComparedCommit
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetCommentsForPullRequestCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetCommentsForPullRequest;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetCommentsForPullRequestInput,
GetCommentsForPullRequestOutput,
Expand All @@ -45,7 +46,7 @@ export class GetCommentsForPullRequestCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetCommentsForPullRequest
model: this.model
};

return stack.resolve(
Expand Down
3 changes: 2 additions & 1 deletion packages/client-codecommit-node/commands/GetCommitCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetCommitCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetCommit;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetCommitInput,
GetCommitOutput,
Expand All @@ -42,7 +43,7 @@ export class GetCommitCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetCommit
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetDifferencesCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetDifferences;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetDifferencesInput,
GetDifferencesOutput,
Expand All @@ -42,7 +43,7 @@ export class GetDifferencesCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetDifferences
model: this.model
};

return stack.resolve(
Expand Down
3 changes: 2 additions & 1 deletion packages/client-codecommit-node/commands/GetFileCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetFileCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetFile;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetFileInput,
GetFileOutput,
Expand All @@ -42,7 +43,7 @@ export class GetFileCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetFile
model: this.model
};

return stack.resolve(
Expand Down
3 changes: 2 additions & 1 deletion packages/client-codecommit-node/commands/GetFolderCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetFolderCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetFolder;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetFolderInput,
GetFolderOutput,
Expand All @@ -42,7 +43,7 @@ export class GetFolderCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetFolder
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetMergeConflictsCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetMergeConflicts;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetMergeConflictsInput,
GetMergeConflictsOutput,
Expand All @@ -42,7 +43,7 @@ export class GetMergeConflictsCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetMergeConflicts
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetPullRequestCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetPullRequest;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetPullRequestInput,
GetPullRequestOutput,
Expand All @@ -42,7 +43,7 @@ export class GetPullRequestCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetPullRequest
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetRepositoryCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetRepository;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetRepositoryInput,
GetRepositoryOutput,
Expand All @@ -42,7 +43,7 @@ export class GetRepositoryCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetRepository
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class GetRepositoryTriggersCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = GetRepositoryTriggers;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
GetRepositoryTriggersInput,
GetRepositoryTriggersOutput,
Expand All @@ -45,7 +46,7 @@ export class GetRepositoryTriggersCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: GetRepositoryTriggers
model: this.model
};

return stack.resolve(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class ListBranchesCommand
CodeCommitResolvedConfiguration,
_stream.Readable
> {
readonly model = ListBranches;
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
ListBranchesInput,
ListBranchesOutput,
Expand All @@ -42,7 +43,7 @@ export class ListBranchesCommand

const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
logger: {} as any,
model: ListBranches
model: this.model
};

return stack.resolve(
Expand Down
Loading