@aws-sdk/client-ecr-public 3.35.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/ECRPUBLIC.js +0 -10
- package/dist-cjs/ECRPUBLICClient.js +0 -15
- package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js +0 -31
- package/dist-cjs/commands/BatchDeleteImageCommand.js +0 -30
- package/dist-cjs/commands/CompleteLayerUploadCommand.js +0 -32
- package/dist-cjs/commands/CreateRepositoryCommand.js +0 -26
- package/dist-cjs/commands/DeleteRepositoryCommand.js +0 -27
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js +0 -25
- package/dist-cjs/commands/DescribeImageTagsCommand.js +0 -25
- package/dist-cjs/commands/DescribeImagesCommand.js +0 -31
- package/dist-cjs/commands/DescribeRegistriesCommand.js +0 -25
- package/dist-cjs/commands/DescribeRepositoriesCommand.js +0 -25
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js +0 -29
- package/dist-cjs/commands/GetRegistryCatalogDataCommand.js +0 -25
- package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js +0 -26
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js +0 -25
- package/dist-cjs/commands/InitiateLayerUploadCommand.js +0 -31
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -25
- package/dist-cjs/commands/PutImageCommand.js +0 -32
- package/dist-cjs/commands/PutRegistryCatalogDataCommand.js +0 -25
- package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js +0 -25
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js +0 -27
- package/dist-cjs/commands/TagResourceCommand.js +0 -28
- package/dist-cjs/commands/UntagResourceCommand.js +0 -25
- package/dist-cjs/commands/UploadLayerPartCommand.js +0 -31
- package/dist-cjs/commands/index.js +26 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +4 -31
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -256
- package/dist-cjs/pagination/DescribeImageTagsPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeImagesPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeRegistriesPaginator.js +0 -11
- package/dist-cjs/pagination/DescribeRepositoriesPaginator.js +0 -11
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/index.js +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/ECRPUBLIC.js +0 -1
- package/dist-es/ECRPUBLICClient.js +0 -1
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js +0 -1
- package/dist-es/commands/BatchDeleteImageCommand.js +0 -1
- package/dist-es/commands/CompleteLayerUploadCommand.js +0 -1
- package/dist-es/commands/CreateRepositoryCommand.js +0 -1
- package/dist-es/commands/DeleteRepositoryCommand.js +0 -1
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js +0 -1
- package/dist-es/commands/DescribeImageTagsCommand.js +0 -1
- package/dist-es/commands/DescribeImagesCommand.js +0 -1
- package/dist-es/commands/DescribeRegistriesCommand.js +0 -1
- package/dist-es/commands/DescribeRepositoriesCommand.js +0 -1
- package/dist-es/commands/GetAuthorizationTokenCommand.js +0 -1
- package/dist-es/commands/GetRegistryCatalogDataCommand.js +0 -1
- package/dist-es/commands/GetRepositoryCatalogDataCommand.js +0 -1
- package/dist-es/commands/GetRepositoryPolicyCommand.js +0 -1
- package/dist-es/commands/InitiateLayerUploadCommand.js +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-es/commands/PutImageCommand.js +0 -1
- package/dist-es/commands/PutRegistryCatalogDataCommand.js +0 -1
- package/dist-es/commands/PutRepositoryCatalogDataCommand.js +0 -1
- package/dist-es/commands/SetRepositoryPolicyCommand.js +0 -1
- package/dist-es/commands/TagResourceCommand.js +0 -1
- package/dist-es/commands/UntagResourceCommand.js +0 -1
- package/dist-es/commands/UploadLayerPartCommand.js +0 -1
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +4 -31
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/pagination/DescribeImageTagsPaginator.js +0 -1
- package/dist-es/pagination/DescribeImagesPaginator.js +0 -1
- package/dist-es/pagination/DescribeRegistriesPaginator.js +0 -1
- package/dist-es/pagination/DescribeRepositoriesPaginator.js +0 -1
- package/dist-es/pagination/Interfaces.js +0 -1
- package/dist-es/pagination/index.js +5 -0
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/index.d.ts +4 -30
- package/dist-types/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/ECRPUBLIC.d.ts +24 -134
- package/dist-types/ts3.4/ECRPUBLICClient.d.ts +24 -95
- package/dist-types/ts3.4/commands/BatchCheckLayerAvailabilityCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/BatchDeleteImageCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/CompleteLayerUploadCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/CreateRepositoryCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DeleteRepositoryCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/DeleteRepositoryPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeImageTagsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeImagesCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/DescribeRegistriesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/DescribeRepositoriesCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetAuthorizationTokenCommand.d.ts +2 -24
- package/dist-types/ts3.4/commands/GetRegistryCatalogDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/GetRepositoryCatalogDataCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/GetRepositoryPolicyCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/InitiateLayerUploadCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutImageCommand.d.ts +2 -27
- package/dist-types/ts3.4/commands/PutRegistryCatalogDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/PutRepositoryCatalogDataCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/SetRepositoryPolicyCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/UploadLayerPartCommand.d.ts +2 -26
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/index.d.ts +4 -30
- package/dist-types/ts3.4/models/models_0.d.ts +298 -1145
- package/dist-types/ts3.4/pagination/index.d.ts +5 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/ECRPUBLIC.js.map +0 -1
- package/dist-cjs/ECRPUBLICClient.js.map +0 -1
- package/dist-cjs/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
- package/dist-cjs/commands/BatchDeleteImageCommand.js.map +0 -1
- package/dist-cjs/commands/CompleteLayerUploadCommand.js.map +0 -1
- package/dist-cjs/commands/CreateRepositoryCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRepositoryCommand.js.map +0 -1
- package/dist-cjs/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeImageTagsCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeImagesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRegistriesCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRepositoriesCommand.js.map +0 -1
- package/dist-cjs/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist-cjs/commands/GetRegistryCatalogDataCommand.js.map +0 -1
- package/dist-cjs/commands/GetRepositoryCatalogDataCommand.js.map +0 -1
- package/dist-cjs/commands/GetRepositoryPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/InitiateLayerUploadCommand.js.map +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-cjs/commands/PutImageCommand.js.map +0 -1
- package/dist-cjs/commands/PutRegistryCatalogDataCommand.js.map +0 -1
- package/dist-cjs/commands/PutRepositoryCatalogDataCommand.js.map +0 -1
- package/dist-cjs/commands/SetRepositoryPolicyCommand.js.map +0 -1
- package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist-cjs/commands/UploadLayerPartCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/pagination/DescribeImageTagsPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeImagesPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeRegistriesPaginator.js.map +0 -1
- package/dist-cjs/pagination/DescribeRepositoriesPaginator.js.map +0 -1
- package/dist-cjs/pagination/Interfaces.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/ECRPUBLIC.js.map +0 -1
- package/dist-es/ECRPUBLICClient.js.map +0 -1
- package/dist-es/commands/BatchCheckLayerAvailabilityCommand.js.map +0 -1
- package/dist-es/commands/BatchDeleteImageCommand.js.map +0 -1
- package/dist-es/commands/CompleteLayerUploadCommand.js.map +0 -1
- package/dist-es/commands/CreateRepositoryCommand.js.map +0 -1
- package/dist-es/commands/DeleteRepositoryCommand.js.map +0 -1
- package/dist-es/commands/DeleteRepositoryPolicyCommand.js.map +0 -1
- package/dist-es/commands/DescribeImageTagsCommand.js.map +0 -1
- package/dist-es/commands/DescribeImagesCommand.js.map +0 -1
- package/dist-es/commands/DescribeRegistriesCommand.js.map +0 -1
- package/dist-es/commands/DescribeRepositoriesCommand.js.map +0 -1
- package/dist-es/commands/GetAuthorizationTokenCommand.js.map +0 -1
- package/dist-es/commands/GetRegistryCatalogDataCommand.js.map +0 -1
- package/dist-es/commands/GetRepositoryCatalogDataCommand.js.map +0 -1
- package/dist-es/commands/GetRepositoryPolicyCommand.js.map +0 -1
- package/dist-es/commands/InitiateLayerUploadCommand.js.map +0 -1
- package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist-es/commands/PutImageCommand.js.map +0 -1
- package/dist-es/commands/PutRegistryCatalogDataCommand.js.map +0 -1
- package/dist-es/commands/PutRepositoryCatalogDataCommand.js.map +0 -1
- package/dist-es/commands/SetRepositoryPolicyCommand.js.map +0 -1
- package/dist-es/commands/TagResourceCommand.js.map +0 -1
- package/dist-es/commands/UntagResourceCommand.js.map +0 -1
- package/dist-es/commands/UploadLayerPartCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/pagination/DescribeImageTagsPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeImagesPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeRegistriesPaginator.js.map +0 -1
- package/dist-es/pagination/DescribeRepositoriesPaginator.js.map +0 -1
- package/dist-es/pagination/Interfaces.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ECRPUBLIC.ts +0 -901
- package/src/ECRPUBLICClient.ts +0 -350
- package/src/commands/BatchCheckLayerAvailabilityCommand.ts +0 -106
- package/src/commands/BatchDeleteImageCommand.ts +0 -100
- package/src/commands/CompleteLayerUploadCommand.ts +0 -102
- package/src/commands/CreateRepositoryCommand.ts +0 -96
- package/src/commands/DeleteRepositoryCommand.ts +0 -97
- package/src/commands/DeleteRepositoryPolicyCommand.ts +0 -95
- package/src/commands/DescribeImageTagsCommand.ts +0 -95
- package/src/commands/DescribeImagesCommand.ts +0 -101
- package/src/commands/DescribeRegistriesCommand.ts +0 -95
- package/src/commands/DescribeRepositoriesCommand.ts +0 -95
- package/src/commands/GetAuthorizationTokenCommand.ts +0 -99
- package/src/commands/GetRegistryCatalogDataCommand.ts +0 -95
- package/src/commands/GetRepositoryCatalogDataCommand.ts +0 -96
- package/src/commands/GetRepositoryPolicyCommand.ts +0 -95
- package/src/commands/InitiateLayerUploadCommand.ts +0 -101
- package/src/commands/ListTagsForResourceCommand.ts +0 -95
- package/src/commands/PutImageCommand.ts +0 -99
- package/src/commands/PutRegistryCatalogDataCommand.ts +0 -95
- package/src/commands/PutRepositoryCatalogDataCommand.ts +0 -95
- package/src/commands/SetRepositoryPolicyCommand.ts +0 -97
- package/src/commands/TagResourceCommand.ts +0 -98
- package/src/commands/UntagResourceCommand.ts +0 -95
- package/src/commands/UploadLayerPartCommand.ts +0 -101
- package/src/endpoints.ts +0 -57
- package/src/index.ts +0 -31
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2292
- package/src/pagination/DescribeImageTagsPaginator.ts +0 -59
- package/src/pagination/DescribeImagesPaginator.ts +0 -59
- package/src/pagination/DescribeRegistriesPaginator.ts +0 -59
- package/src/pagination/DescribeRepositoriesPaginator.ts +0 -59
- package/src/pagination/Interfaces.ts +0 -8
- package/src/protocols/Aws_json1_1.ts +0 -3913
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,3913 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
|
-
import {
|
|
3
|
-
expectBoolean as __expectBoolean,
|
|
4
|
-
expectLong as __expectLong,
|
|
5
|
-
expectNonNull as __expectNonNull,
|
|
6
|
-
expectNumber as __expectNumber,
|
|
7
|
-
expectString as __expectString,
|
|
8
|
-
parseEpochTimestamp as __parseEpochTimestamp,
|
|
9
|
-
} from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
Endpoint as __Endpoint,
|
|
12
|
-
HeaderBag as __HeaderBag,
|
|
13
|
-
MetadataBearer as __MetadataBearer,
|
|
14
|
-
ResponseMetadata as __ResponseMetadata,
|
|
15
|
-
SerdeContext as __SerdeContext,
|
|
16
|
-
SmithyException as __SmithyException,
|
|
17
|
-
} from "@aws-sdk/types";
|
|
18
|
-
|
|
19
|
-
import {
|
|
20
|
-
BatchCheckLayerAvailabilityCommandInput,
|
|
21
|
-
BatchCheckLayerAvailabilityCommandOutput,
|
|
22
|
-
} from "../commands/BatchCheckLayerAvailabilityCommand";
|
|
23
|
-
import { BatchDeleteImageCommandInput, BatchDeleteImageCommandOutput } from "../commands/BatchDeleteImageCommand";
|
|
24
|
-
import {
|
|
25
|
-
CompleteLayerUploadCommandInput,
|
|
26
|
-
CompleteLayerUploadCommandOutput,
|
|
27
|
-
} from "../commands/CompleteLayerUploadCommand";
|
|
28
|
-
import { CreateRepositoryCommandInput, CreateRepositoryCommandOutput } from "../commands/CreateRepositoryCommand";
|
|
29
|
-
import { DeleteRepositoryCommandInput, DeleteRepositoryCommandOutput } from "../commands/DeleteRepositoryCommand";
|
|
30
|
-
import {
|
|
31
|
-
DeleteRepositoryPolicyCommandInput,
|
|
32
|
-
DeleteRepositoryPolicyCommandOutput,
|
|
33
|
-
} from "../commands/DeleteRepositoryPolicyCommand";
|
|
34
|
-
import { DescribeImagesCommandInput, DescribeImagesCommandOutput } from "../commands/DescribeImagesCommand";
|
|
35
|
-
import { DescribeImageTagsCommandInput, DescribeImageTagsCommandOutput } from "../commands/DescribeImageTagsCommand";
|
|
36
|
-
import { DescribeRegistriesCommandInput, DescribeRegistriesCommandOutput } from "../commands/DescribeRegistriesCommand";
|
|
37
|
-
import {
|
|
38
|
-
DescribeRepositoriesCommandInput,
|
|
39
|
-
DescribeRepositoriesCommandOutput,
|
|
40
|
-
} from "../commands/DescribeRepositoriesCommand";
|
|
41
|
-
import {
|
|
42
|
-
GetAuthorizationTokenCommandInput,
|
|
43
|
-
GetAuthorizationTokenCommandOutput,
|
|
44
|
-
} from "../commands/GetAuthorizationTokenCommand";
|
|
45
|
-
import {
|
|
46
|
-
GetRegistryCatalogDataCommandInput,
|
|
47
|
-
GetRegistryCatalogDataCommandOutput,
|
|
48
|
-
} from "../commands/GetRegistryCatalogDataCommand";
|
|
49
|
-
import {
|
|
50
|
-
GetRepositoryCatalogDataCommandInput,
|
|
51
|
-
GetRepositoryCatalogDataCommandOutput,
|
|
52
|
-
} from "../commands/GetRepositoryCatalogDataCommand";
|
|
53
|
-
import {
|
|
54
|
-
GetRepositoryPolicyCommandInput,
|
|
55
|
-
GetRepositoryPolicyCommandOutput,
|
|
56
|
-
} from "../commands/GetRepositoryPolicyCommand";
|
|
57
|
-
import {
|
|
58
|
-
InitiateLayerUploadCommandInput,
|
|
59
|
-
InitiateLayerUploadCommandOutput,
|
|
60
|
-
} from "../commands/InitiateLayerUploadCommand";
|
|
61
|
-
import {
|
|
62
|
-
ListTagsForResourceCommandInput,
|
|
63
|
-
ListTagsForResourceCommandOutput,
|
|
64
|
-
} from "../commands/ListTagsForResourceCommand";
|
|
65
|
-
import { PutImageCommandInput, PutImageCommandOutput } from "../commands/PutImageCommand";
|
|
66
|
-
import {
|
|
67
|
-
PutRegistryCatalogDataCommandInput,
|
|
68
|
-
PutRegistryCatalogDataCommandOutput,
|
|
69
|
-
} from "../commands/PutRegistryCatalogDataCommand";
|
|
70
|
-
import {
|
|
71
|
-
PutRepositoryCatalogDataCommandInput,
|
|
72
|
-
PutRepositoryCatalogDataCommandOutput,
|
|
73
|
-
} from "../commands/PutRepositoryCatalogDataCommand";
|
|
74
|
-
import {
|
|
75
|
-
SetRepositoryPolicyCommandInput,
|
|
76
|
-
SetRepositoryPolicyCommandOutput,
|
|
77
|
-
} from "../commands/SetRepositoryPolicyCommand";
|
|
78
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
79
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
80
|
-
import { UploadLayerPartCommandInput, UploadLayerPartCommandOutput } from "../commands/UploadLayerPartCommand";
|
|
81
|
-
import {
|
|
82
|
-
AuthorizationData,
|
|
83
|
-
BatchCheckLayerAvailabilityRequest,
|
|
84
|
-
BatchCheckLayerAvailabilityResponse,
|
|
85
|
-
BatchDeleteImageRequest,
|
|
86
|
-
BatchDeleteImageResponse,
|
|
87
|
-
CompleteLayerUploadRequest,
|
|
88
|
-
CompleteLayerUploadResponse,
|
|
89
|
-
CreateRepositoryRequest,
|
|
90
|
-
CreateRepositoryResponse,
|
|
91
|
-
DeleteRepositoryPolicyRequest,
|
|
92
|
-
DeleteRepositoryPolicyResponse,
|
|
93
|
-
DeleteRepositoryRequest,
|
|
94
|
-
DeleteRepositoryResponse,
|
|
95
|
-
DescribeImagesRequest,
|
|
96
|
-
DescribeImagesResponse,
|
|
97
|
-
DescribeImageTagsRequest,
|
|
98
|
-
DescribeImageTagsResponse,
|
|
99
|
-
DescribeRegistriesRequest,
|
|
100
|
-
DescribeRegistriesResponse,
|
|
101
|
-
DescribeRepositoriesRequest,
|
|
102
|
-
DescribeRepositoriesResponse,
|
|
103
|
-
EmptyUploadException,
|
|
104
|
-
GetAuthorizationTokenRequest,
|
|
105
|
-
GetAuthorizationTokenResponse,
|
|
106
|
-
GetRegistryCatalogDataRequest,
|
|
107
|
-
GetRegistryCatalogDataResponse,
|
|
108
|
-
GetRepositoryCatalogDataRequest,
|
|
109
|
-
GetRepositoryCatalogDataResponse,
|
|
110
|
-
GetRepositoryPolicyRequest,
|
|
111
|
-
GetRepositoryPolicyResponse,
|
|
112
|
-
Image,
|
|
113
|
-
ImageAlreadyExistsException,
|
|
114
|
-
ImageDetail,
|
|
115
|
-
ImageDigestDoesNotMatchException,
|
|
116
|
-
ImageFailure,
|
|
117
|
-
ImageIdentifier,
|
|
118
|
-
ImageNotFoundException,
|
|
119
|
-
ImageTagAlreadyExistsException,
|
|
120
|
-
ImageTagDetail,
|
|
121
|
-
InitiateLayerUploadRequest,
|
|
122
|
-
InitiateLayerUploadResponse,
|
|
123
|
-
InvalidLayerException,
|
|
124
|
-
InvalidLayerPartException,
|
|
125
|
-
InvalidParameterException,
|
|
126
|
-
InvalidTagParameterException,
|
|
127
|
-
Layer,
|
|
128
|
-
LayerAlreadyExistsException,
|
|
129
|
-
LayerFailure,
|
|
130
|
-
LayerPartTooSmallException,
|
|
131
|
-
LayersNotFoundException,
|
|
132
|
-
LimitExceededException,
|
|
133
|
-
ListTagsForResourceRequest,
|
|
134
|
-
ListTagsForResourceResponse,
|
|
135
|
-
PutImageRequest,
|
|
136
|
-
PutImageResponse,
|
|
137
|
-
PutRegistryCatalogDataRequest,
|
|
138
|
-
PutRegistryCatalogDataResponse,
|
|
139
|
-
PutRepositoryCatalogDataRequest,
|
|
140
|
-
PutRepositoryCatalogDataResponse,
|
|
141
|
-
ReferencedImageDetail,
|
|
142
|
-
ReferencedImagesNotFoundException,
|
|
143
|
-
Registry,
|
|
144
|
-
RegistryAlias,
|
|
145
|
-
RegistryCatalogData,
|
|
146
|
-
RegistryNotFoundException,
|
|
147
|
-
Repository,
|
|
148
|
-
RepositoryAlreadyExistsException,
|
|
149
|
-
RepositoryCatalogData,
|
|
150
|
-
RepositoryCatalogDataInput,
|
|
151
|
-
RepositoryNotEmptyException,
|
|
152
|
-
RepositoryNotFoundException,
|
|
153
|
-
RepositoryPolicyNotFoundException,
|
|
154
|
-
ServerException,
|
|
155
|
-
SetRepositoryPolicyRequest,
|
|
156
|
-
SetRepositoryPolicyResponse,
|
|
157
|
-
Tag,
|
|
158
|
-
TagResourceRequest,
|
|
159
|
-
TagResourceResponse,
|
|
160
|
-
TooManyTagsException,
|
|
161
|
-
UnsupportedCommandException,
|
|
162
|
-
UntagResourceRequest,
|
|
163
|
-
UntagResourceResponse,
|
|
164
|
-
UploadLayerPartRequest,
|
|
165
|
-
UploadLayerPartResponse,
|
|
166
|
-
UploadNotFoundException,
|
|
167
|
-
} from "../models/models_0";
|
|
168
|
-
|
|
169
|
-
export const serializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (
|
|
170
|
-
input: BatchCheckLayerAvailabilityCommandInput,
|
|
171
|
-
context: __SerdeContext
|
|
172
|
-
): Promise<__HttpRequest> => {
|
|
173
|
-
const headers: __HeaderBag = {
|
|
174
|
-
"content-type": "application/x-amz-json-1.1",
|
|
175
|
-
"x-amz-target": "SpencerFrontendService.BatchCheckLayerAvailability",
|
|
176
|
-
};
|
|
177
|
-
let body: any;
|
|
178
|
-
body = JSON.stringify(serializeAws_json1_1BatchCheckLayerAvailabilityRequest(input, context));
|
|
179
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
export const serializeAws_json1_1BatchDeleteImageCommand = async (
|
|
183
|
-
input: BatchDeleteImageCommandInput,
|
|
184
|
-
context: __SerdeContext
|
|
185
|
-
): Promise<__HttpRequest> => {
|
|
186
|
-
const headers: __HeaderBag = {
|
|
187
|
-
"content-type": "application/x-amz-json-1.1",
|
|
188
|
-
"x-amz-target": "SpencerFrontendService.BatchDeleteImage",
|
|
189
|
-
};
|
|
190
|
-
let body: any;
|
|
191
|
-
body = JSON.stringify(serializeAws_json1_1BatchDeleteImageRequest(input, context));
|
|
192
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
export const serializeAws_json1_1CompleteLayerUploadCommand = async (
|
|
196
|
-
input: CompleteLayerUploadCommandInput,
|
|
197
|
-
context: __SerdeContext
|
|
198
|
-
): Promise<__HttpRequest> => {
|
|
199
|
-
const headers: __HeaderBag = {
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "SpencerFrontendService.CompleteLayerUpload",
|
|
202
|
-
};
|
|
203
|
-
let body: any;
|
|
204
|
-
body = JSON.stringify(serializeAws_json1_1CompleteLayerUploadRequest(input, context));
|
|
205
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
export const serializeAws_json1_1CreateRepositoryCommand = async (
|
|
209
|
-
input: CreateRepositoryCommandInput,
|
|
210
|
-
context: __SerdeContext
|
|
211
|
-
): Promise<__HttpRequest> => {
|
|
212
|
-
const headers: __HeaderBag = {
|
|
213
|
-
"content-type": "application/x-amz-json-1.1",
|
|
214
|
-
"x-amz-target": "SpencerFrontendService.CreateRepository",
|
|
215
|
-
};
|
|
216
|
-
let body: any;
|
|
217
|
-
body = JSON.stringify(serializeAws_json1_1CreateRepositoryRequest(input, context));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
|
|
221
|
-
export const serializeAws_json1_1DeleteRepositoryCommand = async (
|
|
222
|
-
input: DeleteRepositoryCommandInput,
|
|
223
|
-
context: __SerdeContext
|
|
224
|
-
): Promise<__HttpRequest> => {
|
|
225
|
-
const headers: __HeaderBag = {
|
|
226
|
-
"content-type": "application/x-amz-json-1.1",
|
|
227
|
-
"x-amz-target": "SpencerFrontendService.DeleteRepository",
|
|
228
|
-
};
|
|
229
|
-
let body: any;
|
|
230
|
-
body = JSON.stringify(serializeAws_json1_1DeleteRepositoryRequest(input, context));
|
|
231
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
export const serializeAws_json1_1DeleteRepositoryPolicyCommand = async (
|
|
235
|
-
input: DeleteRepositoryPolicyCommandInput,
|
|
236
|
-
context: __SerdeContext
|
|
237
|
-
): Promise<__HttpRequest> => {
|
|
238
|
-
const headers: __HeaderBag = {
|
|
239
|
-
"content-type": "application/x-amz-json-1.1",
|
|
240
|
-
"x-amz-target": "SpencerFrontendService.DeleteRepositoryPolicy",
|
|
241
|
-
};
|
|
242
|
-
let body: any;
|
|
243
|
-
body = JSON.stringify(serializeAws_json1_1DeleteRepositoryPolicyRequest(input, context));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
export const serializeAws_json1_1DescribeImagesCommand = async (
|
|
248
|
-
input: DescribeImagesCommandInput,
|
|
249
|
-
context: __SerdeContext
|
|
250
|
-
): Promise<__HttpRequest> => {
|
|
251
|
-
const headers: __HeaderBag = {
|
|
252
|
-
"content-type": "application/x-amz-json-1.1",
|
|
253
|
-
"x-amz-target": "SpencerFrontendService.DescribeImages",
|
|
254
|
-
};
|
|
255
|
-
let body: any;
|
|
256
|
-
body = JSON.stringify(serializeAws_json1_1DescribeImagesRequest(input, context));
|
|
257
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
export const serializeAws_json1_1DescribeImageTagsCommand = async (
|
|
261
|
-
input: DescribeImageTagsCommandInput,
|
|
262
|
-
context: __SerdeContext
|
|
263
|
-
): Promise<__HttpRequest> => {
|
|
264
|
-
const headers: __HeaderBag = {
|
|
265
|
-
"content-type": "application/x-amz-json-1.1",
|
|
266
|
-
"x-amz-target": "SpencerFrontendService.DescribeImageTags",
|
|
267
|
-
};
|
|
268
|
-
let body: any;
|
|
269
|
-
body = JSON.stringify(serializeAws_json1_1DescribeImageTagsRequest(input, context));
|
|
270
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
export const serializeAws_json1_1DescribeRegistriesCommand = async (
|
|
274
|
-
input: DescribeRegistriesCommandInput,
|
|
275
|
-
context: __SerdeContext
|
|
276
|
-
): Promise<__HttpRequest> => {
|
|
277
|
-
const headers: __HeaderBag = {
|
|
278
|
-
"content-type": "application/x-amz-json-1.1",
|
|
279
|
-
"x-amz-target": "SpencerFrontendService.DescribeRegistries",
|
|
280
|
-
};
|
|
281
|
-
let body: any;
|
|
282
|
-
body = JSON.stringify(serializeAws_json1_1DescribeRegistriesRequest(input, context));
|
|
283
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
export const serializeAws_json1_1DescribeRepositoriesCommand = async (
|
|
287
|
-
input: DescribeRepositoriesCommandInput,
|
|
288
|
-
context: __SerdeContext
|
|
289
|
-
): Promise<__HttpRequest> => {
|
|
290
|
-
const headers: __HeaderBag = {
|
|
291
|
-
"content-type": "application/x-amz-json-1.1",
|
|
292
|
-
"x-amz-target": "SpencerFrontendService.DescribeRepositories",
|
|
293
|
-
};
|
|
294
|
-
let body: any;
|
|
295
|
-
body = JSON.stringify(serializeAws_json1_1DescribeRepositoriesRequest(input, context));
|
|
296
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
-
};
|
|
298
|
-
|
|
299
|
-
export const serializeAws_json1_1GetAuthorizationTokenCommand = async (
|
|
300
|
-
input: GetAuthorizationTokenCommandInput,
|
|
301
|
-
context: __SerdeContext
|
|
302
|
-
): Promise<__HttpRequest> => {
|
|
303
|
-
const headers: __HeaderBag = {
|
|
304
|
-
"content-type": "application/x-amz-json-1.1",
|
|
305
|
-
"x-amz-target": "SpencerFrontendService.GetAuthorizationToken",
|
|
306
|
-
};
|
|
307
|
-
let body: any;
|
|
308
|
-
body = JSON.stringify(serializeAws_json1_1GetAuthorizationTokenRequest(input, context));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
export const serializeAws_json1_1GetRegistryCatalogDataCommand = async (
|
|
313
|
-
input: GetRegistryCatalogDataCommandInput,
|
|
314
|
-
context: __SerdeContext
|
|
315
|
-
): Promise<__HttpRequest> => {
|
|
316
|
-
const headers: __HeaderBag = {
|
|
317
|
-
"content-type": "application/x-amz-json-1.1",
|
|
318
|
-
"x-amz-target": "SpencerFrontendService.GetRegistryCatalogData",
|
|
319
|
-
};
|
|
320
|
-
let body: any;
|
|
321
|
-
body = JSON.stringify(serializeAws_json1_1GetRegistryCatalogDataRequest(input, context));
|
|
322
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
323
|
-
};
|
|
324
|
-
|
|
325
|
-
export const serializeAws_json1_1GetRepositoryCatalogDataCommand = async (
|
|
326
|
-
input: GetRepositoryCatalogDataCommandInput,
|
|
327
|
-
context: __SerdeContext
|
|
328
|
-
): Promise<__HttpRequest> => {
|
|
329
|
-
const headers: __HeaderBag = {
|
|
330
|
-
"content-type": "application/x-amz-json-1.1",
|
|
331
|
-
"x-amz-target": "SpencerFrontendService.GetRepositoryCatalogData",
|
|
332
|
-
};
|
|
333
|
-
let body: any;
|
|
334
|
-
body = JSON.stringify(serializeAws_json1_1GetRepositoryCatalogDataRequest(input, context));
|
|
335
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
export const serializeAws_json1_1GetRepositoryPolicyCommand = async (
|
|
339
|
-
input: GetRepositoryPolicyCommandInput,
|
|
340
|
-
context: __SerdeContext
|
|
341
|
-
): Promise<__HttpRequest> => {
|
|
342
|
-
const headers: __HeaderBag = {
|
|
343
|
-
"content-type": "application/x-amz-json-1.1",
|
|
344
|
-
"x-amz-target": "SpencerFrontendService.GetRepositoryPolicy",
|
|
345
|
-
};
|
|
346
|
-
let body: any;
|
|
347
|
-
body = JSON.stringify(serializeAws_json1_1GetRepositoryPolicyRequest(input, context));
|
|
348
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
export const serializeAws_json1_1InitiateLayerUploadCommand = async (
|
|
352
|
-
input: InitiateLayerUploadCommandInput,
|
|
353
|
-
context: __SerdeContext
|
|
354
|
-
): Promise<__HttpRequest> => {
|
|
355
|
-
const headers: __HeaderBag = {
|
|
356
|
-
"content-type": "application/x-amz-json-1.1",
|
|
357
|
-
"x-amz-target": "SpencerFrontendService.InitiateLayerUpload",
|
|
358
|
-
};
|
|
359
|
-
let body: any;
|
|
360
|
-
body = JSON.stringify(serializeAws_json1_1InitiateLayerUploadRequest(input, context));
|
|
361
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
export const serializeAws_json1_1ListTagsForResourceCommand = async (
|
|
365
|
-
input: ListTagsForResourceCommandInput,
|
|
366
|
-
context: __SerdeContext
|
|
367
|
-
): Promise<__HttpRequest> => {
|
|
368
|
-
const headers: __HeaderBag = {
|
|
369
|
-
"content-type": "application/x-amz-json-1.1",
|
|
370
|
-
"x-amz-target": "SpencerFrontendService.ListTagsForResource",
|
|
371
|
-
};
|
|
372
|
-
let body: any;
|
|
373
|
-
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
374
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
375
|
-
};
|
|
376
|
-
|
|
377
|
-
export const serializeAws_json1_1PutImageCommand = async (
|
|
378
|
-
input: PutImageCommandInput,
|
|
379
|
-
context: __SerdeContext
|
|
380
|
-
): Promise<__HttpRequest> => {
|
|
381
|
-
const headers: __HeaderBag = {
|
|
382
|
-
"content-type": "application/x-amz-json-1.1",
|
|
383
|
-
"x-amz-target": "SpencerFrontendService.PutImage",
|
|
384
|
-
};
|
|
385
|
-
let body: any;
|
|
386
|
-
body = JSON.stringify(serializeAws_json1_1PutImageRequest(input, context));
|
|
387
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export const serializeAws_json1_1PutRegistryCatalogDataCommand = async (
|
|
391
|
-
input: PutRegistryCatalogDataCommandInput,
|
|
392
|
-
context: __SerdeContext
|
|
393
|
-
): Promise<__HttpRequest> => {
|
|
394
|
-
const headers: __HeaderBag = {
|
|
395
|
-
"content-type": "application/x-amz-json-1.1",
|
|
396
|
-
"x-amz-target": "SpencerFrontendService.PutRegistryCatalogData",
|
|
397
|
-
};
|
|
398
|
-
let body: any;
|
|
399
|
-
body = JSON.stringify(serializeAws_json1_1PutRegistryCatalogDataRequest(input, context));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
export const serializeAws_json1_1PutRepositoryCatalogDataCommand = async (
|
|
404
|
-
input: PutRepositoryCatalogDataCommandInput,
|
|
405
|
-
context: __SerdeContext
|
|
406
|
-
): Promise<__HttpRequest> => {
|
|
407
|
-
const headers: __HeaderBag = {
|
|
408
|
-
"content-type": "application/x-amz-json-1.1",
|
|
409
|
-
"x-amz-target": "SpencerFrontendService.PutRepositoryCatalogData",
|
|
410
|
-
};
|
|
411
|
-
let body: any;
|
|
412
|
-
body = JSON.stringify(serializeAws_json1_1PutRepositoryCatalogDataRequest(input, context));
|
|
413
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
export const serializeAws_json1_1SetRepositoryPolicyCommand = async (
|
|
417
|
-
input: SetRepositoryPolicyCommandInput,
|
|
418
|
-
context: __SerdeContext
|
|
419
|
-
): Promise<__HttpRequest> => {
|
|
420
|
-
const headers: __HeaderBag = {
|
|
421
|
-
"content-type": "application/x-amz-json-1.1",
|
|
422
|
-
"x-amz-target": "SpencerFrontendService.SetRepositoryPolicy",
|
|
423
|
-
};
|
|
424
|
-
let body: any;
|
|
425
|
-
body = JSON.stringify(serializeAws_json1_1SetRepositoryPolicyRequest(input, context));
|
|
426
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
export const serializeAws_json1_1TagResourceCommand = async (
|
|
430
|
-
input: TagResourceCommandInput,
|
|
431
|
-
context: __SerdeContext
|
|
432
|
-
): Promise<__HttpRequest> => {
|
|
433
|
-
const headers: __HeaderBag = {
|
|
434
|
-
"content-type": "application/x-amz-json-1.1",
|
|
435
|
-
"x-amz-target": "SpencerFrontendService.TagResource",
|
|
436
|
-
};
|
|
437
|
-
let body: any;
|
|
438
|
-
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
439
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
export const serializeAws_json1_1UntagResourceCommand = async (
|
|
443
|
-
input: UntagResourceCommandInput,
|
|
444
|
-
context: __SerdeContext
|
|
445
|
-
): Promise<__HttpRequest> => {
|
|
446
|
-
const headers: __HeaderBag = {
|
|
447
|
-
"content-type": "application/x-amz-json-1.1",
|
|
448
|
-
"x-amz-target": "SpencerFrontendService.UntagResource",
|
|
449
|
-
};
|
|
450
|
-
let body: any;
|
|
451
|
-
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
452
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
453
|
-
};
|
|
454
|
-
|
|
455
|
-
export const serializeAws_json1_1UploadLayerPartCommand = async (
|
|
456
|
-
input: UploadLayerPartCommandInput,
|
|
457
|
-
context: __SerdeContext
|
|
458
|
-
): Promise<__HttpRequest> => {
|
|
459
|
-
const headers: __HeaderBag = {
|
|
460
|
-
"content-type": "application/x-amz-json-1.1",
|
|
461
|
-
"x-amz-target": "SpencerFrontendService.UploadLayerPart",
|
|
462
|
-
};
|
|
463
|
-
let body: any;
|
|
464
|
-
body = JSON.stringify(serializeAws_json1_1UploadLayerPartRequest(input, context));
|
|
465
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
466
|
-
};
|
|
467
|
-
|
|
468
|
-
export const deserializeAws_json1_1BatchCheckLayerAvailabilityCommand = async (
|
|
469
|
-
output: __HttpResponse,
|
|
470
|
-
context: __SerdeContext
|
|
471
|
-
): Promise<BatchCheckLayerAvailabilityCommandOutput> => {
|
|
472
|
-
if (output.statusCode >= 300) {
|
|
473
|
-
return deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError(output, context);
|
|
474
|
-
}
|
|
475
|
-
const data: any = await parseBody(output.body, context);
|
|
476
|
-
let contents: any = {};
|
|
477
|
-
contents = deserializeAws_json1_1BatchCheckLayerAvailabilityResponse(data, context);
|
|
478
|
-
const response: BatchCheckLayerAvailabilityCommandOutput = {
|
|
479
|
-
$metadata: deserializeMetadata(output),
|
|
480
|
-
...contents,
|
|
481
|
-
};
|
|
482
|
-
return Promise.resolve(response);
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
const deserializeAws_json1_1BatchCheckLayerAvailabilityCommandError = async (
|
|
486
|
-
output: __HttpResponse,
|
|
487
|
-
context: __SerdeContext
|
|
488
|
-
): Promise<BatchCheckLayerAvailabilityCommandOutput> => {
|
|
489
|
-
const parsedOutput: any = {
|
|
490
|
-
...output,
|
|
491
|
-
body: await parseBody(output.body, context),
|
|
492
|
-
};
|
|
493
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
494
|
-
let errorCode = "UnknownError";
|
|
495
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
496
|
-
switch (errorCode) {
|
|
497
|
-
case "InvalidParameterException":
|
|
498
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
499
|
-
response = {
|
|
500
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
501
|
-
name: errorCode,
|
|
502
|
-
$metadata: deserializeMetadata(output),
|
|
503
|
-
};
|
|
504
|
-
break;
|
|
505
|
-
case "RegistryNotFoundException":
|
|
506
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
507
|
-
response = {
|
|
508
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
509
|
-
name: errorCode,
|
|
510
|
-
$metadata: deserializeMetadata(output),
|
|
511
|
-
};
|
|
512
|
-
break;
|
|
513
|
-
case "RepositoryNotFoundException":
|
|
514
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
515
|
-
response = {
|
|
516
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
517
|
-
name: errorCode,
|
|
518
|
-
$metadata: deserializeMetadata(output),
|
|
519
|
-
};
|
|
520
|
-
break;
|
|
521
|
-
case "ServerException":
|
|
522
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
523
|
-
response = {
|
|
524
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
525
|
-
name: errorCode,
|
|
526
|
-
$metadata: deserializeMetadata(output),
|
|
527
|
-
};
|
|
528
|
-
break;
|
|
529
|
-
default:
|
|
530
|
-
const parsedBody = parsedOutput.body;
|
|
531
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
532
|
-
response = {
|
|
533
|
-
...parsedBody,
|
|
534
|
-
name: `${errorCode}`,
|
|
535
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
536
|
-
$fault: "client",
|
|
537
|
-
$metadata: deserializeMetadata(output),
|
|
538
|
-
} as any;
|
|
539
|
-
}
|
|
540
|
-
const message = response.message || response.Message || errorCode;
|
|
541
|
-
response.message = message;
|
|
542
|
-
delete response.Message;
|
|
543
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
544
|
-
};
|
|
545
|
-
|
|
546
|
-
export const deserializeAws_json1_1BatchDeleteImageCommand = async (
|
|
547
|
-
output: __HttpResponse,
|
|
548
|
-
context: __SerdeContext
|
|
549
|
-
): Promise<BatchDeleteImageCommandOutput> => {
|
|
550
|
-
if (output.statusCode >= 300) {
|
|
551
|
-
return deserializeAws_json1_1BatchDeleteImageCommandError(output, context);
|
|
552
|
-
}
|
|
553
|
-
const data: any = await parseBody(output.body, context);
|
|
554
|
-
let contents: any = {};
|
|
555
|
-
contents = deserializeAws_json1_1BatchDeleteImageResponse(data, context);
|
|
556
|
-
const response: BatchDeleteImageCommandOutput = {
|
|
557
|
-
$metadata: deserializeMetadata(output),
|
|
558
|
-
...contents,
|
|
559
|
-
};
|
|
560
|
-
return Promise.resolve(response);
|
|
561
|
-
};
|
|
562
|
-
|
|
563
|
-
const deserializeAws_json1_1BatchDeleteImageCommandError = async (
|
|
564
|
-
output: __HttpResponse,
|
|
565
|
-
context: __SerdeContext
|
|
566
|
-
): Promise<BatchDeleteImageCommandOutput> => {
|
|
567
|
-
const parsedOutput: any = {
|
|
568
|
-
...output,
|
|
569
|
-
body: await parseBody(output.body, context),
|
|
570
|
-
};
|
|
571
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
572
|
-
let errorCode = "UnknownError";
|
|
573
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
|
-
switch (errorCode) {
|
|
575
|
-
case "InvalidParameterException":
|
|
576
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
577
|
-
response = {
|
|
578
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
579
|
-
name: errorCode,
|
|
580
|
-
$metadata: deserializeMetadata(output),
|
|
581
|
-
};
|
|
582
|
-
break;
|
|
583
|
-
case "RepositoryNotFoundException":
|
|
584
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
585
|
-
response = {
|
|
586
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
587
|
-
name: errorCode,
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
};
|
|
590
|
-
break;
|
|
591
|
-
case "ServerException":
|
|
592
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
593
|
-
response = {
|
|
594
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
595
|
-
name: errorCode,
|
|
596
|
-
$metadata: deserializeMetadata(output),
|
|
597
|
-
};
|
|
598
|
-
break;
|
|
599
|
-
default:
|
|
600
|
-
const parsedBody = parsedOutput.body;
|
|
601
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
602
|
-
response = {
|
|
603
|
-
...parsedBody,
|
|
604
|
-
name: `${errorCode}`,
|
|
605
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
606
|
-
$fault: "client",
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
} as any;
|
|
609
|
-
}
|
|
610
|
-
const message = response.message || response.Message || errorCode;
|
|
611
|
-
response.message = message;
|
|
612
|
-
delete response.Message;
|
|
613
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
614
|
-
};
|
|
615
|
-
|
|
616
|
-
export const deserializeAws_json1_1CompleteLayerUploadCommand = async (
|
|
617
|
-
output: __HttpResponse,
|
|
618
|
-
context: __SerdeContext
|
|
619
|
-
): Promise<CompleteLayerUploadCommandOutput> => {
|
|
620
|
-
if (output.statusCode >= 300) {
|
|
621
|
-
return deserializeAws_json1_1CompleteLayerUploadCommandError(output, context);
|
|
622
|
-
}
|
|
623
|
-
const data: any = await parseBody(output.body, context);
|
|
624
|
-
let contents: any = {};
|
|
625
|
-
contents = deserializeAws_json1_1CompleteLayerUploadResponse(data, context);
|
|
626
|
-
const response: CompleteLayerUploadCommandOutput = {
|
|
627
|
-
$metadata: deserializeMetadata(output),
|
|
628
|
-
...contents,
|
|
629
|
-
};
|
|
630
|
-
return Promise.resolve(response);
|
|
631
|
-
};
|
|
632
|
-
|
|
633
|
-
const deserializeAws_json1_1CompleteLayerUploadCommandError = async (
|
|
634
|
-
output: __HttpResponse,
|
|
635
|
-
context: __SerdeContext
|
|
636
|
-
): Promise<CompleteLayerUploadCommandOutput> => {
|
|
637
|
-
const parsedOutput: any = {
|
|
638
|
-
...output,
|
|
639
|
-
body: await parseBody(output.body, context),
|
|
640
|
-
};
|
|
641
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
642
|
-
let errorCode = "UnknownError";
|
|
643
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
-
switch (errorCode) {
|
|
645
|
-
case "EmptyUploadException":
|
|
646
|
-
case "com.amazonaws.ecrpublic#EmptyUploadException":
|
|
647
|
-
response = {
|
|
648
|
-
...(await deserializeAws_json1_1EmptyUploadExceptionResponse(parsedOutput, context)),
|
|
649
|
-
name: errorCode,
|
|
650
|
-
$metadata: deserializeMetadata(output),
|
|
651
|
-
};
|
|
652
|
-
break;
|
|
653
|
-
case "InvalidLayerException":
|
|
654
|
-
case "com.amazonaws.ecrpublic#InvalidLayerException":
|
|
655
|
-
response = {
|
|
656
|
-
...(await deserializeAws_json1_1InvalidLayerExceptionResponse(parsedOutput, context)),
|
|
657
|
-
name: errorCode,
|
|
658
|
-
$metadata: deserializeMetadata(output),
|
|
659
|
-
};
|
|
660
|
-
break;
|
|
661
|
-
case "InvalidParameterException":
|
|
662
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
663
|
-
response = {
|
|
664
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
665
|
-
name: errorCode,
|
|
666
|
-
$metadata: deserializeMetadata(output),
|
|
667
|
-
};
|
|
668
|
-
break;
|
|
669
|
-
case "LayerAlreadyExistsException":
|
|
670
|
-
case "com.amazonaws.ecrpublic#LayerAlreadyExistsException":
|
|
671
|
-
response = {
|
|
672
|
-
...(await deserializeAws_json1_1LayerAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
673
|
-
name: errorCode,
|
|
674
|
-
$metadata: deserializeMetadata(output),
|
|
675
|
-
};
|
|
676
|
-
break;
|
|
677
|
-
case "LayerPartTooSmallException":
|
|
678
|
-
case "com.amazonaws.ecrpublic#LayerPartTooSmallException":
|
|
679
|
-
response = {
|
|
680
|
-
...(await deserializeAws_json1_1LayerPartTooSmallExceptionResponse(parsedOutput, context)),
|
|
681
|
-
name: errorCode,
|
|
682
|
-
$metadata: deserializeMetadata(output),
|
|
683
|
-
};
|
|
684
|
-
break;
|
|
685
|
-
case "RegistryNotFoundException":
|
|
686
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
687
|
-
response = {
|
|
688
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
689
|
-
name: errorCode,
|
|
690
|
-
$metadata: deserializeMetadata(output),
|
|
691
|
-
};
|
|
692
|
-
break;
|
|
693
|
-
case "RepositoryNotFoundException":
|
|
694
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
695
|
-
response = {
|
|
696
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
697
|
-
name: errorCode,
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
};
|
|
700
|
-
break;
|
|
701
|
-
case "ServerException":
|
|
702
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
703
|
-
response = {
|
|
704
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
705
|
-
name: errorCode,
|
|
706
|
-
$metadata: deserializeMetadata(output),
|
|
707
|
-
};
|
|
708
|
-
break;
|
|
709
|
-
case "UnsupportedCommandException":
|
|
710
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
711
|
-
response = {
|
|
712
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
713
|
-
name: errorCode,
|
|
714
|
-
$metadata: deserializeMetadata(output),
|
|
715
|
-
};
|
|
716
|
-
break;
|
|
717
|
-
case "UploadNotFoundException":
|
|
718
|
-
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
719
|
-
response = {
|
|
720
|
-
...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)),
|
|
721
|
-
name: errorCode,
|
|
722
|
-
$metadata: deserializeMetadata(output),
|
|
723
|
-
};
|
|
724
|
-
break;
|
|
725
|
-
default:
|
|
726
|
-
const parsedBody = parsedOutput.body;
|
|
727
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
728
|
-
response = {
|
|
729
|
-
...parsedBody,
|
|
730
|
-
name: `${errorCode}`,
|
|
731
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
732
|
-
$fault: "client",
|
|
733
|
-
$metadata: deserializeMetadata(output),
|
|
734
|
-
} as any;
|
|
735
|
-
}
|
|
736
|
-
const message = response.message || response.Message || errorCode;
|
|
737
|
-
response.message = message;
|
|
738
|
-
delete response.Message;
|
|
739
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
740
|
-
};
|
|
741
|
-
|
|
742
|
-
export const deserializeAws_json1_1CreateRepositoryCommand = async (
|
|
743
|
-
output: __HttpResponse,
|
|
744
|
-
context: __SerdeContext
|
|
745
|
-
): Promise<CreateRepositoryCommandOutput> => {
|
|
746
|
-
if (output.statusCode >= 300) {
|
|
747
|
-
return deserializeAws_json1_1CreateRepositoryCommandError(output, context);
|
|
748
|
-
}
|
|
749
|
-
const data: any = await parseBody(output.body, context);
|
|
750
|
-
let contents: any = {};
|
|
751
|
-
contents = deserializeAws_json1_1CreateRepositoryResponse(data, context);
|
|
752
|
-
const response: CreateRepositoryCommandOutput = {
|
|
753
|
-
$metadata: deserializeMetadata(output),
|
|
754
|
-
...contents,
|
|
755
|
-
};
|
|
756
|
-
return Promise.resolve(response);
|
|
757
|
-
};
|
|
758
|
-
|
|
759
|
-
const deserializeAws_json1_1CreateRepositoryCommandError = async (
|
|
760
|
-
output: __HttpResponse,
|
|
761
|
-
context: __SerdeContext
|
|
762
|
-
): Promise<CreateRepositoryCommandOutput> => {
|
|
763
|
-
const parsedOutput: any = {
|
|
764
|
-
...output,
|
|
765
|
-
body: await parseBody(output.body, context),
|
|
766
|
-
};
|
|
767
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
768
|
-
let errorCode = "UnknownError";
|
|
769
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
-
switch (errorCode) {
|
|
771
|
-
case "InvalidParameterException":
|
|
772
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
773
|
-
response = {
|
|
774
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
775
|
-
name: errorCode,
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
};
|
|
778
|
-
break;
|
|
779
|
-
case "InvalidTagParameterException":
|
|
780
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
781
|
-
response = {
|
|
782
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
783
|
-
name: errorCode,
|
|
784
|
-
$metadata: deserializeMetadata(output),
|
|
785
|
-
};
|
|
786
|
-
break;
|
|
787
|
-
case "LimitExceededException":
|
|
788
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
789
|
-
response = {
|
|
790
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
791
|
-
name: errorCode,
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
};
|
|
794
|
-
break;
|
|
795
|
-
case "RepositoryAlreadyExistsException":
|
|
796
|
-
case "com.amazonaws.ecrpublic#RepositoryAlreadyExistsException":
|
|
797
|
-
response = {
|
|
798
|
-
...(await deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
799
|
-
name: errorCode,
|
|
800
|
-
$metadata: deserializeMetadata(output),
|
|
801
|
-
};
|
|
802
|
-
break;
|
|
803
|
-
case "ServerException":
|
|
804
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
805
|
-
response = {
|
|
806
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
807
|
-
name: errorCode,
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
};
|
|
810
|
-
break;
|
|
811
|
-
case "TooManyTagsException":
|
|
812
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
813
|
-
response = {
|
|
814
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
815
|
-
name: errorCode,
|
|
816
|
-
$metadata: deserializeMetadata(output),
|
|
817
|
-
};
|
|
818
|
-
break;
|
|
819
|
-
default:
|
|
820
|
-
const parsedBody = parsedOutput.body;
|
|
821
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
822
|
-
response = {
|
|
823
|
-
...parsedBody,
|
|
824
|
-
name: `${errorCode}`,
|
|
825
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
826
|
-
$fault: "client",
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
} as any;
|
|
829
|
-
}
|
|
830
|
-
const message = response.message || response.Message || errorCode;
|
|
831
|
-
response.message = message;
|
|
832
|
-
delete response.Message;
|
|
833
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
834
|
-
};
|
|
835
|
-
|
|
836
|
-
export const deserializeAws_json1_1DeleteRepositoryCommand = async (
|
|
837
|
-
output: __HttpResponse,
|
|
838
|
-
context: __SerdeContext
|
|
839
|
-
): Promise<DeleteRepositoryCommandOutput> => {
|
|
840
|
-
if (output.statusCode >= 300) {
|
|
841
|
-
return deserializeAws_json1_1DeleteRepositoryCommandError(output, context);
|
|
842
|
-
}
|
|
843
|
-
const data: any = await parseBody(output.body, context);
|
|
844
|
-
let contents: any = {};
|
|
845
|
-
contents = deserializeAws_json1_1DeleteRepositoryResponse(data, context);
|
|
846
|
-
const response: DeleteRepositoryCommandOutput = {
|
|
847
|
-
$metadata: deserializeMetadata(output),
|
|
848
|
-
...contents,
|
|
849
|
-
};
|
|
850
|
-
return Promise.resolve(response);
|
|
851
|
-
};
|
|
852
|
-
|
|
853
|
-
const deserializeAws_json1_1DeleteRepositoryCommandError = async (
|
|
854
|
-
output: __HttpResponse,
|
|
855
|
-
context: __SerdeContext
|
|
856
|
-
): Promise<DeleteRepositoryCommandOutput> => {
|
|
857
|
-
const parsedOutput: any = {
|
|
858
|
-
...output,
|
|
859
|
-
body: await parseBody(output.body, context),
|
|
860
|
-
};
|
|
861
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
862
|
-
let errorCode = "UnknownError";
|
|
863
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
864
|
-
switch (errorCode) {
|
|
865
|
-
case "InvalidParameterException":
|
|
866
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
867
|
-
response = {
|
|
868
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
869
|
-
name: errorCode,
|
|
870
|
-
$metadata: deserializeMetadata(output),
|
|
871
|
-
};
|
|
872
|
-
break;
|
|
873
|
-
case "RepositoryNotEmptyException":
|
|
874
|
-
case "com.amazonaws.ecrpublic#RepositoryNotEmptyException":
|
|
875
|
-
response = {
|
|
876
|
-
...(await deserializeAws_json1_1RepositoryNotEmptyExceptionResponse(parsedOutput, context)),
|
|
877
|
-
name: errorCode,
|
|
878
|
-
$metadata: deserializeMetadata(output),
|
|
879
|
-
};
|
|
880
|
-
break;
|
|
881
|
-
case "RepositoryNotFoundException":
|
|
882
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
883
|
-
response = {
|
|
884
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
885
|
-
name: errorCode,
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
};
|
|
888
|
-
break;
|
|
889
|
-
case "ServerException":
|
|
890
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
891
|
-
response = {
|
|
892
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
893
|
-
name: errorCode,
|
|
894
|
-
$metadata: deserializeMetadata(output),
|
|
895
|
-
};
|
|
896
|
-
break;
|
|
897
|
-
default:
|
|
898
|
-
const parsedBody = parsedOutput.body;
|
|
899
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
900
|
-
response = {
|
|
901
|
-
...parsedBody,
|
|
902
|
-
name: `${errorCode}`,
|
|
903
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
904
|
-
$fault: "client",
|
|
905
|
-
$metadata: deserializeMetadata(output),
|
|
906
|
-
} as any;
|
|
907
|
-
}
|
|
908
|
-
const message = response.message || response.Message || errorCode;
|
|
909
|
-
response.message = message;
|
|
910
|
-
delete response.Message;
|
|
911
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
912
|
-
};
|
|
913
|
-
|
|
914
|
-
export const deserializeAws_json1_1DeleteRepositoryPolicyCommand = async (
|
|
915
|
-
output: __HttpResponse,
|
|
916
|
-
context: __SerdeContext
|
|
917
|
-
): Promise<DeleteRepositoryPolicyCommandOutput> => {
|
|
918
|
-
if (output.statusCode >= 300) {
|
|
919
|
-
return deserializeAws_json1_1DeleteRepositoryPolicyCommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
const data: any = await parseBody(output.body, context);
|
|
922
|
-
let contents: any = {};
|
|
923
|
-
contents = deserializeAws_json1_1DeleteRepositoryPolicyResponse(data, context);
|
|
924
|
-
const response: DeleteRepositoryPolicyCommandOutput = {
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
...contents,
|
|
927
|
-
};
|
|
928
|
-
return Promise.resolve(response);
|
|
929
|
-
};
|
|
930
|
-
|
|
931
|
-
const deserializeAws_json1_1DeleteRepositoryPolicyCommandError = async (
|
|
932
|
-
output: __HttpResponse,
|
|
933
|
-
context: __SerdeContext
|
|
934
|
-
): Promise<DeleteRepositoryPolicyCommandOutput> => {
|
|
935
|
-
const parsedOutput: any = {
|
|
936
|
-
...output,
|
|
937
|
-
body: await parseBody(output.body, context),
|
|
938
|
-
};
|
|
939
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
940
|
-
let errorCode = "UnknownError";
|
|
941
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
-
switch (errorCode) {
|
|
943
|
-
case "InvalidParameterException":
|
|
944
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
945
|
-
response = {
|
|
946
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
947
|
-
name: errorCode,
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
};
|
|
950
|
-
break;
|
|
951
|
-
case "RepositoryNotFoundException":
|
|
952
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
953
|
-
response = {
|
|
954
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
955
|
-
name: errorCode,
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
};
|
|
958
|
-
break;
|
|
959
|
-
case "RepositoryPolicyNotFoundException":
|
|
960
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
961
|
-
response = {
|
|
962
|
-
...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
963
|
-
name: errorCode,
|
|
964
|
-
$metadata: deserializeMetadata(output),
|
|
965
|
-
};
|
|
966
|
-
break;
|
|
967
|
-
case "ServerException":
|
|
968
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
969
|
-
response = {
|
|
970
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
971
|
-
name: errorCode,
|
|
972
|
-
$metadata: deserializeMetadata(output),
|
|
973
|
-
};
|
|
974
|
-
break;
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
978
|
-
response = {
|
|
979
|
-
...parsedBody,
|
|
980
|
-
name: `${errorCode}`,
|
|
981
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
982
|
-
$fault: "client",
|
|
983
|
-
$metadata: deserializeMetadata(output),
|
|
984
|
-
} as any;
|
|
985
|
-
}
|
|
986
|
-
const message = response.message || response.Message || errorCode;
|
|
987
|
-
response.message = message;
|
|
988
|
-
delete response.Message;
|
|
989
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
990
|
-
};
|
|
991
|
-
|
|
992
|
-
export const deserializeAws_json1_1DescribeImagesCommand = async (
|
|
993
|
-
output: __HttpResponse,
|
|
994
|
-
context: __SerdeContext
|
|
995
|
-
): Promise<DescribeImagesCommandOutput> => {
|
|
996
|
-
if (output.statusCode >= 300) {
|
|
997
|
-
return deserializeAws_json1_1DescribeImagesCommandError(output, context);
|
|
998
|
-
}
|
|
999
|
-
const data: any = await parseBody(output.body, context);
|
|
1000
|
-
let contents: any = {};
|
|
1001
|
-
contents = deserializeAws_json1_1DescribeImagesResponse(data, context);
|
|
1002
|
-
const response: DescribeImagesCommandOutput = {
|
|
1003
|
-
$metadata: deserializeMetadata(output),
|
|
1004
|
-
...contents,
|
|
1005
|
-
};
|
|
1006
|
-
return Promise.resolve(response);
|
|
1007
|
-
};
|
|
1008
|
-
|
|
1009
|
-
const deserializeAws_json1_1DescribeImagesCommandError = async (
|
|
1010
|
-
output: __HttpResponse,
|
|
1011
|
-
context: __SerdeContext
|
|
1012
|
-
): Promise<DescribeImagesCommandOutput> => {
|
|
1013
|
-
const parsedOutput: any = {
|
|
1014
|
-
...output,
|
|
1015
|
-
body: await parseBody(output.body, context),
|
|
1016
|
-
};
|
|
1017
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1018
|
-
let errorCode = "UnknownError";
|
|
1019
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
-
switch (errorCode) {
|
|
1021
|
-
case "ImageNotFoundException":
|
|
1022
|
-
case "com.amazonaws.ecrpublic#ImageNotFoundException":
|
|
1023
|
-
response = {
|
|
1024
|
-
...(await deserializeAws_json1_1ImageNotFoundExceptionResponse(parsedOutput, context)),
|
|
1025
|
-
name: errorCode,
|
|
1026
|
-
$metadata: deserializeMetadata(output),
|
|
1027
|
-
};
|
|
1028
|
-
break;
|
|
1029
|
-
case "InvalidParameterException":
|
|
1030
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1031
|
-
response = {
|
|
1032
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1033
|
-
name: errorCode,
|
|
1034
|
-
$metadata: deserializeMetadata(output),
|
|
1035
|
-
};
|
|
1036
|
-
break;
|
|
1037
|
-
case "RepositoryNotFoundException":
|
|
1038
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1039
|
-
response = {
|
|
1040
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1041
|
-
name: errorCode,
|
|
1042
|
-
$metadata: deserializeMetadata(output),
|
|
1043
|
-
};
|
|
1044
|
-
break;
|
|
1045
|
-
case "ServerException":
|
|
1046
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1047
|
-
response = {
|
|
1048
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1049
|
-
name: errorCode,
|
|
1050
|
-
$metadata: deserializeMetadata(output),
|
|
1051
|
-
};
|
|
1052
|
-
break;
|
|
1053
|
-
default:
|
|
1054
|
-
const parsedBody = parsedOutput.body;
|
|
1055
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1056
|
-
response = {
|
|
1057
|
-
...parsedBody,
|
|
1058
|
-
name: `${errorCode}`,
|
|
1059
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1060
|
-
$fault: "client",
|
|
1061
|
-
$metadata: deserializeMetadata(output),
|
|
1062
|
-
} as any;
|
|
1063
|
-
}
|
|
1064
|
-
const message = response.message || response.Message || errorCode;
|
|
1065
|
-
response.message = message;
|
|
1066
|
-
delete response.Message;
|
|
1067
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1068
|
-
};
|
|
1069
|
-
|
|
1070
|
-
export const deserializeAws_json1_1DescribeImageTagsCommand = async (
|
|
1071
|
-
output: __HttpResponse,
|
|
1072
|
-
context: __SerdeContext
|
|
1073
|
-
): Promise<DescribeImageTagsCommandOutput> => {
|
|
1074
|
-
if (output.statusCode >= 300) {
|
|
1075
|
-
return deserializeAws_json1_1DescribeImageTagsCommandError(output, context);
|
|
1076
|
-
}
|
|
1077
|
-
const data: any = await parseBody(output.body, context);
|
|
1078
|
-
let contents: any = {};
|
|
1079
|
-
contents = deserializeAws_json1_1DescribeImageTagsResponse(data, context);
|
|
1080
|
-
const response: DescribeImageTagsCommandOutput = {
|
|
1081
|
-
$metadata: deserializeMetadata(output),
|
|
1082
|
-
...contents,
|
|
1083
|
-
};
|
|
1084
|
-
return Promise.resolve(response);
|
|
1085
|
-
};
|
|
1086
|
-
|
|
1087
|
-
const deserializeAws_json1_1DescribeImageTagsCommandError = async (
|
|
1088
|
-
output: __HttpResponse,
|
|
1089
|
-
context: __SerdeContext
|
|
1090
|
-
): Promise<DescribeImageTagsCommandOutput> => {
|
|
1091
|
-
const parsedOutput: any = {
|
|
1092
|
-
...output,
|
|
1093
|
-
body: await parseBody(output.body, context),
|
|
1094
|
-
};
|
|
1095
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1096
|
-
let errorCode = "UnknownError";
|
|
1097
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1098
|
-
switch (errorCode) {
|
|
1099
|
-
case "InvalidParameterException":
|
|
1100
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1101
|
-
response = {
|
|
1102
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1103
|
-
name: errorCode,
|
|
1104
|
-
$metadata: deserializeMetadata(output),
|
|
1105
|
-
};
|
|
1106
|
-
break;
|
|
1107
|
-
case "RepositoryNotFoundException":
|
|
1108
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1109
|
-
response = {
|
|
1110
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1111
|
-
name: errorCode,
|
|
1112
|
-
$metadata: deserializeMetadata(output),
|
|
1113
|
-
};
|
|
1114
|
-
break;
|
|
1115
|
-
case "ServerException":
|
|
1116
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1117
|
-
response = {
|
|
1118
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1119
|
-
name: errorCode,
|
|
1120
|
-
$metadata: deserializeMetadata(output),
|
|
1121
|
-
};
|
|
1122
|
-
break;
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1126
|
-
response = {
|
|
1127
|
-
...parsedBody,
|
|
1128
|
-
name: `${errorCode}`,
|
|
1129
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1130
|
-
$fault: "client",
|
|
1131
|
-
$metadata: deserializeMetadata(output),
|
|
1132
|
-
} as any;
|
|
1133
|
-
}
|
|
1134
|
-
const message = response.message || response.Message || errorCode;
|
|
1135
|
-
response.message = message;
|
|
1136
|
-
delete response.Message;
|
|
1137
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1138
|
-
};
|
|
1139
|
-
|
|
1140
|
-
export const deserializeAws_json1_1DescribeRegistriesCommand = async (
|
|
1141
|
-
output: __HttpResponse,
|
|
1142
|
-
context: __SerdeContext
|
|
1143
|
-
): Promise<DescribeRegistriesCommandOutput> => {
|
|
1144
|
-
if (output.statusCode >= 300) {
|
|
1145
|
-
return deserializeAws_json1_1DescribeRegistriesCommandError(output, context);
|
|
1146
|
-
}
|
|
1147
|
-
const data: any = await parseBody(output.body, context);
|
|
1148
|
-
let contents: any = {};
|
|
1149
|
-
contents = deserializeAws_json1_1DescribeRegistriesResponse(data, context);
|
|
1150
|
-
const response: DescribeRegistriesCommandOutput = {
|
|
1151
|
-
$metadata: deserializeMetadata(output),
|
|
1152
|
-
...contents,
|
|
1153
|
-
};
|
|
1154
|
-
return Promise.resolve(response);
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
const deserializeAws_json1_1DescribeRegistriesCommandError = async (
|
|
1158
|
-
output: __HttpResponse,
|
|
1159
|
-
context: __SerdeContext
|
|
1160
|
-
): Promise<DescribeRegistriesCommandOutput> => {
|
|
1161
|
-
const parsedOutput: any = {
|
|
1162
|
-
...output,
|
|
1163
|
-
body: await parseBody(output.body, context),
|
|
1164
|
-
};
|
|
1165
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1166
|
-
let errorCode = "UnknownError";
|
|
1167
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
-
switch (errorCode) {
|
|
1169
|
-
case "InvalidParameterException":
|
|
1170
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1171
|
-
response = {
|
|
1172
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1173
|
-
name: errorCode,
|
|
1174
|
-
$metadata: deserializeMetadata(output),
|
|
1175
|
-
};
|
|
1176
|
-
break;
|
|
1177
|
-
case "ServerException":
|
|
1178
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1179
|
-
response = {
|
|
1180
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1181
|
-
name: errorCode,
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
};
|
|
1184
|
-
break;
|
|
1185
|
-
case "UnsupportedCommandException":
|
|
1186
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1187
|
-
response = {
|
|
1188
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1189
|
-
name: errorCode,
|
|
1190
|
-
$metadata: deserializeMetadata(output),
|
|
1191
|
-
};
|
|
1192
|
-
break;
|
|
1193
|
-
default:
|
|
1194
|
-
const parsedBody = parsedOutput.body;
|
|
1195
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1196
|
-
response = {
|
|
1197
|
-
...parsedBody,
|
|
1198
|
-
name: `${errorCode}`,
|
|
1199
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1200
|
-
$fault: "client",
|
|
1201
|
-
$metadata: deserializeMetadata(output),
|
|
1202
|
-
} as any;
|
|
1203
|
-
}
|
|
1204
|
-
const message = response.message || response.Message || errorCode;
|
|
1205
|
-
response.message = message;
|
|
1206
|
-
delete response.Message;
|
|
1207
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
export const deserializeAws_json1_1DescribeRepositoriesCommand = async (
|
|
1211
|
-
output: __HttpResponse,
|
|
1212
|
-
context: __SerdeContext
|
|
1213
|
-
): Promise<DescribeRepositoriesCommandOutput> => {
|
|
1214
|
-
if (output.statusCode >= 300) {
|
|
1215
|
-
return deserializeAws_json1_1DescribeRepositoriesCommandError(output, context);
|
|
1216
|
-
}
|
|
1217
|
-
const data: any = await parseBody(output.body, context);
|
|
1218
|
-
let contents: any = {};
|
|
1219
|
-
contents = deserializeAws_json1_1DescribeRepositoriesResponse(data, context);
|
|
1220
|
-
const response: DescribeRepositoriesCommandOutput = {
|
|
1221
|
-
$metadata: deserializeMetadata(output),
|
|
1222
|
-
...contents,
|
|
1223
|
-
};
|
|
1224
|
-
return Promise.resolve(response);
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
|
-
const deserializeAws_json1_1DescribeRepositoriesCommandError = async (
|
|
1228
|
-
output: __HttpResponse,
|
|
1229
|
-
context: __SerdeContext
|
|
1230
|
-
): Promise<DescribeRepositoriesCommandOutput> => {
|
|
1231
|
-
const parsedOutput: any = {
|
|
1232
|
-
...output,
|
|
1233
|
-
body: await parseBody(output.body, context),
|
|
1234
|
-
};
|
|
1235
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1236
|
-
let errorCode = "UnknownError";
|
|
1237
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "InvalidParameterException":
|
|
1240
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1241
|
-
response = {
|
|
1242
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1243
|
-
name: errorCode,
|
|
1244
|
-
$metadata: deserializeMetadata(output),
|
|
1245
|
-
};
|
|
1246
|
-
break;
|
|
1247
|
-
case "RepositoryNotFoundException":
|
|
1248
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1249
|
-
response = {
|
|
1250
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1251
|
-
name: errorCode,
|
|
1252
|
-
$metadata: deserializeMetadata(output),
|
|
1253
|
-
};
|
|
1254
|
-
break;
|
|
1255
|
-
case "ServerException":
|
|
1256
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1257
|
-
response = {
|
|
1258
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1259
|
-
name: errorCode,
|
|
1260
|
-
$metadata: deserializeMetadata(output),
|
|
1261
|
-
};
|
|
1262
|
-
break;
|
|
1263
|
-
default:
|
|
1264
|
-
const parsedBody = parsedOutput.body;
|
|
1265
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1266
|
-
response = {
|
|
1267
|
-
...parsedBody,
|
|
1268
|
-
name: `${errorCode}`,
|
|
1269
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1270
|
-
$fault: "client",
|
|
1271
|
-
$metadata: deserializeMetadata(output),
|
|
1272
|
-
} as any;
|
|
1273
|
-
}
|
|
1274
|
-
const message = response.message || response.Message || errorCode;
|
|
1275
|
-
response.message = message;
|
|
1276
|
-
delete response.Message;
|
|
1277
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1278
|
-
};
|
|
1279
|
-
|
|
1280
|
-
export const deserializeAws_json1_1GetAuthorizationTokenCommand = async (
|
|
1281
|
-
output: __HttpResponse,
|
|
1282
|
-
context: __SerdeContext
|
|
1283
|
-
): Promise<GetAuthorizationTokenCommandOutput> => {
|
|
1284
|
-
if (output.statusCode >= 300) {
|
|
1285
|
-
return deserializeAws_json1_1GetAuthorizationTokenCommandError(output, context);
|
|
1286
|
-
}
|
|
1287
|
-
const data: any = await parseBody(output.body, context);
|
|
1288
|
-
let contents: any = {};
|
|
1289
|
-
contents = deserializeAws_json1_1GetAuthorizationTokenResponse(data, context);
|
|
1290
|
-
const response: GetAuthorizationTokenCommandOutput = {
|
|
1291
|
-
$metadata: deserializeMetadata(output),
|
|
1292
|
-
...contents,
|
|
1293
|
-
};
|
|
1294
|
-
return Promise.resolve(response);
|
|
1295
|
-
};
|
|
1296
|
-
|
|
1297
|
-
const deserializeAws_json1_1GetAuthorizationTokenCommandError = async (
|
|
1298
|
-
output: __HttpResponse,
|
|
1299
|
-
context: __SerdeContext
|
|
1300
|
-
): Promise<GetAuthorizationTokenCommandOutput> => {
|
|
1301
|
-
const parsedOutput: any = {
|
|
1302
|
-
...output,
|
|
1303
|
-
body: await parseBody(output.body, context),
|
|
1304
|
-
};
|
|
1305
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1306
|
-
let errorCode = "UnknownError";
|
|
1307
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1308
|
-
switch (errorCode) {
|
|
1309
|
-
case "InvalidParameterException":
|
|
1310
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1311
|
-
response = {
|
|
1312
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1313
|
-
name: errorCode,
|
|
1314
|
-
$metadata: deserializeMetadata(output),
|
|
1315
|
-
};
|
|
1316
|
-
break;
|
|
1317
|
-
case "ServerException":
|
|
1318
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1319
|
-
response = {
|
|
1320
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1321
|
-
name: errorCode,
|
|
1322
|
-
$metadata: deserializeMetadata(output),
|
|
1323
|
-
};
|
|
1324
|
-
break;
|
|
1325
|
-
default:
|
|
1326
|
-
const parsedBody = parsedOutput.body;
|
|
1327
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1328
|
-
response = {
|
|
1329
|
-
...parsedBody,
|
|
1330
|
-
name: `${errorCode}`,
|
|
1331
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1332
|
-
$fault: "client",
|
|
1333
|
-
$metadata: deserializeMetadata(output),
|
|
1334
|
-
} as any;
|
|
1335
|
-
}
|
|
1336
|
-
const message = response.message || response.Message || errorCode;
|
|
1337
|
-
response.message = message;
|
|
1338
|
-
delete response.Message;
|
|
1339
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1340
|
-
};
|
|
1341
|
-
|
|
1342
|
-
export const deserializeAws_json1_1GetRegistryCatalogDataCommand = async (
|
|
1343
|
-
output: __HttpResponse,
|
|
1344
|
-
context: __SerdeContext
|
|
1345
|
-
): Promise<GetRegistryCatalogDataCommandOutput> => {
|
|
1346
|
-
if (output.statusCode >= 300) {
|
|
1347
|
-
return deserializeAws_json1_1GetRegistryCatalogDataCommandError(output, context);
|
|
1348
|
-
}
|
|
1349
|
-
const data: any = await parseBody(output.body, context);
|
|
1350
|
-
let contents: any = {};
|
|
1351
|
-
contents = deserializeAws_json1_1GetRegistryCatalogDataResponse(data, context);
|
|
1352
|
-
const response: GetRegistryCatalogDataCommandOutput = {
|
|
1353
|
-
$metadata: deserializeMetadata(output),
|
|
1354
|
-
...contents,
|
|
1355
|
-
};
|
|
1356
|
-
return Promise.resolve(response);
|
|
1357
|
-
};
|
|
1358
|
-
|
|
1359
|
-
const deserializeAws_json1_1GetRegistryCatalogDataCommandError = async (
|
|
1360
|
-
output: __HttpResponse,
|
|
1361
|
-
context: __SerdeContext
|
|
1362
|
-
): Promise<GetRegistryCatalogDataCommandOutput> => {
|
|
1363
|
-
const parsedOutput: any = {
|
|
1364
|
-
...output,
|
|
1365
|
-
body: await parseBody(output.body, context),
|
|
1366
|
-
};
|
|
1367
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1368
|
-
let errorCode = "UnknownError";
|
|
1369
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1370
|
-
switch (errorCode) {
|
|
1371
|
-
case "ServerException":
|
|
1372
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1373
|
-
response = {
|
|
1374
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1375
|
-
name: errorCode,
|
|
1376
|
-
$metadata: deserializeMetadata(output),
|
|
1377
|
-
};
|
|
1378
|
-
break;
|
|
1379
|
-
case "UnsupportedCommandException":
|
|
1380
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1381
|
-
response = {
|
|
1382
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1383
|
-
name: errorCode,
|
|
1384
|
-
$metadata: deserializeMetadata(output),
|
|
1385
|
-
};
|
|
1386
|
-
break;
|
|
1387
|
-
default:
|
|
1388
|
-
const parsedBody = parsedOutput.body;
|
|
1389
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1390
|
-
response = {
|
|
1391
|
-
...parsedBody,
|
|
1392
|
-
name: `${errorCode}`,
|
|
1393
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1394
|
-
$fault: "client",
|
|
1395
|
-
$metadata: deserializeMetadata(output),
|
|
1396
|
-
} as any;
|
|
1397
|
-
}
|
|
1398
|
-
const message = response.message || response.Message || errorCode;
|
|
1399
|
-
response.message = message;
|
|
1400
|
-
delete response.Message;
|
|
1401
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
|
-
export const deserializeAws_json1_1GetRepositoryCatalogDataCommand = async (
|
|
1405
|
-
output: __HttpResponse,
|
|
1406
|
-
context: __SerdeContext
|
|
1407
|
-
): Promise<GetRepositoryCatalogDataCommandOutput> => {
|
|
1408
|
-
if (output.statusCode >= 300) {
|
|
1409
|
-
return deserializeAws_json1_1GetRepositoryCatalogDataCommandError(output, context);
|
|
1410
|
-
}
|
|
1411
|
-
const data: any = await parseBody(output.body, context);
|
|
1412
|
-
let contents: any = {};
|
|
1413
|
-
contents = deserializeAws_json1_1GetRepositoryCatalogDataResponse(data, context);
|
|
1414
|
-
const response: GetRepositoryCatalogDataCommandOutput = {
|
|
1415
|
-
$metadata: deserializeMetadata(output),
|
|
1416
|
-
...contents,
|
|
1417
|
-
};
|
|
1418
|
-
return Promise.resolve(response);
|
|
1419
|
-
};
|
|
1420
|
-
|
|
1421
|
-
const deserializeAws_json1_1GetRepositoryCatalogDataCommandError = async (
|
|
1422
|
-
output: __HttpResponse,
|
|
1423
|
-
context: __SerdeContext
|
|
1424
|
-
): Promise<GetRepositoryCatalogDataCommandOutput> => {
|
|
1425
|
-
const parsedOutput: any = {
|
|
1426
|
-
...output,
|
|
1427
|
-
body: await parseBody(output.body, context),
|
|
1428
|
-
};
|
|
1429
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1430
|
-
let errorCode = "UnknownError";
|
|
1431
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1432
|
-
switch (errorCode) {
|
|
1433
|
-
case "InvalidParameterException":
|
|
1434
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1435
|
-
response = {
|
|
1436
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1437
|
-
name: errorCode,
|
|
1438
|
-
$metadata: deserializeMetadata(output),
|
|
1439
|
-
};
|
|
1440
|
-
break;
|
|
1441
|
-
case "RepositoryNotFoundException":
|
|
1442
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1443
|
-
response = {
|
|
1444
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1445
|
-
name: errorCode,
|
|
1446
|
-
$metadata: deserializeMetadata(output),
|
|
1447
|
-
};
|
|
1448
|
-
break;
|
|
1449
|
-
case "ServerException":
|
|
1450
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1451
|
-
response = {
|
|
1452
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1453
|
-
name: errorCode,
|
|
1454
|
-
$metadata: deserializeMetadata(output),
|
|
1455
|
-
};
|
|
1456
|
-
break;
|
|
1457
|
-
default:
|
|
1458
|
-
const parsedBody = parsedOutput.body;
|
|
1459
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1460
|
-
response = {
|
|
1461
|
-
...parsedBody,
|
|
1462
|
-
name: `${errorCode}`,
|
|
1463
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1464
|
-
$fault: "client",
|
|
1465
|
-
$metadata: deserializeMetadata(output),
|
|
1466
|
-
} as any;
|
|
1467
|
-
}
|
|
1468
|
-
const message = response.message || response.Message || errorCode;
|
|
1469
|
-
response.message = message;
|
|
1470
|
-
delete response.Message;
|
|
1471
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1472
|
-
};
|
|
1473
|
-
|
|
1474
|
-
export const deserializeAws_json1_1GetRepositoryPolicyCommand = async (
|
|
1475
|
-
output: __HttpResponse,
|
|
1476
|
-
context: __SerdeContext
|
|
1477
|
-
): Promise<GetRepositoryPolicyCommandOutput> => {
|
|
1478
|
-
if (output.statusCode >= 300) {
|
|
1479
|
-
return deserializeAws_json1_1GetRepositoryPolicyCommandError(output, context);
|
|
1480
|
-
}
|
|
1481
|
-
const data: any = await parseBody(output.body, context);
|
|
1482
|
-
let contents: any = {};
|
|
1483
|
-
contents = deserializeAws_json1_1GetRepositoryPolicyResponse(data, context);
|
|
1484
|
-
const response: GetRepositoryPolicyCommandOutput = {
|
|
1485
|
-
$metadata: deserializeMetadata(output),
|
|
1486
|
-
...contents,
|
|
1487
|
-
};
|
|
1488
|
-
return Promise.resolve(response);
|
|
1489
|
-
};
|
|
1490
|
-
|
|
1491
|
-
const deserializeAws_json1_1GetRepositoryPolicyCommandError = async (
|
|
1492
|
-
output: __HttpResponse,
|
|
1493
|
-
context: __SerdeContext
|
|
1494
|
-
): Promise<GetRepositoryPolicyCommandOutput> => {
|
|
1495
|
-
const parsedOutput: any = {
|
|
1496
|
-
...output,
|
|
1497
|
-
body: await parseBody(output.body, context),
|
|
1498
|
-
};
|
|
1499
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1500
|
-
let errorCode = "UnknownError";
|
|
1501
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
|
-
switch (errorCode) {
|
|
1503
|
-
case "InvalidParameterException":
|
|
1504
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1505
|
-
response = {
|
|
1506
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1507
|
-
name: errorCode,
|
|
1508
|
-
$metadata: deserializeMetadata(output),
|
|
1509
|
-
};
|
|
1510
|
-
break;
|
|
1511
|
-
case "RepositoryNotFoundException":
|
|
1512
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1513
|
-
response = {
|
|
1514
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1515
|
-
name: errorCode,
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
};
|
|
1518
|
-
break;
|
|
1519
|
-
case "RepositoryPolicyNotFoundException":
|
|
1520
|
-
case "com.amazonaws.ecrpublic#RepositoryPolicyNotFoundException":
|
|
1521
|
-
response = {
|
|
1522
|
-
...(await deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse(parsedOutput, context)),
|
|
1523
|
-
name: errorCode,
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1526
|
-
break;
|
|
1527
|
-
case "ServerException":
|
|
1528
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1529
|
-
response = {
|
|
1530
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1531
|
-
name: errorCode,
|
|
1532
|
-
$metadata: deserializeMetadata(output),
|
|
1533
|
-
};
|
|
1534
|
-
break;
|
|
1535
|
-
default:
|
|
1536
|
-
const parsedBody = parsedOutput.body;
|
|
1537
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1538
|
-
response = {
|
|
1539
|
-
...parsedBody,
|
|
1540
|
-
name: `${errorCode}`,
|
|
1541
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1542
|
-
$fault: "client",
|
|
1543
|
-
$metadata: deserializeMetadata(output),
|
|
1544
|
-
} as any;
|
|
1545
|
-
}
|
|
1546
|
-
const message = response.message || response.Message || errorCode;
|
|
1547
|
-
response.message = message;
|
|
1548
|
-
delete response.Message;
|
|
1549
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1550
|
-
};
|
|
1551
|
-
|
|
1552
|
-
export const deserializeAws_json1_1InitiateLayerUploadCommand = async (
|
|
1553
|
-
output: __HttpResponse,
|
|
1554
|
-
context: __SerdeContext
|
|
1555
|
-
): Promise<InitiateLayerUploadCommandOutput> => {
|
|
1556
|
-
if (output.statusCode >= 300) {
|
|
1557
|
-
return deserializeAws_json1_1InitiateLayerUploadCommandError(output, context);
|
|
1558
|
-
}
|
|
1559
|
-
const data: any = await parseBody(output.body, context);
|
|
1560
|
-
let contents: any = {};
|
|
1561
|
-
contents = deserializeAws_json1_1InitiateLayerUploadResponse(data, context);
|
|
1562
|
-
const response: InitiateLayerUploadCommandOutput = {
|
|
1563
|
-
$metadata: deserializeMetadata(output),
|
|
1564
|
-
...contents,
|
|
1565
|
-
};
|
|
1566
|
-
return Promise.resolve(response);
|
|
1567
|
-
};
|
|
1568
|
-
|
|
1569
|
-
const deserializeAws_json1_1InitiateLayerUploadCommandError = async (
|
|
1570
|
-
output: __HttpResponse,
|
|
1571
|
-
context: __SerdeContext
|
|
1572
|
-
): Promise<InitiateLayerUploadCommandOutput> => {
|
|
1573
|
-
const parsedOutput: any = {
|
|
1574
|
-
...output,
|
|
1575
|
-
body: await parseBody(output.body, context),
|
|
1576
|
-
};
|
|
1577
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1578
|
-
let errorCode = "UnknownError";
|
|
1579
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1580
|
-
switch (errorCode) {
|
|
1581
|
-
case "InvalidParameterException":
|
|
1582
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1583
|
-
response = {
|
|
1584
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1585
|
-
name: errorCode,
|
|
1586
|
-
$metadata: deserializeMetadata(output),
|
|
1587
|
-
};
|
|
1588
|
-
break;
|
|
1589
|
-
case "RegistryNotFoundException":
|
|
1590
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1591
|
-
response = {
|
|
1592
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1593
|
-
name: errorCode,
|
|
1594
|
-
$metadata: deserializeMetadata(output),
|
|
1595
|
-
};
|
|
1596
|
-
break;
|
|
1597
|
-
case "RepositoryNotFoundException":
|
|
1598
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1599
|
-
response = {
|
|
1600
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1601
|
-
name: errorCode,
|
|
1602
|
-
$metadata: deserializeMetadata(output),
|
|
1603
|
-
};
|
|
1604
|
-
break;
|
|
1605
|
-
case "ServerException":
|
|
1606
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1607
|
-
response = {
|
|
1608
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1609
|
-
name: errorCode,
|
|
1610
|
-
$metadata: deserializeMetadata(output),
|
|
1611
|
-
};
|
|
1612
|
-
break;
|
|
1613
|
-
case "UnsupportedCommandException":
|
|
1614
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1615
|
-
response = {
|
|
1616
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1617
|
-
name: errorCode,
|
|
1618
|
-
$metadata: deserializeMetadata(output),
|
|
1619
|
-
};
|
|
1620
|
-
break;
|
|
1621
|
-
default:
|
|
1622
|
-
const parsedBody = parsedOutput.body;
|
|
1623
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1624
|
-
response = {
|
|
1625
|
-
...parsedBody,
|
|
1626
|
-
name: `${errorCode}`,
|
|
1627
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1628
|
-
$fault: "client",
|
|
1629
|
-
$metadata: deserializeMetadata(output),
|
|
1630
|
-
} as any;
|
|
1631
|
-
}
|
|
1632
|
-
const message = response.message || response.Message || errorCode;
|
|
1633
|
-
response.message = message;
|
|
1634
|
-
delete response.Message;
|
|
1635
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1636
|
-
};
|
|
1637
|
-
|
|
1638
|
-
export const deserializeAws_json1_1ListTagsForResourceCommand = async (
|
|
1639
|
-
output: __HttpResponse,
|
|
1640
|
-
context: __SerdeContext
|
|
1641
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
1642
|
-
if (output.statusCode >= 300) {
|
|
1643
|
-
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1644
|
-
}
|
|
1645
|
-
const data: any = await parseBody(output.body, context);
|
|
1646
|
-
let contents: any = {};
|
|
1647
|
-
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1648
|
-
const response: ListTagsForResourceCommandOutput = {
|
|
1649
|
-
$metadata: deserializeMetadata(output),
|
|
1650
|
-
...contents,
|
|
1651
|
-
};
|
|
1652
|
-
return Promise.resolve(response);
|
|
1653
|
-
};
|
|
1654
|
-
|
|
1655
|
-
const deserializeAws_json1_1ListTagsForResourceCommandError = async (
|
|
1656
|
-
output: __HttpResponse,
|
|
1657
|
-
context: __SerdeContext
|
|
1658
|
-
): Promise<ListTagsForResourceCommandOutput> => {
|
|
1659
|
-
const parsedOutput: any = {
|
|
1660
|
-
...output,
|
|
1661
|
-
body: await parseBody(output.body, context),
|
|
1662
|
-
};
|
|
1663
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1664
|
-
let errorCode = "UnknownError";
|
|
1665
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1666
|
-
switch (errorCode) {
|
|
1667
|
-
case "InvalidParameterException":
|
|
1668
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1669
|
-
response = {
|
|
1670
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1671
|
-
name: errorCode,
|
|
1672
|
-
$metadata: deserializeMetadata(output),
|
|
1673
|
-
};
|
|
1674
|
-
break;
|
|
1675
|
-
case "RepositoryNotFoundException":
|
|
1676
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1677
|
-
response = {
|
|
1678
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1679
|
-
name: errorCode,
|
|
1680
|
-
$metadata: deserializeMetadata(output),
|
|
1681
|
-
};
|
|
1682
|
-
break;
|
|
1683
|
-
case "ServerException":
|
|
1684
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1685
|
-
response = {
|
|
1686
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1687
|
-
name: errorCode,
|
|
1688
|
-
$metadata: deserializeMetadata(output),
|
|
1689
|
-
};
|
|
1690
|
-
break;
|
|
1691
|
-
default:
|
|
1692
|
-
const parsedBody = parsedOutput.body;
|
|
1693
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1694
|
-
response = {
|
|
1695
|
-
...parsedBody,
|
|
1696
|
-
name: `${errorCode}`,
|
|
1697
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1698
|
-
$fault: "client",
|
|
1699
|
-
$metadata: deserializeMetadata(output),
|
|
1700
|
-
} as any;
|
|
1701
|
-
}
|
|
1702
|
-
const message = response.message || response.Message || errorCode;
|
|
1703
|
-
response.message = message;
|
|
1704
|
-
delete response.Message;
|
|
1705
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1706
|
-
};
|
|
1707
|
-
|
|
1708
|
-
export const deserializeAws_json1_1PutImageCommand = async (
|
|
1709
|
-
output: __HttpResponse,
|
|
1710
|
-
context: __SerdeContext
|
|
1711
|
-
): Promise<PutImageCommandOutput> => {
|
|
1712
|
-
if (output.statusCode >= 300) {
|
|
1713
|
-
return deserializeAws_json1_1PutImageCommandError(output, context);
|
|
1714
|
-
}
|
|
1715
|
-
const data: any = await parseBody(output.body, context);
|
|
1716
|
-
let contents: any = {};
|
|
1717
|
-
contents = deserializeAws_json1_1PutImageResponse(data, context);
|
|
1718
|
-
const response: PutImageCommandOutput = {
|
|
1719
|
-
$metadata: deserializeMetadata(output),
|
|
1720
|
-
...contents,
|
|
1721
|
-
};
|
|
1722
|
-
return Promise.resolve(response);
|
|
1723
|
-
};
|
|
1724
|
-
|
|
1725
|
-
const deserializeAws_json1_1PutImageCommandError = async (
|
|
1726
|
-
output: __HttpResponse,
|
|
1727
|
-
context: __SerdeContext
|
|
1728
|
-
): Promise<PutImageCommandOutput> => {
|
|
1729
|
-
const parsedOutput: any = {
|
|
1730
|
-
...output,
|
|
1731
|
-
body: await parseBody(output.body, context),
|
|
1732
|
-
};
|
|
1733
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1734
|
-
let errorCode = "UnknownError";
|
|
1735
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1736
|
-
switch (errorCode) {
|
|
1737
|
-
case "ImageAlreadyExistsException":
|
|
1738
|
-
case "com.amazonaws.ecrpublic#ImageAlreadyExistsException":
|
|
1739
|
-
response = {
|
|
1740
|
-
...(await deserializeAws_json1_1ImageAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1741
|
-
name: errorCode,
|
|
1742
|
-
$metadata: deserializeMetadata(output),
|
|
1743
|
-
};
|
|
1744
|
-
break;
|
|
1745
|
-
case "ImageDigestDoesNotMatchException":
|
|
1746
|
-
case "com.amazonaws.ecrpublic#ImageDigestDoesNotMatchException":
|
|
1747
|
-
response = {
|
|
1748
|
-
...(await deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse(parsedOutput, context)),
|
|
1749
|
-
name: errorCode,
|
|
1750
|
-
$metadata: deserializeMetadata(output),
|
|
1751
|
-
};
|
|
1752
|
-
break;
|
|
1753
|
-
case "ImageTagAlreadyExistsException":
|
|
1754
|
-
case "com.amazonaws.ecrpublic#ImageTagAlreadyExistsException":
|
|
1755
|
-
response = {
|
|
1756
|
-
...(await deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1757
|
-
name: errorCode,
|
|
1758
|
-
$metadata: deserializeMetadata(output),
|
|
1759
|
-
};
|
|
1760
|
-
break;
|
|
1761
|
-
case "InvalidParameterException":
|
|
1762
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1763
|
-
response = {
|
|
1764
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1765
|
-
name: errorCode,
|
|
1766
|
-
$metadata: deserializeMetadata(output),
|
|
1767
|
-
};
|
|
1768
|
-
break;
|
|
1769
|
-
case "LayersNotFoundException":
|
|
1770
|
-
case "com.amazonaws.ecrpublic#LayersNotFoundException":
|
|
1771
|
-
response = {
|
|
1772
|
-
...(await deserializeAws_json1_1LayersNotFoundExceptionResponse(parsedOutput, context)),
|
|
1773
|
-
name: errorCode,
|
|
1774
|
-
$metadata: deserializeMetadata(output),
|
|
1775
|
-
};
|
|
1776
|
-
break;
|
|
1777
|
-
case "LimitExceededException":
|
|
1778
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
1779
|
-
response = {
|
|
1780
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1781
|
-
name: errorCode,
|
|
1782
|
-
$metadata: deserializeMetadata(output),
|
|
1783
|
-
};
|
|
1784
|
-
break;
|
|
1785
|
-
case "ReferencedImagesNotFoundException":
|
|
1786
|
-
case "com.amazonaws.ecrpublic#ReferencedImagesNotFoundException":
|
|
1787
|
-
response = {
|
|
1788
|
-
...(await deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse(parsedOutput, context)),
|
|
1789
|
-
name: errorCode,
|
|
1790
|
-
$metadata: deserializeMetadata(output),
|
|
1791
|
-
};
|
|
1792
|
-
break;
|
|
1793
|
-
case "RegistryNotFoundException":
|
|
1794
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
1795
|
-
response = {
|
|
1796
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1797
|
-
name: errorCode,
|
|
1798
|
-
$metadata: deserializeMetadata(output),
|
|
1799
|
-
};
|
|
1800
|
-
break;
|
|
1801
|
-
case "RepositoryNotFoundException":
|
|
1802
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1803
|
-
response = {
|
|
1804
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1805
|
-
name: errorCode,
|
|
1806
|
-
$metadata: deserializeMetadata(output),
|
|
1807
|
-
};
|
|
1808
|
-
break;
|
|
1809
|
-
case "ServerException":
|
|
1810
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1811
|
-
response = {
|
|
1812
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1813
|
-
name: errorCode,
|
|
1814
|
-
$metadata: deserializeMetadata(output),
|
|
1815
|
-
};
|
|
1816
|
-
break;
|
|
1817
|
-
case "UnsupportedCommandException":
|
|
1818
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1819
|
-
response = {
|
|
1820
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1821
|
-
name: errorCode,
|
|
1822
|
-
$metadata: deserializeMetadata(output),
|
|
1823
|
-
};
|
|
1824
|
-
break;
|
|
1825
|
-
default:
|
|
1826
|
-
const parsedBody = parsedOutput.body;
|
|
1827
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1828
|
-
response = {
|
|
1829
|
-
...parsedBody,
|
|
1830
|
-
name: `${errorCode}`,
|
|
1831
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1832
|
-
$fault: "client",
|
|
1833
|
-
$metadata: deserializeMetadata(output),
|
|
1834
|
-
} as any;
|
|
1835
|
-
}
|
|
1836
|
-
const message = response.message || response.Message || errorCode;
|
|
1837
|
-
response.message = message;
|
|
1838
|
-
delete response.Message;
|
|
1839
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1840
|
-
};
|
|
1841
|
-
|
|
1842
|
-
export const deserializeAws_json1_1PutRegistryCatalogDataCommand = async (
|
|
1843
|
-
output: __HttpResponse,
|
|
1844
|
-
context: __SerdeContext
|
|
1845
|
-
): Promise<PutRegistryCatalogDataCommandOutput> => {
|
|
1846
|
-
if (output.statusCode >= 300) {
|
|
1847
|
-
return deserializeAws_json1_1PutRegistryCatalogDataCommandError(output, context);
|
|
1848
|
-
}
|
|
1849
|
-
const data: any = await parseBody(output.body, context);
|
|
1850
|
-
let contents: any = {};
|
|
1851
|
-
contents = deserializeAws_json1_1PutRegistryCatalogDataResponse(data, context);
|
|
1852
|
-
const response: PutRegistryCatalogDataCommandOutput = {
|
|
1853
|
-
$metadata: deserializeMetadata(output),
|
|
1854
|
-
...contents,
|
|
1855
|
-
};
|
|
1856
|
-
return Promise.resolve(response);
|
|
1857
|
-
};
|
|
1858
|
-
|
|
1859
|
-
const deserializeAws_json1_1PutRegistryCatalogDataCommandError = async (
|
|
1860
|
-
output: __HttpResponse,
|
|
1861
|
-
context: __SerdeContext
|
|
1862
|
-
): Promise<PutRegistryCatalogDataCommandOutput> => {
|
|
1863
|
-
const parsedOutput: any = {
|
|
1864
|
-
...output,
|
|
1865
|
-
body: await parseBody(output.body, context),
|
|
1866
|
-
};
|
|
1867
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1868
|
-
let errorCode = "UnknownError";
|
|
1869
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1870
|
-
switch (errorCode) {
|
|
1871
|
-
case "InvalidParameterException":
|
|
1872
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1873
|
-
response = {
|
|
1874
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1875
|
-
name: errorCode,
|
|
1876
|
-
$metadata: deserializeMetadata(output),
|
|
1877
|
-
};
|
|
1878
|
-
break;
|
|
1879
|
-
case "ServerException":
|
|
1880
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1881
|
-
response = {
|
|
1882
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1883
|
-
name: errorCode,
|
|
1884
|
-
$metadata: deserializeMetadata(output),
|
|
1885
|
-
};
|
|
1886
|
-
break;
|
|
1887
|
-
case "UnsupportedCommandException":
|
|
1888
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
1889
|
-
response = {
|
|
1890
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
1891
|
-
name: errorCode,
|
|
1892
|
-
$metadata: deserializeMetadata(output),
|
|
1893
|
-
};
|
|
1894
|
-
break;
|
|
1895
|
-
default:
|
|
1896
|
-
const parsedBody = parsedOutput.body;
|
|
1897
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1898
|
-
response = {
|
|
1899
|
-
...parsedBody,
|
|
1900
|
-
name: `${errorCode}`,
|
|
1901
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1902
|
-
$fault: "client",
|
|
1903
|
-
$metadata: deserializeMetadata(output),
|
|
1904
|
-
} as any;
|
|
1905
|
-
}
|
|
1906
|
-
const message = response.message || response.Message || errorCode;
|
|
1907
|
-
response.message = message;
|
|
1908
|
-
delete response.Message;
|
|
1909
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1910
|
-
};
|
|
1911
|
-
|
|
1912
|
-
export const deserializeAws_json1_1PutRepositoryCatalogDataCommand = async (
|
|
1913
|
-
output: __HttpResponse,
|
|
1914
|
-
context: __SerdeContext
|
|
1915
|
-
): Promise<PutRepositoryCatalogDataCommandOutput> => {
|
|
1916
|
-
if (output.statusCode >= 300) {
|
|
1917
|
-
return deserializeAws_json1_1PutRepositoryCatalogDataCommandError(output, context);
|
|
1918
|
-
}
|
|
1919
|
-
const data: any = await parseBody(output.body, context);
|
|
1920
|
-
let contents: any = {};
|
|
1921
|
-
contents = deserializeAws_json1_1PutRepositoryCatalogDataResponse(data, context);
|
|
1922
|
-
const response: PutRepositoryCatalogDataCommandOutput = {
|
|
1923
|
-
$metadata: deserializeMetadata(output),
|
|
1924
|
-
...contents,
|
|
1925
|
-
};
|
|
1926
|
-
return Promise.resolve(response);
|
|
1927
|
-
};
|
|
1928
|
-
|
|
1929
|
-
const deserializeAws_json1_1PutRepositoryCatalogDataCommandError = async (
|
|
1930
|
-
output: __HttpResponse,
|
|
1931
|
-
context: __SerdeContext
|
|
1932
|
-
): Promise<PutRepositoryCatalogDataCommandOutput> => {
|
|
1933
|
-
const parsedOutput: any = {
|
|
1934
|
-
...output,
|
|
1935
|
-
body: await parseBody(output.body, context),
|
|
1936
|
-
};
|
|
1937
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
1938
|
-
let errorCode = "UnknownError";
|
|
1939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1940
|
-
switch (errorCode) {
|
|
1941
|
-
case "InvalidParameterException":
|
|
1942
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
1943
|
-
response = {
|
|
1944
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1945
|
-
name: errorCode,
|
|
1946
|
-
$metadata: deserializeMetadata(output),
|
|
1947
|
-
};
|
|
1948
|
-
break;
|
|
1949
|
-
case "RepositoryNotFoundException":
|
|
1950
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
1951
|
-
response = {
|
|
1952
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
1953
|
-
name: errorCode,
|
|
1954
|
-
$metadata: deserializeMetadata(output),
|
|
1955
|
-
};
|
|
1956
|
-
break;
|
|
1957
|
-
case "ServerException":
|
|
1958
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
1959
|
-
response = {
|
|
1960
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
1961
|
-
name: errorCode,
|
|
1962
|
-
$metadata: deserializeMetadata(output),
|
|
1963
|
-
};
|
|
1964
|
-
break;
|
|
1965
|
-
default:
|
|
1966
|
-
const parsedBody = parsedOutput.body;
|
|
1967
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1968
|
-
response = {
|
|
1969
|
-
...parsedBody,
|
|
1970
|
-
name: `${errorCode}`,
|
|
1971
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1972
|
-
$fault: "client",
|
|
1973
|
-
$metadata: deserializeMetadata(output),
|
|
1974
|
-
} as any;
|
|
1975
|
-
}
|
|
1976
|
-
const message = response.message || response.Message || errorCode;
|
|
1977
|
-
response.message = message;
|
|
1978
|
-
delete response.Message;
|
|
1979
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1980
|
-
};
|
|
1981
|
-
|
|
1982
|
-
export const deserializeAws_json1_1SetRepositoryPolicyCommand = async (
|
|
1983
|
-
output: __HttpResponse,
|
|
1984
|
-
context: __SerdeContext
|
|
1985
|
-
): Promise<SetRepositoryPolicyCommandOutput> => {
|
|
1986
|
-
if (output.statusCode >= 300) {
|
|
1987
|
-
return deserializeAws_json1_1SetRepositoryPolicyCommandError(output, context);
|
|
1988
|
-
}
|
|
1989
|
-
const data: any = await parseBody(output.body, context);
|
|
1990
|
-
let contents: any = {};
|
|
1991
|
-
contents = deserializeAws_json1_1SetRepositoryPolicyResponse(data, context);
|
|
1992
|
-
const response: SetRepositoryPolicyCommandOutput = {
|
|
1993
|
-
$metadata: deserializeMetadata(output),
|
|
1994
|
-
...contents,
|
|
1995
|
-
};
|
|
1996
|
-
return Promise.resolve(response);
|
|
1997
|
-
};
|
|
1998
|
-
|
|
1999
|
-
const deserializeAws_json1_1SetRepositoryPolicyCommandError = async (
|
|
2000
|
-
output: __HttpResponse,
|
|
2001
|
-
context: __SerdeContext
|
|
2002
|
-
): Promise<SetRepositoryPolicyCommandOutput> => {
|
|
2003
|
-
const parsedOutput: any = {
|
|
2004
|
-
...output,
|
|
2005
|
-
body: await parseBody(output.body, context),
|
|
2006
|
-
};
|
|
2007
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2008
|
-
let errorCode = "UnknownError";
|
|
2009
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2010
|
-
switch (errorCode) {
|
|
2011
|
-
case "InvalidParameterException":
|
|
2012
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
2013
|
-
response = {
|
|
2014
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2015
|
-
name: errorCode,
|
|
2016
|
-
$metadata: deserializeMetadata(output),
|
|
2017
|
-
};
|
|
2018
|
-
break;
|
|
2019
|
-
case "RepositoryNotFoundException":
|
|
2020
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
2021
|
-
response = {
|
|
2022
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2023
|
-
name: errorCode,
|
|
2024
|
-
$metadata: deserializeMetadata(output),
|
|
2025
|
-
};
|
|
2026
|
-
break;
|
|
2027
|
-
case "ServerException":
|
|
2028
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
2029
|
-
response = {
|
|
2030
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2031
|
-
name: errorCode,
|
|
2032
|
-
$metadata: deserializeMetadata(output),
|
|
2033
|
-
};
|
|
2034
|
-
break;
|
|
2035
|
-
default:
|
|
2036
|
-
const parsedBody = parsedOutput.body;
|
|
2037
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2038
|
-
response = {
|
|
2039
|
-
...parsedBody,
|
|
2040
|
-
name: `${errorCode}`,
|
|
2041
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2042
|
-
$fault: "client",
|
|
2043
|
-
$metadata: deserializeMetadata(output),
|
|
2044
|
-
} as any;
|
|
2045
|
-
}
|
|
2046
|
-
const message = response.message || response.Message || errorCode;
|
|
2047
|
-
response.message = message;
|
|
2048
|
-
delete response.Message;
|
|
2049
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2050
|
-
};
|
|
2051
|
-
|
|
2052
|
-
export const deserializeAws_json1_1TagResourceCommand = async (
|
|
2053
|
-
output: __HttpResponse,
|
|
2054
|
-
context: __SerdeContext
|
|
2055
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2056
|
-
if (output.statusCode >= 300) {
|
|
2057
|
-
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
2058
|
-
}
|
|
2059
|
-
const data: any = await parseBody(output.body, context);
|
|
2060
|
-
let contents: any = {};
|
|
2061
|
-
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
2062
|
-
const response: TagResourceCommandOutput = {
|
|
2063
|
-
$metadata: deserializeMetadata(output),
|
|
2064
|
-
...contents,
|
|
2065
|
-
};
|
|
2066
|
-
return Promise.resolve(response);
|
|
2067
|
-
};
|
|
2068
|
-
|
|
2069
|
-
const deserializeAws_json1_1TagResourceCommandError = async (
|
|
2070
|
-
output: __HttpResponse,
|
|
2071
|
-
context: __SerdeContext
|
|
2072
|
-
): Promise<TagResourceCommandOutput> => {
|
|
2073
|
-
const parsedOutput: any = {
|
|
2074
|
-
...output,
|
|
2075
|
-
body: await parseBody(output.body, context),
|
|
2076
|
-
};
|
|
2077
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2078
|
-
let errorCode = "UnknownError";
|
|
2079
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2080
|
-
switch (errorCode) {
|
|
2081
|
-
case "InvalidParameterException":
|
|
2082
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
2083
|
-
response = {
|
|
2084
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2085
|
-
name: errorCode,
|
|
2086
|
-
$metadata: deserializeMetadata(output),
|
|
2087
|
-
};
|
|
2088
|
-
break;
|
|
2089
|
-
case "InvalidTagParameterException":
|
|
2090
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
2091
|
-
response = {
|
|
2092
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
2093
|
-
name: errorCode,
|
|
2094
|
-
$metadata: deserializeMetadata(output),
|
|
2095
|
-
};
|
|
2096
|
-
break;
|
|
2097
|
-
case "RepositoryNotFoundException":
|
|
2098
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
2099
|
-
response = {
|
|
2100
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2101
|
-
name: errorCode,
|
|
2102
|
-
$metadata: deserializeMetadata(output),
|
|
2103
|
-
};
|
|
2104
|
-
break;
|
|
2105
|
-
case "ServerException":
|
|
2106
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
2107
|
-
response = {
|
|
2108
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2109
|
-
name: errorCode,
|
|
2110
|
-
$metadata: deserializeMetadata(output),
|
|
2111
|
-
};
|
|
2112
|
-
break;
|
|
2113
|
-
case "TooManyTagsException":
|
|
2114
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
2115
|
-
response = {
|
|
2116
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
2117
|
-
name: errorCode,
|
|
2118
|
-
$metadata: deserializeMetadata(output),
|
|
2119
|
-
};
|
|
2120
|
-
break;
|
|
2121
|
-
default:
|
|
2122
|
-
const parsedBody = parsedOutput.body;
|
|
2123
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2124
|
-
response = {
|
|
2125
|
-
...parsedBody,
|
|
2126
|
-
name: `${errorCode}`,
|
|
2127
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2128
|
-
$fault: "client",
|
|
2129
|
-
$metadata: deserializeMetadata(output),
|
|
2130
|
-
} as any;
|
|
2131
|
-
}
|
|
2132
|
-
const message = response.message || response.Message || errorCode;
|
|
2133
|
-
response.message = message;
|
|
2134
|
-
delete response.Message;
|
|
2135
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2136
|
-
};
|
|
2137
|
-
|
|
2138
|
-
export const deserializeAws_json1_1UntagResourceCommand = async (
|
|
2139
|
-
output: __HttpResponse,
|
|
2140
|
-
context: __SerdeContext
|
|
2141
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
2142
|
-
if (output.statusCode >= 300) {
|
|
2143
|
-
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
2144
|
-
}
|
|
2145
|
-
const data: any = await parseBody(output.body, context);
|
|
2146
|
-
let contents: any = {};
|
|
2147
|
-
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
2148
|
-
const response: UntagResourceCommandOutput = {
|
|
2149
|
-
$metadata: deserializeMetadata(output),
|
|
2150
|
-
...contents,
|
|
2151
|
-
};
|
|
2152
|
-
return Promise.resolve(response);
|
|
2153
|
-
};
|
|
2154
|
-
|
|
2155
|
-
const deserializeAws_json1_1UntagResourceCommandError = async (
|
|
2156
|
-
output: __HttpResponse,
|
|
2157
|
-
context: __SerdeContext
|
|
2158
|
-
): Promise<UntagResourceCommandOutput> => {
|
|
2159
|
-
const parsedOutput: any = {
|
|
2160
|
-
...output,
|
|
2161
|
-
body: await parseBody(output.body, context),
|
|
2162
|
-
};
|
|
2163
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2164
|
-
let errorCode = "UnknownError";
|
|
2165
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2166
|
-
switch (errorCode) {
|
|
2167
|
-
case "InvalidParameterException":
|
|
2168
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
2169
|
-
response = {
|
|
2170
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2171
|
-
name: errorCode,
|
|
2172
|
-
$metadata: deserializeMetadata(output),
|
|
2173
|
-
};
|
|
2174
|
-
break;
|
|
2175
|
-
case "InvalidTagParameterException":
|
|
2176
|
-
case "com.amazonaws.ecrpublic#InvalidTagParameterException":
|
|
2177
|
-
response = {
|
|
2178
|
-
...(await deserializeAws_json1_1InvalidTagParameterExceptionResponse(parsedOutput, context)),
|
|
2179
|
-
name: errorCode,
|
|
2180
|
-
$metadata: deserializeMetadata(output),
|
|
2181
|
-
};
|
|
2182
|
-
break;
|
|
2183
|
-
case "RepositoryNotFoundException":
|
|
2184
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
2185
|
-
response = {
|
|
2186
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2187
|
-
name: errorCode,
|
|
2188
|
-
$metadata: deserializeMetadata(output),
|
|
2189
|
-
};
|
|
2190
|
-
break;
|
|
2191
|
-
case "ServerException":
|
|
2192
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
2193
|
-
response = {
|
|
2194
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2195
|
-
name: errorCode,
|
|
2196
|
-
$metadata: deserializeMetadata(output),
|
|
2197
|
-
};
|
|
2198
|
-
break;
|
|
2199
|
-
case "TooManyTagsException":
|
|
2200
|
-
case "com.amazonaws.ecrpublic#TooManyTagsException":
|
|
2201
|
-
response = {
|
|
2202
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
2203
|
-
name: errorCode,
|
|
2204
|
-
$metadata: deserializeMetadata(output),
|
|
2205
|
-
};
|
|
2206
|
-
break;
|
|
2207
|
-
default:
|
|
2208
|
-
const parsedBody = parsedOutput.body;
|
|
2209
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2210
|
-
response = {
|
|
2211
|
-
...parsedBody,
|
|
2212
|
-
name: `${errorCode}`,
|
|
2213
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2214
|
-
$fault: "client",
|
|
2215
|
-
$metadata: deserializeMetadata(output),
|
|
2216
|
-
} as any;
|
|
2217
|
-
}
|
|
2218
|
-
const message = response.message || response.Message || errorCode;
|
|
2219
|
-
response.message = message;
|
|
2220
|
-
delete response.Message;
|
|
2221
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2222
|
-
};
|
|
2223
|
-
|
|
2224
|
-
export const deserializeAws_json1_1UploadLayerPartCommand = async (
|
|
2225
|
-
output: __HttpResponse,
|
|
2226
|
-
context: __SerdeContext
|
|
2227
|
-
): Promise<UploadLayerPartCommandOutput> => {
|
|
2228
|
-
if (output.statusCode >= 300) {
|
|
2229
|
-
return deserializeAws_json1_1UploadLayerPartCommandError(output, context);
|
|
2230
|
-
}
|
|
2231
|
-
const data: any = await parseBody(output.body, context);
|
|
2232
|
-
let contents: any = {};
|
|
2233
|
-
contents = deserializeAws_json1_1UploadLayerPartResponse(data, context);
|
|
2234
|
-
const response: UploadLayerPartCommandOutput = {
|
|
2235
|
-
$metadata: deserializeMetadata(output),
|
|
2236
|
-
...contents,
|
|
2237
|
-
};
|
|
2238
|
-
return Promise.resolve(response);
|
|
2239
|
-
};
|
|
2240
|
-
|
|
2241
|
-
const deserializeAws_json1_1UploadLayerPartCommandError = async (
|
|
2242
|
-
output: __HttpResponse,
|
|
2243
|
-
context: __SerdeContext
|
|
2244
|
-
): Promise<UploadLayerPartCommandOutput> => {
|
|
2245
|
-
const parsedOutput: any = {
|
|
2246
|
-
...output,
|
|
2247
|
-
body: await parseBody(output.body, context),
|
|
2248
|
-
};
|
|
2249
|
-
let response: __SmithyException & __MetadataBearer & { [key: string]: any };
|
|
2250
|
-
let errorCode = "UnknownError";
|
|
2251
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2252
|
-
switch (errorCode) {
|
|
2253
|
-
case "InvalidLayerPartException":
|
|
2254
|
-
case "com.amazonaws.ecrpublic#InvalidLayerPartException":
|
|
2255
|
-
response = {
|
|
2256
|
-
...(await deserializeAws_json1_1InvalidLayerPartExceptionResponse(parsedOutput, context)),
|
|
2257
|
-
name: errorCode,
|
|
2258
|
-
$metadata: deserializeMetadata(output),
|
|
2259
|
-
};
|
|
2260
|
-
break;
|
|
2261
|
-
case "InvalidParameterException":
|
|
2262
|
-
case "com.amazonaws.ecrpublic#InvalidParameterException":
|
|
2263
|
-
response = {
|
|
2264
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2265
|
-
name: errorCode,
|
|
2266
|
-
$metadata: deserializeMetadata(output),
|
|
2267
|
-
};
|
|
2268
|
-
break;
|
|
2269
|
-
case "LimitExceededException":
|
|
2270
|
-
case "com.amazonaws.ecrpublic#LimitExceededException":
|
|
2271
|
-
response = {
|
|
2272
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2273
|
-
name: errorCode,
|
|
2274
|
-
$metadata: deserializeMetadata(output),
|
|
2275
|
-
};
|
|
2276
|
-
break;
|
|
2277
|
-
case "RegistryNotFoundException":
|
|
2278
|
-
case "com.amazonaws.ecrpublic#RegistryNotFoundException":
|
|
2279
|
-
response = {
|
|
2280
|
-
...(await deserializeAws_json1_1RegistryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2281
|
-
name: errorCode,
|
|
2282
|
-
$metadata: deserializeMetadata(output),
|
|
2283
|
-
};
|
|
2284
|
-
break;
|
|
2285
|
-
case "RepositoryNotFoundException":
|
|
2286
|
-
case "com.amazonaws.ecrpublic#RepositoryNotFoundException":
|
|
2287
|
-
response = {
|
|
2288
|
-
...(await deserializeAws_json1_1RepositoryNotFoundExceptionResponse(parsedOutput, context)),
|
|
2289
|
-
name: errorCode,
|
|
2290
|
-
$metadata: deserializeMetadata(output),
|
|
2291
|
-
};
|
|
2292
|
-
break;
|
|
2293
|
-
case "ServerException":
|
|
2294
|
-
case "com.amazonaws.ecrpublic#ServerException":
|
|
2295
|
-
response = {
|
|
2296
|
-
...(await deserializeAws_json1_1ServerExceptionResponse(parsedOutput, context)),
|
|
2297
|
-
name: errorCode,
|
|
2298
|
-
$metadata: deserializeMetadata(output),
|
|
2299
|
-
};
|
|
2300
|
-
break;
|
|
2301
|
-
case "UnsupportedCommandException":
|
|
2302
|
-
case "com.amazonaws.ecrpublic#UnsupportedCommandException":
|
|
2303
|
-
response = {
|
|
2304
|
-
...(await deserializeAws_json1_1UnsupportedCommandExceptionResponse(parsedOutput, context)),
|
|
2305
|
-
name: errorCode,
|
|
2306
|
-
$metadata: deserializeMetadata(output),
|
|
2307
|
-
};
|
|
2308
|
-
break;
|
|
2309
|
-
case "UploadNotFoundException":
|
|
2310
|
-
case "com.amazonaws.ecrpublic#UploadNotFoundException":
|
|
2311
|
-
response = {
|
|
2312
|
-
...(await deserializeAws_json1_1UploadNotFoundExceptionResponse(parsedOutput, context)),
|
|
2313
|
-
name: errorCode,
|
|
2314
|
-
$metadata: deserializeMetadata(output),
|
|
2315
|
-
};
|
|
2316
|
-
break;
|
|
2317
|
-
default:
|
|
2318
|
-
const parsedBody = parsedOutput.body;
|
|
2319
|
-
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2320
|
-
response = {
|
|
2321
|
-
...parsedBody,
|
|
2322
|
-
name: `${errorCode}`,
|
|
2323
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2324
|
-
$fault: "client",
|
|
2325
|
-
$metadata: deserializeMetadata(output),
|
|
2326
|
-
} as any;
|
|
2327
|
-
}
|
|
2328
|
-
const message = response.message || response.Message || errorCode;
|
|
2329
|
-
response.message = message;
|
|
2330
|
-
delete response.Message;
|
|
2331
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2332
|
-
};
|
|
2333
|
-
|
|
2334
|
-
const deserializeAws_json1_1EmptyUploadExceptionResponse = async (
|
|
2335
|
-
parsedOutput: any,
|
|
2336
|
-
context: __SerdeContext
|
|
2337
|
-
): Promise<EmptyUploadException> => {
|
|
2338
|
-
const body = parsedOutput.body;
|
|
2339
|
-
const deserialized: any = deserializeAws_json1_1EmptyUploadException(body, context);
|
|
2340
|
-
const contents: EmptyUploadException = {
|
|
2341
|
-
name: "EmptyUploadException",
|
|
2342
|
-
$fault: "client",
|
|
2343
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2344
|
-
...deserialized,
|
|
2345
|
-
};
|
|
2346
|
-
return contents;
|
|
2347
|
-
};
|
|
2348
|
-
|
|
2349
|
-
const deserializeAws_json1_1ImageAlreadyExistsExceptionResponse = async (
|
|
2350
|
-
parsedOutput: any,
|
|
2351
|
-
context: __SerdeContext
|
|
2352
|
-
): Promise<ImageAlreadyExistsException> => {
|
|
2353
|
-
const body = parsedOutput.body;
|
|
2354
|
-
const deserialized: any = deserializeAws_json1_1ImageAlreadyExistsException(body, context);
|
|
2355
|
-
const contents: ImageAlreadyExistsException = {
|
|
2356
|
-
name: "ImageAlreadyExistsException",
|
|
2357
|
-
$fault: "client",
|
|
2358
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2359
|
-
...deserialized,
|
|
2360
|
-
};
|
|
2361
|
-
return contents;
|
|
2362
|
-
};
|
|
2363
|
-
|
|
2364
|
-
const deserializeAws_json1_1ImageDigestDoesNotMatchExceptionResponse = async (
|
|
2365
|
-
parsedOutput: any,
|
|
2366
|
-
context: __SerdeContext
|
|
2367
|
-
): Promise<ImageDigestDoesNotMatchException> => {
|
|
2368
|
-
const body = parsedOutput.body;
|
|
2369
|
-
const deserialized: any = deserializeAws_json1_1ImageDigestDoesNotMatchException(body, context);
|
|
2370
|
-
const contents: ImageDigestDoesNotMatchException = {
|
|
2371
|
-
name: "ImageDigestDoesNotMatchException",
|
|
2372
|
-
$fault: "client",
|
|
2373
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2374
|
-
...deserialized,
|
|
2375
|
-
};
|
|
2376
|
-
return contents;
|
|
2377
|
-
};
|
|
2378
|
-
|
|
2379
|
-
const deserializeAws_json1_1ImageNotFoundExceptionResponse = async (
|
|
2380
|
-
parsedOutput: any,
|
|
2381
|
-
context: __SerdeContext
|
|
2382
|
-
): Promise<ImageNotFoundException> => {
|
|
2383
|
-
const body = parsedOutput.body;
|
|
2384
|
-
const deserialized: any = deserializeAws_json1_1ImageNotFoundException(body, context);
|
|
2385
|
-
const contents: ImageNotFoundException = {
|
|
2386
|
-
name: "ImageNotFoundException",
|
|
2387
|
-
$fault: "client",
|
|
2388
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2389
|
-
...deserialized,
|
|
2390
|
-
};
|
|
2391
|
-
return contents;
|
|
2392
|
-
};
|
|
2393
|
-
|
|
2394
|
-
const deserializeAws_json1_1ImageTagAlreadyExistsExceptionResponse = async (
|
|
2395
|
-
parsedOutput: any,
|
|
2396
|
-
context: __SerdeContext
|
|
2397
|
-
): Promise<ImageTagAlreadyExistsException> => {
|
|
2398
|
-
const body = parsedOutput.body;
|
|
2399
|
-
const deserialized: any = deserializeAws_json1_1ImageTagAlreadyExistsException(body, context);
|
|
2400
|
-
const contents: ImageTagAlreadyExistsException = {
|
|
2401
|
-
name: "ImageTagAlreadyExistsException",
|
|
2402
|
-
$fault: "client",
|
|
2403
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2404
|
-
...deserialized,
|
|
2405
|
-
};
|
|
2406
|
-
return contents;
|
|
2407
|
-
};
|
|
2408
|
-
|
|
2409
|
-
const deserializeAws_json1_1InvalidLayerExceptionResponse = async (
|
|
2410
|
-
parsedOutput: any,
|
|
2411
|
-
context: __SerdeContext
|
|
2412
|
-
): Promise<InvalidLayerException> => {
|
|
2413
|
-
const body = parsedOutput.body;
|
|
2414
|
-
const deserialized: any = deserializeAws_json1_1InvalidLayerException(body, context);
|
|
2415
|
-
const contents: InvalidLayerException = {
|
|
2416
|
-
name: "InvalidLayerException",
|
|
2417
|
-
$fault: "client",
|
|
2418
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2419
|
-
...deserialized,
|
|
2420
|
-
};
|
|
2421
|
-
return contents;
|
|
2422
|
-
};
|
|
2423
|
-
|
|
2424
|
-
const deserializeAws_json1_1InvalidLayerPartExceptionResponse = async (
|
|
2425
|
-
parsedOutput: any,
|
|
2426
|
-
context: __SerdeContext
|
|
2427
|
-
): Promise<InvalidLayerPartException> => {
|
|
2428
|
-
const body = parsedOutput.body;
|
|
2429
|
-
const deserialized: any = deserializeAws_json1_1InvalidLayerPartException(body, context);
|
|
2430
|
-
const contents: InvalidLayerPartException = {
|
|
2431
|
-
name: "InvalidLayerPartException",
|
|
2432
|
-
$fault: "client",
|
|
2433
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2434
|
-
...deserialized,
|
|
2435
|
-
};
|
|
2436
|
-
return contents;
|
|
2437
|
-
};
|
|
2438
|
-
|
|
2439
|
-
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (
|
|
2440
|
-
parsedOutput: any,
|
|
2441
|
-
context: __SerdeContext
|
|
2442
|
-
): Promise<InvalidParameterException> => {
|
|
2443
|
-
const body = parsedOutput.body;
|
|
2444
|
-
const deserialized: any = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
2445
|
-
const contents: InvalidParameterException = {
|
|
2446
|
-
name: "InvalidParameterException",
|
|
2447
|
-
$fault: "client",
|
|
2448
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2449
|
-
...deserialized,
|
|
2450
|
-
};
|
|
2451
|
-
return contents;
|
|
2452
|
-
};
|
|
2453
|
-
|
|
2454
|
-
const deserializeAws_json1_1InvalidTagParameterExceptionResponse = async (
|
|
2455
|
-
parsedOutput: any,
|
|
2456
|
-
context: __SerdeContext
|
|
2457
|
-
): Promise<InvalidTagParameterException> => {
|
|
2458
|
-
const body = parsedOutput.body;
|
|
2459
|
-
const deserialized: any = deserializeAws_json1_1InvalidTagParameterException(body, context);
|
|
2460
|
-
const contents: InvalidTagParameterException = {
|
|
2461
|
-
name: "InvalidTagParameterException",
|
|
2462
|
-
$fault: "client",
|
|
2463
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2464
|
-
...deserialized,
|
|
2465
|
-
};
|
|
2466
|
-
return contents;
|
|
2467
|
-
};
|
|
2468
|
-
|
|
2469
|
-
const deserializeAws_json1_1LayerAlreadyExistsExceptionResponse = async (
|
|
2470
|
-
parsedOutput: any,
|
|
2471
|
-
context: __SerdeContext
|
|
2472
|
-
): Promise<LayerAlreadyExistsException> => {
|
|
2473
|
-
const body = parsedOutput.body;
|
|
2474
|
-
const deserialized: any = deserializeAws_json1_1LayerAlreadyExistsException(body, context);
|
|
2475
|
-
const contents: LayerAlreadyExistsException = {
|
|
2476
|
-
name: "LayerAlreadyExistsException",
|
|
2477
|
-
$fault: "client",
|
|
2478
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2479
|
-
...deserialized,
|
|
2480
|
-
};
|
|
2481
|
-
return contents;
|
|
2482
|
-
};
|
|
2483
|
-
|
|
2484
|
-
const deserializeAws_json1_1LayerPartTooSmallExceptionResponse = async (
|
|
2485
|
-
parsedOutput: any,
|
|
2486
|
-
context: __SerdeContext
|
|
2487
|
-
): Promise<LayerPartTooSmallException> => {
|
|
2488
|
-
const body = parsedOutput.body;
|
|
2489
|
-
const deserialized: any = deserializeAws_json1_1LayerPartTooSmallException(body, context);
|
|
2490
|
-
const contents: LayerPartTooSmallException = {
|
|
2491
|
-
name: "LayerPartTooSmallException",
|
|
2492
|
-
$fault: "client",
|
|
2493
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2494
|
-
...deserialized,
|
|
2495
|
-
};
|
|
2496
|
-
return contents;
|
|
2497
|
-
};
|
|
2498
|
-
|
|
2499
|
-
const deserializeAws_json1_1LayersNotFoundExceptionResponse = async (
|
|
2500
|
-
parsedOutput: any,
|
|
2501
|
-
context: __SerdeContext
|
|
2502
|
-
): Promise<LayersNotFoundException> => {
|
|
2503
|
-
const body = parsedOutput.body;
|
|
2504
|
-
const deserialized: any = deserializeAws_json1_1LayersNotFoundException(body, context);
|
|
2505
|
-
const contents: LayersNotFoundException = {
|
|
2506
|
-
name: "LayersNotFoundException",
|
|
2507
|
-
$fault: "client",
|
|
2508
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2509
|
-
...deserialized,
|
|
2510
|
-
};
|
|
2511
|
-
return contents;
|
|
2512
|
-
};
|
|
2513
|
-
|
|
2514
|
-
const deserializeAws_json1_1LimitExceededExceptionResponse = async (
|
|
2515
|
-
parsedOutput: any,
|
|
2516
|
-
context: __SerdeContext
|
|
2517
|
-
): Promise<LimitExceededException> => {
|
|
2518
|
-
const body = parsedOutput.body;
|
|
2519
|
-
const deserialized: any = deserializeAws_json1_1LimitExceededException(body, context);
|
|
2520
|
-
const contents: LimitExceededException = {
|
|
2521
|
-
name: "LimitExceededException",
|
|
2522
|
-
$fault: "client",
|
|
2523
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2524
|
-
...deserialized,
|
|
2525
|
-
};
|
|
2526
|
-
return contents;
|
|
2527
|
-
};
|
|
2528
|
-
|
|
2529
|
-
const deserializeAws_json1_1ReferencedImagesNotFoundExceptionResponse = async (
|
|
2530
|
-
parsedOutput: any,
|
|
2531
|
-
context: __SerdeContext
|
|
2532
|
-
): Promise<ReferencedImagesNotFoundException> => {
|
|
2533
|
-
const body = parsedOutput.body;
|
|
2534
|
-
const deserialized: any = deserializeAws_json1_1ReferencedImagesNotFoundException(body, context);
|
|
2535
|
-
const contents: ReferencedImagesNotFoundException = {
|
|
2536
|
-
name: "ReferencedImagesNotFoundException",
|
|
2537
|
-
$fault: "client",
|
|
2538
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2539
|
-
...deserialized,
|
|
2540
|
-
};
|
|
2541
|
-
return contents;
|
|
2542
|
-
};
|
|
2543
|
-
|
|
2544
|
-
const deserializeAws_json1_1RegistryNotFoundExceptionResponse = async (
|
|
2545
|
-
parsedOutput: any,
|
|
2546
|
-
context: __SerdeContext
|
|
2547
|
-
): Promise<RegistryNotFoundException> => {
|
|
2548
|
-
const body = parsedOutput.body;
|
|
2549
|
-
const deserialized: any = deserializeAws_json1_1RegistryNotFoundException(body, context);
|
|
2550
|
-
const contents: RegistryNotFoundException = {
|
|
2551
|
-
name: "RegistryNotFoundException",
|
|
2552
|
-
$fault: "client",
|
|
2553
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2554
|
-
...deserialized,
|
|
2555
|
-
};
|
|
2556
|
-
return contents;
|
|
2557
|
-
};
|
|
2558
|
-
|
|
2559
|
-
const deserializeAws_json1_1RepositoryAlreadyExistsExceptionResponse = async (
|
|
2560
|
-
parsedOutput: any,
|
|
2561
|
-
context: __SerdeContext
|
|
2562
|
-
): Promise<RepositoryAlreadyExistsException> => {
|
|
2563
|
-
const body = parsedOutput.body;
|
|
2564
|
-
const deserialized: any = deserializeAws_json1_1RepositoryAlreadyExistsException(body, context);
|
|
2565
|
-
const contents: RepositoryAlreadyExistsException = {
|
|
2566
|
-
name: "RepositoryAlreadyExistsException",
|
|
2567
|
-
$fault: "client",
|
|
2568
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2569
|
-
...deserialized,
|
|
2570
|
-
};
|
|
2571
|
-
return contents;
|
|
2572
|
-
};
|
|
2573
|
-
|
|
2574
|
-
const deserializeAws_json1_1RepositoryNotEmptyExceptionResponse = async (
|
|
2575
|
-
parsedOutput: any,
|
|
2576
|
-
context: __SerdeContext
|
|
2577
|
-
): Promise<RepositoryNotEmptyException> => {
|
|
2578
|
-
const body = parsedOutput.body;
|
|
2579
|
-
const deserialized: any = deserializeAws_json1_1RepositoryNotEmptyException(body, context);
|
|
2580
|
-
const contents: RepositoryNotEmptyException = {
|
|
2581
|
-
name: "RepositoryNotEmptyException",
|
|
2582
|
-
$fault: "client",
|
|
2583
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2584
|
-
...deserialized,
|
|
2585
|
-
};
|
|
2586
|
-
return contents;
|
|
2587
|
-
};
|
|
2588
|
-
|
|
2589
|
-
const deserializeAws_json1_1RepositoryNotFoundExceptionResponse = async (
|
|
2590
|
-
parsedOutput: any,
|
|
2591
|
-
context: __SerdeContext
|
|
2592
|
-
): Promise<RepositoryNotFoundException> => {
|
|
2593
|
-
const body = parsedOutput.body;
|
|
2594
|
-
const deserialized: any = deserializeAws_json1_1RepositoryNotFoundException(body, context);
|
|
2595
|
-
const contents: RepositoryNotFoundException = {
|
|
2596
|
-
name: "RepositoryNotFoundException",
|
|
2597
|
-
$fault: "client",
|
|
2598
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2599
|
-
...deserialized,
|
|
2600
|
-
};
|
|
2601
|
-
return contents;
|
|
2602
|
-
};
|
|
2603
|
-
|
|
2604
|
-
const deserializeAws_json1_1RepositoryPolicyNotFoundExceptionResponse = async (
|
|
2605
|
-
parsedOutput: any,
|
|
2606
|
-
context: __SerdeContext
|
|
2607
|
-
): Promise<RepositoryPolicyNotFoundException> => {
|
|
2608
|
-
const body = parsedOutput.body;
|
|
2609
|
-
const deserialized: any = deserializeAws_json1_1RepositoryPolicyNotFoundException(body, context);
|
|
2610
|
-
const contents: RepositoryPolicyNotFoundException = {
|
|
2611
|
-
name: "RepositoryPolicyNotFoundException",
|
|
2612
|
-
$fault: "client",
|
|
2613
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2614
|
-
...deserialized,
|
|
2615
|
-
};
|
|
2616
|
-
return contents;
|
|
2617
|
-
};
|
|
2618
|
-
|
|
2619
|
-
const deserializeAws_json1_1ServerExceptionResponse = async (
|
|
2620
|
-
parsedOutput: any,
|
|
2621
|
-
context: __SerdeContext
|
|
2622
|
-
): Promise<ServerException> => {
|
|
2623
|
-
const body = parsedOutput.body;
|
|
2624
|
-
const deserialized: any = deserializeAws_json1_1ServerException(body, context);
|
|
2625
|
-
const contents: ServerException = {
|
|
2626
|
-
name: "ServerException",
|
|
2627
|
-
$fault: "server",
|
|
2628
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2629
|
-
...deserialized,
|
|
2630
|
-
};
|
|
2631
|
-
return contents;
|
|
2632
|
-
};
|
|
2633
|
-
|
|
2634
|
-
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (
|
|
2635
|
-
parsedOutput: any,
|
|
2636
|
-
context: __SerdeContext
|
|
2637
|
-
): Promise<TooManyTagsException> => {
|
|
2638
|
-
const body = parsedOutput.body;
|
|
2639
|
-
const deserialized: any = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
2640
|
-
const contents: TooManyTagsException = {
|
|
2641
|
-
name: "TooManyTagsException",
|
|
2642
|
-
$fault: "client",
|
|
2643
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2644
|
-
...deserialized,
|
|
2645
|
-
};
|
|
2646
|
-
return contents;
|
|
2647
|
-
};
|
|
2648
|
-
|
|
2649
|
-
const deserializeAws_json1_1UnsupportedCommandExceptionResponse = async (
|
|
2650
|
-
parsedOutput: any,
|
|
2651
|
-
context: __SerdeContext
|
|
2652
|
-
): Promise<UnsupportedCommandException> => {
|
|
2653
|
-
const body = parsedOutput.body;
|
|
2654
|
-
const deserialized: any = deserializeAws_json1_1UnsupportedCommandException(body, context);
|
|
2655
|
-
const contents: UnsupportedCommandException = {
|
|
2656
|
-
name: "UnsupportedCommandException",
|
|
2657
|
-
$fault: "client",
|
|
2658
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2659
|
-
...deserialized,
|
|
2660
|
-
};
|
|
2661
|
-
return contents;
|
|
2662
|
-
};
|
|
2663
|
-
|
|
2664
|
-
const deserializeAws_json1_1UploadNotFoundExceptionResponse = async (
|
|
2665
|
-
parsedOutput: any,
|
|
2666
|
-
context: __SerdeContext
|
|
2667
|
-
): Promise<UploadNotFoundException> => {
|
|
2668
|
-
const body = parsedOutput.body;
|
|
2669
|
-
const deserialized: any = deserializeAws_json1_1UploadNotFoundException(body, context);
|
|
2670
|
-
const contents: UploadNotFoundException = {
|
|
2671
|
-
name: "UploadNotFoundException",
|
|
2672
|
-
$fault: "client",
|
|
2673
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2674
|
-
...deserialized,
|
|
2675
|
-
};
|
|
2676
|
-
return contents;
|
|
2677
|
-
};
|
|
2678
|
-
|
|
2679
|
-
const serializeAws_json1_1ArchitectureList = (input: string[], context: __SerdeContext): any => {
|
|
2680
|
-
return input
|
|
2681
|
-
.filter((e: any) => e != null)
|
|
2682
|
-
.map((entry) => {
|
|
2683
|
-
if (entry === null) {
|
|
2684
|
-
return null as any;
|
|
2685
|
-
}
|
|
2686
|
-
return entry;
|
|
2687
|
-
});
|
|
2688
|
-
};
|
|
2689
|
-
|
|
2690
|
-
const serializeAws_json1_1BatchCheckLayerAvailabilityRequest = (
|
|
2691
|
-
input: BatchCheckLayerAvailabilityRequest,
|
|
2692
|
-
context: __SerdeContext
|
|
2693
|
-
): any => {
|
|
2694
|
-
return {
|
|
2695
|
-
...(input.layerDigests !== undefined &&
|
|
2696
|
-
input.layerDigests !== null && {
|
|
2697
|
-
layerDigests: serializeAws_json1_1BatchedOperationLayerDigestList(input.layerDigests, context),
|
|
2698
|
-
}),
|
|
2699
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2700
|
-
...(input.repositoryName !== undefined &&
|
|
2701
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
|
|
2705
|
-
const serializeAws_json1_1BatchDeleteImageRequest = (input: BatchDeleteImageRequest, context: __SerdeContext): any => {
|
|
2706
|
-
return {
|
|
2707
|
-
...(input.imageIds !== undefined &&
|
|
2708
|
-
input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
2709
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2710
|
-
...(input.repositoryName !== undefined &&
|
|
2711
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2712
|
-
};
|
|
2713
|
-
};
|
|
2714
|
-
|
|
2715
|
-
const serializeAws_json1_1BatchedOperationLayerDigestList = (input: string[], context: __SerdeContext): any => {
|
|
2716
|
-
return input
|
|
2717
|
-
.filter((e: any) => e != null)
|
|
2718
|
-
.map((entry) => {
|
|
2719
|
-
if (entry === null) {
|
|
2720
|
-
return null as any;
|
|
2721
|
-
}
|
|
2722
|
-
return entry;
|
|
2723
|
-
});
|
|
2724
|
-
};
|
|
2725
|
-
|
|
2726
|
-
const serializeAws_json1_1CompleteLayerUploadRequest = (
|
|
2727
|
-
input: CompleteLayerUploadRequest,
|
|
2728
|
-
context: __SerdeContext
|
|
2729
|
-
): any => {
|
|
2730
|
-
return {
|
|
2731
|
-
...(input.layerDigests !== undefined &&
|
|
2732
|
-
input.layerDigests !== null && {
|
|
2733
|
-
layerDigests: serializeAws_json1_1LayerDigestList(input.layerDigests, context),
|
|
2734
|
-
}),
|
|
2735
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2736
|
-
...(input.repositoryName !== undefined &&
|
|
2737
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2738
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
2739
|
-
};
|
|
2740
|
-
};
|
|
2741
|
-
|
|
2742
|
-
const serializeAws_json1_1CreateRepositoryRequest = (input: CreateRepositoryRequest, context: __SerdeContext): any => {
|
|
2743
|
-
return {
|
|
2744
|
-
...(input.catalogData !== undefined &&
|
|
2745
|
-
input.catalogData !== null && {
|
|
2746
|
-
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
2747
|
-
}),
|
|
2748
|
-
...(input.repositoryName !== undefined &&
|
|
2749
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2750
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2751
|
-
};
|
|
2752
|
-
};
|
|
2753
|
-
|
|
2754
|
-
const serializeAws_json1_1DeleteRepositoryPolicyRequest = (
|
|
2755
|
-
input: DeleteRepositoryPolicyRequest,
|
|
2756
|
-
context: __SerdeContext
|
|
2757
|
-
): any => {
|
|
2758
|
-
return {
|
|
2759
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2760
|
-
...(input.repositoryName !== undefined &&
|
|
2761
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2762
|
-
};
|
|
2763
|
-
};
|
|
2764
|
-
|
|
2765
|
-
const serializeAws_json1_1DeleteRepositoryRequest = (input: DeleteRepositoryRequest, context: __SerdeContext): any => {
|
|
2766
|
-
return {
|
|
2767
|
-
...(input.force !== undefined && input.force !== null && { force: input.force }),
|
|
2768
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2769
|
-
...(input.repositoryName !== undefined &&
|
|
2770
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2771
|
-
};
|
|
2772
|
-
};
|
|
2773
|
-
|
|
2774
|
-
const serializeAws_json1_1DescribeImagesRequest = (input: DescribeImagesRequest, context: __SerdeContext): any => {
|
|
2775
|
-
return {
|
|
2776
|
-
...(input.imageIds !== undefined &&
|
|
2777
|
-
input.imageIds !== null && { imageIds: serializeAws_json1_1ImageIdentifierList(input.imageIds, context) }),
|
|
2778
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2779
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2780
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2781
|
-
...(input.repositoryName !== undefined &&
|
|
2782
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2783
|
-
};
|
|
2784
|
-
};
|
|
2785
|
-
|
|
2786
|
-
const serializeAws_json1_1DescribeImageTagsRequest = (
|
|
2787
|
-
input: DescribeImageTagsRequest,
|
|
2788
|
-
context: __SerdeContext
|
|
2789
|
-
): any => {
|
|
2790
|
-
return {
|
|
2791
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2792
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2793
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2794
|
-
...(input.repositoryName !== undefined &&
|
|
2795
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2796
|
-
};
|
|
2797
|
-
};
|
|
2798
|
-
|
|
2799
|
-
const serializeAws_json1_1DescribeRegistriesRequest = (
|
|
2800
|
-
input: DescribeRegistriesRequest,
|
|
2801
|
-
context: __SerdeContext
|
|
2802
|
-
): any => {
|
|
2803
|
-
return {
|
|
2804
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2805
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2806
|
-
};
|
|
2807
|
-
};
|
|
2808
|
-
|
|
2809
|
-
const serializeAws_json1_1DescribeRepositoriesRequest = (
|
|
2810
|
-
input: DescribeRepositoriesRequest,
|
|
2811
|
-
context: __SerdeContext
|
|
2812
|
-
): any => {
|
|
2813
|
-
return {
|
|
2814
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
2815
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
2816
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2817
|
-
...(input.repositoryNames !== undefined &&
|
|
2818
|
-
input.repositoryNames !== null && {
|
|
2819
|
-
repositoryNames: serializeAws_json1_1RepositoryNameList(input.repositoryNames, context),
|
|
2820
|
-
}),
|
|
2821
|
-
};
|
|
2822
|
-
};
|
|
2823
|
-
|
|
2824
|
-
const serializeAws_json1_1GetAuthorizationTokenRequest = (
|
|
2825
|
-
input: GetAuthorizationTokenRequest,
|
|
2826
|
-
context: __SerdeContext
|
|
2827
|
-
): any => {
|
|
2828
|
-
return {};
|
|
2829
|
-
};
|
|
2830
|
-
|
|
2831
|
-
const serializeAws_json1_1GetRegistryCatalogDataRequest = (
|
|
2832
|
-
input: GetRegistryCatalogDataRequest,
|
|
2833
|
-
context: __SerdeContext
|
|
2834
|
-
): any => {
|
|
2835
|
-
return {};
|
|
2836
|
-
};
|
|
2837
|
-
|
|
2838
|
-
const serializeAws_json1_1GetRepositoryCatalogDataRequest = (
|
|
2839
|
-
input: GetRepositoryCatalogDataRequest,
|
|
2840
|
-
context: __SerdeContext
|
|
2841
|
-
): any => {
|
|
2842
|
-
return {
|
|
2843
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2844
|
-
...(input.repositoryName !== undefined &&
|
|
2845
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2846
|
-
};
|
|
2847
|
-
};
|
|
2848
|
-
|
|
2849
|
-
const serializeAws_json1_1GetRepositoryPolicyRequest = (
|
|
2850
|
-
input: GetRepositoryPolicyRequest,
|
|
2851
|
-
context: __SerdeContext
|
|
2852
|
-
): any => {
|
|
2853
|
-
return {
|
|
2854
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2855
|
-
...(input.repositoryName !== undefined &&
|
|
2856
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2857
|
-
};
|
|
2858
|
-
};
|
|
2859
|
-
|
|
2860
|
-
const serializeAws_json1_1ImageIdentifier = (input: ImageIdentifier, context: __SerdeContext): any => {
|
|
2861
|
-
return {
|
|
2862
|
-
...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }),
|
|
2863
|
-
...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }),
|
|
2864
|
-
};
|
|
2865
|
-
};
|
|
2866
|
-
|
|
2867
|
-
const serializeAws_json1_1ImageIdentifierList = (input: ImageIdentifier[], context: __SerdeContext): any => {
|
|
2868
|
-
return input
|
|
2869
|
-
.filter((e: any) => e != null)
|
|
2870
|
-
.map((entry) => {
|
|
2871
|
-
if (entry === null) {
|
|
2872
|
-
return null as any;
|
|
2873
|
-
}
|
|
2874
|
-
return serializeAws_json1_1ImageIdentifier(entry, context);
|
|
2875
|
-
});
|
|
2876
|
-
};
|
|
2877
|
-
|
|
2878
|
-
const serializeAws_json1_1InitiateLayerUploadRequest = (
|
|
2879
|
-
input: InitiateLayerUploadRequest,
|
|
2880
|
-
context: __SerdeContext
|
|
2881
|
-
): any => {
|
|
2882
|
-
return {
|
|
2883
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2884
|
-
...(input.repositoryName !== undefined &&
|
|
2885
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2886
|
-
};
|
|
2887
|
-
};
|
|
2888
|
-
|
|
2889
|
-
const serializeAws_json1_1LayerDigestList = (input: string[], context: __SerdeContext): any => {
|
|
2890
|
-
return input
|
|
2891
|
-
.filter((e: any) => e != null)
|
|
2892
|
-
.map((entry) => {
|
|
2893
|
-
if (entry === null) {
|
|
2894
|
-
return null as any;
|
|
2895
|
-
}
|
|
2896
|
-
return entry;
|
|
2897
|
-
});
|
|
2898
|
-
};
|
|
2899
|
-
|
|
2900
|
-
const serializeAws_json1_1ListTagsForResourceRequest = (
|
|
2901
|
-
input: ListTagsForResourceRequest,
|
|
2902
|
-
context: __SerdeContext
|
|
2903
|
-
): any => {
|
|
2904
|
-
return {
|
|
2905
|
-
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
2906
|
-
};
|
|
2907
|
-
};
|
|
2908
|
-
|
|
2909
|
-
const serializeAws_json1_1OperatingSystemList = (input: string[], context: __SerdeContext): any => {
|
|
2910
|
-
return input
|
|
2911
|
-
.filter((e: any) => e != null)
|
|
2912
|
-
.map((entry) => {
|
|
2913
|
-
if (entry === null) {
|
|
2914
|
-
return null as any;
|
|
2915
|
-
}
|
|
2916
|
-
return entry;
|
|
2917
|
-
});
|
|
2918
|
-
};
|
|
2919
|
-
|
|
2920
|
-
const serializeAws_json1_1PutImageRequest = (input: PutImageRequest, context: __SerdeContext): any => {
|
|
2921
|
-
return {
|
|
2922
|
-
...(input.imageDigest !== undefined && input.imageDigest !== null && { imageDigest: input.imageDigest }),
|
|
2923
|
-
...(input.imageManifest !== undefined && input.imageManifest !== null && { imageManifest: input.imageManifest }),
|
|
2924
|
-
...(input.imageManifestMediaType !== undefined &&
|
|
2925
|
-
input.imageManifestMediaType !== null && { imageManifestMediaType: input.imageManifestMediaType }),
|
|
2926
|
-
...(input.imageTag !== undefined && input.imageTag !== null && { imageTag: input.imageTag }),
|
|
2927
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2928
|
-
...(input.repositoryName !== undefined &&
|
|
2929
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2930
|
-
};
|
|
2931
|
-
};
|
|
2932
|
-
|
|
2933
|
-
const serializeAws_json1_1PutRegistryCatalogDataRequest = (
|
|
2934
|
-
input: PutRegistryCatalogDataRequest,
|
|
2935
|
-
context: __SerdeContext
|
|
2936
|
-
): any => {
|
|
2937
|
-
return {
|
|
2938
|
-
...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
|
|
2939
|
-
};
|
|
2940
|
-
};
|
|
2941
|
-
|
|
2942
|
-
const serializeAws_json1_1PutRepositoryCatalogDataRequest = (
|
|
2943
|
-
input: PutRepositoryCatalogDataRequest,
|
|
2944
|
-
context: __SerdeContext
|
|
2945
|
-
): any => {
|
|
2946
|
-
return {
|
|
2947
|
-
...(input.catalogData !== undefined &&
|
|
2948
|
-
input.catalogData !== null && {
|
|
2949
|
-
catalogData: serializeAws_json1_1RepositoryCatalogDataInput(input.catalogData, context),
|
|
2950
|
-
}),
|
|
2951
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2952
|
-
...(input.repositoryName !== undefined &&
|
|
2953
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2954
|
-
};
|
|
2955
|
-
};
|
|
2956
|
-
|
|
2957
|
-
const serializeAws_json1_1RepositoryCatalogDataInput = (
|
|
2958
|
-
input: RepositoryCatalogDataInput,
|
|
2959
|
-
context: __SerdeContext
|
|
2960
|
-
): any => {
|
|
2961
|
-
return {
|
|
2962
|
-
...(input.aboutText !== undefined && input.aboutText !== null && { aboutText: input.aboutText }),
|
|
2963
|
-
...(input.architectures !== undefined &&
|
|
2964
|
-
input.architectures !== null && {
|
|
2965
|
-
architectures: serializeAws_json1_1ArchitectureList(input.architectures, context),
|
|
2966
|
-
}),
|
|
2967
|
-
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
2968
|
-
...(input.logoImageBlob !== undefined &&
|
|
2969
|
-
input.logoImageBlob !== null && { logoImageBlob: context.base64Encoder(input.logoImageBlob) }),
|
|
2970
|
-
...(input.operatingSystems !== undefined &&
|
|
2971
|
-
input.operatingSystems !== null && {
|
|
2972
|
-
operatingSystems: serializeAws_json1_1OperatingSystemList(input.operatingSystems, context),
|
|
2973
|
-
}),
|
|
2974
|
-
...(input.usageText !== undefined && input.usageText !== null && { usageText: input.usageText }),
|
|
2975
|
-
};
|
|
2976
|
-
};
|
|
2977
|
-
|
|
2978
|
-
const serializeAws_json1_1RepositoryNameList = (input: string[], context: __SerdeContext): any => {
|
|
2979
|
-
return input
|
|
2980
|
-
.filter((e: any) => e != null)
|
|
2981
|
-
.map((entry) => {
|
|
2982
|
-
if (entry === null) {
|
|
2983
|
-
return null as any;
|
|
2984
|
-
}
|
|
2985
|
-
return entry;
|
|
2986
|
-
});
|
|
2987
|
-
};
|
|
2988
|
-
|
|
2989
|
-
const serializeAws_json1_1SetRepositoryPolicyRequest = (
|
|
2990
|
-
input: SetRepositoryPolicyRequest,
|
|
2991
|
-
context: __SerdeContext
|
|
2992
|
-
): any => {
|
|
2993
|
-
return {
|
|
2994
|
-
...(input.force !== undefined && input.force !== null && { force: input.force }),
|
|
2995
|
-
...(input.policyText !== undefined && input.policyText !== null && { policyText: input.policyText }),
|
|
2996
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
2997
|
-
...(input.repositoryName !== undefined &&
|
|
2998
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
2999
|
-
};
|
|
3000
|
-
};
|
|
3001
|
-
|
|
3002
|
-
const serializeAws_json1_1Tag = (input: Tag, context: __SerdeContext): any => {
|
|
3003
|
-
return {
|
|
3004
|
-
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
3005
|
-
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
3006
|
-
};
|
|
3007
|
-
};
|
|
3008
|
-
|
|
3009
|
-
const serializeAws_json1_1TagKeyList = (input: string[], context: __SerdeContext): any => {
|
|
3010
|
-
return input
|
|
3011
|
-
.filter((e: any) => e != null)
|
|
3012
|
-
.map((entry) => {
|
|
3013
|
-
if (entry === null) {
|
|
3014
|
-
return null as any;
|
|
3015
|
-
}
|
|
3016
|
-
return entry;
|
|
3017
|
-
});
|
|
3018
|
-
};
|
|
3019
|
-
|
|
3020
|
-
const serializeAws_json1_1TagList = (input: Tag[], context: __SerdeContext): any => {
|
|
3021
|
-
return input
|
|
3022
|
-
.filter((e: any) => e != null)
|
|
3023
|
-
.map((entry) => {
|
|
3024
|
-
if (entry === null) {
|
|
3025
|
-
return null as any;
|
|
3026
|
-
}
|
|
3027
|
-
return serializeAws_json1_1Tag(entry, context);
|
|
3028
|
-
});
|
|
3029
|
-
};
|
|
3030
|
-
|
|
3031
|
-
const serializeAws_json1_1TagResourceRequest = (input: TagResourceRequest, context: __SerdeContext): any => {
|
|
3032
|
-
return {
|
|
3033
|
-
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
3034
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
3035
|
-
};
|
|
3036
|
-
};
|
|
3037
|
-
|
|
3038
|
-
const serializeAws_json1_1UntagResourceRequest = (input: UntagResourceRequest, context: __SerdeContext): any => {
|
|
3039
|
-
return {
|
|
3040
|
-
...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
|
|
3041
|
-
...(input.tagKeys !== undefined &&
|
|
3042
|
-
input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
|
|
3043
|
-
};
|
|
3044
|
-
};
|
|
3045
|
-
|
|
3046
|
-
const serializeAws_json1_1UploadLayerPartRequest = (input: UploadLayerPartRequest, context: __SerdeContext): any => {
|
|
3047
|
-
return {
|
|
3048
|
-
...(input.layerPartBlob !== undefined &&
|
|
3049
|
-
input.layerPartBlob !== null && { layerPartBlob: context.base64Encoder(input.layerPartBlob) }),
|
|
3050
|
-
...(input.partFirstByte !== undefined && input.partFirstByte !== null && { partFirstByte: input.partFirstByte }),
|
|
3051
|
-
...(input.partLastByte !== undefined && input.partLastByte !== null && { partLastByte: input.partLastByte }),
|
|
3052
|
-
...(input.registryId !== undefined && input.registryId !== null && { registryId: input.registryId }),
|
|
3053
|
-
...(input.repositoryName !== undefined &&
|
|
3054
|
-
input.repositoryName !== null && { repositoryName: input.repositoryName }),
|
|
3055
|
-
...(input.uploadId !== undefined && input.uploadId !== null && { uploadId: input.uploadId }),
|
|
3056
|
-
};
|
|
3057
|
-
};
|
|
3058
|
-
|
|
3059
|
-
const deserializeAws_json1_1ArchitectureList = (output: any, context: __SerdeContext): string[] => {
|
|
3060
|
-
return (output || [])
|
|
3061
|
-
.filter((e: any) => e != null)
|
|
3062
|
-
.map((entry: any) => {
|
|
3063
|
-
if (entry === null) {
|
|
3064
|
-
return null as any;
|
|
3065
|
-
}
|
|
3066
|
-
return __expectString(entry) as any;
|
|
3067
|
-
});
|
|
3068
|
-
};
|
|
3069
|
-
|
|
3070
|
-
const deserializeAws_json1_1AuthorizationData = (output: any, context: __SerdeContext): AuthorizationData => {
|
|
3071
|
-
return {
|
|
3072
|
-
authorizationToken: __expectString(output.authorizationToken),
|
|
3073
|
-
expiresAt:
|
|
3074
|
-
output.expiresAt !== undefined && output.expiresAt !== null
|
|
3075
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.expiresAt)))
|
|
3076
|
-
: undefined,
|
|
3077
|
-
} as any;
|
|
3078
|
-
};
|
|
3079
|
-
|
|
3080
|
-
const deserializeAws_json1_1BatchCheckLayerAvailabilityResponse = (
|
|
3081
|
-
output: any,
|
|
3082
|
-
context: __SerdeContext
|
|
3083
|
-
): BatchCheckLayerAvailabilityResponse => {
|
|
3084
|
-
return {
|
|
3085
|
-
failures:
|
|
3086
|
-
output.failures !== undefined && output.failures !== null
|
|
3087
|
-
? deserializeAws_json1_1LayerFailureList(output.failures, context)
|
|
3088
|
-
: undefined,
|
|
3089
|
-
layers:
|
|
3090
|
-
output.layers !== undefined && output.layers !== null
|
|
3091
|
-
? deserializeAws_json1_1LayerList(output.layers, context)
|
|
3092
|
-
: undefined,
|
|
3093
|
-
} as any;
|
|
3094
|
-
};
|
|
3095
|
-
|
|
3096
|
-
const deserializeAws_json1_1BatchDeleteImageResponse = (
|
|
3097
|
-
output: any,
|
|
3098
|
-
context: __SerdeContext
|
|
3099
|
-
): BatchDeleteImageResponse => {
|
|
3100
|
-
return {
|
|
3101
|
-
failures:
|
|
3102
|
-
output.failures !== undefined && output.failures !== null
|
|
3103
|
-
? deserializeAws_json1_1ImageFailureList(output.failures, context)
|
|
3104
|
-
: undefined,
|
|
3105
|
-
imageIds:
|
|
3106
|
-
output.imageIds !== undefined && output.imageIds !== null
|
|
3107
|
-
? deserializeAws_json1_1ImageIdentifierList(output.imageIds, context)
|
|
3108
|
-
: undefined,
|
|
3109
|
-
} as any;
|
|
3110
|
-
};
|
|
3111
|
-
|
|
3112
|
-
const deserializeAws_json1_1CompleteLayerUploadResponse = (
|
|
3113
|
-
output: any,
|
|
3114
|
-
context: __SerdeContext
|
|
3115
|
-
): CompleteLayerUploadResponse => {
|
|
3116
|
-
return {
|
|
3117
|
-
layerDigest: __expectString(output.layerDigest),
|
|
3118
|
-
registryId: __expectString(output.registryId),
|
|
3119
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3120
|
-
uploadId: __expectString(output.uploadId),
|
|
3121
|
-
} as any;
|
|
3122
|
-
};
|
|
3123
|
-
|
|
3124
|
-
const deserializeAws_json1_1CreateRepositoryResponse = (
|
|
3125
|
-
output: any,
|
|
3126
|
-
context: __SerdeContext
|
|
3127
|
-
): CreateRepositoryResponse => {
|
|
3128
|
-
return {
|
|
3129
|
-
catalogData:
|
|
3130
|
-
output.catalogData !== undefined && output.catalogData !== null
|
|
3131
|
-
? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
|
|
3132
|
-
: undefined,
|
|
3133
|
-
repository:
|
|
3134
|
-
output.repository !== undefined && output.repository !== null
|
|
3135
|
-
? deserializeAws_json1_1Repository(output.repository, context)
|
|
3136
|
-
: undefined,
|
|
3137
|
-
} as any;
|
|
3138
|
-
};
|
|
3139
|
-
|
|
3140
|
-
const deserializeAws_json1_1DeleteRepositoryPolicyResponse = (
|
|
3141
|
-
output: any,
|
|
3142
|
-
context: __SerdeContext
|
|
3143
|
-
): DeleteRepositoryPolicyResponse => {
|
|
3144
|
-
return {
|
|
3145
|
-
policyText: __expectString(output.policyText),
|
|
3146
|
-
registryId: __expectString(output.registryId),
|
|
3147
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3148
|
-
} as any;
|
|
3149
|
-
};
|
|
3150
|
-
|
|
3151
|
-
const deserializeAws_json1_1DeleteRepositoryResponse = (
|
|
3152
|
-
output: any,
|
|
3153
|
-
context: __SerdeContext
|
|
3154
|
-
): DeleteRepositoryResponse => {
|
|
3155
|
-
return {
|
|
3156
|
-
repository:
|
|
3157
|
-
output.repository !== undefined && output.repository !== null
|
|
3158
|
-
? deserializeAws_json1_1Repository(output.repository, context)
|
|
3159
|
-
: undefined,
|
|
3160
|
-
} as any;
|
|
3161
|
-
};
|
|
3162
|
-
|
|
3163
|
-
const deserializeAws_json1_1DescribeImagesResponse = (output: any, context: __SerdeContext): DescribeImagesResponse => {
|
|
3164
|
-
return {
|
|
3165
|
-
imageDetails:
|
|
3166
|
-
output.imageDetails !== undefined && output.imageDetails !== null
|
|
3167
|
-
? deserializeAws_json1_1ImageDetailList(output.imageDetails, context)
|
|
3168
|
-
: undefined,
|
|
3169
|
-
nextToken: __expectString(output.nextToken),
|
|
3170
|
-
} as any;
|
|
3171
|
-
};
|
|
3172
|
-
|
|
3173
|
-
const deserializeAws_json1_1DescribeImageTagsResponse = (
|
|
3174
|
-
output: any,
|
|
3175
|
-
context: __SerdeContext
|
|
3176
|
-
): DescribeImageTagsResponse => {
|
|
3177
|
-
return {
|
|
3178
|
-
imageTagDetails:
|
|
3179
|
-
output.imageTagDetails !== undefined && output.imageTagDetails !== null
|
|
3180
|
-
? deserializeAws_json1_1ImageTagDetailList(output.imageTagDetails, context)
|
|
3181
|
-
: undefined,
|
|
3182
|
-
nextToken: __expectString(output.nextToken),
|
|
3183
|
-
} as any;
|
|
3184
|
-
};
|
|
3185
|
-
|
|
3186
|
-
const deserializeAws_json1_1DescribeRegistriesResponse = (
|
|
3187
|
-
output: any,
|
|
3188
|
-
context: __SerdeContext
|
|
3189
|
-
): DescribeRegistriesResponse => {
|
|
3190
|
-
return {
|
|
3191
|
-
nextToken: __expectString(output.nextToken),
|
|
3192
|
-
registries:
|
|
3193
|
-
output.registries !== undefined && output.registries !== null
|
|
3194
|
-
? deserializeAws_json1_1RegistryList(output.registries, context)
|
|
3195
|
-
: undefined,
|
|
3196
|
-
} as any;
|
|
3197
|
-
};
|
|
3198
|
-
|
|
3199
|
-
const deserializeAws_json1_1DescribeRepositoriesResponse = (
|
|
3200
|
-
output: any,
|
|
3201
|
-
context: __SerdeContext
|
|
3202
|
-
): DescribeRepositoriesResponse => {
|
|
3203
|
-
return {
|
|
3204
|
-
nextToken: __expectString(output.nextToken),
|
|
3205
|
-
repositories:
|
|
3206
|
-
output.repositories !== undefined && output.repositories !== null
|
|
3207
|
-
? deserializeAws_json1_1RepositoryList(output.repositories, context)
|
|
3208
|
-
: undefined,
|
|
3209
|
-
} as any;
|
|
3210
|
-
};
|
|
3211
|
-
|
|
3212
|
-
const deserializeAws_json1_1EmptyUploadException = (output: any, context: __SerdeContext): EmptyUploadException => {
|
|
3213
|
-
return {
|
|
3214
|
-
message: __expectString(output.message),
|
|
3215
|
-
} as any;
|
|
3216
|
-
};
|
|
3217
|
-
|
|
3218
|
-
const deserializeAws_json1_1GetAuthorizationTokenResponse = (
|
|
3219
|
-
output: any,
|
|
3220
|
-
context: __SerdeContext
|
|
3221
|
-
): GetAuthorizationTokenResponse => {
|
|
3222
|
-
return {
|
|
3223
|
-
authorizationData:
|
|
3224
|
-
output.authorizationData !== undefined && output.authorizationData !== null
|
|
3225
|
-
? deserializeAws_json1_1AuthorizationData(output.authorizationData, context)
|
|
3226
|
-
: undefined,
|
|
3227
|
-
} as any;
|
|
3228
|
-
};
|
|
3229
|
-
|
|
3230
|
-
const deserializeAws_json1_1GetRegistryCatalogDataResponse = (
|
|
3231
|
-
output: any,
|
|
3232
|
-
context: __SerdeContext
|
|
3233
|
-
): GetRegistryCatalogDataResponse => {
|
|
3234
|
-
return {
|
|
3235
|
-
registryCatalogData:
|
|
3236
|
-
output.registryCatalogData !== undefined && output.registryCatalogData !== null
|
|
3237
|
-
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
3238
|
-
: undefined,
|
|
3239
|
-
} as any;
|
|
3240
|
-
};
|
|
3241
|
-
|
|
3242
|
-
const deserializeAws_json1_1GetRepositoryCatalogDataResponse = (
|
|
3243
|
-
output: any,
|
|
3244
|
-
context: __SerdeContext
|
|
3245
|
-
): GetRepositoryCatalogDataResponse => {
|
|
3246
|
-
return {
|
|
3247
|
-
catalogData:
|
|
3248
|
-
output.catalogData !== undefined && output.catalogData !== null
|
|
3249
|
-
? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
|
|
3250
|
-
: undefined,
|
|
3251
|
-
} as any;
|
|
3252
|
-
};
|
|
3253
|
-
|
|
3254
|
-
const deserializeAws_json1_1GetRepositoryPolicyResponse = (
|
|
3255
|
-
output: any,
|
|
3256
|
-
context: __SerdeContext
|
|
3257
|
-
): GetRepositoryPolicyResponse => {
|
|
3258
|
-
return {
|
|
3259
|
-
policyText: __expectString(output.policyText),
|
|
3260
|
-
registryId: __expectString(output.registryId),
|
|
3261
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3262
|
-
} as any;
|
|
3263
|
-
};
|
|
3264
|
-
|
|
3265
|
-
const deserializeAws_json1_1Image = (output: any, context: __SerdeContext): Image => {
|
|
3266
|
-
return {
|
|
3267
|
-
imageId:
|
|
3268
|
-
output.imageId !== undefined && output.imageId !== null
|
|
3269
|
-
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
3270
|
-
: undefined,
|
|
3271
|
-
imageManifest: __expectString(output.imageManifest),
|
|
3272
|
-
imageManifestMediaType: __expectString(output.imageManifestMediaType),
|
|
3273
|
-
registryId: __expectString(output.registryId),
|
|
3274
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3275
|
-
} as any;
|
|
3276
|
-
};
|
|
3277
|
-
|
|
3278
|
-
const deserializeAws_json1_1ImageAlreadyExistsException = (
|
|
3279
|
-
output: any,
|
|
3280
|
-
context: __SerdeContext
|
|
3281
|
-
): ImageAlreadyExistsException => {
|
|
3282
|
-
return {
|
|
3283
|
-
message: __expectString(output.message),
|
|
3284
|
-
} as any;
|
|
3285
|
-
};
|
|
3286
|
-
|
|
3287
|
-
const deserializeAws_json1_1ImageDetail = (output: any, context: __SerdeContext): ImageDetail => {
|
|
3288
|
-
return {
|
|
3289
|
-
artifactMediaType: __expectString(output.artifactMediaType),
|
|
3290
|
-
imageDigest: __expectString(output.imageDigest),
|
|
3291
|
-
imageManifestMediaType: __expectString(output.imageManifestMediaType),
|
|
3292
|
-
imagePushedAt:
|
|
3293
|
-
output.imagePushedAt !== undefined && output.imagePushedAt !== null
|
|
3294
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
|
|
3295
|
-
: undefined,
|
|
3296
|
-
imageSizeInBytes: __expectLong(output.imageSizeInBytes),
|
|
3297
|
-
imageTags:
|
|
3298
|
-
output.imageTags !== undefined && output.imageTags !== null
|
|
3299
|
-
? deserializeAws_json1_1ImageTagList(output.imageTags, context)
|
|
3300
|
-
: undefined,
|
|
3301
|
-
registryId: __expectString(output.registryId),
|
|
3302
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3303
|
-
} as any;
|
|
3304
|
-
};
|
|
3305
|
-
|
|
3306
|
-
const deserializeAws_json1_1ImageDetailList = (output: any, context: __SerdeContext): ImageDetail[] => {
|
|
3307
|
-
return (output || [])
|
|
3308
|
-
.filter((e: any) => e != null)
|
|
3309
|
-
.map((entry: any) => {
|
|
3310
|
-
if (entry === null) {
|
|
3311
|
-
return null as any;
|
|
3312
|
-
}
|
|
3313
|
-
return deserializeAws_json1_1ImageDetail(entry, context);
|
|
3314
|
-
});
|
|
3315
|
-
};
|
|
3316
|
-
|
|
3317
|
-
const deserializeAws_json1_1ImageDigestDoesNotMatchException = (
|
|
3318
|
-
output: any,
|
|
3319
|
-
context: __SerdeContext
|
|
3320
|
-
): ImageDigestDoesNotMatchException => {
|
|
3321
|
-
return {
|
|
3322
|
-
message: __expectString(output.message),
|
|
3323
|
-
} as any;
|
|
3324
|
-
};
|
|
3325
|
-
|
|
3326
|
-
const deserializeAws_json1_1ImageFailure = (output: any, context: __SerdeContext): ImageFailure => {
|
|
3327
|
-
return {
|
|
3328
|
-
failureCode: __expectString(output.failureCode),
|
|
3329
|
-
failureReason: __expectString(output.failureReason),
|
|
3330
|
-
imageId:
|
|
3331
|
-
output.imageId !== undefined && output.imageId !== null
|
|
3332
|
-
? deserializeAws_json1_1ImageIdentifier(output.imageId, context)
|
|
3333
|
-
: undefined,
|
|
3334
|
-
} as any;
|
|
3335
|
-
};
|
|
3336
|
-
|
|
3337
|
-
const deserializeAws_json1_1ImageFailureList = (output: any, context: __SerdeContext): ImageFailure[] => {
|
|
3338
|
-
return (output || [])
|
|
3339
|
-
.filter((e: any) => e != null)
|
|
3340
|
-
.map((entry: any) => {
|
|
3341
|
-
if (entry === null) {
|
|
3342
|
-
return null as any;
|
|
3343
|
-
}
|
|
3344
|
-
return deserializeAws_json1_1ImageFailure(entry, context);
|
|
3345
|
-
});
|
|
3346
|
-
};
|
|
3347
|
-
|
|
3348
|
-
const deserializeAws_json1_1ImageIdentifier = (output: any, context: __SerdeContext): ImageIdentifier => {
|
|
3349
|
-
return {
|
|
3350
|
-
imageDigest: __expectString(output.imageDigest),
|
|
3351
|
-
imageTag: __expectString(output.imageTag),
|
|
3352
|
-
} as any;
|
|
3353
|
-
};
|
|
3354
|
-
|
|
3355
|
-
const deserializeAws_json1_1ImageIdentifierList = (output: any, context: __SerdeContext): ImageIdentifier[] => {
|
|
3356
|
-
return (output || [])
|
|
3357
|
-
.filter((e: any) => e != null)
|
|
3358
|
-
.map((entry: any) => {
|
|
3359
|
-
if (entry === null) {
|
|
3360
|
-
return null as any;
|
|
3361
|
-
}
|
|
3362
|
-
return deserializeAws_json1_1ImageIdentifier(entry, context);
|
|
3363
|
-
});
|
|
3364
|
-
};
|
|
3365
|
-
|
|
3366
|
-
const deserializeAws_json1_1ImageNotFoundException = (output: any, context: __SerdeContext): ImageNotFoundException => {
|
|
3367
|
-
return {
|
|
3368
|
-
message: __expectString(output.message),
|
|
3369
|
-
} as any;
|
|
3370
|
-
};
|
|
3371
|
-
|
|
3372
|
-
const deserializeAws_json1_1ImageTagAlreadyExistsException = (
|
|
3373
|
-
output: any,
|
|
3374
|
-
context: __SerdeContext
|
|
3375
|
-
): ImageTagAlreadyExistsException => {
|
|
3376
|
-
return {
|
|
3377
|
-
message: __expectString(output.message),
|
|
3378
|
-
} as any;
|
|
3379
|
-
};
|
|
3380
|
-
|
|
3381
|
-
const deserializeAws_json1_1ImageTagDetail = (output: any, context: __SerdeContext): ImageTagDetail => {
|
|
3382
|
-
return {
|
|
3383
|
-
createdAt:
|
|
3384
|
-
output.createdAt !== undefined && output.createdAt !== null
|
|
3385
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
3386
|
-
: undefined,
|
|
3387
|
-
imageDetail:
|
|
3388
|
-
output.imageDetail !== undefined && output.imageDetail !== null
|
|
3389
|
-
? deserializeAws_json1_1ReferencedImageDetail(output.imageDetail, context)
|
|
3390
|
-
: undefined,
|
|
3391
|
-
imageTag: __expectString(output.imageTag),
|
|
3392
|
-
} as any;
|
|
3393
|
-
};
|
|
3394
|
-
|
|
3395
|
-
const deserializeAws_json1_1ImageTagDetailList = (output: any, context: __SerdeContext): ImageTagDetail[] => {
|
|
3396
|
-
return (output || [])
|
|
3397
|
-
.filter((e: any) => e != null)
|
|
3398
|
-
.map((entry: any) => {
|
|
3399
|
-
if (entry === null) {
|
|
3400
|
-
return null as any;
|
|
3401
|
-
}
|
|
3402
|
-
return deserializeAws_json1_1ImageTagDetail(entry, context);
|
|
3403
|
-
});
|
|
3404
|
-
};
|
|
3405
|
-
|
|
3406
|
-
const deserializeAws_json1_1ImageTagList = (output: any, context: __SerdeContext): string[] => {
|
|
3407
|
-
return (output || [])
|
|
3408
|
-
.filter((e: any) => e != null)
|
|
3409
|
-
.map((entry: any) => {
|
|
3410
|
-
if (entry === null) {
|
|
3411
|
-
return null as any;
|
|
3412
|
-
}
|
|
3413
|
-
return __expectString(entry) as any;
|
|
3414
|
-
});
|
|
3415
|
-
};
|
|
3416
|
-
|
|
3417
|
-
const deserializeAws_json1_1InitiateLayerUploadResponse = (
|
|
3418
|
-
output: any,
|
|
3419
|
-
context: __SerdeContext
|
|
3420
|
-
): InitiateLayerUploadResponse => {
|
|
3421
|
-
return {
|
|
3422
|
-
partSize: __expectLong(output.partSize),
|
|
3423
|
-
uploadId: __expectString(output.uploadId),
|
|
3424
|
-
} as any;
|
|
3425
|
-
};
|
|
3426
|
-
|
|
3427
|
-
const deserializeAws_json1_1InvalidLayerException = (output: any, context: __SerdeContext): InvalidLayerException => {
|
|
3428
|
-
return {
|
|
3429
|
-
message: __expectString(output.message),
|
|
3430
|
-
} as any;
|
|
3431
|
-
};
|
|
3432
|
-
|
|
3433
|
-
const deserializeAws_json1_1InvalidLayerPartException = (
|
|
3434
|
-
output: any,
|
|
3435
|
-
context: __SerdeContext
|
|
3436
|
-
): InvalidLayerPartException => {
|
|
3437
|
-
return {
|
|
3438
|
-
lastValidByteReceived: __expectLong(output.lastValidByteReceived),
|
|
3439
|
-
message: __expectString(output.message),
|
|
3440
|
-
registryId: __expectString(output.registryId),
|
|
3441
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3442
|
-
uploadId: __expectString(output.uploadId),
|
|
3443
|
-
} as any;
|
|
3444
|
-
};
|
|
3445
|
-
|
|
3446
|
-
const deserializeAws_json1_1InvalidParameterException = (
|
|
3447
|
-
output: any,
|
|
3448
|
-
context: __SerdeContext
|
|
3449
|
-
): InvalidParameterException => {
|
|
3450
|
-
return {
|
|
3451
|
-
message: __expectString(output.message),
|
|
3452
|
-
} as any;
|
|
3453
|
-
};
|
|
3454
|
-
|
|
3455
|
-
const deserializeAws_json1_1InvalidTagParameterException = (
|
|
3456
|
-
output: any,
|
|
3457
|
-
context: __SerdeContext
|
|
3458
|
-
): InvalidTagParameterException => {
|
|
3459
|
-
return {
|
|
3460
|
-
message: __expectString(output.message),
|
|
3461
|
-
} as any;
|
|
3462
|
-
};
|
|
3463
|
-
|
|
3464
|
-
const deserializeAws_json1_1Layer = (output: any, context: __SerdeContext): Layer => {
|
|
3465
|
-
return {
|
|
3466
|
-
layerAvailability: __expectString(output.layerAvailability),
|
|
3467
|
-
layerDigest: __expectString(output.layerDigest),
|
|
3468
|
-
layerSize: __expectLong(output.layerSize),
|
|
3469
|
-
mediaType: __expectString(output.mediaType),
|
|
3470
|
-
} as any;
|
|
3471
|
-
};
|
|
3472
|
-
|
|
3473
|
-
const deserializeAws_json1_1LayerAlreadyExistsException = (
|
|
3474
|
-
output: any,
|
|
3475
|
-
context: __SerdeContext
|
|
3476
|
-
): LayerAlreadyExistsException => {
|
|
3477
|
-
return {
|
|
3478
|
-
message: __expectString(output.message),
|
|
3479
|
-
} as any;
|
|
3480
|
-
};
|
|
3481
|
-
|
|
3482
|
-
const deserializeAws_json1_1LayerFailure = (output: any, context: __SerdeContext): LayerFailure => {
|
|
3483
|
-
return {
|
|
3484
|
-
failureCode: __expectString(output.failureCode),
|
|
3485
|
-
failureReason: __expectString(output.failureReason),
|
|
3486
|
-
layerDigest: __expectString(output.layerDigest),
|
|
3487
|
-
} as any;
|
|
3488
|
-
};
|
|
3489
|
-
|
|
3490
|
-
const deserializeAws_json1_1LayerFailureList = (output: any, context: __SerdeContext): LayerFailure[] => {
|
|
3491
|
-
return (output || [])
|
|
3492
|
-
.filter((e: any) => e != null)
|
|
3493
|
-
.map((entry: any) => {
|
|
3494
|
-
if (entry === null) {
|
|
3495
|
-
return null as any;
|
|
3496
|
-
}
|
|
3497
|
-
return deserializeAws_json1_1LayerFailure(entry, context);
|
|
3498
|
-
});
|
|
3499
|
-
};
|
|
3500
|
-
|
|
3501
|
-
const deserializeAws_json1_1LayerList = (output: any, context: __SerdeContext): Layer[] => {
|
|
3502
|
-
return (output || [])
|
|
3503
|
-
.filter((e: any) => e != null)
|
|
3504
|
-
.map((entry: any) => {
|
|
3505
|
-
if (entry === null) {
|
|
3506
|
-
return null as any;
|
|
3507
|
-
}
|
|
3508
|
-
return deserializeAws_json1_1Layer(entry, context);
|
|
3509
|
-
});
|
|
3510
|
-
};
|
|
3511
|
-
|
|
3512
|
-
const deserializeAws_json1_1LayerPartTooSmallException = (
|
|
3513
|
-
output: any,
|
|
3514
|
-
context: __SerdeContext
|
|
3515
|
-
): LayerPartTooSmallException => {
|
|
3516
|
-
return {
|
|
3517
|
-
message: __expectString(output.message),
|
|
3518
|
-
} as any;
|
|
3519
|
-
};
|
|
3520
|
-
|
|
3521
|
-
const deserializeAws_json1_1LayersNotFoundException = (
|
|
3522
|
-
output: any,
|
|
3523
|
-
context: __SerdeContext
|
|
3524
|
-
): LayersNotFoundException => {
|
|
3525
|
-
return {
|
|
3526
|
-
message: __expectString(output.message),
|
|
3527
|
-
} as any;
|
|
3528
|
-
};
|
|
3529
|
-
|
|
3530
|
-
const deserializeAws_json1_1LimitExceededException = (output: any, context: __SerdeContext): LimitExceededException => {
|
|
3531
|
-
return {
|
|
3532
|
-
message: __expectString(output.message),
|
|
3533
|
-
} as any;
|
|
3534
|
-
};
|
|
3535
|
-
|
|
3536
|
-
const deserializeAws_json1_1ListTagsForResourceResponse = (
|
|
3537
|
-
output: any,
|
|
3538
|
-
context: __SerdeContext
|
|
3539
|
-
): ListTagsForResourceResponse => {
|
|
3540
|
-
return {
|
|
3541
|
-
tags:
|
|
3542
|
-
output.tags !== undefined && output.tags !== null
|
|
3543
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
3544
|
-
: undefined,
|
|
3545
|
-
} as any;
|
|
3546
|
-
};
|
|
3547
|
-
|
|
3548
|
-
const deserializeAws_json1_1OperatingSystemList = (output: any, context: __SerdeContext): string[] => {
|
|
3549
|
-
return (output || [])
|
|
3550
|
-
.filter((e: any) => e != null)
|
|
3551
|
-
.map((entry: any) => {
|
|
3552
|
-
if (entry === null) {
|
|
3553
|
-
return null as any;
|
|
3554
|
-
}
|
|
3555
|
-
return __expectString(entry) as any;
|
|
3556
|
-
});
|
|
3557
|
-
};
|
|
3558
|
-
|
|
3559
|
-
const deserializeAws_json1_1PutImageResponse = (output: any, context: __SerdeContext): PutImageResponse => {
|
|
3560
|
-
return {
|
|
3561
|
-
image:
|
|
3562
|
-
output.image !== undefined && output.image !== null
|
|
3563
|
-
? deserializeAws_json1_1Image(output.image, context)
|
|
3564
|
-
: undefined,
|
|
3565
|
-
} as any;
|
|
3566
|
-
};
|
|
3567
|
-
|
|
3568
|
-
const deserializeAws_json1_1PutRegistryCatalogDataResponse = (
|
|
3569
|
-
output: any,
|
|
3570
|
-
context: __SerdeContext
|
|
3571
|
-
): PutRegistryCatalogDataResponse => {
|
|
3572
|
-
return {
|
|
3573
|
-
registryCatalogData:
|
|
3574
|
-
output.registryCatalogData !== undefined && output.registryCatalogData !== null
|
|
3575
|
-
? deserializeAws_json1_1RegistryCatalogData(output.registryCatalogData, context)
|
|
3576
|
-
: undefined,
|
|
3577
|
-
} as any;
|
|
3578
|
-
};
|
|
3579
|
-
|
|
3580
|
-
const deserializeAws_json1_1PutRepositoryCatalogDataResponse = (
|
|
3581
|
-
output: any,
|
|
3582
|
-
context: __SerdeContext
|
|
3583
|
-
): PutRepositoryCatalogDataResponse => {
|
|
3584
|
-
return {
|
|
3585
|
-
catalogData:
|
|
3586
|
-
output.catalogData !== undefined && output.catalogData !== null
|
|
3587
|
-
? deserializeAws_json1_1RepositoryCatalogData(output.catalogData, context)
|
|
3588
|
-
: undefined,
|
|
3589
|
-
} as any;
|
|
3590
|
-
};
|
|
3591
|
-
|
|
3592
|
-
const deserializeAws_json1_1ReferencedImageDetail = (output: any, context: __SerdeContext): ReferencedImageDetail => {
|
|
3593
|
-
return {
|
|
3594
|
-
artifactMediaType: __expectString(output.artifactMediaType),
|
|
3595
|
-
imageDigest: __expectString(output.imageDigest),
|
|
3596
|
-
imageManifestMediaType: __expectString(output.imageManifestMediaType),
|
|
3597
|
-
imagePushedAt:
|
|
3598
|
-
output.imagePushedAt !== undefined && output.imagePushedAt !== null
|
|
3599
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.imagePushedAt)))
|
|
3600
|
-
: undefined,
|
|
3601
|
-
imageSizeInBytes: __expectLong(output.imageSizeInBytes),
|
|
3602
|
-
} as any;
|
|
3603
|
-
};
|
|
3604
|
-
|
|
3605
|
-
const deserializeAws_json1_1ReferencedImagesNotFoundException = (
|
|
3606
|
-
output: any,
|
|
3607
|
-
context: __SerdeContext
|
|
3608
|
-
): ReferencedImagesNotFoundException => {
|
|
3609
|
-
return {
|
|
3610
|
-
message: __expectString(output.message),
|
|
3611
|
-
} as any;
|
|
3612
|
-
};
|
|
3613
|
-
|
|
3614
|
-
const deserializeAws_json1_1Registry = (output: any, context: __SerdeContext): Registry => {
|
|
3615
|
-
return {
|
|
3616
|
-
aliases:
|
|
3617
|
-
output.aliases !== undefined && output.aliases !== null
|
|
3618
|
-
? deserializeAws_json1_1RegistryAliasList(output.aliases, context)
|
|
3619
|
-
: undefined,
|
|
3620
|
-
registryArn: __expectString(output.registryArn),
|
|
3621
|
-
registryId: __expectString(output.registryId),
|
|
3622
|
-
registryUri: __expectString(output.registryUri),
|
|
3623
|
-
verified: __expectBoolean(output.verified),
|
|
3624
|
-
} as any;
|
|
3625
|
-
};
|
|
3626
|
-
|
|
3627
|
-
const deserializeAws_json1_1RegistryAlias = (output: any, context: __SerdeContext): RegistryAlias => {
|
|
3628
|
-
return {
|
|
3629
|
-
defaultRegistryAlias: __expectBoolean(output.defaultRegistryAlias),
|
|
3630
|
-
name: __expectString(output.name),
|
|
3631
|
-
primaryRegistryAlias: __expectBoolean(output.primaryRegistryAlias),
|
|
3632
|
-
status: __expectString(output.status),
|
|
3633
|
-
} as any;
|
|
3634
|
-
};
|
|
3635
|
-
|
|
3636
|
-
const deserializeAws_json1_1RegistryAliasList = (output: any, context: __SerdeContext): RegistryAlias[] => {
|
|
3637
|
-
return (output || [])
|
|
3638
|
-
.filter((e: any) => e != null)
|
|
3639
|
-
.map((entry: any) => {
|
|
3640
|
-
if (entry === null) {
|
|
3641
|
-
return null as any;
|
|
3642
|
-
}
|
|
3643
|
-
return deserializeAws_json1_1RegistryAlias(entry, context);
|
|
3644
|
-
});
|
|
3645
|
-
};
|
|
3646
|
-
|
|
3647
|
-
const deserializeAws_json1_1RegistryCatalogData = (output: any, context: __SerdeContext): RegistryCatalogData => {
|
|
3648
|
-
return {
|
|
3649
|
-
displayName: __expectString(output.displayName),
|
|
3650
|
-
} as any;
|
|
3651
|
-
};
|
|
3652
|
-
|
|
3653
|
-
const deserializeAws_json1_1RegistryList = (output: any, context: __SerdeContext): Registry[] => {
|
|
3654
|
-
return (output || [])
|
|
3655
|
-
.filter((e: any) => e != null)
|
|
3656
|
-
.map((entry: any) => {
|
|
3657
|
-
if (entry === null) {
|
|
3658
|
-
return null as any;
|
|
3659
|
-
}
|
|
3660
|
-
return deserializeAws_json1_1Registry(entry, context);
|
|
3661
|
-
});
|
|
3662
|
-
};
|
|
3663
|
-
|
|
3664
|
-
const deserializeAws_json1_1RegistryNotFoundException = (
|
|
3665
|
-
output: any,
|
|
3666
|
-
context: __SerdeContext
|
|
3667
|
-
): RegistryNotFoundException => {
|
|
3668
|
-
return {
|
|
3669
|
-
message: __expectString(output.message),
|
|
3670
|
-
} as any;
|
|
3671
|
-
};
|
|
3672
|
-
|
|
3673
|
-
const deserializeAws_json1_1Repository = (output: any, context: __SerdeContext): Repository => {
|
|
3674
|
-
return {
|
|
3675
|
-
createdAt:
|
|
3676
|
-
output.createdAt !== undefined && output.createdAt !== null
|
|
3677
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
3678
|
-
: undefined,
|
|
3679
|
-
registryId: __expectString(output.registryId),
|
|
3680
|
-
repositoryArn: __expectString(output.repositoryArn),
|
|
3681
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3682
|
-
repositoryUri: __expectString(output.repositoryUri),
|
|
3683
|
-
} as any;
|
|
3684
|
-
};
|
|
3685
|
-
|
|
3686
|
-
const deserializeAws_json1_1RepositoryAlreadyExistsException = (
|
|
3687
|
-
output: any,
|
|
3688
|
-
context: __SerdeContext
|
|
3689
|
-
): RepositoryAlreadyExistsException => {
|
|
3690
|
-
return {
|
|
3691
|
-
message: __expectString(output.message),
|
|
3692
|
-
} as any;
|
|
3693
|
-
};
|
|
3694
|
-
|
|
3695
|
-
const deserializeAws_json1_1RepositoryCatalogData = (output: any, context: __SerdeContext): RepositoryCatalogData => {
|
|
3696
|
-
return {
|
|
3697
|
-
aboutText: __expectString(output.aboutText),
|
|
3698
|
-
architectures:
|
|
3699
|
-
output.architectures !== undefined && output.architectures !== null
|
|
3700
|
-
? deserializeAws_json1_1ArchitectureList(output.architectures, context)
|
|
3701
|
-
: undefined,
|
|
3702
|
-
description: __expectString(output.description),
|
|
3703
|
-
logoUrl: __expectString(output.logoUrl),
|
|
3704
|
-
marketplaceCertified: __expectBoolean(output.marketplaceCertified),
|
|
3705
|
-
operatingSystems:
|
|
3706
|
-
output.operatingSystems !== undefined && output.operatingSystems !== null
|
|
3707
|
-
? deserializeAws_json1_1OperatingSystemList(output.operatingSystems, context)
|
|
3708
|
-
: undefined,
|
|
3709
|
-
usageText: __expectString(output.usageText),
|
|
3710
|
-
} as any;
|
|
3711
|
-
};
|
|
3712
|
-
|
|
3713
|
-
const deserializeAws_json1_1RepositoryList = (output: any, context: __SerdeContext): Repository[] => {
|
|
3714
|
-
return (output || [])
|
|
3715
|
-
.filter((e: any) => e != null)
|
|
3716
|
-
.map((entry: any) => {
|
|
3717
|
-
if (entry === null) {
|
|
3718
|
-
return null as any;
|
|
3719
|
-
}
|
|
3720
|
-
return deserializeAws_json1_1Repository(entry, context);
|
|
3721
|
-
});
|
|
3722
|
-
};
|
|
3723
|
-
|
|
3724
|
-
const deserializeAws_json1_1RepositoryNotEmptyException = (
|
|
3725
|
-
output: any,
|
|
3726
|
-
context: __SerdeContext
|
|
3727
|
-
): RepositoryNotEmptyException => {
|
|
3728
|
-
return {
|
|
3729
|
-
message: __expectString(output.message),
|
|
3730
|
-
} as any;
|
|
3731
|
-
};
|
|
3732
|
-
|
|
3733
|
-
const deserializeAws_json1_1RepositoryNotFoundException = (
|
|
3734
|
-
output: any,
|
|
3735
|
-
context: __SerdeContext
|
|
3736
|
-
): RepositoryNotFoundException => {
|
|
3737
|
-
return {
|
|
3738
|
-
message: __expectString(output.message),
|
|
3739
|
-
} as any;
|
|
3740
|
-
};
|
|
3741
|
-
|
|
3742
|
-
const deserializeAws_json1_1RepositoryPolicyNotFoundException = (
|
|
3743
|
-
output: any,
|
|
3744
|
-
context: __SerdeContext
|
|
3745
|
-
): RepositoryPolicyNotFoundException => {
|
|
3746
|
-
return {
|
|
3747
|
-
message: __expectString(output.message),
|
|
3748
|
-
} as any;
|
|
3749
|
-
};
|
|
3750
|
-
|
|
3751
|
-
const deserializeAws_json1_1ServerException = (output: any, context: __SerdeContext): ServerException => {
|
|
3752
|
-
return {
|
|
3753
|
-
message: __expectString(output.message),
|
|
3754
|
-
} as any;
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
|
-
const deserializeAws_json1_1SetRepositoryPolicyResponse = (
|
|
3758
|
-
output: any,
|
|
3759
|
-
context: __SerdeContext
|
|
3760
|
-
): SetRepositoryPolicyResponse => {
|
|
3761
|
-
return {
|
|
3762
|
-
policyText: __expectString(output.policyText),
|
|
3763
|
-
registryId: __expectString(output.registryId),
|
|
3764
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3765
|
-
} as any;
|
|
3766
|
-
};
|
|
3767
|
-
|
|
3768
|
-
const deserializeAws_json1_1Tag = (output: any, context: __SerdeContext): Tag => {
|
|
3769
|
-
return {
|
|
3770
|
-
Key: __expectString(output.Key),
|
|
3771
|
-
Value: __expectString(output.Value),
|
|
3772
|
-
} as any;
|
|
3773
|
-
};
|
|
3774
|
-
|
|
3775
|
-
const deserializeAws_json1_1TagList = (output: any, context: __SerdeContext): Tag[] => {
|
|
3776
|
-
return (output || [])
|
|
3777
|
-
.filter((e: any) => e != null)
|
|
3778
|
-
.map((entry: any) => {
|
|
3779
|
-
if (entry === null) {
|
|
3780
|
-
return null as any;
|
|
3781
|
-
}
|
|
3782
|
-
return deserializeAws_json1_1Tag(entry, context);
|
|
3783
|
-
});
|
|
3784
|
-
};
|
|
3785
|
-
|
|
3786
|
-
const deserializeAws_json1_1TagResourceResponse = (output: any, context: __SerdeContext): TagResourceResponse => {
|
|
3787
|
-
return {} as any;
|
|
3788
|
-
};
|
|
3789
|
-
|
|
3790
|
-
const deserializeAws_json1_1TooManyTagsException = (output: any, context: __SerdeContext): TooManyTagsException => {
|
|
3791
|
-
return {
|
|
3792
|
-
message: __expectString(output.message),
|
|
3793
|
-
} as any;
|
|
3794
|
-
};
|
|
3795
|
-
|
|
3796
|
-
const deserializeAws_json1_1UnsupportedCommandException = (
|
|
3797
|
-
output: any,
|
|
3798
|
-
context: __SerdeContext
|
|
3799
|
-
): UnsupportedCommandException => {
|
|
3800
|
-
return {
|
|
3801
|
-
message: __expectString(output.message),
|
|
3802
|
-
} as any;
|
|
3803
|
-
};
|
|
3804
|
-
|
|
3805
|
-
const deserializeAws_json1_1UntagResourceResponse = (output: any, context: __SerdeContext): UntagResourceResponse => {
|
|
3806
|
-
return {} as any;
|
|
3807
|
-
};
|
|
3808
|
-
|
|
3809
|
-
const deserializeAws_json1_1UploadLayerPartResponse = (
|
|
3810
|
-
output: any,
|
|
3811
|
-
context: __SerdeContext
|
|
3812
|
-
): UploadLayerPartResponse => {
|
|
3813
|
-
return {
|
|
3814
|
-
lastByteReceived: __expectLong(output.lastByteReceived),
|
|
3815
|
-
registryId: __expectString(output.registryId),
|
|
3816
|
-
repositoryName: __expectString(output.repositoryName),
|
|
3817
|
-
uploadId: __expectString(output.uploadId),
|
|
3818
|
-
} as any;
|
|
3819
|
-
};
|
|
3820
|
-
|
|
3821
|
-
const deserializeAws_json1_1UploadNotFoundException = (
|
|
3822
|
-
output: any,
|
|
3823
|
-
context: __SerdeContext
|
|
3824
|
-
): UploadNotFoundException => {
|
|
3825
|
-
return {
|
|
3826
|
-
message: __expectString(output.message),
|
|
3827
|
-
} as any;
|
|
3828
|
-
};
|
|
3829
|
-
|
|
3830
|
-
const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
|
|
3831
|
-
httpStatusCode: output.statusCode,
|
|
3832
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
3833
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3834
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3835
|
-
});
|
|
3836
|
-
|
|
3837
|
-
// Collect low-level response body stream to Uint8Array.
|
|
3838
|
-
const collectBody = (streamBody: any = new Uint8Array(), context: __SerdeContext): Promise<Uint8Array> => {
|
|
3839
|
-
if (streamBody instanceof Uint8Array) {
|
|
3840
|
-
return Promise.resolve(streamBody);
|
|
3841
|
-
}
|
|
3842
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3843
|
-
};
|
|
3844
|
-
|
|
3845
|
-
// Encode Uint8Array data into string with utf-8.
|
|
3846
|
-
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
|
|
3847
|
-
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3848
|
-
|
|
3849
|
-
const buildHttpRpcRequest = async (
|
|
3850
|
-
context: __SerdeContext,
|
|
3851
|
-
headers: __HeaderBag,
|
|
3852
|
-
path: string,
|
|
3853
|
-
resolvedHostname: string | undefined,
|
|
3854
|
-
body: any
|
|
3855
|
-
): Promise<__HttpRequest> => {
|
|
3856
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3857
|
-
const contents: any = {
|
|
3858
|
-
protocol,
|
|
3859
|
-
hostname,
|
|
3860
|
-
port,
|
|
3861
|
-
method: "POST",
|
|
3862
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3863
|
-
headers,
|
|
3864
|
-
};
|
|
3865
|
-
if (resolvedHostname !== undefined) {
|
|
3866
|
-
contents.hostname = resolvedHostname;
|
|
3867
|
-
}
|
|
3868
|
-
if (body !== undefined) {
|
|
3869
|
-
contents.body = body;
|
|
3870
|
-
}
|
|
3871
|
-
return new __HttpRequest(contents);
|
|
3872
|
-
};
|
|
3873
|
-
|
|
3874
|
-
const parseBody = (streamBody: any, context: __SerdeContext): any =>
|
|
3875
|
-
collectBodyString(streamBody, context).then((encoded) => {
|
|
3876
|
-
if (encoded.length) {
|
|
3877
|
-
return JSON.parse(encoded);
|
|
3878
|
-
}
|
|
3879
|
-
return {};
|
|
3880
|
-
});
|
|
3881
|
-
|
|
3882
|
-
/**
|
|
3883
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
3884
|
-
*/
|
|
3885
|
-
const loadRestJsonErrorCode = (output: __HttpResponse, data: any): string => {
|
|
3886
|
-
const findKey = (object: any, key: string) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3887
|
-
|
|
3888
|
-
const sanitizeErrorCode = (rawValue: string): string => {
|
|
3889
|
-
let cleanValue = rawValue;
|
|
3890
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3891
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3892
|
-
}
|
|
3893
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3894
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3895
|
-
}
|
|
3896
|
-
return cleanValue;
|
|
3897
|
-
};
|
|
3898
|
-
|
|
3899
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3900
|
-
if (headerKey !== undefined) {
|
|
3901
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3902
|
-
}
|
|
3903
|
-
|
|
3904
|
-
if (data.code !== undefined) {
|
|
3905
|
-
return sanitizeErrorCode(data.code);
|
|
3906
|
-
}
|
|
3907
|
-
|
|
3908
|
-
if (data["__type"] !== undefined) {
|
|
3909
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3910
|
-
}
|
|
3911
|
-
|
|
3912
|
-
return "";
|
|
3913
|
-
};
|