Skip to content

Commit 3e826e1

Browse files
authored
Merge pull request #69 from jeskew/feature/service-level-IO-unions
Service-level I/O union types
2 parents 93d0997 + f235511 commit 3e826e1

File tree

228 files changed

+5108
-1
lines changed

Some content is hidden

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

228 files changed

+5108
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/node_modules/
2+
/build/
3+
/coverage/
4+
/docs/
5+
*.tgz
6+
*.log
7+
package-lock.json
8+
*.d.ts
9+
*.js
10+
*.js.map
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/coverage/
2+
/docs/
3+
*.ts
4+
tsconfig.test.json
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* <p>Represents the input of a batch get repositories operation.</p>
3+
*/
4+
export interface BatchGetRepositoriesInput {
5+
/**
6+
* <p>The names of the repositories to get information about.</p>
7+
*/
8+
repositoryNames: Array<string>|Iterable<string>;
9+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import {_UnmarshalledRepositoryMetadata} from './_RepositoryMetadata';
2+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
3+
4+
/**
5+
* <p>Represents the output of a batch get repositories operation.</p>
6+
*/
7+
export interface BatchGetRepositoriesOutput {
8+
/**
9+
* <p>A list of repositories returned by the batch get repositories operation.</p>
10+
*/
11+
repositories?: Array<_UnmarshalledRepositoryMetadata>;
12+
13+
/**
14+
* <p>Returns a list of repository names for which information could not be found.</p>
15+
*/
16+
repositoriesNotFound?: Array<string>;
17+
18+
/**
19+
* Metadata about the response received, including the HTTP status code, HTTP
20+
* headers, and any request identifiers recognized by the SDK.
21+
*/
22+
$metadata: __ResponseMetadata__;
23+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>The specified blob does not exist.</p>
5+
*/
6+
export interface BlobIdDoesNotExistException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>A blob ID is required but was not specified.</p>
5+
*/
6+
export interface BlobIdRequiredException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>The specified branch does not exist.</p>
5+
*/
6+
export interface BranchDoesNotExistException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>The specified branch name already exists.</p>
5+
*/
6+
export interface BranchNameExistsException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>A branch name is required but was not specified.</p>
5+
*/
6+
export interface BranchNameRequiredException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>The specified commit does not exist or no commit was specified, and the specified repository has no default branch.</p>
5+
*/
6+
export interface CommitDoesNotExistException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>The specified commit ID does not exist.</p>
5+
*/
6+
export interface CommitIdDoesNotExistException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>A commit ID was not specified.</p>
5+
*/
6+
export interface CommitIdRequiredException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* <p>A commit was not specified.</p>
5+
*/
6+
export interface CommitRequiredException {
7+
/**
8+
* <p>A trace of which functions were called leading to this error being raised.</p>
9+
*/
10+
stack?: string;
11+
12+
/**
13+
* <p>The species of error returned by the service.</p>
14+
*/
15+
name?: string;
16+
17+
/**
18+
* <p>Human-readable description of the error.</p>
19+
*/
20+
message?: string;
21+
22+
/**
23+
* Metadata about the response received, including the HTTP status code, HTTP
24+
* headers, and any request identifiers recognized by the SDK.
25+
*/
26+
$metadata: __ResponseMetadata__;
27+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* <p>Represents the input of a create branch operation.</p>
3+
*/
4+
export interface CreateBranchInput {
5+
/**
6+
* <p>The name of the repository in which you want to create the new branch.</p>
7+
*/
8+
repositoryName: string;
9+
10+
/**
11+
* <p>The name of the new branch to create.</p>
12+
*/
13+
branchName: string;
14+
15+
/**
16+
* <p>The ID of the commit to point the new branch to.</p>
17+
*/
18+
commitId: string;
19+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
2+
3+
/**
4+
* CreateBranchOutput shape
5+
*/
6+
export interface CreateBranchOutput {
7+
/**
8+
* Metadata about the response received, including the HTTP status code, HTTP
9+
* headers, and any request identifiers recognized by the SDK.
10+
*/
11+
$metadata: __ResponseMetadata__;
12+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* <p>Represents the input of a create repository operation.</p>
3+
*/
4+
export interface CreateRepositoryInput {
5+
/**
6+
* <p>The name of the new repository to be created.</p> <note> <p>The repository name must be unique across the calling AWS account. In addition, repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. For a full description of the limits on repository names, see <a href="http://docs.aws.amazon.com/codecommit/latest/userguide/limits.html">Limits</a> in the AWS CodeCommit User Guide. The suffix ".git" is prohibited.</p> </note>
7+
*/
8+
repositoryName: string;
9+
10+
/**
11+
* <p>A comment or description about the new repository.</p> <note> <p>The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.</p> </note>
12+
*/
13+
repositoryDescription?: string;
14+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import {_UnmarshalledRepositoryMetadata} from './_RepositoryMetadata';
2+
import {ResponseMetadata as __ResponseMetadata__} from '@aws/types';
3+
4+
/**
5+
* <p>Represents the output of a create repository operation.</p>
6+
*/
7+
export interface CreateRepositoryOutput {
8+
/**
9+
* <p>Information about the newly created repository.</p>
10+
*/
11+
repositoryMetadata?: _UnmarshalledRepositoryMetadata;
12+
13+
/**
14+
* Metadata about the response received, including the HTTP status code, HTTP
15+
* headers, and any request identifiers recognized by the SDK.
16+
*/
17+
$metadata: __ResponseMetadata__;
18+
}

0 commit comments

Comments
 (0)