Skip to content

Commit 8bf91e2

Browse files
authored
feat: make operation model accessible from commands (#242)
1 parent 548e4b6 commit 8bf91e2

File tree

548 files changed

+1096
-548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

548 files changed

+1096
-548
lines changed

Diff for: packages/client-codecommit-node/commands/BatchGetRepositoriesCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class BatchGetRepositoriesCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = BatchGetRepositories;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
BatchGetRepositoriesInput,
2627
BatchGetRepositoriesOutput,
@@ -45,7 +46,7 @@ export class BatchGetRepositoriesCommand
4546

4647
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4748
logger: {} as any,
48-
model: BatchGetRepositories
49+
model: this.model
4950
};
5051

5152
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/CreateBranchCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class CreateBranchCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = CreateBranch;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
CreateBranchInput,
2627
CreateBranchOutput,
@@ -42,7 +43,7 @@ export class CreateBranchCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: CreateBranch
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/CreatePullRequestCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class CreatePullRequestCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = CreatePullRequest;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
CreatePullRequestInput,
2627
CreatePullRequestOutput,
@@ -42,7 +43,7 @@ export class CreatePullRequestCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: CreatePullRequest
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/CreateRepositoryCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class CreateRepositoryCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = CreateRepository;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
CreateRepositoryInput,
2627
CreateRepositoryOutput,
@@ -42,7 +43,7 @@ export class CreateRepositoryCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: CreateRepository
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/DeleteBranchCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class DeleteBranchCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = DeleteBranch;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
DeleteBranchInput,
2627
DeleteBranchOutput,
@@ -42,7 +43,7 @@ export class DeleteBranchCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: DeleteBranch
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/DeleteCommentContentCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class DeleteCommentContentCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = DeleteCommentContent;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
DeleteCommentContentInput,
2627
DeleteCommentContentOutput,
@@ -45,7 +46,7 @@ export class DeleteCommentContentCommand
4546

4647
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4748
logger: {} as any,
48-
model: DeleteCommentContent
49+
model: this.model
4950
};
5051

5152
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/DeleteFileCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class DeleteFileCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = DeleteFile;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
DeleteFileInput,
2627
DeleteFileOutput,
@@ -42,7 +43,7 @@ export class DeleteFileCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: DeleteFile
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/DeleteRepositoryCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class DeleteRepositoryCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = DeleteRepository;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
DeleteRepositoryInput,
2627
DeleteRepositoryOutput,
@@ -42,7 +43,7 @@ export class DeleteRepositoryCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: DeleteRepository
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/DescribePullRequestEventsCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class DescribePullRequestEventsCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = DescribePullRequestEvents;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
DescribePullRequestEventsInput,
2627
DescribePullRequestEventsOutput,
@@ -45,7 +46,7 @@ export class DescribePullRequestEventsCommand
4546

4647
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4748
logger: {} as any,
48-
model: DescribePullRequestEvents
49+
model: this.model
4950
};
5051

5152
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetBlobCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetBlobCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetBlob;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetBlobInput,
2627
GetBlobOutput,
@@ -42,7 +43,7 @@ export class GetBlobCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetBlob
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetBranchCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetBranchCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetBranch;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetBranchInput,
2627
GetBranchOutput,
@@ -42,7 +43,7 @@ export class GetBranchCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetBranch
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetCommentCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetCommentCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetComment;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetCommentInput,
2627
GetCommentOutput,
@@ -42,7 +43,7 @@ export class GetCommentCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetComment
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetCommentsForComparedCommitCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetCommentsForComparedCommitCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetCommentsForComparedCommit;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetCommentsForComparedCommitInput,
2627
GetCommentsForComparedCommitOutput,
@@ -45,7 +46,7 @@ export class GetCommentsForComparedCommitCommand
4546

4647
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4748
logger: {} as any,
48-
model: GetCommentsForComparedCommit
49+
model: this.model
4950
};
5051

5152
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetCommentsForPullRequestCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetCommentsForPullRequestCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetCommentsForPullRequest;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetCommentsForPullRequestInput,
2627
GetCommentsForPullRequestOutput,
@@ -45,7 +46,7 @@ export class GetCommentsForPullRequestCommand
4546

4647
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4748
logger: {} as any,
48-
model: GetCommentsForPullRequest
49+
model: this.model
4950
};
5051

5152
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetCommitCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetCommitCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetCommit;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetCommitInput,
2627
GetCommitOutput,
@@ -42,7 +43,7 @@ export class GetCommitCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetCommit
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetDifferencesCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetDifferencesCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetDifferences;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetDifferencesInput,
2627
GetDifferencesOutput,
@@ -42,7 +43,7 @@ export class GetDifferencesCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetDifferences
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetFileCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetFileCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetFile;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetFileInput,
2627
GetFileOutput,
@@ -42,7 +43,7 @@ export class GetFileCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetFile
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetFolderCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetFolderCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetFolder;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetFolderInput,
2627
GetFolderOutput,
@@ -42,7 +43,7 @@ export class GetFolderCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetFolder
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetMergeConflictsCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetMergeConflictsCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetMergeConflicts;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetMergeConflictsInput,
2627
GetMergeConflictsOutput,
@@ -42,7 +43,7 @@ export class GetMergeConflictsCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetMergeConflicts
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetPullRequestCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetPullRequestCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetPullRequest;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetPullRequestInput,
2627
GetPullRequestOutput,
@@ -42,7 +43,7 @@ export class GetPullRequestCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetPullRequest
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetRepositoryCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetRepositoryCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetRepository;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetRepositoryInput,
2627
GetRepositoryOutput,
@@ -42,7 +43,7 @@ export class GetRepositoryCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: GetRepository
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/GetRepositoryTriggersCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class GetRepositoryTriggersCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = GetRepositoryTriggers;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
GetRepositoryTriggersInput,
2627
GetRepositoryTriggersOutput,
@@ -45,7 +46,7 @@ export class GetRepositoryTriggersCommand
4546

4647
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4748
logger: {} as any,
48-
model: GetRepositoryTriggers
49+
model: this.model
4950
};
5051

5152
return stack.resolve(

Diff for: packages/client-codecommit-node/commands/ListBranchesCommand.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class ListBranchesCommand
2121
CodeCommitResolvedConfiguration,
2222
_stream.Readable
2323
> {
24+
readonly model = ListBranches;
2425
readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
2526
ListBranchesInput,
2627
ListBranchesOutput,
@@ -42,7 +43,7 @@ export class ListBranchesCommand
4243

4344
const handlerExecutionContext: __aws_sdk_types.HandlerExecutionContext = {
4445
logger: {} as any,
45-
model: ListBranches
46+
model: this.model
4647
};
4748

4849
return stack.resolve(

0 commit comments

Comments
 (0)