Skip to content

Feat: add AWSClient, ClientResolvedConfiguration, MetadataBearer interfaces #256

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 8 commits into from
May 18, 2019
  •  
  •  
  •  
10 changes: 8 additions & 2 deletions packages/client-codecommit-node/CodeCommitClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,14 @@ import { InputTypesUnion } from "./types/InputTypesUnion";
import { OutputTypesUnion } from "./types/OutputTypesUnion";
import { clientVersion, ServiceMetadata } from "./model/ServiceMetadata";

export class CodeCommitClient {
protected readonly config: CodeCommitResolvedConfiguration;
export class CodeCommitClient
implements
__aws_sdk_types.AWSClient<
InputTypesUnion,
OutputTypesUnion,
_stream.Readable
> {
readonly config: CodeCommitResolvedConfiguration;

readonly middlewareStack = new __aws_sdk_middleware_stack.MiddlewareStack<
InputTypesUnion,
Expand Down
6 changes: 5 additions & 1 deletion packages/client-codecommit-node/CodeCommitConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ export interface CodeCommitResolvableConfiguration
}

export interface CodeCommitResolvedConfiguration
extends CodeCommitConfiguration {
extends CodeCommitConfiguration,
__aws_sdk_types.ClientResolvedConfigurationBase<
OutputTypesUnion,
_stream.Readable
> {
_user_injected_http_handler: boolean;

base64Decoder: __aws_sdk_types.Decoder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a batch get repositories operation.</p>
*/
export interface BatchGetRepositoriesOutput {
export interface BatchGetRepositoriesOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>A list of repositories returned by the batch get repositories operation.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* CreateBranchOutput shape
*/
export interface CreateBranchOutput {
export interface CreateBranchOutput extends __aws_sdk_types.MetadataBearer {
/**
* Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* CreatePullRequestOutput shape
*/
export interface CreatePullRequestOutput {
export interface CreatePullRequestOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the newly created pull request.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a create repository operation.</p>
*/
export interface CreateRepositoryOutput {
export interface CreateRepositoryOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the newly created repository.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a delete branch operation.</p>
*/
export interface DeleteBranchOutput {
export interface DeleteBranchOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* DeleteCommentContentOutput shape
*/
export interface DeleteCommentContentOutput {
export interface DeleteCommentContentOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the comment you just deleted.</p>
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/client-codecommit-node/types/DeleteFileOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* DeleteFileOutput shape
*/
export interface DeleteFileOutput {
export interface DeleteFileOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The full commit ID of the commit that contains the change that deletes the file.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a delete repository operation.</p>
*/
export interface DeleteRepositoryOutput {
export interface DeleteRepositoryOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The ID of the repository that was deleted.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* DescribePullRequestEventsOutput shape
*/
export interface DescribePullRequestEventsOutput {
export interface DescribePullRequestEventsOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the pull request events.</p>
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/client-codecommit-node/types/GetBlobOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a get blob operation.</p>
*/
export interface GetBlobOutput {
export interface GetBlobOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The content of the blob, usually a file.</p>
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/client-codecommit-node/types/GetBranchOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a get branch operation.</p>
*/
export interface GetBranchOutput {
export interface GetBranchOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The name of the branch.</p>
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/client-codecommit-node/types/GetCommentOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetCommentOutput shape
*/
export interface GetCommentOutput {
export interface GetCommentOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The contents of the comment.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetCommentsForComparedCommitOutput shape
*/
export interface GetCommentsForComparedCommitOutput {
export interface GetCommentsForComparedCommitOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>A list of comment objects on the compared commit.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetCommentsForPullRequestOutput shape
*/
export interface GetCommentsForPullRequestOutput {
export interface GetCommentsForPullRequestOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>An array of comment objects on the pull request.</p>
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/client-codecommit-node/types/GetCommitOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a get commit operation.</p>
*/
export interface GetCommitOutput {
export interface GetCommitOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>A commit data type object that contains information about the specified commit.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetDifferencesOutput shape
*/
export interface GetDifferencesOutput {
export interface GetDifferencesOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>A differences data type object that contains information about the differences, including whether the difference is added, modified, or deleted (A, D, M).</p>
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/client-codecommit-node/types/GetFileOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetFileOutput shape
*/
export interface GetFileOutput {
export interface GetFileOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The full commit ID of the commit that contains the content returned by GetFile.</p>
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/client-codecommit-node/types/GetFolderOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetFolderOutput shape
*/
export interface GetFolderOutput {
export interface GetFolderOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The full commit ID used as a reference for which version of the folder content is returned.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetMergeConflictsOutput shape
*/
export interface GetMergeConflictsOutput {
export interface GetMergeConflictsOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>A Boolean value that indicates whether the code is mergable by the specified merge option.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* GetPullRequestOutput shape
*/
export interface GetPullRequestOutput {
export interface GetPullRequestOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the specified pull request.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a get repository operation.</p>
*/
export interface GetRepositoryOutput {
export interface GetRepositoryOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the repository.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a get repository triggers operation.</p>
*/
export interface GetRepositoryTriggersOutput {
export interface GetRepositoryTriggersOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>The system-generated unique ID for the trigger.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a list branches operation.</p>
*/
export interface ListBranchesOutput {
export interface ListBranchesOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The list of branch names.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* ListPullRequestsOutput shape
*/
export interface ListPullRequestsOutput {
export interface ListPullRequestsOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The system-generated IDs of the pull requests.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a list repositories operation.</p>
*/
export interface ListRepositoriesOutput {
export interface ListRepositoriesOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>Lists the repositories called by the list repositories operation.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* MergePullRequestByFastForwardOutput shape
*/
export interface MergePullRequestByFastForwardOutput {
export interface MergePullRequestByFastForwardOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the specified pull request, including information about the merge.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* PostCommentForComparedCommitOutput shape
*/
export interface PostCommentForComparedCommitOutput {
export interface PostCommentForComparedCommitOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>The name of the repository where you posted a comment on the comparison between commits.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* PostCommentForPullRequestOutput shape
*/
export interface PostCommentForPullRequestOutput {
export interface PostCommentForPullRequestOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>The name of the repository where you posted a comment on a pull request.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* PostCommentReplyOutput shape
*/
export interface PostCommentReplyOutput {
export interface PostCommentReplyOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the reply to a comment.</p>
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/client-codecommit-node/types/PutFileOutput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* PutFileOutput shape
*/
export interface PutFileOutput {
export interface PutFileOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>The full SHA of the commit that contains this file change.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a put repository triggers operation.</p>
*/
export interface PutRepositoryTriggersOutput {
export interface PutRepositoryTriggersOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>The system-generated unique ID for the create or update operation.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* <p>Represents the output of a test repository triggers operation.</p>
*/
export interface TestRepositoryTriggersOutput {
export interface TestRepositoryTriggersOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>The list of triggers that were successfully tested. This list provides the names of the triggers that were successfully tested, separated by commas.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* UpdateCommentOutput shape
*/
export interface UpdateCommentOutput {
export interface UpdateCommentOutput extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the updated comment.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* UpdateDefaultBranchOutput shape
*/
export interface UpdateDefaultBranchOutput {
export interface UpdateDefaultBranchOutput
extends __aws_sdk_types.MetadataBearer {
/**
* Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* UpdatePullRequestDescriptionOutput shape
*/
export interface UpdatePullRequestDescriptionOutput {
export interface UpdatePullRequestDescriptionOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the updated pull request.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* UpdatePullRequestStatusOutput shape
*/
export interface UpdatePullRequestStatusOutput {
export interface UpdatePullRequestStatusOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the pull request.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* UpdatePullRequestTitleOutput shape
*/
export interface UpdatePullRequestTitleOutput {
export interface UpdatePullRequestTitleOutput
extends __aws_sdk_types.MetadataBearer {
/**
* <p>Information about the updated pull request.</p>
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* UpdateRepositoryDescriptionOutput shape
*/
export interface UpdateRepositoryDescriptionOutput {
export interface UpdateRepositoryDescriptionOutput
extends __aws_sdk_types.MetadataBearer {
/**
* Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import * as __aws_sdk_types from "@aws-sdk/types";
/**
* UpdateRepositoryNameOutput shape
*/
export interface UpdateRepositoryNameOutput {
export interface UpdateRepositoryNameOutput
extends __aws_sdk_types.MetadataBearer {
/**
* Metadata about the response received, including the HTTP status code, HTTP headers, and any request identifiers recognized by the SDK.
*/
Expand Down
Loading