@aws-sdk/client-device-farm 3.489.0 → 3.495.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/dist-cjs/DeviceFarm.js +1 -165
- package/dist-cjs/DeviceFarmClient.js +1 -43
- package/dist-cjs/commands/CreateDevicePoolCommand.js +1 -28
- package/dist-cjs/commands/CreateInstanceProfileCommand.js +1 -28
- package/dist-cjs/commands/CreateNetworkProfileCommand.js +1 -28
- package/dist-cjs/commands/CreateProjectCommand.js +1 -28
- package/dist-cjs/commands/CreateRemoteAccessSessionCommand.js +1 -28
- package/dist-cjs/commands/CreateTestGridProjectCommand.js +1 -28
- package/dist-cjs/commands/CreateTestGridUrlCommand.js +1 -29
- package/dist-cjs/commands/CreateUploadCommand.js +1 -29
- package/dist-cjs/commands/CreateVPCEConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteDevicePoolCommand.js +1 -28
- package/dist-cjs/commands/DeleteInstanceProfileCommand.js +1 -28
- package/dist-cjs/commands/DeleteNetworkProfileCommand.js +1 -28
- package/dist-cjs/commands/DeleteProjectCommand.js +1 -28
- package/dist-cjs/commands/DeleteRemoteAccessSessionCommand.js +1 -28
- package/dist-cjs/commands/DeleteRunCommand.js +1 -28
- package/dist-cjs/commands/DeleteTestGridProjectCommand.js +1 -28
- package/dist-cjs/commands/DeleteUploadCommand.js +1 -28
- package/dist-cjs/commands/DeleteVPCEConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetAccountSettingsCommand.js +1 -28
- package/dist-cjs/commands/GetDeviceCommand.js +1 -28
- package/dist-cjs/commands/GetDeviceInstanceCommand.js +1 -28
- package/dist-cjs/commands/GetDevicePoolCommand.js +1 -28
- package/dist-cjs/commands/GetDevicePoolCompatibilityCommand.js +1 -28
- package/dist-cjs/commands/GetInstanceProfileCommand.js +1 -28
- package/dist-cjs/commands/GetJobCommand.js +1 -28
- package/dist-cjs/commands/GetNetworkProfileCommand.js +1 -28
- package/dist-cjs/commands/GetOfferingStatusCommand.js +1 -28
- package/dist-cjs/commands/GetProjectCommand.js +1 -28
- package/dist-cjs/commands/GetRemoteAccessSessionCommand.js +1 -28
- package/dist-cjs/commands/GetRunCommand.js +1 -28
- package/dist-cjs/commands/GetSuiteCommand.js +1 -28
- package/dist-cjs/commands/GetTestCommand.js +1 -28
- package/dist-cjs/commands/GetTestGridProjectCommand.js +1 -28
- package/dist-cjs/commands/GetTestGridSessionCommand.js +1 -28
- package/dist-cjs/commands/GetUploadCommand.js +1 -29
- package/dist-cjs/commands/GetVPCEConfigurationCommand.js +1 -28
- package/dist-cjs/commands/InstallToRemoteAccessSessionCommand.js +1 -29
- package/dist-cjs/commands/ListArtifactsCommand.js +1 -28
- package/dist-cjs/commands/ListDeviceInstancesCommand.js +1 -28
- package/dist-cjs/commands/ListDevicePoolsCommand.js +1 -28
- package/dist-cjs/commands/ListDevicesCommand.js +1 -28
- package/dist-cjs/commands/ListInstanceProfilesCommand.js +1 -28
- package/dist-cjs/commands/ListJobsCommand.js +1 -28
- package/dist-cjs/commands/ListNetworkProfilesCommand.js +1 -28
- package/dist-cjs/commands/ListOfferingPromotionsCommand.js +1 -28
- package/dist-cjs/commands/ListOfferingTransactionsCommand.js +1 -28
- package/dist-cjs/commands/ListOfferingsCommand.js +1 -28
- package/dist-cjs/commands/ListProjectsCommand.js +1 -28
- package/dist-cjs/commands/ListRemoteAccessSessionsCommand.js +1 -28
- package/dist-cjs/commands/ListRunsCommand.js +1 -28
- package/dist-cjs/commands/ListSamplesCommand.js +1 -28
- package/dist-cjs/commands/ListSuitesCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTestGridProjectsCommand.js +1 -28
- package/dist-cjs/commands/ListTestGridSessionActionsCommand.js +1 -28
- package/dist-cjs/commands/ListTestGridSessionArtifactsCommand.js +1 -29
- package/dist-cjs/commands/ListTestGridSessionsCommand.js +1 -28
- package/dist-cjs/commands/ListTestsCommand.js +1 -28
- package/dist-cjs/commands/ListUniqueProblemsCommand.js +1 -28
- package/dist-cjs/commands/ListUploadsCommand.js +1 -29
- package/dist-cjs/commands/ListVPCEConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/PurchaseOfferingCommand.js +1 -28
- package/dist-cjs/commands/RenewOfferingCommand.js +1 -28
- package/dist-cjs/commands/ScheduleRunCommand.js +1 -28
- package/dist-cjs/commands/StopJobCommand.js +1 -28
- package/dist-cjs/commands/StopRemoteAccessSessionCommand.js +1 -28
- package/dist-cjs/commands/StopRunCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateDeviceInstanceCommand.js +1 -28
- package/dist-cjs/commands/UpdateDevicePoolCommand.js +1 -28
- package/dist-cjs/commands/UpdateInstanceProfileCommand.js +1 -28
- package/dist-cjs/commands/UpdateNetworkProfileCommand.js +1 -28
- package/dist-cjs/commands/UpdateProjectCommand.js +1 -28
- package/dist-cjs/commands/UpdateTestGridProjectCommand.js +1 -28
- package/dist-cjs/commands/UpdateUploadCommand.js +1 -29
- package/dist-cjs/commands/UpdateVPCEConfigurationCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -80
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6870 -11
- package/dist-cjs/models/DeviceFarmServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -458
- package/dist-cjs/pagination/GetOfferingStatusPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListArtifactsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDevicePoolsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDevicesPaginator.js +1 -7
- package/dist-cjs/pagination/ListJobsPaginator.js +1 -7
- package/dist-cjs/pagination/ListOfferingTransactionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListOfferingsPaginator.js +1 -7
- package/dist-cjs/pagination/ListProjectsPaginator.js +1 -7
- package/dist-cjs/pagination/ListRunsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSamplesPaginator.js +1 -7
- package/dist-cjs/pagination/ListSuitesPaginator.js +1 -7
- package/dist-cjs/pagination/ListTestGridProjectsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTestGridSessionActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTestGridSessionArtifactsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTestGridSessionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTestsPaginator.js +1 -7
- package/dist-cjs/pagination/ListUniqueProblemsPaginator.js +1 -7
- package/dist-cjs/pagination/ListUploadsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -22
- package/dist-cjs/protocols/Aws_json1_1.js +1 -4666
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4666 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_ListRunsCommand = exports.se_ListRemoteAccessSessionsCommand = exports.se_ListProjectsCommand = exports.se_ListOfferingTransactionsCommand = exports.se_ListOfferingsCommand = exports.se_ListOfferingPromotionsCommand = exports.se_ListNetworkProfilesCommand = exports.se_ListJobsCommand = exports.se_ListInstanceProfilesCommand = exports.se_ListDevicesCommand = exports.se_ListDevicePoolsCommand = exports.se_ListDeviceInstancesCommand = exports.se_ListArtifactsCommand = exports.se_InstallToRemoteAccessSessionCommand = exports.se_GetVPCEConfigurationCommand = exports.se_GetUploadCommand = exports.se_GetTestGridSessionCommand = exports.se_GetTestGridProjectCommand = exports.se_GetTestCommand = exports.se_GetSuiteCommand = exports.se_GetRunCommand = exports.se_GetRemoteAccessSessionCommand = exports.se_GetProjectCommand = exports.se_GetOfferingStatusCommand = exports.se_GetNetworkProfileCommand = exports.se_GetJobCommand = exports.se_GetInstanceProfileCommand = exports.se_GetDevicePoolCompatibilityCommand = exports.se_GetDevicePoolCommand = exports.se_GetDeviceInstanceCommand = exports.se_GetDeviceCommand = exports.se_GetAccountSettingsCommand = exports.se_DeleteVPCEConfigurationCommand = exports.se_DeleteUploadCommand = exports.se_DeleteTestGridProjectCommand = exports.se_DeleteRunCommand = exports.se_DeleteRemoteAccessSessionCommand = exports.se_DeleteProjectCommand = exports.se_DeleteNetworkProfileCommand = exports.se_DeleteInstanceProfileCommand = exports.se_DeleteDevicePoolCommand = exports.se_CreateVPCEConfigurationCommand = exports.se_CreateUploadCommand = exports.se_CreateTestGridUrlCommand = exports.se_CreateTestGridProjectCommand = exports.se_CreateRemoteAccessSessionCommand = exports.se_CreateProjectCommand = exports.se_CreateNetworkProfileCommand = exports.se_CreateInstanceProfileCommand = exports.se_CreateDevicePoolCommand = void 0;
|
|
4
|
-
exports.de_GetDevicePoolCompatibilityCommand = exports.de_GetDevicePoolCommand = exports.de_GetDeviceInstanceCommand = exports.de_GetDeviceCommand = exports.de_GetAccountSettingsCommand = exports.de_DeleteVPCEConfigurationCommand = exports.de_DeleteUploadCommand = exports.de_DeleteTestGridProjectCommand = exports.de_DeleteRunCommand = exports.de_DeleteRemoteAccessSessionCommand = exports.de_DeleteProjectCommand = exports.de_DeleteNetworkProfileCommand = exports.de_DeleteInstanceProfileCommand = exports.de_DeleteDevicePoolCommand = exports.de_CreateVPCEConfigurationCommand = exports.de_CreateUploadCommand = exports.de_CreateTestGridUrlCommand = exports.de_CreateTestGridProjectCommand = exports.de_CreateRemoteAccessSessionCommand = exports.de_CreateProjectCommand = exports.de_CreateNetworkProfileCommand = exports.de_CreateInstanceProfileCommand = exports.de_CreateDevicePoolCommand = exports.se_UpdateVPCEConfigurationCommand = exports.se_UpdateUploadCommand = exports.se_UpdateTestGridProjectCommand = exports.se_UpdateProjectCommand = exports.se_UpdateNetworkProfileCommand = exports.se_UpdateInstanceProfileCommand = exports.se_UpdateDevicePoolCommand = exports.se_UpdateDeviceInstanceCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopRunCommand = exports.se_StopRemoteAccessSessionCommand = exports.se_StopJobCommand = exports.se_ScheduleRunCommand = exports.se_RenewOfferingCommand = exports.se_PurchaseOfferingCommand = exports.se_ListVPCEConfigurationsCommand = exports.se_ListUploadsCommand = exports.se_ListUniqueProblemsCommand = exports.se_ListTestsCommand = exports.se_ListTestGridSessionsCommand = exports.se_ListTestGridSessionArtifactsCommand = exports.se_ListTestGridSessionActionsCommand = exports.se_ListTestGridProjectsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSuitesCommand = exports.se_ListSamplesCommand = void 0;
|
|
5
|
-
exports.de_UpdateNetworkProfileCommand = exports.de_UpdateInstanceProfileCommand = exports.de_UpdateDevicePoolCommand = exports.de_UpdateDeviceInstanceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopRunCommand = exports.de_StopRemoteAccessSessionCommand = exports.de_StopJobCommand = exports.de_ScheduleRunCommand = exports.de_RenewOfferingCommand = exports.de_PurchaseOfferingCommand = exports.de_ListVPCEConfigurationsCommand = exports.de_ListUploadsCommand = exports.de_ListUniqueProblemsCommand = exports.de_ListTestsCommand = exports.de_ListTestGridSessionsCommand = exports.de_ListTestGridSessionArtifactsCommand = exports.de_ListTestGridSessionActionsCommand = exports.de_ListTestGridProjectsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSuitesCommand = exports.de_ListSamplesCommand = exports.de_ListRunsCommand = exports.de_ListRemoteAccessSessionsCommand = exports.de_ListProjectsCommand = exports.de_ListOfferingTransactionsCommand = exports.de_ListOfferingsCommand = exports.de_ListOfferingPromotionsCommand = exports.de_ListNetworkProfilesCommand = exports.de_ListJobsCommand = exports.de_ListInstanceProfilesCommand = exports.de_ListDevicesCommand = exports.de_ListDevicePoolsCommand = exports.de_ListDeviceInstancesCommand = exports.de_ListArtifactsCommand = exports.de_InstallToRemoteAccessSessionCommand = exports.de_GetVPCEConfigurationCommand = exports.de_GetUploadCommand = exports.de_GetTestGridSessionCommand = exports.de_GetTestGridProjectCommand = exports.de_GetTestCommand = exports.de_GetSuiteCommand = exports.de_GetRunCommand = exports.de_GetRemoteAccessSessionCommand = exports.de_GetProjectCommand = exports.de_GetOfferingStatusCommand = exports.de_GetNetworkProfileCommand = exports.de_GetJobCommand = exports.de_GetInstanceProfileCommand = void 0;
|
|
6
|
-
exports.de_UpdateVPCEConfigurationCommand = exports.de_UpdateUploadCommand = exports.de_UpdateTestGridProjectCommand = exports.de_UpdateProjectCommand = void 0;
|
|
7
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const DeviceFarmServiceException_1 = require("../models/DeviceFarmServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_CreateDevicePoolCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("CreateDevicePool");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_CreateDevicePoolCommand = se_CreateDevicePoolCommand;
|
|
18
|
-
const se_CreateInstanceProfileCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateInstanceProfile");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_CreateInstanceProfileCommand = se_CreateInstanceProfileCommand;
|
|
25
|
-
const se_CreateNetworkProfileCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateNetworkProfile");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_CreateNetworkProfileCommand = se_CreateNetworkProfileCommand;
|
|
32
|
-
const se_CreateProjectCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("CreateProject");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_CreateProjectCommand = se_CreateProjectCommand;
|
|
39
|
-
const se_CreateRemoteAccessSessionCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("CreateRemoteAccessSession");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_CreateRemoteAccessSessionCommand = se_CreateRemoteAccessSessionCommand;
|
|
46
|
-
const se_CreateTestGridProjectCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateTestGridProject");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateTestGridProjectCommand = se_CreateTestGridProjectCommand;
|
|
53
|
-
const se_CreateTestGridUrlCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("CreateTestGridUrl");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateTestGridUrlCommand = se_CreateTestGridUrlCommand;
|
|
60
|
-
const se_CreateUploadCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateUpload");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_CreateUploadCommand = se_CreateUploadCommand;
|
|
67
|
-
const se_CreateVPCEConfigurationCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("CreateVPCEConfiguration");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_CreateVPCEConfigurationCommand = se_CreateVPCEConfigurationCommand;
|
|
74
|
-
const se_DeleteDevicePoolCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("DeleteDevicePool");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_DeleteDevicePoolCommand = se_DeleteDevicePoolCommand;
|
|
81
|
-
const se_DeleteInstanceProfileCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("DeleteInstanceProfile");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_DeleteInstanceProfileCommand = se_DeleteInstanceProfileCommand;
|
|
88
|
-
const se_DeleteNetworkProfileCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DeleteNetworkProfile");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DeleteNetworkProfileCommand = se_DeleteNetworkProfileCommand;
|
|
95
|
-
const se_DeleteProjectCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DeleteProject");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteProjectCommand = se_DeleteProjectCommand;
|
|
102
|
-
const se_DeleteRemoteAccessSessionCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteRemoteAccessSession");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeleteRemoteAccessSessionCommand = se_DeleteRemoteAccessSessionCommand;
|
|
109
|
-
const se_DeleteRunCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteRun");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteRunCommand = se_DeleteRunCommand;
|
|
116
|
-
const se_DeleteTestGridProjectCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DeleteTestGridProject");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_DeleteTestGridProjectCommand = se_DeleteTestGridProjectCommand;
|
|
123
|
-
const se_DeleteUploadCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("DeleteUpload");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_DeleteUploadCommand = se_DeleteUploadCommand;
|
|
130
|
-
const se_DeleteVPCEConfigurationCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("DeleteVPCEConfiguration");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_DeleteVPCEConfigurationCommand = se_DeleteVPCEConfigurationCommand;
|
|
137
|
-
const se_GetAccountSettingsCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("GetAccountSettings");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_GetAccountSettingsCommand = se_GetAccountSettingsCommand;
|
|
144
|
-
const se_GetDeviceCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("GetDevice");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_GetDeviceCommand = se_GetDeviceCommand;
|
|
151
|
-
const se_GetDeviceInstanceCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("GetDeviceInstance");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_GetDeviceInstanceCommand = se_GetDeviceInstanceCommand;
|
|
158
|
-
const se_GetDevicePoolCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("GetDevicePool");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_GetDevicePoolCommand = se_GetDevicePoolCommand;
|
|
165
|
-
const se_GetDevicePoolCompatibilityCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("GetDevicePoolCompatibility");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify(se_GetDevicePoolCompatibilityRequest(input, context));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_GetDevicePoolCompatibilityCommand = se_GetDevicePoolCompatibilityCommand;
|
|
172
|
-
const se_GetInstanceProfileCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("GetInstanceProfile");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_GetInstanceProfileCommand = se_GetInstanceProfileCommand;
|
|
179
|
-
const se_GetJobCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("GetJob");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_GetJobCommand = se_GetJobCommand;
|
|
186
|
-
const se_GetNetworkProfileCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("GetNetworkProfile");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_GetNetworkProfileCommand = se_GetNetworkProfileCommand;
|
|
193
|
-
const se_GetOfferingStatusCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("GetOfferingStatus");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_GetOfferingStatusCommand = se_GetOfferingStatusCommand;
|
|
200
|
-
const se_GetProjectCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("GetProject");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_GetProjectCommand = se_GetProjectCommand;
|
|
207
|
-
const se_GetRemoteAccessSessionCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("GetRemoteAccessSession");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_GetRemoteAccessSessionCommand = se_GetRemoteAccessSessionCommand;
|
|
214
|
-
const se_GetRunCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("GetRun");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_GetRunCommand = se_GetRunCommand;
|
|
221
|
-
const se_GetSuiteCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("GetSuite");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_GetSuiteCommand = se_GetSuiteCommand;
|
|
228
|
-
const se_GetTestCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("GetTest");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_GetTestCommand = se_GetTestCommand;
|
|
235
|
-
const se_GetTestGridProjectCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("GetTestGridProject");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_GetTestGridProjectCommand = se_GetTestGridProjectCommand;
|
|
242
|
-
const se_GetTestGridSessionCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("GetTestGridSession");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_GetTestGridSessionCommand = se_GetTestGridSessionCommand;
|
|
249
|
-
const se_GetUploadCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("GetUpload");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_GetUploadCommand = se_GetUploadCommand;
|
|
256
|
-
const se_GetVPCEConfigurationCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("GetVPCEConfiguration");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_GetVPCEConfigurationCommand = se_GetVPCEConfigurationCommand;
|
|
263
|
-
const se_InstallToRemoteAccessSessionCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("InstallToRemoteAccessSession");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_InstallToRemoteAccessSessionCommand = se_InstallToRemoteAccessSessionCommand;
|
|
270
|
-
const se_ListArtifactsCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("ListArtifacts");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_ListArtifactsCommand = se_ListArtifactsCommand;
|
|
277
|
-
const se_ListDeviceInstancesCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("ListDeviceInstances");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_ListDeviceInstancesCommand = se_ListDeviceInstancesCommand;
|
|
284
|
-
const se_ListDevicePoolsCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("ListDevicePools");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_ListDevicePoolsCommand = se_ListDevicePoolsCommand;
|
|
291
|
-
const se_ListDevicesCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("ListDevices");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_ListDevicesCommand = se_ListDevicesCommand;
|
|
298
|
-
const se_ListInstanceProfilesCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("ListInstanceProfiles");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_ListInstanceProfilesCommand = se_ListInstanceProfilesCommand;
|
|
305
|
-
const se_ListJobsCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("ListJobs");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_ListJobsCommand = se_ListJobsCommand;
|
|
312
|
-
const se_ListNetworkProfilesCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("ListNetworkProfiles");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_ListNetworkProfilesCommand = se_ListNetworkProfilesCommand;
|
|
319
|
-
const se_ListOfferingPromotionsCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("ListOfferingPromotions");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_ListOfferingPromotionsCommand = se_ListOfferingPromotionsCommand;
|
|
326
|
-
const se_ListOfferingsCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("ListOfferings");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_ListOfferingsCommand = se_ListOfferingsCommand;
|
|
333
|
-
const se_ListOfferingTransactionsCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("ListOfferingTransactions");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_ListOfferingTransactionsCommand = se_ListOfferingTransactionsCommand;
|
|
340
|
-
const se_ListProjectsCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("ListProjects");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_ListProjectsCommand = se_ListProjectsCommand;
|
|
347
|
-
const se_ListRemoteAccessSessionsCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("ListRemoteAccessSessions");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_ListRemoteAccessSessionsCommand = se_ListRemoteAccessSessionsCommand;
|
|
354
|
-
const se_ListRunsCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("ListRuns");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_ListRunsCommand = se_ListRunsCommand;
|
|
361
|
-
const se_ListSamplesCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("ListSamples");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_ListSamplesCommand = se_ListSamplesCommand;
|
|
368
|
-
const se_ListSuitesCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("ListSuites");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_ListSuitesCommand = se_ListSuitesCommand;
|
|
375
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
382
|
-
const se_ListTestGridProjectsCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("ListTestGridProjects");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_ListTestGridProjectsCommand = se_ListTestGridProjectsCommand;
|
|
389
|
-
const se_ListTestGridSessionActionsCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("ListTestGridSessionActions");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_ListTestGridSessionActionsCommand = se_ListTestGridSessionActionsCommand;
|
|
396
|
-
const se_ListTestGridSessionArtifactsCommand = async (input, context) => {
|
|
397
|
-
const headers = sharedHeaders("ListTestGridSessionArtifacts");
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
exports.se_ListTestGridSessionArtifactsCommand = se_ListTestGridSessionArtifactsCommand;
|
|
403
|
-
const se_ListTestGridSessionsCommand = async (input, context) => {
|
|
404
|
-
const headers = sharedHeaders("ListTestGridSessions");
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify(se_ListTestGridSessionsRequest(input, context));
|
|
407
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
-
};
|
|
409
|
-
exports.se_ListTestGridSessionsCommand = se_ListTestGridSessionsCommand;
|
|
410
|
-
const se_ListTestsCommand = async (input, context) => {
|
|
411
|
-
const headers = sharedHeaders("ListTests");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
exports.se_ListTestsCommand = se_ListTestsCommand;
|
|
417
|
-
const se_ListUniqueProblemsCommand = async (input, context) => {
|
|
418
|
-
const headers = sharedHeaders("ListUniqueProblems");
|
|
419
|
-
let body;
|
|
420
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
421
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
422
|
-
};
|
|
423
|
-
exports.se_ListUniqueProblemsCommand = se_ListUniqueProblemsCommand;
|
|
424
|
-
const se_ListUploadsCommand = async (input, context) => {
|
|
425
|
-
const headers = sharedHeaders("ListUploads");
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
-
};
|
|
430
|
-
exports.se_ListUploadsCommand = se_ListUploadsCommand;
|
|
431
|
-
const se_ListVPCEConfigurationsCommand = async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("ListVPCEConfigurations");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
|
-
};
|
|
437
|
-
exports.se_ListVPCEConfigurationsCommand = se_ListVPCEConfigurationsCommand;
|
|
438
|
-
const se_PurchaseOfferingCommand = async (input, context) => {
|
|
439
|
-
const headers = sharedHeaders("PurchaseOffering");
|
|
440
|
-
let body;
|
|
441
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
442
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
|
-
};
|
|
444
|
-
exports.se_PurchaseOfferingCommand = se_PurchaseOfferingCommand;
|
|
445
|
-
const se_RenewOfferingCommand = async (input, context) => {
|
|
446
|
-
const headers = sharedHeaders("RenewOffering");
|
|
447
|
-
let body;
|
|
448
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
449
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
450
|
-
};
|
|
451
|
-
exports.se_RenewOfferingCommand = se_RenewOfferingCommand;
|
|
452
|
-
const se_ScheduleRunCommand = async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("ScheduleRun");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify(se_ScheduleRunRequest(input, context));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
exports.se_ScheduleRunCommand = se_ScheduleRunCommand;
|
|
459
|
-
const se_StopJobCommand = async (input, context) => {
|
|
460
|
-
const headers = sharedHeaders("StopJob");
|
|
461
|
-
let body;
|
|
462
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
463
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
464
|
-
};
|
|
465
|
-
exports.se_StopJobCommand = se_StopJobCommand;
|
|
466
|
-
const se_StopRemoteAccessSessionCommand = async (input, context) => {
|
|
467
|
-
const headers = sharedHeaders("StopRemoteAccessSession");
|
|
468
|
-
let body;
|
|
469
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
470
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
471
|
-
};
|
|
472
|
-
exports.se_StopRemoteAccessSessionCommand = se_StopRemoteAccessSessionCommand;
|
|
473
|
-
const se_StopRunCommand = async (input, context) => {
|
|
474
|
-
const headers = sharedHeaders("StopRun");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
-
};
|
|
479
|
-
exports.se_StopRunCommand = se_StopRunCommand;
|
|
480
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
481
|
-
const headers = sharedHeaders("TagResource");
|
|
482
|
-
let body;
|
|
483
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
484
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
|
-
};
|
|
486
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
487
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
488
|
-
const headers = sharedHeaders("UntagResource");
|
|
489
|
-
let body;
|
|
490
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
491
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
492
|
-
};
|
|
493
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
494
|
-
const se_UpdateDeviceInstanceCommand = async (input, context) => {
|
|
495
|
-
const headers = sharedHeaders("UpdateDeviceInstance");
|
|
496
|
-
let body;
|
|
497
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
498
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
|
-
};
|
|
500
|
-
exports.se_UpdateDeviceInstanceCommand = se_UpdateDeviceInstanceCommand;
|
|
501
|
-
const se_UpdateDevicePoolCommand = async (input, context) => {
|
|
502
|
-
const headers = sharedHeaders("UpdateDevicePool");
|
|
503
|
-
let body;
|
|
504
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
505
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
506
|
-
};
|
|
507
|
-
exports.se_UpdateDevicePoolCommand = se_UpdateDevicePoolCommand;
|
|
508
|
-
const se_UpdateInstanceProfileCommand = async (input, context) => {
|
|
509
|
-
const headers = sharedHeaders("UpdateInstanceProfile");
|
|
510
|
-
let body;
|
|
511
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
512
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
513
|
-
};
|
|
514
|
-
exports.se_UpdateInstanceProfileCommand = se_UpdateInstanceProfileCommand;
|
|
515
|
-
const se_UpdateNetworkProfileCommand = async (input, context) => {
|
|
516
|
-
const headers = sharedHeaders("UpdateNetworkProfile");
|
|
517
|
-
let body;
|
|
518
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
519
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
520
|
-
};
|
|
521
|
-
exports.se_UpdateNetworkProfileCommand = se_UpdateNetworkProfileCommand;
|
|
522
|
-
const se_UpdateProjectCommand = async (input, context) => {
|
|
523
|
-
const headers = sharedHeaders("UpdateProject");
|
|
524
|
-
let body;
|
|
525
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
526
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
527
|
-
};
|
|
528
|
-
exports.se_UpdateProjectCommand = se_UpdateProjectCommand;
|
|
529
|
-
const se_UpdateTestGridProjectCommand = async (input, context) => {
|
|
530
|
-
const headers = sharedHeaders("UpdateTestGridProject");
|
|
531
|
-
let body;
|
|
532
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
533
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
534
|
-
};
|
|
535
|
-
exports.se_UpdateTestGridProjectCommand = se_UpdateTestGridProjectCommand;
|
|
536
|
-
const se_UpdateUploadCommand = async (input, context) => {
|
|
537
|
-
const headers = sharedHeaders("UpdateUpload");
|
|
538
|
-
let body;
|
|
539
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
540
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
541
|
-
};
|
|
542
|
-
exports.se_UpdateUploadCommand = se_UpdateUploadCommand;
|
|
543
|
-
const se_UpdateVPCEConfigurationCommand = async (input, context) => {
|
|
544
|
-
const headers = sharedHeaders("UpdateVPCEConfiguration");
|
|
545
|
-
let body;
|
|
546
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
547
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
548
|
-
};
|
|
549
|
-
exports.se_UpdateVPCEConfigurationCommand = se_UpdateVPCEConfigurationCommand;
|
|
550
|
-
const de_CreateDevicePoolCommand = async (output, context) => {
|
|
551
|
-
if (output.statusCode >= 300) {
|
|
552
|
-
return de_CreateDevicePoolCommandError(output, context);
|
|
553
|
-
}
|
|
554
|
-
const data = await parseBody(output.body, context);
|
|
555
|
-
let contents = {};
|
|
556
|
-
contents = (0, smithy_client_1._json)(data);
|
|
557
|
-
const response = {
|
|
558
|
-
$metadata: deserializeMetadata(output),
|
|
559
|
-
...contents,
|
|
560
|
-
};
|
|
561
|
-
return response;
|
|
562
|
-
};
|
|
563
|
-
exports.de_CreateDevicePoolCommand = de_CreateDevicePoolCommand;
|
|
564
|
-
const de_CreateDevicePoolCommandError = async (output, context) => {
|
|
565
|
-
const parsedOutput = {
|
|
566
|
-
...output,
|
|
567
|
-
body: await parseErrorBody(output.body, context),
|
|
568
|
-
};
|
|
569
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
570
|
-
switch (errorCode) {
|
|
571
|
-
case "ArgumentException":
|
|
572
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
573
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
574
|
-
case "LimitExceededException":
|
|
575
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
576
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
577
|
-
case "NotFoundException":
|
|
578
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
579
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ServiceAccountException":
|
|
581
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
582
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
errorCode,
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
|
-
const de_CreateInstanceProfileCommand = async (output, context) => {
|
|
593
|
-
if (output.statusCode >= 300) {
|
|
594
|
-
return de_CreateInstanceProfileCommandError(output, context);
|
|
595
|
-
}
|
|
596
|
-
const data = await parseBody(output.body, context);
|
|
597
|
-
let contents = {};
|
|
598
|
-
contents = (0, smithy_client_1._json)(data);
|
|
599
|
-
const response = {
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
...contents,
|
|
602
|
-
};
|
|
603
|
-
return response;
|
|
604
|
-
};
|
|
605
|
-
exports.de_CreateInstanceProfileCommand = de_CreateInstanceProfileCommand;
|
|
606
|
-
const de_CreateInstanceProfileCommandError = async (output, context) => {
|
|
607
|
-
const parsedOutput = {
|
|
608
|
-
...output,
|
|
609
|
-
body: await parseErrorBody(output.body, context),
|
|
610
|
-
};
|
|
611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
-
switch (errorCode) {
|
|
613
|
-
case "ArgumentException":
|
|
614
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
615
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
616
|
-
case "LimitExceededException":
|
|
617
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
618
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
619
|
-
case "NotFoundException":
|
|
620
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
621
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
622
|
-
case "ServiceAccountException":
|
|
623
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
624
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
625
|
-
default:
|
|
626
|
-
const parsedBody = parsedOutput.body;
|
|
627
|
-
return throwDefaultError({
|
|
628
|
-
output,
|
|
629
|
-
parsedBody,
|
|
630
|
-
errorCode,
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
|
-
const de_CreateNetworkProfileCommand = async (output, context) => {
|
|
635
|
-
if (output.statusCode >= 300) {
|
|
636
|
-
return de_CreateNetworkProfileCommandError(output, context);
|
|
637
|
-
}
|
|
638
|
-
const data = await parseBody(output.body, context);
|
|
639
|
-
let contents = {};
|
|
640
|
-
contents = (0, smithy_client_1._json)(data);
|
|
641
|
-
const response = {
|
|
642
|
-
$metadata: deserializeMetadata(output),
|
|
643
|
-
...contents,
|
|
644
|
-
};
|
|
645
|
-
return response;
|
|
646
|
-
};
|
|
647
|
-
exports.de_CreateNetworkProfileCommand = de_CreateNetworkProfileCommand;
|
|
648
|
-
const de_CreateNetworkProfileCommandError = async (output, context) => {
|
|
649
|
-
const parsedOutput = {
|
|
650
|
-
...output,
|
|
651
|
-
body: await parseErrorBody(output.body, context),
|
|
652
|
-
};
|
|
653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
|
-
switch (errorCode) {
|
|
655
|
-
case "ArgumentException":
|
|
656
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
657
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
658
|
-
case "LimitExceededException":
|
|
659
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
660
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
661
|
-
case "NotFoundException":
|
|
662
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
663
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
664
|
-
case "ServiceAccountException":
|
|
665
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
666
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
667
|
-
default:
|
|
668
|
-
const parsedBody = parsedOutput.body;
|
|
669
|
-
return throwDefaultError({
|
|
670
|
-
output,
|
|
671
|
-
parsedBody,
|
|
672
|
-
errorCode,
|
|
673
|
-
});
|
|
674
|
-
}
|
|
675
|
-
};
|
|
676
|
-
const de_CreateProjectCommand = async (output, context) => {
|
|
677
|
-
if (output.statusCode >= 300) {
|
|
678
|
-
return de_CreateProjectCommandError(output, context);
|
|
679
|
-
}
|
|
680
|
-
const data = await parseBody(output.body, context);
|
|
681
|
-
let contents = {};
|
|
682
|
-
contents = de_CreateProjectResult(data, context);
|
|
683
|
-
const response = {
|
|
684
|
-
$metadata: deserializeMetadata(output),
|
|
685
|
-
...contents,
|
|
686
|
-
};
|
|
687
|
-
return response;
|
|
688
|
-
};
|
|
689
|
-
exports.de_CreateProjectCommand = de_CreateProjectCommand;
|
|
690
|
-
const de_CreateProjectCommandError = async (output, context) => {
|
|
691
|
-
const parsedOutput = {
|
|
692
|
-
...output,
|
|
693
|
-
body: await parseErrorBody(output.body, context),
|
|
694
|
-
};
|
|
695
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
696
|
-
switch (errorCode) {
|
|
697
|
-
case "ArgumentException":
|
|
698
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
699
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
700
|
-
case "LimitExceededException":
|
|
701
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
702
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
703
|
-
case "NotFoundException":
|
|
704
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
705
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
706
|
-
case "ServiceAccountException":
|
|
707
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
708
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
709
|
-
case "TagOperationException":
|
|
710
|
-
case "com.amazonaws.devicefarm#TagOperationException":
|
|
711
|
-
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
712
|
-
default:
|
|
713
|
-
const parsedBody = parsedOutput.body;
|
|
714
|
-
return throwDefaultError({
|
|
715
|
-
output,
|
|
716
|
-
parsedBody,
|
|
717
|
-
errorCode,
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
};
|
|
721
|
-
const de_CreateRemoteAccessSessionCommand = async (output, context) => {
|
|
722
|
-
if (output.statusCode >= 300) {
|
|
723
|
-
return de_CreateRemoteAccessSessionCommandError(output, context);
|
|
724
|
-
}
|
|
725
|
-
const data = await parseBody(output.body, context);
|
|
726
|
-
let contents = {};
|
|
727
|
-
contents = de_CreateRemoteAccessSessionResult(data, context);
|
|
728
|
-
const response = {
|
|
729
|
-
$metadata: deserializeMetadata(output),
|
|
730
|
-
...contents,
|
|
731
|
-
};
|
|
732
|
-
return response;
|
|
733
|
-
};
|
|
734
|
-
exports.de_CreateRemoteAccessSessionCommand = de_CreateRemoteAccessSessionCommand;
|
|
735
|
-
const de_CreateRemoteAccessSessionCommandError = async (output, context) => {
|
|
736
|
-
const parsedOutput = {
|
|
737
|
-
...output,
|
|
738
|
-
body: await parseErrorBody(output.body, context),
|
|
739
|
-
};
|
|
740
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
741
|
-
switch (errorCode) {
|
|
742
|
-
case "ArgumentException":
|
|
743
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
744
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
745
|
-
case "LimitExceededException":
|
|
746
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
747
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
748
|
-
case "NotFoundException":
|
|
749
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
750
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
751
|
-
case "ServiceAccountException":
|
|
752
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
753
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
754
|
-
default:
|
|
755
|
-
const parsedBody = parsedOutput.body;
|
|
756
|
-
return throwDefaultError({
|
|
757
|
-
output,
|
|
758
|
-
parsedBody,
|
|
759
|
-
errorCode,
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
};
|
|
763
|
-
const de_CreateTestGridProjectCommand = async (output, context) => {
|
|
764
|
-
if (output.statusCode >= 300) {
|
|
765
|
-
return de_CreateTestGridProjectCommandError(output, context);
|
|
766
|
-
}
|
|
767
|
-
const data = await parseBody(output.body, context);
|
|
768
|
-
let contents = {};
|
|
769
|
-
contents = de_CreateTestGridProjectResult(data, context);
|
|
770
|
-
const response = {
|
|
771
|
-
$metadata: deserializeMetadata(output),
|
|
772
|
-
...contents,
|
|
773
|
-
};
|
|
774
|
-
return response;
|
|
775
|
-
};
|
|
776
|
-
exports.de_CreateTestGridProjectCommand = de_CreateTestGridProjectCommand;
|
|
777
|
-
const de_CreateTestGridProjectCommandError = async (output, context) => {
|
|
778
|
-
const parsedOutput = {
|
|
779
|
-
...output,
|
|
780
|
-
body: await parseErrorBody(output.body, context),
|
|
781
|
-
};
|
|
782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
783
|
-
switch (errorCode) {
|
|
784
|
-
case "ArgumentException":
|
|
785
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
786
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
787
|
-
case "InternalServiceException":
|
|
788
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
789
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
790
|
-
case "LimitExceededException":
|
|
791
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
792
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
793
|
-
default:
|
|
794
|
-
const parsedBody = parsedOutput.body;
|
|
795
|
-
return throwDefaultError({
|
|
796
|
-
output,
|
|
797
|
-
parsedBody,
|
|
798
|
-
errorCode,
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
};
|
|
802
|
-
const de_CreateTestGridUrlCommand = async (output, context) => {
|
|
803
|
-
if (output.statusCode >= 300) {
|
|
804
|
-
return de_CreateTestGridUrlCommandError(output, context);
|
|
805
|
-
}
|
|
806
|
-
const data = await parseBody(output.body, context);
|
|
807
|
-
let contents = {};
|
|
808
|
-
contents = de_CreateTestGridUrlResult(data, context);
|
|
809
|
-
const response = {
|
|
810
|
-
$metadata: deserializeMetadata(output),
|
|
811
|
-
...contents,
|
|
812
|
-
};
|
|
813
|
-
return response;
|
|
814
|
-
};
|
|
815
|
-
exports.de_CreateTestGridUrlCommand = de_CreateTestGridUrlCommand;
|
|
816
|
-
const de_CreateTestGridUrlCommandError = async (output, context) => {
|
|
817
|
-
const parsedOutput = {
|
|
818
|
-
...output,
|
|
819
|
-
body: await parseErrorBody(output.body, context),
|
|
820
|
-
};
|
|
821
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
822
|
-
switch (errorCode) {
|
|
823
|
-
case "ArgumentException":
|
|
824
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
825
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
826
|
-
case "InternalServiceException":
|
|
827
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
828
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
829
|
-
case "NotFoundException":
|
|
830
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
831
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
832
|
-
default:
|
|
833
|
-
const parsedBody = parsedOutput.body;
|
|
834
|
-
return throwDefaultError({
|
|
835
|
-
output,
|
|
836
|
-
parsedBody,
|
|
837
|
-
errorCode,
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
};
|
|
841
|
-
const de_CreateUploadCommand = async (output, context) => {
|
|
842
|
-
if (output.statusCode >= 300) {
|
|
843
|
-
return de_CreateUploadCommandError(output, context);
|
|
844
|
-
}
|
|
845
|
-
const data = await parseBody(output.body, context);
|
|
846
|
-
let contents = {};
|
|
847
|
-
contents = de_CreateUploadResult(data, context);
|
|
848
|
-
const response = {
|
|
849
|
-
$metadata: deserializeMetadata(output),
|
|
850
|
-
...contents,
|
|
851
|
-
};
|
|
852
|
-
return response;
|
|
853
|
-
};
|
|
854
|
-
exports.de_CreateUploadCommand = de_CreateUploadCommand;
|
|
855
|
-
const de_CreateUploadCommandError = async (output, context) => {
|
|
856
|
-
const parsedOutput = {
|
|
857
|
-
...output,
|
|
858
|
-
body: await parseErrorBody(output.body, context),
|
|
859
|
-
};
|
|
860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
861
|
-
switch (errorCode) {
|
|
862
|
-
case "ArgumentException":
|
|
863
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
864
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
865
|
-
case "LimitExceededException":
|
|
866
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
867
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
868
|
-
case "NotFoundException":
|
|
869
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
870
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ServiceAccountException":
|
|
872
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
873
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
874
|
-
default:
|
|
875
|
-
const parsedBody = parsedOutput.body;
|
|
876
|
-
return throwDefaultError({
|
|
877
|
-
output,
|
|
878
|
-
parsedBody,
|
|
879
|
-
errorCode,
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
};
|
|
883
|
-
const de_CreateVPCEConfigurationCommand = async (output, context) => {
|
|
884
|
-
if (output.statusCode >= 300) {
|
|
885
|
-
return de_CreateVPCEConfigurationCommandError(output, context);
|
|
886
|
-
}
|
|
887
|
-
const data = await parseBody(output.body, context);
|
|
888
|
-
let contents = {};
|
|
889
|
-
contents = (0, smithy_client_1._json)(data);
|
|
890
|
-
const response = {
|
|
891
|
-
$metadata: deserializeMetadata(output),
|
|
892
|
-
...contents,
|
|
893
|
-
};
|
|
894
|
-
return response;
|
|
895
|
-
};
|
|
896
|
-
exports.de_CreateVPCEConfigurationCommand = de_CreateVPCEConfigurationCommand;
|
|
897
|
-
const de_CreateVPCEConfigurationCommandError = async (output, context) => {
|
|
898
|
-
const parsedOutput = {
|
|
899
|
-
...output,
|
|
900
|
-
body: await parseErrorBody(output.body, context),
|
|
901
|
-
};
|
|
902
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
903
|
-
switch (errorCode) {
|
|
904
|
-
case "ArgumentException":
|
|
905
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
906
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
907
|
-
case "LimitExceededException":
|
|
908
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
909
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
910
|
-
case "ServiceAccountException":
|
|
911
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
912
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
913
|
-
default:
|
|
914
|
-
const parsedBody = parsedOutput.body;
|
|
915
|
-
return throwDefaultError({
|
|
916
|
-
output,
|
|
917
|
-
parsedBody,
|
|
918
|
-
errorCode,
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
};
|
|
922
|
-
const de_DeleteDevicePoolCommand = async (output, context) => {
|
|
923
|
-
if (output.statusCode >= 300) {
|
|
924
|
-
return de_DeleteDevicePoolCommandError(output, context);
|
|
925
|
-
}
|
|
926
|
-
const data = await parseBody(output.body, context);
|
|
927
|
-
let contents = {};
|
|
928
|
-
contents = (0, smithy_client_1._json)(data);
|
|
929
|
-
const response = {
|
|
930
|
-
$metadata: deserializeMetadata(output),
|
|
931
|
-
...contents,
|
|
932
|
-
};
|
|
933
|
-
return response;
|
|
934
|
-
};
|
|
935
|
-
exports.de_DeleteDevicePoolCommand = de_DeleteDevicePoolCommand;
|
|
936
|
-
const de_DeleteDevicePoolCommandError = async (output, context) => {
|
|
937
|
-
const parsedOutput = {
|
|
938
|
-
...output,
|
|
939
|
-
body: await parseErrorBody(output.body, context),
|
|
940
|
-
};
|
|
941
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
-
switch (errorCode) {
|
|
943
|
-
case "ArgumentException":
|
|
944
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
945
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
946
|
-
case "LimitExceededException":
|
|
947
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
948
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
949
|
-
case "NotFoundException":
|
|
950
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
951
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
952
|
-
case "ServiceAccountException":
|
|
953
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
954
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
955
|
-
default:
|
|
956
|
-
const parsedBody = parsedOutput.body;
|
|
957
|
-
return throwDefaultError({
|
|
958
|
-
output,
|
|
959
|
-
parsedBody,
|
|
960
|
-
errorCode,
|
|
961
|
-
});
|
|
962
|
-
}
|
|
963
|
-
};
|
|
964
|
-
const de_DeleteInstanceProfileCommand = async (output, context) => {
|
|
965
|
-
if (output.statusCode >= 300) {
|
|
966
|
-
return de_DeleteInstanceProfileCommandError(output, context);
|
|
967
|
-
}
|
|
968
|
-
const data = await parseBody(output.body, context);
|
|
969
|
-
let contents = {};
|
|
970
|
-
contents = (0, smithy_client_1._json)(data);
|
|
971
|
-
const response = {
|
|
972
|
-
$metadata: deserializeMetadata(output),
|
|
973
|
-
...contents,
|
|
974
|
-
};
|
|
975
|
-
return response;
|
|
976
|
-
};
|
|
977
|
-
exports.de_DeleteInstanceProfileCommand = de_DeleteInstanceProfileCommand;
|
|
978
|
-
const de_DeleteInstanceProfileCommandError = async (output, context) => {
|
|
979
|
-
const parsedOutput = {
|
|
980
|
-
...output,
|
|
981
|
-
body: await parseErrorBody(output.body, context),
|
|
982
|
-
};
|
|
983
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
984
|
-
switch (errorCode) {
|
|
985
|
-
case "ArgumentException":
|
|
986
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
987
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
988
|
-
case "LimitExceededException":
|
|
989
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
990
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
991
|
-
case "NotFoundException":
|
|
992
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
993
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ServiceAccountException":
|
|
995
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
996
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody,
|
|
1002
|
-
errorCode,
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
|
-
const de_DeleteNetworkProfileCommand = async (output, context) => {
|
|
1007
|
-
if (output.statusCode >= 300) {
|
|
1008
|
-
return de_DeleteNetworkProfileCommandError(output, context);
|
|
1009
|
-
}
|
|
1010
|
-
const data = await parseBody(output.body, context);
|
|
1011
|
-
let contents = {};
|
|
1012
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1013
|
-
const response = {
|
|
1014
|
-
$metadata: deserializeMetadata(output),
|
|
1015
|
-
...contents,
|
|
1016
|
-
};
|
|
1017
|
-
return response;
|
|
1018
|
-
};
|
|
1019
|
-
exports.de_DeleteNetworkProfileCommand = de_DeleteNetworkProfileCommand;
|
|
1020
|
-
const de_DeleteNetworkProfileCommandError = async (output, context) => {
|
|
1021
|
-
const parsedOutput = {
|
|
1022
|
-
...output,
|
|
1023
|
-
body: await parseErrorBody(output.body, context),
|
|
1024
|
-
};
|
|
1025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1026
|
-
switch (errorCode) {
|
|
1027
|
-
case "ArgumentException":
|
|
1028
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1029
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1030
|
-
case "LimitExceededException":
|
|
1031
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1032
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1033
|
-
case "NotFoundException":
|
|
1034
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1035
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1036
|
-
case "ServiceAccountException":
|
|
1037
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1038
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1039
|
-
default:
|
|
1040
|
-
const parsedBody = parsedOutput.body;
|
|
1041
|
-
return throwDefaultError({
|
|
1042
|
-
output,
|
|
1043
|
-
parsedBody,
|
|
1044
|
-
errorCode,
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
};
|
|
1048
|
-
const de_DeleteProjectCommand = async (output, context) => {
|
|
1049
|
-
if (output.statusCode >= 300) {
|
|
1050
|
-
return de_DeleteProjectCommandError(output, context);
|
|
1051
|
-
}
|
|
1052
|
-
const data = await parseBody(output.body, context);
|
|
1053
|
-
let contents = {};
|
|
1054
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1055
|
-
const response = {
|
|
1056
|
-
$metadata: deserializeMetadata(output),
|
|
1057
|
-
...contents,
|
|
1058
|
-
};
|
|
1059
|
-
return response;
|
|
1060
|
-
};
|
|
1061
|
-
exports.de_DeleteProjectCommand = de_DeleteProjectCommand;
|
|
1062
|
-
const de_DeleteProjectCommandError = async (output, context) => {
|
|
1063
|
-
const parsedOutput = {
|
|
1064
|
-
...output,
|
|
1065
|
-
body: await parseErrorBody(output.body, context),
|
|
1066
|
-
};
|
|
1067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1068
|
-
switch (errorCode) {
|
|
1069
|
-
case "ArgumentException":
|
|
1070
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1071
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1072
|
-
case "LimitExceededException":
|
|
1073
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1074
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1075
|
-
case "NotFoundException":
|
|
1076
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1077
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1078
|
-
case "ServiceAccountException":
|
|
1079
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1080
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1081
|
-
default:
|
|
1082
|
-
const parsedBody = parsedOutput.body;
|
|
1083
|
-
return throwDefaultError({
|
|
1084
|
-
output,
|
|
1085
|
-
parsedBody,
|
|
1086
|
-
errorCode,
|
|
1087
|
-
});
|
|
1088
|
-
}
|
|
1089
|
-
};
|
|
1090
|
-
const de_DeleteRemoteAccessSessionCommand = async (output, context) => {
|
|
1091
|
-
if (output.statusCode >= 300) {
|
|
1092
|
-
return de_DeleteRemoteAccessSessionCommandError(output, context);
|
|
1093
|
-
}
|
|
1094
|
-
const data = await parseBody(output.body, context);
|
|
1095
|
-
let contents = {};
|
|
1096
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1097
|
-
const response = {
|
|
1098
|
-
$metadata: deserializeMetadata(output),
|
|
1099
|
-
...contents,
|
|
1100
|
-
};
|
|
1101
|
-
return response;
|
|
1102
|
-
};
|
|
1103
|
-
exports.de_DeleteRemoteAccessSessionCommand = de_DeleteRemoteAccessSessionCommand;
|
|
1104
|
-
const de_DeleteRemoteAccessSessionCommandError = async (output, context) => {
|
|
1105
|
-
const parsedOutput = {
|
|
1106
|
-
...output,
|
|
1107
|
-
body: await parseErrorBody(output.body, context),
|
|
1108
|
-
};
|
|
1109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1110
|
-
switch (errorCode) {
|
|
1111
|
-
case "ArgumentException":
|
|
1112
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1113
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "LimitExceededException":
|
|
1115
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1116
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1117
|
-
case "NotFoundException":
|
|
1118
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1119
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1120
|
-
case "ServiceAccountException":
|
|
1121
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1122
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1123
|
-
default:
|
|
1124
|
-
const parsedBody = parsedOutput.body;
|
|
1125
|
-
return throwDefaultError({
|
|
1126
|
-
output,
|
|
1127
|
-
parsedBody,
|
|
1128
|
-
errorCode,
|
|
1129
|
-
});
|
|
1130
|
-
}
|
|
1131
|
-
};
|
|
1132
|
-
const de_DeleteRunCommand = async (output, context) => {
|
|
1133
|
-
if (output.statusCode >= 300) {
|
|
1134
|
-
return de_DeleteRunCommandError(output, context);
|
|
1135
|
-
}
|
|
1136
|
-
const data = await parseBody(output.body, context);
|
|
1137
|
-
let contents = {};
|
|
1138
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1139
|
-
const response = {
|
|
1140
|
-
$metadata: deserializeMetadata(output),
|
|
1141
|
-
...contents,
|
|
1142
|
-
};
|
|
1143
|
-
return response;
|
|
1144
|
-
};
|
|
1145
|
-
exports.de_DeleteRunCommand = de_DeleteRunCommand;
|
|
1146
|
-
const de_DeleteRunCommandError = async (output, context) => {
|
|
1147
|
-
const parsedOutput = {
|
|
1148
|
-
...output,
|
|
1149
|
-
body: await parseErrorBody(output.body, context),
|
|
1150
|
-
};
|
|
1151
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
-
switch (errorCode) {
|
|
1153
|
-
case "ArgumentException":
|
|
1154
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1155
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "LimitExceededException":
|
|
1157
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1158
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "NotFoundException":
|
|
1160
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1161
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ServiceAccountException":
|
|
1163
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1164
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1165
|
-
default:
|
|
1166
|
-
const parsedBody = parsedOutput.body;
|
|
1167
|
-
return throwDefaultError({
|
|
1168
|
-
output,
|
|
1169
|
-
parsedBody,
|
|
1170
|
-
errorCode,
|
|
1171
|
-
});
|
|
1172
|
-
}
|
|
1173
|
-
};
|
|
1174
|
-
const de_DeleteTestGridProjectCommand = async (output, context) => {
|
|
1175
|
-
if (output.statusCode >= 300) {
|
|
1176
|
-
return de_DeleteTestGridProjectCommandError(output, context);
|
|
1177
|
-
}
|
|
1178
|
-
const data = await parseBody(output.body, context);
|
|
1179
|
-
let contents = {};
|
|
1180
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1181
|
-
const response = {
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
...contents,
|
|
1184
|
-
};
|
|
1185
|
-
return response;
|
|
1186
|
-
};
|
|
1187
|
-
exports.de_DeleteTestGridProjectCommand = de_DeleteTestGridProjectCommand;
|
|
1188
|
-
const de_DeleteTestGridProjectCommandError = async (output, context) => {
|
|
1189
|
-
const parsedOutput = {
|
|
1190
|
-
...output,
|
|
1191
|
-
body: await parseErrorBody(output.body, context),
|
|
1192
|
-
};
|
|
1193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1194
|
-
switch (errorCode) {
|
|
1195
|
-
case "ArgumentException":
|
|
1196
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1197
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1198
|
-
case "CannotDeleteException":
|
|
1199
|
-
case "com.amazonaws.devicefarm#CannotDeleteException":
|
|
1200
|
-
throw await de_CannotDeleteExceptionRes(parsedOutput, context);
|
|
1201
|
-
case "InternalServiceException":
|
|
1202
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
1203
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1204
|
-
case "NotFoundException":
|
|
1205
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1206
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1207
|
-
default:
|
|
1208
|
-
const parsedBody = parsedOutput.body;
|
|
1209
|
-
return throwDefaultError({
|
|
1210
|
-
output,
|
|
1211
|
-
parsedBody,
|
|
1212
|
-
errorCode,
|
|
1213
|
-
});
|
|
1214
|
-
}
|
|
1215
|
-
};
|
|
1216
|
-
const de_DeleteUploadCommand = async (output, context) => {
|
|
1217
|
-
if (output.statusCode >= 300) {
|
|
1218
|
-
return de_DeleteUploadCommandError(output, context);
|
|
1219
|
-
}
|
|
1220
|
-
const data = await parseBody(output.body, context);
|
|
1221
|
-
let contents = {};
|
|
1222
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1223
|
-
const response = {
|
|
1224
|
-
$metadata: deserializeMetadata(output),
|
|
1225
|
-
...contents,
|
|
1226
|
-
};
|
|
1227
|
-
return response;
|
|
1228
|
-
};
|
|
1229
|
-
exports.de_DeleteUploadCommand = de_DeleteUploadCommand;
|
|
1230
|
-
const de_DeleteUploadCommandError = async (output, context) => {
|
|
1231
|
-
const parsedOutput = {
|
|
1232
|
-
...output,
|
|
1233
|
-
body: await parseErrorBody(output.body, context),
|
|
1234
|
-
};
|
|
1235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1236
|
-
switch (errorCode) {
|
|
1237
|
-
case "ArgumentException":
|
|
1238
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1239
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1240
|
-
case "LimitExceededException":
|
|
1241
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1242
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1243
|
-
case "NotFoundException":
|
|
1244
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1245
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1246
|
-
case "ServiceAccountException":
|
|
1247
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1248
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1249
|
-
default:
|
|
1250
|
-
const parsedBody = parsedOutput.body;
|
|
1251
|
-
return throwDefaultError({
|
|
1252
|
-
output,
|
|
1253
|
-
parsedBody,
|
|
1254
|
-
errorCode,
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
};
|
|
1258
|
-
const de_DeleteVPCEConfigurationCommand = async (output, context) => {
|
|
1259
|
-
if (output.statusCode >= 300) {
|
|
1260
|
-
return de_DeleteVPCEConfigurationCommandError(output, context);
|
|
1261
|
-
}
|
|
1262
|
-
const data = await parseBody(output.body, context);
|
|
1263
|
-
let contents = {};
|
|
1264
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1265
|
-
const response = {
|
|
1266
|
-
$metadata: deserializeMetadata(output),
|
|
1267
|
-
...contents,
|
|
1268
|
-
};
|
|
1269
|
-
return response;
|
|
1270
|
-
};
|
|
1271
|
-
exports.de_DeleteVPCEConfigurationCommand = de_DeleteVPCEConfigurationCommand;
|
|
1272
|
-
const de_DeleteVPCEConfigurationCommandError = async (output, context) => {
|
|
1273
|
-
const parsedOutput = {
|
|
1274
|
-
...output,
|
|
1275
|
-
body: await parseErrorBody(output.body, context),
|
|
1276
|
-
};
|
|
1277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1278
|
-
switch (errorCode) {
|
|
1279
|
-
case "ArgumentException":
|
|
1280
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1281
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "InvalidOperationException":
|
|
1283
|
-
case "com.amazonaws.devicefarm#InvalidOperationException":
|
|
1284
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "NotFoundException":
|
|
1286
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1287
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "ServiceAccountException":
|
|
1289
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1290
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1291
|
-
default:
|
|
1292
|
-
const parsedBody = parsedOutput.body;
|
|
1293
|
-
return throwDefaultError({
|
|
1294
|
-
output,
|
|
1295
|
-
parsedBody,
|
|
1296
|
-
errorCode,
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
};
|
|
1300
|
-
const de_GetAccountSettingsCommand = async (output, context) => {
|
|
1301
|
-
if (output.statusCode >= 300) {
|
|
1302
|
-
return de_GetAccountSettingsCommandError(output, context);
|
|
1303
|
-
}
|
|
1304
|
-
const data = await parseBody(output.body, context);
|
|
1305
|
-
let contents = {};
|
|
1306
|
-
contents = de_GetAccountSettingsResult(data, context);
|
|
1307
|
-
const response = {
|
|
1308
|
-
$metadata: deserializeMetadata(output),
|
|
1309
|
-
...contents,
|
|
1310
|
-
};
|
|
1311
|
-
return response;
|
|
1312
|
-
};
|
|
1313
|
-
exports.de_GetAccountSettingsCommand = de_GetAccountSettingsCommand;
|
|
1314
|
-
const de_GetAccountSettingsCommandError = async (output, context) => {
|
|
1315
|
-
const parsedOutput = {
|
|
1316
|
-
...output,
|
|
1317
|
-
body: await parseErrorBody(output.body, context),
|
|
1318
|
-
};
|
|
1319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1320
|
-
switch (errorCode) {
|
|
1321
|
-
case "ArgumentException":
|
|
1322
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1323
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "LimitExceededException":
|
|
1325
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1326
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "NotFoundException":
|
|
1328
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1329
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ServiceAccountException":
|
|
1331
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1332
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1333
|
-
default:
|
|
1334
|
-
const parsedBody = parsedOutput.body;
|
|
1335
|
-
return throwDefaultError({
|
|
1336
|
-
output,
|
|
1337
|
-
parsedBody,
|
|
1338
|
-
errorCode,
|
|
1339
|
-
});
|
|
1340
|
-
}
|
|
1341
|
-
};
|
|
1342
|
-
const de_GetDeviceCommand = async (output, context) => {
|
|
1343
|
-
if (output.statusCode >= 300) {
|
|
1344
|
-
return de_GetDeviceCommandError(output, context);
|
|
1345
|
-
}
|
|
1346
|
-
const data = await parseBody(output.body, context);
|
|
1347
|
-
let contents = {};
|
|
1348
|
-
contents = de_GetDeviceResult(data, context);
|
|
1349
|
-
const response = {
|
|
1350
|
-
$metadata: deserializeMetadata(output),
|
|
1351
|
-
...contents,
|
|
1352
|
-
};
|
|
1353
|
-
return response;
|
|
1354
|
-
};
|
|
1355
|
-
exports.de_GetDeviceCommand = de_GetDeviceCommand;
|
|
1356
|
-
const de_GetDeviceCommandError = async (output, context) => {
|
|
1357
|
-
const parsedOutput = {
|
|
1358
|
-
...output,
|
|
1359
|
-
body: await parseErrorBody(output.body, context),
|
|
1360
|
-
};
|
|
1361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
|
-
switch (errorCode) {
|
|
1363
|
-
case "ArgumentException":
|
|
1364
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1365
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1366
|
-
case "LimitExceededException":
|
|
1367
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1368
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1369
|
-
case "NotFoundException":
|
|
1370
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1371
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1372
|
-
case "ServiceAccountException":
|
|
1373
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1374
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1375
|
-
default:
|
|
1376
|
-
const parsedBody = parsedOutput.body;
|
|
1377
|
-
return throwDefaultError({
|
|
1378
|
-
output,
|
|
1379
|
-
parsedBody,
|
|
1380
|
-
errorCode,
|
|
1381
|
-
});
|
|
1382
|
-
}
|
|
1383
|
-
};
|
|
1384
|
-
const de_GetDeviceInstanceCommand = async (output, context) => {
|
|
1385
|
-
if (output.statusCode >= 300) {
|
|
1386
|
-
return de_GetDeviceInstanceCommandError(output, context);
|
|
1387
|
-
}
|
|
1388
|
-
const data = await parseBody(output.body, context);
|
|
1389
|
-
let contents = {};
|
|
1390
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1391
|
-
const response = {
|
|
1392
|
-
$metadata: deserializeMetadata(output),
|
|
1393
|
-
...contents,
|
|
1394
|
-
};
|
|
1395
|
-
return response;
|
|
1396
|
-
};
|
|
1397
|
-
exports.de_GetDeviceInstanceCommand = de_GetDeviceInstanceCommand;
|
|
1398
|
-
const de_GetDeviceInstanceCommandError = async (output, context) => {
|
|
1399
|
-
const parsedOutput = {
|
|
1400
|
-
...output,
|
|
1401
|
-
body: await parseErrorBody(output.body, context),
|
|
1402
|
-
};
|
|
1403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1404
|
-
switch (errorCode) {
|
|
1405
|
-
case "ArgumentException":
|
|
1406
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1407
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1408
|
-
case "LimitExceededException":
|
|
1409
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1410
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1411
|
-
case "NotFoundException":
|
|
1412
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1413
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1414
|
-
case "ServiceAccountException":
|
|
1415
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1416
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1417
|
-
default:
|
|
1418
|
-
const parsedBody = parsedOutput.body;
|
|
1419
|
-
return throwDefaultError({
|
|
1420
|
-
output,
|
|
1421
|
-
parsedBody,
|
|
1422
|
-
errorCode,
|
|
1423
|
-
});
|
|
1424
|
-
}
|
|
1425
|
-
};
|
|
1426
|
-
const de_GetDevicePoolCommand = async (output, context) => {
|
|
1427
|
-
if (output.statusCode >= 300) {
|
|
1428
|
-
return de_GetDevicePoolCommandError(output, context);
|
|
1429
|
-
}
|
|
1430
|
-
const data = await parseBody(output.body, context);
|
|
1431
|
-
let contents = {};
|
|
1432
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1433
|
-
const response = {
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
...contents,
|
|
1436
|
-
};
|
|
1437
|
-
return response;
|
|
1438
|
-
};
|
|
1439
|
-
exports.de_GetDevicePoolCommand = de_GetDevicePoolCommand;
|
|
1440
|
-
const de_GetDevicePoolCommandError = async (output, context) => {
|
|
1441
|
-
const parsedOutput = {
|
|
1442
|
-
...output,
|
|
1443
|
-
body: await parseErrorBody(output.body, context),
|
|
1444
|
-
};
|
|
1445
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1446
|
-
switch (errorCode) {
|
|
1447
|
-
case "ArgumentException":
|
|
1448
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1449
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1450
|
-
case "LimitExceededException":
|
|
1451
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1452
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1453
|
-
case "NotFoundException":
|
|
1454
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1455
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1456
|
-
case "ServiceAccountException":
|
|
1457
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1458
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1459
|
-
default:
|
|
1460
|
-
const parsedBody = parsedOutput.body;
|
|
1461
|
-
return throwDefaultError({
|
|
1462
|
-
output,
|
|
1463
|
-
parsedBody,
|
|
1464
|
-
errorCode,
|
|
1465
|
-
});
|
|
1466
|
-
}
|
|
1467
|
-
};
|
|
1468
|
-
const de_GetDevicePoolCompatibilityCommand = async (output, context) => {
|
|
1469
|
-
if (output.statusCode >= 300) {
|
|
1470
|
-
return de_GetDevicePoolCompatibilityCommandError(output, context);
|
|
1471
|
-
}
|
|
1472
|
-
const data = await parseBody(output.body, context);
|
|
1473
|
-
let contents = {};
|
|
1474
|
-
contents = de_GetDevicePoolCompatibilityResult(data, context);
|
|
1475
|
-
const response = {
|
|
1476
|
-
$metadata: deserializeMetadata(output),
|
|
1477
|
-
...contents,
|
|
1478
|
-
};
|
|
1479
|
-
return response;
|
|
1480
|
-
};
|
|
1481
|
-
exports.de_GetDevicePoolCompatibilityCommand = de_GetDevicePoolCompatibilityCommand;
|
|
1482
|
-
const de_GetDevicePoolCompatibilityCommandError = async (output, context) => {
|
|
1483
|
-
const parsedOutput = {
|
|
1484
|
-
...output,
|
|
1485
|
-
body: await parseErrorBody(output.body, context),
|
|
1486
|
-
};
|
|
1487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1488
|
-
switch (errorCode) {
|
|
1489
|
-
case "ArgumentException":
|
|
1490
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1491
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "LimitExceededException":
|
|
1493
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1494
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1495
|
-
case "NotFoundException":
|
|
1496
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1497
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1498
|
-
case "ServiceAccountException":
|
|
1499
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1500
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1501
|
-
default:
|
|
1502
|
-
const parsedBody = parsedOutput.body;
|
|
1503
|
-
return throwDefaultError({
|
|
1504
|
-
output,
|
|
1505
|
-
parsedBody,
|
|
1506
|
-
errorCode,
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
};
|
|
1510
|
-
const de_GetInstanceProfileCommand = async (output, context) => {
|
|
1511
|
-
if (output.statusCode >= 300) {
|
|
1512
|
-
return de_GetInstanceProfileCommandError(output, context);
|
|
1513
|
-
}
|
|
1514
|
-
const data = await parseBody(output.body, context);
|
|
1515
|
-
let contents = {};
|
|
1516
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1517
|
-
const response = {
|
|
1518
|
-
$metadata: deserializeMetadata(output),
|
|
1519
|
-
...contents,
|
|
1520
|
-
};
|
|
1521
|
-
return response;
|
|
1522
|
-
};
|
|
1523
|
-
exports.de_GetInstanceProfileCommand = de_GetInstanceProfileCommand;
|
|
1524
|
-
const de_GetInstanceProfileCommandError = async (output, context) => {
|
|
1525
|
-
const parsedOutput = {
|
|
1526
|
-
...output,
|
|
1527
|
-
body: await parseErrorBody(output.body, context),
|
|
1528
|
-
};
|
|
1529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1530
|
-
switch (errorCode) {
|
|
1531
|
-
case "ArgumentException":
|
|
1532
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1533
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1534
|
-
case "LimitExceededException":
|
|
1535
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1536
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1537
|
-
case "NotFoundException":
|
|
1538
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1539
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1540
|
-
case "ServiceAccountException":
|
|
1541
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1542
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1543
|
-
default:
|
|
1544
|
-
const parsedBody = parsedOutput.body;
|
|
1545
|
-
return throwDefaultError({
|
|
1546
|
-
output,
|
|
1547
|
-
parsedBody,
|
|
1548
|
-
errorCode,
|
|
1549
|
-
});
|
|
1550
|
-
}
|
|
1551
|
-
};
|
|
1552
|
-
const de_GetJobCommand = async (output, context) => {
|
|
1553
|
-
if (output.statusCode >= 300) {
|
|
1554
|
-
return de_GetJobCommandError(output, context);
|
|
1555
|
-
}
|
|
1556
|
-
const data = await parseBody(output.body, context);
|
|
1557
|
-
let contents = {};
|
|
1558
|
-
contents = de_GetJobResult(data, context);
|
|
1559
|
-
const response = {
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
...contents,
|
|
1562
|
-
};
|
|
1563
|
-
return response;
|
|
1564
|
-
};
|
|
1565
|
-
exports.de_GetJobCommand = de_GetJobCommand;
|
|
1566
|
-
const de_GetJobCommandError = async (output, context) => {
|
|
1567
|
-
const parsedOutput = {
|
|
1568
|
-
...output,
|
|
1569
|
-
body: await parseErrorBody(output.body, context),
|
|
1570
|
-
};
|
|
1571
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1572
|
-
switch (errorCode) {
|
|
1573
|
-
case "ArgumentException":
|
|
1574
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1575
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1576
|
-
case "LimitExceededException":
|
|
1577
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1578
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "NotFoundException":
|
|
1580
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1581
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ServiceAccountException":
|
|
1583
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1584
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1585
|
-
default:
|
|
1586
|
-
const parsedBody = parsedOutput.body;
|
|
1587
|
-
return throwDefaultError({
|
|
1588
|
-
output,
|
|
1589
|
-
parsedBody,
|
|
1590
|
-
errorCode,
|
|
1591
|
-
});
|
|
1592
|
-
}
|
|
1593
|
-
};
|
|
1594
|
-
const de_GetNetworkProfileCommand = async (output, context) => {
|
|
1595
|
-
if (output.statusCode >= 300) {
|
|
1596
|
-
return de_GetNetworkProfileCommandError(output, context);
|
|
1597
|
-
}
|
|
1598
|
-
const data = await parseBody(output.body, context);
|
|
1599
|
-
let contents = {};
|
|
1600
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1601
|
-
const response = {
|
|
1602
|
-
$metadata: deserializeMetadata(output),
|
|
1603
|
-
...contents,
|
|
1604
|
-
};
|
|
1605
|
-
return response;
|
|
1606
|
-
};
|
|
1607
|
-
exports.de_GetNetworkProfileCommand = de_GetNetworkProfileCommand;
|
|
1608
|
-
const de_GetNetworkProfileCommandError = async (output, context) => {
|
|
1609
|
-
const parsedOutput = {
|
|
1610
|
-
...output,
|
|
1611
|
-
body: await parseErrorBody(output.body, context),
|
|
1612
|
-
};
|
|
1613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1614
|
-
switch (errorCode) {
|
|
1615
|
-
case "ArgumentException":
|
|
1616
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1617
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1618
|
-
case "LimitExceededException":
|
|
1619
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1620
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1621
|
-
case "NotFoundException":
|
|
1622
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1623
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1624
|
-
case "ServiceAccountException":
|
|
1625
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1626
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1627
|
-
default:
|
|
1628
|
-
const parsedBody = parsedOutput.body;
|
|
1629
|
-
return throwDefaultError({
|
|
1630
|
-
output,
|
|
1631
|
-
parsedBody,
|
|
1632
|
-
errorCode,
|
|
1633
|
-
});
|
|
1634
|
-
}
|
|
1635
|
-
};
|
|
1636
|
-
const de_GetOfferingStatusCommand = async (output, context) => {
|
|
1637
|
-
if (output.statusCode >= 300) {
|
|
1638
|
-
return de_GetOfferingStatusCommandError(output, context);
|
|
1639
|
-
}
|
|
1640
|
-
const data = await parseBody(output.body, context);
|
|
1641
|
-
let contents = {};
|
|
1642
|
-
contents = de_GetOfferingStatusResult(data, context);
|
|
1643
|
-
const response = {
|
|
1644
|
-
$metadata: deserializeMetadata(output),
|
|
1645
|
-
...contents,
|
|
1646
|
-
};
|
|
1647
|
-
return response;
|
|
1648
|
-
};
|
|
1649
|
-
exports.de_GetOfferingStatusCommand = de_GetOfferingStatusCommand;
|
|
1650
|
-
const de_GetOfferingStatusCommandError = async (output, context) => {
|
|
1651
|
-
const parsedOutput = {
|
|
1652
|
-
...output,
|
|
1653
|
-
body: await parseErrorBody(output.body, context),
|
|
1654
|
-
};
|
|
1655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1656
|
-
switch (errorCode) {
|
|
1657
|
-
case "ArgumentException":
|
|
1658
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1659
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1660
|
-
case "LimitExceededException":
|
|
1661
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1662
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "NotEligibleException":
|
|
1664
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
1665
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "NotFoundException":
|
|
1667
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1668
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1669
|
-
case "ServiceAccountException":
|
|
1670
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1671
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1672
|
-
default:
|
|
1673
|
-
const parsedBody = parsedOutput.body;
|
|
1674
|
-
return throwDefaultError({
|
|
1675
|
-
output,
|
|
1676
|
-
parsedBody,
|
|
1677
|
-
errorCode,
|
|
1678
|
-
});
|
|
1679
|
-
}
|
|
1680
|
-
};
|
|
1681
|
-
const de_GetProjectCommand = async (output, context) => {
|
|
1682
|
-
if (output.statusCode >= 300) {
|
|
1683
|
-
return de_GetProjectCommandError(output, context);
|
|
1684
|
-
}
|
|
1685
|
-
const data = await parseBody(output.body, context);
|
|
1686
|
-
let contents = {};
|
|
1687
|
-
contents = de_GetProjectResult(data, context);
|
|
1688
|
-
const response = {
|
|
1689
|
-
$metadata: deserializeMetadata(output),
|
|
1690
|
-
...contents,
|
|
1691
|
-
};
|
|
1692
|
-
return response;
|
|
1693
|
-
};
|
|
1694
|
-
exports.de_GetProjectCommand = de_GetProjectCommand;
|
|
1695
|
-
const de_GetProjectCommandError = async (output, context) => {
|
|
1696
|
-
const parsedOutput = {
|
|
1697
|
-
...output,
|
|
1698
|
-
body: await parseErrorBody(output.body, context),
|
|
1699
|
-
};
|
|
1700
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1701
|
-
switch (errorCode) {
|
|
1702
|
-
case "ArgumentException":
|
|
1703
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1704
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1705
|
-
case "LimitExceededException":
|
|
1706
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1707
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "NotFoundException":
|
|
1709
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1710
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ServiceAccountException":
|
|
1712
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1713
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1714
|
-
default:
|
|
1715
|
-
const parsedBody = parsedOutput.body;
|
|
1716
|
-
return throwDefaultError({
|
|
1717
|
-
output,
|
|
1718
|
-
parsedBody,
|
|
1719
|
-
errorCode,
|
|
1720
|
-
});
|
|
1721
|
-
}
|
|
1722
|
-
};
|
|
1723
|
-
const de_GetRemoteAccessSessionCommand = async (output, context) => {
|
|
1724
|
-
if (output.statusCode >= 300) {
|
|
1725
|
-
return de_GetRemoteAccessSessionCommandError(output, context);
|
|
1726
|
-
}
|
|
1727
|
-
const data = await parseBody(output.body, context);
|
|
1728
|
-
let contents = {};
|
|
1729
|
-
contents = de_GetRemoteAccessSessionResult(data, context);
|
|
1730
|
-
const response = {
|
|
1731
|
-
$metadata: deserializeMetadata(output),
|
|
1732
|
-
...contents,
|
|
1733
|
-
};
|
|
1734
|
-
return response;
|
|
1735
|
-
};
|
|
1736
|
-
exports.de_GetRemoteAccessSessionCommand = de_GetRemoteAccessSessionCommand;
|
|
1737
|
-
const de_GetRemoteAccessSessionCommandError = async (output, context) => {
|
|
1738
|
-
const parsedOutput = {
|
|
1739
|
-
...output,
|
|
1740
|
-
body: await parseErrorBody(output.body, context),
|
|
1741
|
-
};
|
|
1742
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1743
|
-
switch (errorCode) {
|
|
1744
|
-
case "ArgumentException":
|
|
1745
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1746
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1747
|
-
case "LimitExceededException":
|
|
1748
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1749
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1750
|
-
case "NotFoundException":
|
|
1751
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1752
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1753
|
-
case "ServiceAccountException":
|
|
1754
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1755
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1756
|
-
default:
|
|
1757
|
-
const parsedBody = parsedOutput.body;
|
|
1758
|
-
return throwDefaultError({
|
|
1759
|
-
output,
|
|
1760
|
-
parsedBody,
|
|
1761
|
-
errorCode,
|
|
1762
|
-
});
|
|
1763
|
-
}
|
|
1764
|
-
};
|
|
1765
|
-
const de_GetRunCommand = async (output, context) => {
|
|
1766
|
-
if (output.statusCode >= 300) {
|
|
1767
|
-
return de_GetRunCommandError(output, context);
|
|
1768
|
-
}
|
|
1769
|
-
const data = await parseBody(output.body, context);
|
|
1770
|
-
let contents = {};
|
|
1771
|
-
contents = de_GetRunResult(data, context);
|
|
1772
|
-
const response = {
|
|
1773
|
-
$metadata: deserializeMetadata(output),
|
|
1774
|
-
...contents,
|
|
1775
|
-
};
|
|
1776
|
-
return response;
|
|
1777
|
-
};
|
|
1778
|
-
exports.de_GetRunCommand = de_GetRunCommand;
|
|
1779
|
-
const de_GetRunCommandError = async (output, context) => {
|
|
1780
|
-
const parsedOutput = {
|
|
1781
|
-
...output,
|
|
1782
|
-
body: await parseErrorBody(output.body, context),
|
|
1783
|
-
};
|
|
1784
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1785
|
-
switch (errorCode) {
|
|
1786
|
-
case "ArgumentException":
|
|
1787
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1788
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "LimitExceededException":
|
|
1790
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1791
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1792
|
-
case "NotFoundException":
|
|
1793
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1794
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "ServiceAccountException":
|
|
1796
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1797
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1798
|
-
default:
|
|
1799
|
-
const parsedBody = parsedOutput.body;
|
|
1800
|
-
return throwDefaultError({
|
|
1801
|
-
output,
|
|
1802
|
-
parsedBody,
|
|
1803
|
-
errorCode,
|
|
1804
|
-
});
|
|
1805
|
-
}
|
|
1806
|
-
};
|
|
1807
|
-
const de_GetSuiteCommand = async (output, context) => {
|
|
1808
|
-
if (output.statusCode >= 300) {
|
|
1809
|
-
return de_GetSuiteCommandError(output, context);
|
|
1810
|
-
}
|
|
1811
|
-
const data = await parseBody(output.body, context);
|
|
1812
|
-
let contents = {};
|
|
1813
|
-
contents = de_GetSuiteResult(data, context);
|
|
1814
|
-
const response = {
|
|
1815
|
-
$metadata: deserializeMetadata(output),
|
|
1816
|
-
...contents,
|
|
1817
|
-
};
|
|
1818
|
-
return response;
|
|
1819
|
-
};
|
|
1820
|
-
exports.de_GetSuiteCommand = de_GetSuiteCommand;
|
|
1821
|
-
const de_GetSuiteCommandError = async (output, context) => {
|
|
1822
|
-
const parsedOutput = {
|
|
1823
|
-
...output,
|
|
1824
|
-
body: await parseErrorBody(output.body, context),
|
|
1825
|
-
};
|
|
1826
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1827
|
-
switch (errorCode) {
|
|
1828
|
-
case "ArgumentException":
|
|
1829
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1830
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1831
|
-
case "LimitExceededException":
|
|
1832
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1833
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1834
|
-
case "NotFoundException":
|
|
1835
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1836
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "ServiceAccountException":
|
|
1838
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1839
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1840
|
-
default:
|
|
1841
|
-
const parsedBody = parsedOutput.body;
|
|
1842
|
-
return throwDefaultError({
|
|
1843
|
-
output,
|
|
1844
|
-
parsedBody,
|
|
1845
|
-
errorCode,
|
|
1846
|
-
});
|
|
1847
|
-
}
|
|
1848
|
-
};
|
|
1849
|
-
const de_GetTestCommand = async (output, context) => {
|
|
1850
|
-
if (output.statusCode >= 300) {
|
|
1851
|
-
return de_GetTestCommandError(output, context);
|
|
1852
|
-
}
|
|
1853
|
-
const data = await parseBody(output.body, context);
|
|
1854
|
-
let contents = {};
|
|
1855
|
-
contents = de_GetTestResult(data, context);
|
|
1856
|
-
const response = {
|
|
1857
|
-
$metadata: deserializeMetadata(output),
|
|
1858
|
-
...contents,
|
|
1859
|
-
};
|
|
1860
|
-
return response;
|
|
1861
|
-
};
|
|
1862
|
-
exports.de_GetTestCommand = de_GetTestCommand;
|
|
1863
|
-
const de_GetTestCommandError = async (output, context) => {
|
|
1864
|
-
const parsedOutput = {
|
|
1865
|
-
...output,
|
|
1866
|
-
body: await parseErrorBody(output.body, context),
|
|
1867
|
-
};
|
|
1868
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1869
|
-
switch (errorCode) {
|
|
1870
|
-
case "ArgumentException":
|
|
1871
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1872
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1873
|
-
case "LimitExceededException":
|
|
1874
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1875
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1876
|
-
case "NotFoundException":
|
|
1877
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1878
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "ServiceAccountException":
|
|
1880
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1881
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1882
|
-
default:
|
|
1883
|
-
const parsedBody = parsedOutput.body;
|
|
1884
|
-
return throwDefaultError({
|
|
1885
|
-
output,
|
|
1886
|
-
parsedBody,
|
|
1887
|
-
errorCode,
|
|
1888
|
-
});
|
|
1889
|
-
}
|
|
1890
|
-
};
|
|
1891
|
-
const de_GetTestGridProjectCommand = async (output, context) => {
|
|
1892
|
-
if (output.statusCode >= 300) {
|
|
1893
|
-
return de_GetTestGridProjectCommandError(output, context);
|
|
1894
|
-
}
|
|
1895
|
-
const data = await parseBody(output.body, context);
|
|
1896
|
-
let contents = {};
|
|
1897
|
-
contents = de_GetTestGridProjectResult(data, context);
|
|
1898
|
-
const response = {
|
|
1899
|
-
$metadata: deserializeMetadata(output),
|
|
1900
|
-
...contents,
|
|
1901
|
-
};
|
|
1902
|
-
return response;
|
|
1903
|
-
};
|
|
1904
|
-
exports.de_GetTestGridProjectCommand = de_GetTestGridProjectCommand;
|
|
1905
|
-
const de_GetTestGridProjectCommandError = async (output, context) => {
|
|
1906
|
-
const parsedOutput = {
|
|
1907
|
-
...output,
|
|
1908
|
-
body: await parseErrorBody(output.body, context),
|
|
1909
|
-
};
|
|
1910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
-
switch (errorCode) {
|
|
1912
|
-
case "ArgumentException":
|
|
1913
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1914
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "InternalServiceException":
|
|
1916
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
1917
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "NotFoundException":
|
|
1919
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1920
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1921
|
-
default:
|
|
1922
|
-
const parsedBody = parsedOutput.body;
|
|
1923
|
-
return throwDefaultError({
|
|
1924
|
-
output,
|
|
1925
|
-
parsedBody,
|
|
1926
|
-
errorCode,
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
};
|
|
1930
|
-
const de_GetTestGridSessionCommand = async (output, context) => {
|
|
1931
|
-
if (output.statusCode >= 300) {
|
|
1932
|
-
return de_GetTestGridSessionCommandError(output, context);
|
|
1933
|
-
}
|
|
1934
|
-
const data = await parseBody(output.body, context);
|
|
1935
|
-
let contents = {};
|
|
1936
|
-
contents = de_GetTestGridSessionResult(data, context);
|
|
1937
|
-
const response = {
|
|
1938
|
-
$metadata: deserializeMetadata(output),
|
|
1939
|
-
...contents,
|
|
1940
|
-
};
|
|
1941
|
-
return response;
|
|
1942
|
-
};
|
|
1943
|
-
exports.de_GetTestGridSessionCommand = de_GetTestGridSessionCommand;
|
|
1944
|
-
const de_GetTestGridSessionCommandError = async (output, context) => {
|
|
1945
|
-
const parsedOutput = {
|
|
1946
|
-
...output,
|
|
1947
|
-
body: await parseErrorBody(output.body, context),
|
|
1948
|
-
};
|
|
1949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
-
switch (errorCode) {
|
|
1951
|
-
case "ArgumentException":
|
|
1952
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1953
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "InternalServiceException":
|
|
1955
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
1956
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "NotFoundException":
|
|
1958
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1959
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1960
|
-
default:
|
|
1961
|
-
const parsedBody = parsedOutput.body;
|
|
1962
|
-
return throwDefaultError({
|
|
1963
|
-
output,
|
|
1964
|
-
parsedBody,
|
|
1965
|
-
errorCode,
|
|
1966
|
-
});
|
|
1967
|
-
}
|
|
1968
|
-
};
|
|
1969
|
-
const de_GetUploadCommand = async (output, context) => {
|
|
1970
|
-
if (output.statusCode >= 300) {
|
|
1971
|
-
return de_GetUploadCommandError(output, context);
|
|
1972
|
-
}
|
|
1973
|
-
const data = await parseBody(output.body, context);
|
|
1974
|
-
let contents = {};
|
|
1975
|
-
contents = de_GetUploadResult(data, context);
|
|
1976
|
-
const response = {
|
|
1977
|
-
$metadata: deserializeMetadata(output),
|
|
1978
|
-
...contents,
|
|
1979
|
-
};
|
|
1980
|
-
return response;
|
|
1981
|
-
};
|
|
1982
|
-
exports.de_GetUploadCommand = de_GetUploadCommand;
|
|
1983
|
-
const de_GetUploadCommandError = async (output, context) => {
|
|
1984
|
-
const parsedOutput = {
|
|
1985
|
-
...output,
|
|
1986
|
-
body: await parseErrorBody(output.body, context),
|
|
1987
|
-
};
|
|
1988
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1989
|
-
switch (errorCode) {
|
|
1990
|
-
case "ArgumentException":
|
|
1991
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1992
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "LimitExceededException":
|
|
1994
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1995
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "NotFoundException":
|
|
1997
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1998
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "ServiceAccountException":
|
|
2000
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2001
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2002
|
-
default:
|
|
2003
|
-
const parsedBody = parsedOutput.body;
|
|
2004
|
-
return throwDefaultError({
|
|
2005
|
-
output,
|
|
2006
|
-
parsedBody,
|
|
2007
|
-
errorCode,
|
|
2008
|
-
});
|
|
2009
|
-
}
|
|
2010
|
-
};
|
|
2011
|
-
const de_GetVPCEConfigurationCommand = async (output, context) => {
|
|
2012
|
-
if (output.statusCode >= 300) {
|
|
2013
|
-
return de_GetVPCEConfigurationCommandError(output, context);
|
|
2014
|
-
}
|
|
2015
|
-
const data = await parseBody(output.body, context);
|
|
2016
|
-
let contents = {};
|
|
2017
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2018
|
-
const response = {
|
|
2019
|
-
$metadata: deserializeMetadata(output),
|
|
2020
|
-
...contents,
|
|
2021
|
-
};
|
|
2022
|
-
return response;
|
|
2023
|
-
};
|
|
2024
|
-
exports.de_GetVPCEConfigurationCommand = de_GetVPCEConfigurationCommand;
|
|
2025
|
-
const de_GetVPCEConfigurationCommandError = async (output, context) => {
|
|
2026
|
-
const parsedOutput = {
|
|
2027
|
-
...output,
|
|
2028
|
-
body: await parseErrorBody(output.body, context),
|
|
2029
|
-
};
|
|
2030
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
|
-
switch (errorCode) {
|
|
2032
|
-
case "ArgumentException":
|
|
2033
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2034
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2035
|
-
case "NotFoundException":
|
|
2036
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2037
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2038
|
-
case "ServiceAccountException":
|
|
2039
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2040
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2041
|
-
default:
|
|
2042
|
-
const parsedBody = parsedOutput.body;
|
|
2043
|
-
return throwDefaultError({
|
|
2044
|
-
output,
|
|
2045
|
-
parsedBody,
|
|
2046
|
-
errorCode,
|
|
2047
|
-
});
|
|
2048
|
-
}
|
|
2049
|
-
};
|
|
2050
|
-
const de_InstallToRemoteAccessSessionCommand = async (output, context) => {
|
|
2051
|
-
if (output.statusCode >= 300) {
|
|
2052
|
-
return de_InstallToRemoteAccessSessionCommandError(output, context);
|
|
2053
|
-
}
|
|
2054
|
-
const data = await parseBody(output.body, context);
|
|
2055
|
-
let contents = {};
|
|
2056
|
-
contents = de_InstallToRemoteAccessSessionResult(data, context);
|
|
2057
|
-
const response = {
|
|
2058
|
-
$metadata: deserializeMetadata(output),
|
|
2059
|
-
...contents,
|
|
2060
|
-
};
|
|
2061
|
-
return response;
|
|
2062
|
-
};
|
|
2063
|
-
exports.de_InstallToRemoteAccessSessionCommand = de_InstallToRemoteAccessSessionCommand;
|
|
2064
|
-
const de_InstallToRemoteAccessSessionCommandError = async (output, context) => {
|
|
2065
|
-
const parsedOutput = {
|
|
2066
|
-
...output,
|
|
2067
|
-
body: await parseErrorBody(output.body, context),
|
|
2068
|
-
};
|
|
2069
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2070
|
-
switch (errorCode) {
|
|
2071
|
-
case "ArgumentException":
|
|
2072
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2073
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2074
|
-
case "LimitExceededException":
|
|
2075
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2076
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2077
|
-
case "NotFoundException":
|
|
2078
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2079
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "ServiceAccountException":
|
|
2081
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2082
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2083
|
-
default:
|
|
2084
|
-
const parsedBody = parsedOutput.body;
|
|
2085
|
-
return throwDefaultError({
|
|
2086
|
-
output,
|
|
2087
|
-
parsedBody,
|
|
2088
|
-
errorCode,
|
|
2089
|
-
});
|
|
2090
|
-
}
|
|
2091
|
-
};
|
|
2092
|
-
const de_ListArtifactsCommand = async (output, context) => {
|
|
2093
|
-
if (output.statusCode >= 300) {
|
|
2094
|
-
return de_ListArtifactsCommandError(output, context);
|
|
2095
|
-
}
|
|
2096
|
-
const data = await parseBody(output.body, context);
|
|
2097
|
-
let contents = {};
|
|
2098
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2099
|
-
const response = {
|
|
2100
|
-
$metadata: deserializeMetadata(output),
|
|
2101
|
-
...contents,
|
|
2102
|
-
};
|
|
2103
|
-
return response;
|
|
2104
|
-
};
|
|
2105
|
-
exports.de_ListArtifactsCommand = de_ListArtifactsCommand;
|
|
2106
|
-
const de_ListArtifactsCommandError = async (output, context) => {
|
|
2107
|
-
const parsedOutput = {
|
|
2108
|
-
...output,
|
|
2109
|
-
body: await parseErrorBody(output.body, context),
|
|
2110
|
-
};
|
|
2111
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2112
|
-
switch (errorCode) {
|
|
2113
|
-
case "ArgumentException":
|
|
2114
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2115
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2116
|
-
case "LimitExceededException":
|
|
2117
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2118
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2119
|
-
case "NotFoundException":
|
|
2120
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2121
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2122
|
-
case "ServiceAccountException":
|
|
2123
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2124
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2125
|
-
default:
|
|
2126
|
-
const parsedBody = parsedOutput.body;
|
|
2127
|
-
return throwDefaultError({
|
|
2128
|
-
output,
|
|
2129
|
-
parsedBody,
|
|
2130
|
-
errorCode,
|
|
2131
|
-
});
|
|
2132
|
-
}
|
|
2133
|
-
};
|
|
2134
|
-
const de_ListDeviceInstancesCommand = async (output, context) => {
|
|
2135
|
-
if (output.statusCode >= 300) {
|
|
2136
|
-
return de_ListDeviceInstancesCommandError(output, context);
|
|
2137
|
-
}
|
|
2138
|
-
const data = await parseBody(output.body, context);
|
|
2139
|
-
let contents = {};
|
|
2140
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2141
|
-
const response = {
|
|
2142
|
-
$metadata: deserializeMetadata(output),
|
|
2143
|
-
...contents,
|
|
2144
|
-
};
|
|
2145
|
-
return response;
|
|
2146
|
-
};
|
|
2147
|
-
exports.de_ListDeviceInstancesCommand = de_ListDeviceInstancesCommand;
|
|
2148
|
-
const de_ListDeviceInstancesCommandError = async (output, context) => {
|
|
2149
|
-
const parsedOutput = {
|
|
2150
|
-
...output,
|
|
2151
|
-
body: await parseErrorBody(output.body, context),
|
|
2152
|
-
};
|
|
2153
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
|
-
switch (errorCode) {
|
|
2155
|
-
case "ArgumentException":
|
|
2156
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2157
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "LimitExceededException":
|
|
2159
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2160
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "NotFoundException":
|
|
2162
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2163
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "ServiceAccountException":
|
|
2165
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2166
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2167
|
-
default:
|
|
2168
|
-
const parsedBody = parsedOutput.body;
|
|
2169
|
-
return throwDefaultError({
|
|
2170
|
-
output,
|
|
2171
|
-
parsedBody,
|
|
2172
|
-
errorCode,
|
|
2173
|
-
});
|
|
2174
|
-
}
|
|
2175
|
-
};
|
|
2176
|
-
const de_ListDevicePoolsCommand = async (output, context) => {
|
|
2177
|
-
if (output.statusCode >= 300) {
|
|
2178
|
-
return de_ListDevicePoolsCommandError(output, context);
|
|
2179
|
-
}
|
|
2180
|
-
const data = await parseBody(output.body, context);
|
|
2181
|
-
let contents = {};
|
|
2182
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2183
|
-
const response = {
|
|
2184
|
-
$metadata: deserializeMetadata(output),
|
|
2185
|
-
...contents,
|
|
2186
|
-
};
|
|
2187
|
-
return response;
|
|
2188
|
-
};
|
|
2189
|
-
exports.de_ListDevicePoolsCommand = de_ListDevicePoolsCommand;
|
|
2190
|
-
const de_ListDevicePoolsCommandError = async (output, context) => {
|
|
2191
|
-
const parsedOutput = {
|
|
2192
|
-
...output,
|
|
2193
|
-
body: await parseErrorBody(output.body, context),
|
|
2194
|
-
};
|
|
2195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2196
|
-
switch (errorCode) {
|
|
2197
|
-
case "ArgumentException":
|
|
2198
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2199
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "LimitExceededException":
|
|
2201
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2202
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "NotFoundException":
|
|
2204
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2205
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2206
|
-
case "ServiceAccountException":
|
|
2207
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2208
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2209
|
-
default:
|
|
2210
|
-
const parsedBody = parsedOutput.body;
|
|
2211
|
-
return throwDefaultError({
|
|
2212
|
-
output,
|
|
2213
|
-
parsedBody,
|
|
2214
|
-
errorCode,
|
|
2215
|
-
});
|
|
2216
|
-
}
|
|
2217
|
-
};
|
|
2218
|
-
const de_ListDevicesCommand = async (output, context) => {
|
|
2219
|
-
if (output.statusCode >= 300) {
|
|
2220
|
-
return de_ListDevicesCommandError(output, context);
|
|
2221
|
-
}
|
|
2222
|
-
const data = await parseBody(output.body, context);
|
|
2223
|
-
let contents = {};
|
|
2224
|
-
contents = de_ListDevicesResult(data, context);
|
|
2225
|
-
const response = {
|
|
2226
|
-
$metadata: deserializeMetadata(output),
|
|
2227
|
-
...contents,
|
|
2228
|
-
};
|
|
2229
|
-
return response;
|
|
2230
|
-
};
|
|
2231
|
-
exports.de_ListDevicesCommand = de_ListDevicesCommand;
|
|
2232
|
-
const de_ListDevicesCommandError = async (output, context) => {
|
|
2233
|
-
const parsedOutput = {
|
|
2234
|
-
...output,
|
|
2235
|
-
body: await parseErrorBody(output.body, context),
|
|
2236
|
-
};
|
|
2237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2238
|
-
switch (errorCode) {
|
|
2239
|
-
case "ArgumentException":
|
|
2240
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2241
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2242
|
-
case "LimitExceededException":
|
|
2243
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2244
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2245
|
-
case "NotFoundException":
|
|
2246
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2247
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "ServiceAccountException":
|
|
2249
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2250
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2251
|
-
default:
|
|
2252
|
-
const parsedBody = parsedOutput.body;
|
|
2253
|
-
return throwDefaultError({
|
|
2254
|
-
output,
|
|
2255
|
-
parsedBody,
|
|
2256
|
-
errorCode,
|
|
2257
|
-
});
|
|
2258
|
-
}
|
|
2259
|
-
};
|
|
2260
|
-
const de_ListInstanceProfilesCommand = async (output, context) => {
|
|
2261
|
-
if (output.statusCode >= 300) {
|
|
2262
|
-
return de_ListInstanceProfilesCommandError(output, context);
|
|
2263
|
-
}
|
|
2264
|
-
const data = await parseBody(output.body, context);
|
|
2265
|
-
let contents = {};
|
|
2266
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2267
|
-
const response = {
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
...contents,
|
|
2270
|
-
};
|
|
2271
|
-
return response;
|
|
2272
|
-
};
|
|
2273
|
-
exports.de_ListInstanceProfilesCommand = de_ListInstanceProfilesCommand;
|
|
2274
|
-
const de_ListInstanceProfilesCommandError = async (output, context) => {
|
|
2275
|
-
const parsedOutput = {
|
|
2276
|
-
...output,
|
|
2277
|
-
body: await parseErrorBody(output.body, context),
|
|
2278
|
-
};
|
|
2279
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2280
|
-
switch (errorCode) {
|
|
2281
|
-
case "ArgumentException":
|
|
2282
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2283
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2284
|
-
case "LimitExceededException":
|
|
2285
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2286
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2287
|
-
case "NotFoundException":
|
|
2288
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2289
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2290
|
-
case "ServiceAccountException":
|
|
2291
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2292
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2293
|
-
default:
|
|
2294
|
-
const parsedBody = parsedOutput.body;
|
|
2295
|
-
return throwDefaultError({
|
|
2296
|
-
output,
|
|
2297
|
-
parsedBody,
|
|
2298
|
-
errorCode,
|
|
2299
|
-
});
|
|
2300
|
-
}
|
|
2301
|
-
};
|
|
2302
|
-
const de_ListJobsCommand = async (output, context) => {
|
|
2303
|
-
if (output.statusCode >= 300) {
|
|
2304
|
-
return de_ListJobsCommandError(output, context);
|
|
2305
|
-
}
|
|
2306
|
-
const data = await parseBody(output.body, context);
|
|
2307
|
-
let contents = {};
|
|
2308
|
-
contents = de_ListJobsResult(data, context);
|
|
2309
|
-
const response = {
|
|
2310
|
-
$metadata: deserializeMetadata(output),
|
|
2311
|
-
...contents,
|
|
2312
|
-
};
|
|
2313
|
-
return response;
|
|
2314
|
-
};
|
|
2315
|
-
exports.de_ListJobsCommand = de_ListJobsCommand;
|
|
2316
|
-
const de_ListJobsCommandError = async (output, context) => {
|
|
2317
|
-
const parsedOutput = {
|
|
2318
|
-
...output,
|
|
2319
|
-
body: await parseErrorBody(output.body, context),
|
|
2320
|
-
};
|
|
2321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
|
-
switch (errorCode) {
|
|
2323
|
-
case "ArgumentException":
|
|
2324
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2325
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "LimitExceededException":
|
|
2327
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2328
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "NotFoundException":
|
|
2330
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2331
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "ServiceAccountException":
|
|
2333
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2334
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2335
|
-
default:
|
|
2336
|
-
const parsedBody = parsedOutput.body;
|
|
2337
|
-
return throwDefaultError({
|
|
2338
|
-
output,
|
|
2339
|
-
parsedBody,
|
|
2340
|
-
errorCode,
|
|
2341
|
-
});
|
|
2342
|
-
}
|
|
2343
|
-
};
|
|
2344
|
-
const de_ListNetworkProfilesCommand = async (output, context) => {
|
|
2345
|
-
if (output.statusCode >= 300) {
|
|
2346
|
-
return de_ListNetworkProfilesCommandError(output, context);
|
|
2347
|
-
}
|
|
2348
|
-
const data = await parseBody(output.body, context);
|
|
2349
|
-
let contents = {};
|
|
2350
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2351
|
-
const response = {
|
|
2352
|
-
$metadata: deserializeMetadata(output),
|
|
2353
|
-
...contents,
|
|
2354
|
-
};
|
|
2355
|
-
return response;
|
|
2356
|
-
};
|
|
2357
|
-
exports.de_ListNetworkProfilesCommand = de_ListNetworkProfilesCommand;
|
|
2358
|
-
const de_ListNetworkProfilesCommandError = async (output, context) => {
|
|
2359
|
-
const parsedOutput = {
|
|
2360
|
-
...output,
|
|
2361
|
-
body: await parseErrorBody(output.body, context),
|
|
2362
|
-
};
|
|
2363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2364
|
-
switch (errorCode) {
|
|
2365
|
-
case "ArgumentException":
|
|
2366
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2367
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "LimitExceededException":
|
|
2369
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2370
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "NotFoundException":
|
|
2372
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2373
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "ServiceAccountException":
|
|
2375
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2376
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2377
|
-
default:
|
|
2378
|
-
const parsedBody = parsedOutput.body;
|
|
2379
|
-
return throwDefaultError({
|
|
2380
|
-
output,
|
|
2381
|
-
parsedBody,
|
|
2382
|
-
errorCode,
|
|
2383
|
-
});
|
|
2384
|
-
}
|
|
2385
|
-
};
|
|
2386
|
-
const de_ListOfferingPromotionsCommand = async (output, context) => {
|
|
2387
|
-
if (output.statusCode >= 300) {
|
|
2388
|
-
return de_ListOfferingPromotionsCommandError(output, context);
|
|
2389
|
-
}
|
|
2390
|
-
const data = await parseBody(output.body, context);
|
|
2391
|
-
let contents = {};
|
|
2392
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2393
|
-
const response = {
|
|
2394
|
-
$metadata: deserializeMetadata(output),
|
|
2395
|
-
...contents,
|
|
2396
|
-
};
|
|
2397
|
-
return response;
|
|
2398
|
-
};
|
|
2399
|
-
exports.de_ListOfferingPromotionsCommand = de_ListOfferingPromotionsCommand;
|
|
2400
|
-
const de_ListOfferingPromotionsCommandError = async (output, context) => {
|
|
2401
|
-
const parsedOutput = {
|
|
2402
|
-
...output,
|
|
2403
|
-
body: await parseErrorBody(output.body, context),
|
|
2404
|
-
};
|
|
2405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2406
|
-
switch (errorCode) {
|
|
2407
|
-
case "ArgumentException":
|
|
2408
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2409
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2410
|
-
case "LimitExceededException":
|
|
2411
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2412
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2413
|
-
case "NotEligibleException":
|
|
2414
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
2415
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "NotFoundException":
|
|
2417
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2418
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "ServiceAccountException":
|
|
2420
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2421
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2422
|
-
default:
|
|
2423
|
-
const parsedBody = parsedOutput.body;
|
|
2424
|
-
return throwDefaultError({
|
|
2425
|
-
output,
|
|
2426
|
-
parsedBody,
|
|
2427
|
-
errorCode,
|
|
2428
|
-
});
|
|
2429
|
-
}
|
|
2430
|
-
};
|
|
2431
|
-
const de_ListOfferingsCommand = async (output, context) => {
|
|
2432
|
-
if (output.statusCode >= 300) {
|
|
2433
|
-
return de_ListOfferingsCommandError(output, context);
|
|
2434
|
-
}
|
|
2435
|
-
const data = await parseBody(output.body, context);
|
|
2436
|
-
let contents = {};
|
|
2437
|
-
contents = de_ListOfferingsResult(data, context);
|
|
2438
|
-
const response = {
|
|
2439
|
-
$metadata: deserializeMetadata(output),
|
|
2440
|
-
...contents,
|
|
2441
|
-
};
|
|
2442
|
-
return response;
|
|
2443
|
-
};
|
|
2444
|
-
exports.de_ListOfferingsCommand = de_ListOfferingsCommand;
|
|
2445
|
-
const de_ListOfferingsCommandError = async (output, context) => {
|
|
2446
|
-
const parsedOutput = {
|
|
2447
|
-
...output,
|
|
2448
|
-
body: await parseErrorBody(output.body, context),
|
|
2449
|
-
};
|
|
2450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2451
|
-
switch (errorCode) {
|
|
2452
|
-
case "ArgumentException":
|
|
2453
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2454
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2455
|
-
case "LimitExceededException":
|
|
2456
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2457
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "NotEligibleException":
|
|
2459
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
2460
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "NotFoundException":
|
|
2462
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2463
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2464
|
-
case "ServiceAccountException":
|
|
2465
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2466
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2467
|
-
default:
|
|
2468
|
-
const parsedBody = parsedOutput.body;
|
|
2469
|
-
return throwDefaultError({
|
|
2470
|
-
output,
|
|
2471
|
-
parsedBody,
|
|
2472
|
-
errorCode,
|
|
2473
|
-
});
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
|
-
const de_ListOfferingTransactionsCommand = async (output, context) => {
|
|
2477
|
-
if (output.statusCode >= 300) {
|
|
2478
|
-
return de_ListOfferingTransactionsCommandError(output, context);
|
|
2479
|
-
}
|
|
2480
|
-
const data = await parseBody(output.body, context);
|
|
2481
|
-
let contents = {};
|
|
2482
|
-
contents = de_ListOfferingTransactionsResult(data, context);
|
|
2483
|
-
const response = {
|
|
2484
|
-
$metadata: deserializeMetadata(output),
|
|
2485
|
-
...contents,
|
|
2486
|
-
};
|
|
2487
|
-
return response;
|
|
2488
|
-
};
|
|
2489
|
-
exports.de_ListOfferingTransactionsCommand = de_ListOfferingTransactionsCommand;
|
|
2490
|
-
const de_ListOfferingTransactionsCommandError = async (output, context) => {
|
|
2491
|
-
const parsedOutput = {
|
|
2492
|
-
...output,
|
|
2493
|
-
body: await parseErrorBody(output.body, context),
|
|
2494
|
-
};
|
|
2495
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2496
|
-
switch (errorCode) {
|
|
2497
|
-
case "ArgumentException":
|
|
2498
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2499
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2500
|
-
case "LimitExceededException":
|
|
2501
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2502
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2503
|
-
case "NotEligibleException":
|
|
2504
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
2505
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
2506
|
-
case "NotFoundException":
|
|
2507
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2508
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2509
|
-
case "ServiceAccountException":
|
|
2510
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2511
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2512
|
-
default:
|
|
2513
|
-
const parsedBody = parsedOutput.body;
|
|
2514
|
-
return throwDefaultError({
|
|
2515
|
-
output,
|
|
2516
|
-
parsedBody,
|
|
2517
|
-
errorCode,
|
|
2518
|
-
});
|
|
2519
|
-
}
|
|
2520
|
-
};
|
|
2521
|
-
const de_ListProjectsCommand = async (output, context) => {
|
|
2522
|
-
if (output.statusCode >= 300) {
|
|
2523
|
-
return de_ListProjectsCommandError(output, context);
|
|
2524
|
-
}
|
|
2525
|
-
const data = await parseBody(output.body, context);
|
|
2526
|
-
let contents = {};
|
|
2527
|
-
contents = de_ListProjectsResult(data, context);
|
|
2528
|
-
const response = {
|
|
2529
|
-
$metadata: deserializeMetadata(output),
|
|
2530
|
-
...contents,
|
|
2531
|
-
};
|
|
2532
|
-
return response;
|
|
2533
|
-
};
|
|
2534
|
-
exports.de_ListProjectsCommand = de_ListProjectsCommand;
|
|
2535
|
-
const de_ListProjectsCommandError = async (output, context) => {
|
|
2536
|
-
const parsedOutput = {
|
|
2537
|
-
...output,
|
|
2538
|
-
body: await parseErrorBody(output.body, context),
|
|
2539
|
-
};
|
|
2540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2541
|
-
switch (errorCode) {
|
|
2542
|
-
case "ArgumentException":
|
|
2543
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2544
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2545
|
-
case "LimitExceededException":
|
|
2546
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2547
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2548
|
-
case "NotFoundException":
|
|
2549
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2550
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2551
|
-
case "ServiceAccountException":
|
|
2552
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2553
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2554
|
-
default:
|
|
2555
|
-
const parsedBody = parsedOutput.body;
|
|
2556
|
-
return throwDefaultError({
|
|
2557
|
-
output,
|
|
2558
|
-
parsedBody,
|
|
2559
|
-
errorCode,
|
|
2560
|
-
});
|
|
2561
|
-
}
|
|
2562
|
-
};
|
|
2563
|
-
const de_ListRemoteAccessSessionsCommand = async (output, context) => {
|
|
2564
|
-
if (output.statusCode >= 300) {
|
|
2565
|
-
return de_ListRemoteAccessSessionsCommandError(output, context);
|
|
2566
|
-
}
|
|
2567
|
-
const data = await parseBody(output.body, context);
|
|
2568
|
-
let contents = {};
|
|
2569
|
-
contents = de_ListRemoteAccessSessionsResult(data, context);
|
|
2570
|
-
const response = {
|
|
2571
|
-
$metadata: deserializeMetadata(output),
|
|
2572
|
-
...contents,
|
|
2573
|
-
};
|
|
2574
|
-
return response;
|
|
2575
|
-
};
|
|
2576
|
-
exports.de_ListRemoteAccessSessionsCommand = de_ListRemoteAccessSessionsCommand;
|
|
2577
|
-
const de_ListRemoteAccessSessionsCommandError = async (output, context) => {
|
|
2578
|
-
const parsedOutput = {
|
|
2579
|
-
...output,
|
|
2580
|
-
body: await parseErrorBody(output.body, context),
|
|
2581
|
-
};
|
|
2582
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2583
|
-
switch (errorCode) {
|
|
2584
|
-
case "ArgumentException":
|
|
2585
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2586
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "LimitExceededException":
|
|
2588
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2589
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "NotFoundException":
|
|
2591
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2592
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2593
|
-
case "ServiceAccountException":
|
|
2594
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2595
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2596
|
-
default:
|
|
2597
|
-
const parsedBody = parsedOutput.body;
|
|
2598
|
-
return throwDefaultError({
|
|
2599
|
-
output,
|
|
2600
|
-
parsedBody,
|
|
2601
|
-
errorCode,
|
|
2602
|
-
});
|
|
2603
|
-
}
|
|
2604
|
-
};
|
|
2605
|
-
const de_ListRunsCommand = async (output, context) => {
|
|
2606
|
-
if (output.statusCode >= 300) {
|
|
2607
|
-
return de_ListRunsCommandError(output, context);
|
|
2608
|
-
}
|
|
2609
|
-
const data = await parseBody(output.body, context);
|
|
2610
|
-
let contents = {};
|
|
2611
|
-
contents = de_ListRunsResult(data, context);
|
|
2612
|
-
const response = {
|
|
2613
|
-
$metadata: deserializeMetadata(output),
|
|
2614
|
-
...contents,
|
|
2615
|
-
};
|
|
2616
|
-
return response;
|
|
2617
|
-
};
|
|
2618
|
-
exports.de_ListRunsCommand = de_ListRunsCommand;
|
|
2619
|
-
const de_ListRunsCommandError = async (output, context) => {
|
|
2620
|
-
const parsedOutput = {
|
|
2621
|
-
...output,
|
|
2622
|
-
body: await parseErrorBody(output.body, context),
|
|
2623
|
-
};
|
|
2624
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2625
|
-
switch (errorCode) {
|
|
2626
|
-
case "ArgumentException":
|
|
2627
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2628
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2629
|
-
case "LimitExceededException":
|
|
2630
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2631
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2632
|
-
case "NotFoundException":
|
|
2633
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2634
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2635
|
-
case "ServiceAccountException":
|
|
2636
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2637
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2638
|
-
default:
|
|
2639
|
-
const parsedBody = parsedOutput.body;
|
|
2640
|
-
return throwDefaultError({
|
|
2641
|
-
output,
|
|
2642
|
-
parsedBody,
|
|
2643
|
-
errorCode,
|
|
2644
|
-
});
|
|
2645
|
-
}
|
|
2646
|
-
};
|
|
2647
|
-
const de_ListSamplesCommand = async (output, context) => {
|
|
2648
|
-
if (output.statusCode >= 300) {
|
|
2649
|
-
return de_ListSamplesCommandError(output, context);
|
|
2650
|
-
}
|
|
2651
|
-
const data = await parseBody(output.body, context);
|
|
2652
|
-
let contents = {};
|
|
2653
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2654
|
-
const response = {
|
|
2655
|
-
$metadata: deserializeMetadata(output),
|
|
2656
|
-
...contents,
|
|
2657
|
-
};
|
|
2658
|
-
return response;
|
|
2659
|
-
};
|
|
2660
|
-
exports.de_ListSamplesCommand = de_ListSamplesCommand;
|
|
2661
|
-
const de_ListSamplesCommandError = async (output, context) => {
|
|
2662
|
-
const parsedOutput = {
|
|
2663
|
-
...output,
|
|
2664
|
-
body: await parseErrorBody(output.body, context),
|
|
2665
|
-
};
|
|
2666
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2667
|
-
switch (errorCode) {
|
|
2668
|
-
case "ArgumentException":
|
|
2669
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2670
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2671
|
-
case "LimitExceededException":
|
|
2672
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2673
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2674
|
-
case "NotFoundException":
|
|
2675
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2676
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2677
|
-
case "ServiceAccountException":
|
|
2678
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2679
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2680
|
-
default:
|
|
2681
|
-
const parsedBody = parsedOutput.body;
|
|
2682
|
-
return throwDefaultError({
|
|
2683
|
-
output,
|
|
2684
|
-
parsedBody,
|
|
2685
|
-
errorCode,
|
|
2686
|
-
});
|
|
2687
|
-
}
|
|
2688
|
-
};
|
|
2689
|
-
const de_ListSuitesCommand = async (output, context) => {
|
|
2690
|
-
if (output.statusCode >= 300) {
|
|
2691
|
-
return de_ListSuitesCommandError(output, context);
|
|
2692
|
-
}
|
|
2693
|
-
const data = await parseBody(output.body, context);
|
|
2694
|
-
let contents = {};
|
|
2695
|
-
contents = de_ListSuitesResult(data, context);
|
|
2696
|
-
const response = {
|
|
2697
|
-
$metadata: deserializeMetadata(output),
|
|
2698
|
-
...contents,
|
|
2699
|
-
};
|
|
2700
|
-
return response;
|
|
2701
|
-
};
|
|
2702
|
-
exports.de_ListSuitesCommand = de_ListSuitesCommand;
|
|
2703
|
-
const de_ListSuitesCommandError = async (output, context) => {
|
|
2704
|
-
const parsedOutput = {
|
|
2705
|
-
...output,
|
|
2706
|
-
body: await parseErrorBody(output.body, context),
|
|
2707
|
-
};
|
|
2708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2709
|
-
switch (errorCode) {
|
|
2710
|
-
case "ArgumentException":
|
|
2711
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2712
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2713
|
-
case "LimitExceededException":
|
|
2714
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2715
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2716
|
-
case "NotFoundException":
|
|
2717
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2718
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2719
|
-
case "ServiceAccountException":
|
|
2720
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2721
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2722
|
-
default:
|
|
2723
|
-
const parsedBody = parsedOutput.body;
|
|
2724
|
-
return throwDefaultError({
|
|
2725
|
-
output,
|
|
2726
|
-
parsedBody,
|
|
2727
|
-
errorCode,
|
|
2728
|
-
});
|
|
2729
|
-
}
|
|
2730
|
-
};
|
|
2731
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2732
|
-
if (output.statusCode >= 300) {
|
|
2733
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2734
|
-
}
|
|
2735
|
-
const data = await parseBody(output.body, context);
|
|
2736
|
-
let contents = {};
|
|
2737
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2738
|
-
const response = {
|
|
2739
|
-
$metadata: deserializeMetadata(output),
|
|
2740
|
-
...contents,
|
|
2741
|
-
};
|
|
2742
|
-
return response;
|
|
2743
|
-
};
|
|
2744
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2745
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2746
|
-
const parsedOutput = {
|
|
2747
|
-
...output,
|
|
2748
|
-
body: await parseErrorBody(output.body, context),
|
|
2749
|
-
};
|
|
2750
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2751
|
-
switch (errorCode) {
|
|
2752
|
-
case "ArgumentException":
|
|
2753
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2754
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2755
|
-
case "NotFoundException":
|
|
2756
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2757
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2758
|
-
case "TagOperationException":
|
|
2759
|
-
case "com.amazonaws.devicefarm#TagOperationException":
|
|
2760
|
-
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
2761
|
-
default:
|
|
2762
|
-
const parsedBody = parsedOutput.body;
|
|
2763
|
-
return throwDefaultError({
|
|
2764
|
-
output,
|
|
2765
|
-
parsedBody,
|
|
2766
|
-
errorCode,
|
|
2767
|
-
});
|
|
2768
|
-
}
|
|
2769
|
-
};
|
|
2770
|
-
const de_ListTestGridProjectsCommand = async (output, context) => {
|
|
2771
|
-
if (output.statusCode >= 300) {
|
|
2772
|
-
return de_ListTestGridProjectsCommandError(output, context);
|
|
2773
|
-
}
|
|
2774
|
-
const data = await parseBody(output.body, context);
|
|
2775
|
-
let contents = {};
|
|
2776
|
-
contents = de_ListTestGridProjectsResult(data, context);
|
|
2777
|
-
const response = {
|
|
2778
|
-
$metadata: deserializeMetadata(output),
|
|
2779
|
-
...contents,
|
|
2780
|
-
};
|
|
2781
|
-
return response;
|
|
2782
|
-
};
|
|
2783
|
-
exports.de_ListTestGridProjectsCommand = de_ListTestGridProjectsCommand;
|
|
2784
|
-
const de_ListTestGridProjectsCommandError = async (output, context) => {
|
|
2785
|
-
const parsedOutput = {
|
|
2786
|
-
...output,
|
|
2787
|
-
body: await parseErrorBody(output.body, context),
|
|
2788
|
-
};
|
|
2789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2790
|
-
switch (errorCode) {
|
|
2791
|
-
case "ArgumentException":
|
|
2792
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2793
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2794
|
-
case "InternalServiceException":
|
|
2795
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
2796
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2797
|
-
default:
|
|
2798
|
-
const parsedBody = parsedOutput.body;
|
|
2799
|
-
return throwDefaultError({
|
|
2800
|
-
output,
|
|
2801
|
-
parsedBody,
|
|
2802
|
-
errorCode,
|
|
2803
|
-
});
|
|
2804
|
-
}
|
|
2805
|
-
};
|
|
2806
|
-
const de_ListTestGridSessionActionsCommand = async (output, context) => {
|
|
2807
|
-
if (output.statusCode >= 300) {
|
|
2808
|
-
return de_ListTestGridSessionActionsCommandError(output, context);
|
|
2809
|
-
}
|
|
2810
|
-
const data = await parseBody(output.body, context);
|
|
2811
|
-
let contents = {};
|
|
2812
|
-
contents = de_ListTestGridSessionActionsResult(data, context);
|
|
2813
|
-
const response = {
|
|
2814
|
-
$metadata: deserializeMetadata(output),
|
|
2815
|
-
...contents,
|
|
2816
|
-
};
|
|
2817
|
-
return response;
|
|
2818
|
-
};
|
|
2819
|
-
exports.de_ListTestGridSessionActionsCommand = de_ListTestGridSessionActionsCommand;
|
|
2820
|
-
const de_ListTestGridSessionActionsCommandError = async (output, context) => {
|
|
2821
|
-
const parsedOutput = {
|
|
2822
|
-
...output,
|
|
2823
|
-
body: await parseErrorBody(output.body, context),
|
|
2824
|
-
};
|
|
2825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2826
|
-
switch (errorCode) {
|
|
2827
|
-
case "ArgumentException":
|
|
2828
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2829
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "InternalServiceException":
|
|
2831
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
2832
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "NotFoundException":
|
|
2834
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2835
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2836
|
-
default:
|
|
2837
|
-
const parsedBody = parsedOutput.body;
|
|
2838
|
-
return throwDefaultError({
|
|
2839
|
-
output,
|
|
2840
|
-
parsedBody,
|
|
2841
|
-
errorCode,
|
|
2842
|
-
});
|
|
2843
|
-
}
|
|
2844
|
-
};
|
|
2845
|
-
const de_ListTestGridSessionArtifactsCommand = async (output, context) => {
|
|
2846
|
-
if (output.statusCode >= 300) {
|
|
2847
|
-
return de_ListTestGridSessionArtifactsCommandError(output, context);
|
|
2848
|
-
}
|
|
2849
|
-
const data = await parseBody(output.body, context);
|
|
2850
|
-
let contents = {};
|
|
2851
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2852
|
-
const response = {
|
|
2853
|
-
$metadata: deserializeMetadata(output),
|
|
2854
|
-
...contents,
|
|
2855
|
-
};
|
|
2856
|
-
return response;
|
|
2857
|
-
};
|
|
2858
|
-
exports.de_ListTestGridSessionArtifactsCommand = de_ListTestGridSessionArtifactsCommand;
|
|
2859
|
-
const de_ListTestGridSessionArtifactsCommandError = async (output, context) => {
|
|
2860
|
-
const parsedOutput = {
|
|
2861
|
-
...output,
|
|
2862
|
-
body: await parseErrorBody(output.body, context),
|
|
2863
|
-
};
|
|
2864
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2865
|
-
switch (errorCode) {
|
|
2866
|
-
case "ArgumentException":
|
|
2867
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2868
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2869
|
-
case "InternalServiceException":
|
|
2870
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
2871
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2872
|
-
case "NotFoundException":
|
|
2873
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2874
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2875
|
-
default:
|
|
2876
|
-
const parsedBody = parsedOutput.body;
|
|
2877
|
-
return throwDefaultError({
|
|
2878
|
-
output,
|
|
2879
|
-
parsedBody,
|
|
2880
|
-
errorCode,
|
|
2881
|
-
});
|
|
2882
|
-
}
|
|
2883
|
-
};
|
|
2884
|
-
const de_ListTestGridSessionsCommand = async (output, context) => {
|
|
2885
|
-
if (output.statusCode >= 300) {
|
|
2886
|
-
return de_ListTestGridSessionsCommandError(output, context);
|
|
2887
|
-
}
|
|
2888
|
-
const data = await parseBody(output.body, context);
|
|
2889
|
-
let contents = {};
|
|
2890
|
-
contents = de_ListTestGridSessionsResult(data, context);
|
|
2891
|
-
const response = {
|
|
2892
|
-
$metadata: deserializeMetadata(output),
|
|
2893
|
-
...contents,
|
|
2894
|
-
};
|
|
2895
|
-
return response;
|
|
2896
|
-
};
|
|
2897
|
-
exports.de_ListTestGridSessionsCommand = de_ListTestGridSessionsCommand;
|
|
2898
|
-
const de_ListTestGridSessionsCommandError = async (output, context) => {
|
|
2899
|
-
const parsedOutput = {
|
|
2900
|
-
...output,
|
|
2901
|
-
body: await parseErrorBody(output.body, context),
|
|
2902
|
-
};
|
|
2903
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2904
|
-
switch (errorCode) {
|
|
2905
|
-
case "ArgumentException":
|
|
2906
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2907
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2908
|
-
case "InternalServiceException":
|
|
2909
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
2910
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2911
|
-
case "NotFoundException":
|
|
2912
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2913
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2914
|
-
default:
|
|
2915
|
-
const parsedBody = parsedOutput.body;
|
|
2916
|
-
return throwDefaultError({
|
|
2917
|
-
output,
|
|
2918
|
-
parsedBody,
|
|
2919
|
-
errorCode,
|
|
2920
|
-
});
|
|
2921
|
-
}
|
|
2922
|
-
};
|
|
2923
|
-
const de_ListTestsCommand = async (output, context) => {
|
|
2924
|
-
if (output.statusCode >= 300) {
|
|
2925
|
-
return de_ListTestsCommandError(output, context);
|
|
2926
|
-
}
|
|
2927
|
-
const data = await parseBody(output.body, context);
|
|
2928
|
-
let contents = {};
|
|
2929
|
-
contents = de_ListTestsResult(data, context);
|
|
2930
|
-
const response = {
|
|
2931
|
-
$metadata: deserializeMetadata(output),
|
|
2932
|
-
...contents,
|
|
2933
|
-
};
|
|
2934
|
-
return response;
|
|
2935
|
-
};
|
|
2936
|
-
exports.de_ListTestsCommand = de_ListTestsCommand;
|
|
2937
|
-
const de_ListTestsCommandError = async (output, context) => {
|
|
2938
|
-
const parsedOutput = {
|
|
2939
|
-
...output,
|
|
2940
|
-
body: await parseErrorBody(output.body, context),
|
|
2941
|
-
};
|
|
2942
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2943
|
-
switch (errorCode) {
|
|
2944
|
-
case "ArgumentException":
|
|
2945
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2946
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2947
|
-
case "LimitExceededException":
|
|
2948
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2949
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2950
|
-
case "NotFoundException":
|
|
2951
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2952
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2953
|
-
case "ServiceAccountException":
|
|
2954
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2955
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2956
|
-
default:
|
|
2957
|
-
const parsedBody = parsedOutput.body;
|
|
2958
|
-
return throwDefaultError({
|
|
2959
|
-
output,
|
|
2960
|
-
parsedBody,
|
|
2961
|
-
errorCode,
|
|
2962
|
-
});
|
|
2963
|
-
}
|
|
2964
|
-
};
|
|
2965
|
-
const de_ListUniqueProblemsCommand = async (output, context) => {
|
|
2966
|
-
if (output.statusCode >= 300) {
|
|
2967
|
-
return de_ListUniqueProblemsCommandError(output, context);
|
|
2968
|
-
}
|
|
2969
|
-
const data = await parseBody(output.body, context);
|
|
2970
|
-
let contents = {};
|
|
2971
|
-
contents = de_ListUniqueProblemsResult(data, context);
|
|
2972
|
-
const response = {
|
|
2973
|
-
$metadata: deserializeMetadata(output),
|
|
2974
|
-
...contents,
|
|
2975
|
-
};
|
|
2976
|
-
return response;
|
|
2977
|
-
};
|
|
2978
|
-
exports.de_ListUniqueProblemsCommand = de_ListUniqueProblemsCommand;
|
|
2979
|
-
const de_ListUniqueProblemsCommandError = async (output, context) => {
|
|
2980
|
-
const parsedOutput = {
|
|
2981
|
-
...output,
|
|
2982
|
-
body: await parseErrorBody(output.body, context),
|
|
2983
|
-
};
|
|
2984
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2985
|
-
switch (errorCode) {
|
|
2986
|
-
case "ArgumentException":
|
|
2987
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2988
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2989
|
-
case "LimitExceededException":
|
|
2990
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2991
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2992
|
-
case "NotFoundException":
|
|
2993
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2994
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2995
|
-
case "ServiceAccountException":
|
|
2996
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2997
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2998
|
-
default:
|
|
2999
|
-
const parsedBody = parsedOutput.body;
|
|
3000
|
-
return throwDefaultError({
|
|
3001
|
-
output,
|
|
3002
|
-
parsedBody,
|
|
3003
|
-
errorCode,
|
|
3004
|
-
});
|
|
3005
|
-
}
|
|
3006
|
-
};
|
|
3007
|
-
const de_ListUploadsCommand = async (output, context) => {
|
|
3008
|
-
if (output.statusCode >= 300) {
|
|
3009
|
-
return de_ListUploadsCommandError(output, context);
|
|
3010
|
-
}
|
|
3011
|
-
const data = await parseBody(output.body, context);
|
|
3012
|
-
let contents = {};
|
|
3013
|
-
contents = de_ListUploadsResult(data, context);
|
|
3014
|
-
const response = {
|
|
3015
|
-
$metadata: deserializeMetadata(output),
|
|
3016
|
-
...contents,
|
|
3017
|
-
};
|
|
3018
|
-
return response;
|
|
3019
|
-
};
|
|
3020
|
-
exports.de_ListUploadsCommand = de_ListUploadsCommand;
|
|
3021
|
-
const de_ListUploadsCommandError = async (output, context) => {
|
|
3022
|
-
const parsedOutput = {
|
|
3023
|
-
...output,
|
|
3024
|
-
body: await parseErrorBody(output.body, context),
|
|
3025
|
-
};
|
|
3026
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3027
|
-
switch (errorCode) {
|
|
3028
|
-
case "ArgumentException":
|
|
3029
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3030
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "LimitExceededException":
|
|
3032
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3033
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "NotFoundException":
|
|
3035
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3036
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3037
|
-
case "ServiceAccountException":
|
|
3038
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3039
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3040
|
-
default:
|
|
3041
|
-
const parsedBody = parsedOutput.body;
|
|
3042
|
-
return throwDefaultError({
|
|
3043
|
-
output,
|
|
3044
|
-
parsedBody,
|
|
3045
|
-
errorCode,
|
|
3046
|
-
});
|
|
3047
|
-
}
|
|
3048
|
-
};
|
|
3049
|
-
const de_ListVPCEConfigurationsCommand = async (output, context) => {
|
|
3050
|
-
if (output.statusCode >= 300) {
|
|
3051
|
-
return de_ListVPCEConfigurationsCommandError(output, context);
|
|
3052
|
-
}
|
|
3053
|
-
const data = await parseBody(output.body, context);
|
|
3054
|
-
let contents = {};
|
|
3055
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3056
|
-
const response = {
|
|
3057
|
-
$metadata: deserializeMetadata(output),
|
|
3058
|
-
...contents,
|
|
3059
|
-
};
|
|
3060
|
-
return response;
|
|
3061
|
-
};
|
|
3062
|
-
exports.de_ListVPCEConfigurationsCommand = de_ListVPCEConfigurationsCommand;
|
|
3063
|
-
const de_ListVPCEConfigurationsCommandError = async (output, context) => {
|
|
3064
|
-
const parsedOutput = {
|
|
3065
|
-
...output,
|
|
3066
|
-
body: await parseErrorBody(output.body, context),
|
|
3067
|
-
};
|
|
3068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3069
|
-
switch (errorCode) {
|
|
3070
|
-
case "ArgumentException":
|
|
3071
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3072
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3073
|
-
case "ServiceAccountException":
|
|
3074
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3075
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3076
|
-
default:
|
|
3077
|
-
const parsedBody = parsedOutput.body;
|
|
3078
|
-
return throwDefaultError({
|
|
3079
|
-
output,
|
|
3080
|
-
parsedBody,
|
|
3081
|
-
errorCode,
|
|
3082
|
-
});
|
|
3083
|
-
}
|
|
3084
|
-
};
|
|
3085
|
-
const de_PurchaseOfferingCommand = async (output, context) => {
|
|
3086
|
-
if (output.statusCode >= 300) {
|
|
3087
|
-
return de_PurchaseOfferingCommandError(output, context);
|
|
3088
|
-
}
|
|
3089
|
-
const data = await parseBody(output.body, context);
|
|
3090
|
-
let contents = {};
|
|
3091
|
-
contents = de_PurchaseOfferingResult(data, context);
|
|
3092
|
-
const response = {
|
|
3093
|
-
$metadata: deserializeMetadata(output),
|
|
3094
|
-
...contents,
|
|
3095
|
-
};
|
|
3096
|
-
return response;
|
|
3097
|
-
};
|
|
3098
|
-
exports.de_PurchaseOfferingCommand = de_PurchaseOfferingCommand;
|
|
3099
|
-
const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
3100
|
-
const parsedOutput = {
|
|
3101
|
-
...output,
|
|
3102
|
-
body: await parseErrorBody(output.body, context),
|
|
3103
|
-
};
|
|
3104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3105
|
-
switch (errorCode) {
|
|
3106
|
-
case "ArgumentException":
|
|
3107
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3108
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3109
|
-
case "LimitExceededException":
|
|
3110
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3111
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3112
|
-
case "NotEligibleException":
|
|
3113
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
3114
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
3115
|
-
case "NotFoundException":
|
|
3116
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3117
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3118
|
-
case "ServiceAccountException":
|
|
3119
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3120
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3121
|
-
default:
|
|
3122
|
-
const parsedBody = parsedOutput.body;
|
|
3123
|
-
return throwDefaultError({
|
|
3124
|
-
output,
|
|
3125
|
-
parsedBody,
|
|
3126
|
-
errorCode,
|
|
3127
|
-
});
|
|
3128
|
-
}
|
|
3129
|
-
};
|
|
3130
|
-
const de_RenewOfferingCommand = async (output, context) => {
|
|
3131
|
-
if (output.statusCode >= 300) {
|
|
3132
|
-
return de_RenewOfferingCommandError(output, context);
|
|
3133
|
-
}
|
|
3134
|
-
const data = await parseBody(output.body, context);
|
|
3135
|
-
let contents = {};
|
|
3136
|
-
contents = de_RenewOfferingResult(data, context);
|
|
3137
|
-
const response = {
|
|
3138
|
-
$metadata: deserializeMetadata(output),
|
|
3139
|
-
...contents,
|
|
3140
|
-
};
|
|
3141
|
-
return response;
|
|
3142
|
-
};
|
|
3143
|
-
exports.de_RenewOfferingCommand = de_RenewOfferingCommand;
|
|
3144
|
-
const de_RenewOfferingCommandError = async (output, context) => {
|
|
3145
|
-
const parsedOutput = {
|
|
3146
|
-
...output,
|
|
3147
|
-
body: await parseErrorBody(output.body, context),
|
|
3148
|
-
};
|
|
3149
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3150
|
-
switch (errorCode) {
|
|
3151
|
-
case "ArgumentException":
|
|
3152
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3153
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3154
|
-
case "LimitExceededException":
|
|
3155
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3156
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3157
|
-
case "NotEligibleException":
|
|
3158
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
3159
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
3160
|
-
case "NotFoundException":
|
|
3161
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3162
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3163
|
-
case "ServiceAccountException":
|
|
3164
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3165
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3166
|
-
default:
|
|
3167
|
-
const parsedBody = parsedOutput.body;
|
|
3168
|
-
return throwDefaultError({
|
|
3169
|
-
output,
|
|
3170
|
-
parsedBody,
|
|
3171
|
-
errorCode,
|
|
3172
|
-
});
|
|
3173
|
-
}
|
|
3174
|
-
};
|
|
3175
|
-
const de_ScheduleRunCommand = async (output, context) => {
|
|
3176
|
-
if (output.statusCode >= 300) {
|
|
3177
|
-
return de_ScheduleRunCommandError(output, context);
|
|
3178
|
-
}
|
|
3179
|
-
const data = await parseBody(output.body, context);
|
|
3180
|
-
let contents = {};
|
|
3181
|
-
contents = de_ScheduleRunResult(data, context);
|
|
3182
|
-
const response = {
|
|
3183
|
-
$metadata: deserializeMetadata(output),
|
|
3184
|
-
...contents,
|
|
3185
|
-
};
|
|
3186
|
-
return response;
|
|
3187
|
-
};
|
|
3188
|
-
exports.de_ScheduleRunCommand = de_ScheduleRunCommand;
|
|
3189
|
-
const de_ScheduleRunCommandError = async (output, context) => {
|
|
3190
|
-
const parsedOutput = {
|
|
3191
|
-
...output,
|
|
3192
|
-
body: await parseErrorBody(output.body, context),
|
|
3193
|
-
};
|
|
3194
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3195
|
-
switch (errorCode) {
|
|
3196
|
-
case "ArgumentException":
|
|
3197
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3198
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3199
|
-
case "IdempotencyException":
|
|
3200
|
-
case "com.amazonaws.devicefarm#IdempotencyException":
|
|
3201
|
-
throw await de_IdempotencyExceptionRes(parsedOutput, context);
|
|
3202
|
-
case "LimitExceededException":
|
|
3203
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3204
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3205
|
-
case "NotFoundException":
|
|
3206
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3207
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3208
|
-
case "ServiceAccountException":
|
|
3209
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3210
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3211
|
-
default:
|
|
3212
|
-
const parsedBody = parsedOutput.body;
|
|
3213
|
-
return throwDefaultError({
|
|
3214
|
-
output,
|
|
3215
|
-
parsedBody,
|
|
3216
|
-
errorCode,
|
|
3217
|
-
});
|
|
3218
|
-
}
|
|
3219
|
-
};
|
|
3220
|
-
const de_StopJobCommand = async (output, context) => {
|
|
3221
|
-
if (output.statusCode >= 300) {
|
|
3222
|
-
return de_StopJobCommandError(output, context);
|
|
3223
|
-
}
|
|
3224
|
-
const data = await parseBody(output.body, context);
|
|
3225
|
-
let contents = {};
|
|
3226
|
-
contents = de_StopJobResult(data, context);
|
|
3227
|
-
const response = {
|
|
3228
|
-
$metadata: deserializeMetadata(output),
|
|
3229
|
-
...contents,
|
|
3230
|
-
};
|
|
3231
|
-
return response;
|
|
3232
|
-
};
|
|
3233
|
-
exports.de_StopJobCommand = de_StopJobCommand;
|
|
3234
|
-
const de_StopJobCommandError = async (output, context) => {
|
|
3235
|
-
const parsedOutput = {
|
|
3236
|
-
...output,
|
|
3237
|
-
body: await parseErrorBody(output.body, context),
|
|
3238
|
-
};
|
|
3239
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3240
|
-
switch (errorCode) {
|
|
3241
|
-
case "ArgumentException":
|
|
3242
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3243
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3244
|
-
case "LimitExceededException":
|
|
3245
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3246
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3247
|
-
case "NotFoundException":
|
|
3248
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3249
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3250
|
-
case "ServiceAccountException":
|
|
3251
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3252
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3253
|
-
default:
|
|
3254
|
-
const parsedBody = parsedOutput.body;
|
|
3255
|
-
return throwDefaultError({
|
|
3256
|
-
output,
|
|
3257
|
-
parsedBody,
|
|
3258
|
-
errorCode,
|
|
3259
|
-
});
|
|
3260
|
-
}
|
|
3261
|
-
};
|
|
3262
|
-
const de_StopRemoteAccessSessionCommand = async (output, context) => {
|
|
3263
|
-
if (output.statusCode >= 300) {
|
|
3264
|
-
return de_StopRemoteAccessSessionCommandError(output, context);
|
|
3265
|
-
}
|
|
3266
|
-
const data = await parseBody(output.body, context);
|
|
3267
|
-
let contents = {};
|
|
3268
|
-
contents = de_StopRemoteAccessSessionResult(data, context);
|
|
3269
|
-
const response = {
|
|
3270
|
-
$metadata: deserializeMetadata(output),
|
|
3271
|
-
...contents,
|
|
3272
|
-
};
|
|
3273
|
-
return response;
|
|
3274
|
-
};
|
|
3275
|
-
exports.de_StopRemoteAccessSessionCommand = de_StopRemoteAccessSessionCommand;
|
|
3276
|
-
const de_StopRemoteAccessSessionCommandError = async (output, context) => {
|
|
3277
|
-
const parsedOutput = {
|
|
3278
|
-
...output,
|
|
3279
|
-
body: await parseErrorBody(output.body, context),
|
|
3280
|
-
};
|
|
3281
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3282
|
-
switch (errorCode) {
|
|
3283
|
-
case "ArgumentException":
|
|
3284
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3285
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3286
|
-
case "LimitExceededException":
|
|
3287
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3288
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3289
|
-
case "NotFoundException":
|
|
3290
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3291
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3292
|
-
case "ServiceAccountException":
|
|
3293
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3294
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3295
|
-
default:
|
|
3296
|
-
const parsedBody = parsedOutput.body;
|
|
3297
|
-
return throwDefaultError({
|
|
3298
|
-
output,
|
|
3299
|
-
parsedBody,
|
|
3300
|
-
errorCode,
|
|
3301
|
-
});
|
|
3302
|
-
}
|
|
3303
|
-
};
|
|
3304
|
-
const de_StopRunCommand = async (output, context) => {
|
|
3305
|
-
if (output.statusCode >= 300) {
|
|
3306
|
-
return de_StopRunCommandError(output, context);
|
|
3307
|
-
}
|
|
3308
|
-
const data = await parseBody(output.body, context);
|
|
3309
|
-
let contents = {};
|
|
3310
|
-
contents = de_StopRunResult(data, context);
|
|
3311
|
-
const response = {
|
|
3312
|
-
$metadata: deserializeMetadata(output),
|
|
3313
|
-
...contents,
|
|
3314
|
-
};
|
|
3315
|
-
return response;
|
|
3316
|
-
};
|
|
3317
|
-
exports.de_StopRunCommand = de_StopRunCommand;
|
|
3318
|
-
const de_StopRunCommandError = async (output, context) => {
|
|
3319
|
-
const parsedOutput = {
|
|
3320
|
-
...output,
|
|
3321
|
-
body: await parseErrorBody(output.body, context),
|
|
3322
|
-
};
|
|
3323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3324
|
-
switch (errorCode) {
|
|
3325
|
-
case "ArgumentException":
|
|
3326
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3327
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "LimitExceededException":
|
|
3329
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3330
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "NotFoundException":
|
|
3332
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3333
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "ServiceAccountException":
|
|
3335
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3336
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3337
|
-
default:
|
|
3338
|
-
const parsedBody = parsedOutput.body;
|
|
3339
|
-
return throwDefaultError({
|
|
3340
|
-
output,
|
|
3341
|
-
parsedBody,
|
|
3342
|
-
errorCode,
|
|
3343
|
-
});
|
|
3344
|
-
}
|
|
3345
|
-
};
|
|
3346
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3347
|
-
if (output.statusCode >= 300) {
|
|
3348
|
-
return de_TagResourceCommandError(output, context);
|
|
3349
|
-
}
|
|
3350
|
-
const data = await parseBody(output.body, context);
|
|
3351
|
-
let contents = {};
|
|
3352
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3353
|
-
const response = {
|
|
3354
|
-
$metadata: deserializeMetadata(output),
|
|
3355
|
-
...contents,
|
|
3356
|
-
};
|
|
3357
|
-
return response;
|
|
3358
|
-
};
|
|
3359
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3360
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3361
|
-
const parsedOutput = {
|
|
3362
|
-
...output,
|
|
3363
|
-
body: await parseErrorBody(output.body, context),
|
|
3364
|
-
};
|
|
3365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3366
|
-
switch (errorCode) {
|
|
3367
|
-
case "ArgumentException":
|
|
3368
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3369
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3370
|
-
case "NotFoundException":
|
|
3371
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3372
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3373
|
-
case "TagOperationException":
|
|
3374
|
-
case "com.amazonaws.devicefarm#TagOperationException":
|
|
3375
|
-
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
3376
|
-
case "TagPolicyException":
|
|
3377
|
-
case "com.amazonaws.devicefarm#TagPolicyException":
|
|
3378
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
3379
|
-
case "TooManyTagsException":
|
|
3380
|
-
case "com.amazonaws.devicefarm#TooManyTagsException":
|
|
3381
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3382
|
-
default:
|
|
3383
|
-
const parsedBody = parsedOutput.body;
|
|
3384
|
-
return throwDefaultError({
|
|
3385
|
-
output,
|
|
3386
|
-
parsedBody,
|
|
3387
|
-
errorCode,
|
|
3388
|
-
});
|
|
3389
|
-
}
|
|
3390
|
-
};
|
|
3391
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3392
|
-
if (output.statusCode >= 300) {
|
|
3393
|
-
return de_UntagResourceCommandError(output, context);
|
|
3394
|
-
}
|
|
3395
|
-
const data = await parseBody(output.body, context);
|
|
3396
|
-
let contents = {};
|
|
3397
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3398
|
-
const response = {
|
|
3399
|
-
$metadata: deserializeMetadata(output),
|
|
3400
|
-
...contents,
|
|
3401
|
-
};
|
|
3402
|
-
return response;
|
|
3403
|
-
};
|
|
3404
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3405
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3406
|
-
const parsedOutput = {
|
|
3407
|
-
...output,
|
|
3408
|
-
body: await parseErrorBody(output.body, context),
|
|
3409
|
-
};
|
|
3410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3411
|
-
switch (errorCode) {
|
|
3412
|
-
case "ArgumentException":
|
|
3413
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3414
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3415
|
-
case "NotFoundException":
|
|
3416
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3417
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3418
|
-
case "TagOperationException":
|
|
3419
|
-
case "com.amazonaws.devicefarm#TagOperationException":
|
|
3420
|
-
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
3421
|
-
default:
|
|
3422
|
-
const parsedBody = parsedOutput.body;
|
|
3423
|
-
return throwDefaultError({
|
|
3424
|
-
output,
|
|
3425
|
-
parsedBody,
|
|
3426
|
-
errorCode,
|
|
3427
|
-
});
|
|
3428
|
-
}
|
|
3429
|
-
};
|
|
3430
|
-
const de_UpdateDeviceInstanceCommand = async (output, context) => {
|
|
3431
|
-
if (output.statusCode >= 300) {
|
|
3432
|
-
return de_UpdateDeviceInstanceCommandError(output, context);
|
|
3433
|
-
}
|
|
3434
|
-
const data = await parseBody(output.body, context);
|
|
3435
|
-
let contents = {};
|
|
3436
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3437
|
-
const response = {
|
|
3438
|
-
$metadata: deserializeMetadata(output),
|
|
3439
|
-
...contents,
|
|
3440
|
-
};
|
|
3441
|
-
return response;
|
|
3442
|
-
};
|
|
3443
|
-
exports.de_UpdateDeviceInstanceCommand = de_UpdateDeviceInstanceCommand;
|
|
3444
|
-
const de_UpdateDeviceInstanceCommandError = async (output, context) => {
|
|
3445
|
-
const parsedOutput = {
|
|
3446
|
-
...output,
|
|
3447
|
-
body: await parseErrorBody(output.body, context),
|
|
3448
|
-
};
|
|
3449
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3450
|
-
switch (errorCode) {
|
|
3451
|
-
case "ArgumentException":
|
|
3452
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3453
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3454
|
-
case "LimitExceededException":
|
|
3455
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3456
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3457
|
-
case "NotFoundException":
|
|
3458
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3459
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3460
|
-
case "ServiceAccountException":
|
|
3461
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3462
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3463
|
-
default:
|
|
3464
|
-
const parsedBody = parsedOutput.body;
|
|
3465
|
-
return throwDefaultError({
|
|
3466
|
-
output,
|
|
3467
|
-
parsedBody,
|
|
3468
|
-
errorCode,
|
|
3469
|
-
});
|
|
3470
|
-
}
|
|
3471
|
-
};
|
|
3472
|
-
const de_UpdateDevicePoolCommand = async (output, context) => {
|
|
3473
|
-
if (output.statusCode >= 300) {
|
|
3474
|
-
return de_UpdateDevicePoolCommandError(output, context);
|
|
3475
|
-
}
|
|
3476
|
-
const data = await parseBody(output.body, context);
|
|
3477
|
-
let contents = {};
|
|
3478
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3479
|
-
const response = {
|
|
3480
|
-
$metadata: deserializeMetadata(output),
|
|
3481
|
-
...contents,
|
|
3482
|
-
};
|
|
3483
|
-
return response;
|
|
3484
|
-
};
|
|
3485
|
-
exports.de_UpdateDevicePoolCommand = de_UpdateDevicePoolCommand;
|
|
3486
|
-
const de_UpdateDevicePoolCommandError = async (output, context) => {
|
|
3487
|
-
const parsedOutput = {
|
|
3488
|
-
...output,
|
|
3489
|
-
body: await parseErrorBody(output.body, context),
|
|
3490
|
-
};
|
|
3491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3492
|
-
switch (errorCode) {
|
|
3493
|
-
case "ArgumentException":
|
|
3494
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3495
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3496
|
-
case "LimitExceededException":
|
|
3497
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3498
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3499
|
-
case "NotFoundException":
|
|
3500
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3501
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3502
|
-
case "ServiceAccountException":
|
|
3503
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3504
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3505
|
-
default:
|
|
3506
|
-
const parsedBody = parsedOutput.body;
|
|
3507
|
-
return throwDefaultError({
|
|
3508
|
-
output,
|
|
3509
|
-
parsedBody,
|
|
3510
|
-
errorCode,
|
|
3511
|
-
});
|
|
3512
|
-
}
|
|
3513
|
-
};
|
|
3514
|
-
const de_UpdateInstanceProfileCommand = async (output, context) => {
|
|
3515
|
-
if (output.statusCode >= 300) {
|
|
3516
|
-
return de_UpdateInstanceProfileCommandError(output, context);
|
|
3517
|
-
}
|
|
3518
|
-
const data = await parseBody(output.body, context);
|
|
3519
|
-
let contents = {};
|
|
3520
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3521
|
-
const response = {
|
|
3522
|
-
$metadata: deserializeMetadata(output),
|
|
3523
|
-
...contents,
|
|
3524
|
-
};
|
|
3525
|
-
return response;
|
|
3526
|
-
};
|
|
3527
|
-
exports.de_UpdateInstanceProfileCommand = de_UpdateInstanceProfileCommand;
|
|
3528
|
-
const de_UpdateInstanceProfileCommandError = async (output, context) => {
|
|
3529
|
-
const parsedOutput = {
|
|
3530
|
-
...output,
|
|
3531
|
-
body: await parseErrorBody(output.body, context),
|
|
3532
|
-
};
|
|
3533
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3534
|
-
switch (errorCode) {
|
|
3535
|
-
case "ArgumentException":
|
|
3536
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3537
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3538
|
-
case "LimitExceededException":
|
|
3539
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3540
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3541
|
-
case "NotFoundException":
|
|
3542
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3543
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "ServiceAccountException":
|
|
3545
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3546
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3547
|
-
default:
|
|
3548
|
-
const parsedBody = parsedOutput.body;
|
|
3549
|
-
return throwDefaultError({
|
|
3550
|
-
output,
|
|
3551
|
-
parsedBody,
|
|
3552
|
-
errorCode,
|
|
3553
|
-
});
|
|
3554
|
-
}
|
|
3555
|
-
};
|
|
3556
|
-
const de_UpdateNetworkProfileCommand = async (output, context) => {
|
|
3557
|
-
if (output.statusCode >= 300) {
|
|
3558
|
-
return de_UpdateNetworkProfileCommandError(output, context);
|
|
3559
|
-
}
|
|
3560
|
-
const data = await parseBody(output.body, context);
|
|
3561
|
-
let contents = {};
|
|
3562
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3563
|
-
const response = {
|
|
3564
|
-
$metadata: deserializeMetadata(output),
|
|
3565
|
-
...contents,
|
|
3566
|
-
};
|
|
3567
|
-
return response;
|
|
3568
|
-
};
|
|
3569
|
-
exports.de_UpdateNetworkProfileCommand = de_UpdateNetworkProfileCommand;
|
|
3570
|
-
const de_UpdateNetworkProfileCommandError = async (output, context) => {
|
|
3571
|
-
const parsedOutput = {
|
|
3572
|
-
...output,
|
|
3573
|
-
body: await parseErrorBody(output.body, context),
|
|
3574
|
-
};
|
|
3575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3576
|
-
switch (errorCode) {
|
|
3577
|
-
case "ArgumentException":
|
|
3578
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3579
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3580
|
-
case "LimitExceededException":
|
|
3581
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3582
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3583
|
-
case "NotFoundException":
|
|
3584
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3585
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3586
|
-
case "ServiceAccountException":
|
|
3587
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3588
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3589
|
-
default:
|
|
3590
|
-
const parsedBody = parsedOutput.body;
|
|
3591
|
-
return throwDefaultError({
|
|
3592
|
-
output,
|
|
3593
|
-
parsedBody,
|
|
3594
|
-
errorCode,
|
|
3595
|
-
});
|
|
3596
|
-
}
|
|
3597
|
-
};
|
|
3598
|
-
const de_UpdateProjectCommand = async (output, context) => {
|
|
3599
|
-
if (output.statusCode >= 300) {
|
|
3600
|
-
return de_UpdateProjectCommandError(output, context);
|
|
3601
|
-
}
|
|
3602
|
-
const data = await parseBody(output.body, context);
|
|
3603
|
-
let contents = {};
|
|
3604
|
-
contents = de_UpdateProjectResult(data, context);
|
|
3605
|
-
const response = {
|
|
3606
|
-
$metadata: deserializeMetadata(output),
|
|
3607
|
-
...contents,
|
|
3608
|
-
};
|
|
3609
|
-
return response;
|
|
3610
|
-
};
|
|
3611
|
-
exports.de_UpdateProjectCommand = de_UpdateProjectCommand;
|
|
3612
|
-
const de_UpdateProjectCommandError = async (output, context) => {
|
|
3613
|
-
const parsedOutput = {
|
|
3614
|
-
...output,
|
|
3615
|
-
body: await parseErrorBody(output.body, context),
|
|
3616
|
-
};
|
|
3617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3618
|
-
switch (errorCode) {
|
|
3619
|
-
case "ArgumentException":
|
|
3620
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3621
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3622
|
-
case "LimitExceededException":
|
|
3623
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3624
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "NotFoundException":
|
|
3626
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3627
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "ServiceAccountException":
|
|
3629
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3630
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3631
|
-
default:
|
|
3632
|
-
const parsedBody = parsedOutput.body;
|
|
3633
|
-
return throwDefaultError({
|
|
3634
|
-
output,
|
|
3635
|
-
parsedBody,
|
|
3636
|
-
errorCode,
|
|
3637
|
-
});
|
|
3638
|
-
}
|
|
3639
|
-
};
|
|
3640
|
-
const de_UpdateTestGridProjectCommand = async (output, context) => {
|
|
3641
|
-
if (output.statusCode >= 300) {
|
|
3642
|
-
return de_UpdateTestGridProjectCommandError(output, context);
|
|
3643
|
-
}
|
|
3644
|
-
const data = await parseBody(output.body, context);
|
|
3645
|
-
let contents = {};
|
|
3646
|
-
contents = de_UpdateTestGridProjectResult(data, context);
|
|
3647
|
-
const response = {
|
|
3648
|
-
$metadata: deserializeMetadata(output),
|
|
3649
|
-
...contents,
|
|
3650
|
-
};
|
|
3651
|
-
return response;
|
|
3652
|
-
};
|
|
3653
|
-
exports.de_UpdateTestGridProjectCommand = de_UpdateTestGridProjectCommand;
|
|
3654
|
-
const de_UpdateTestGridProjectCommandError = async (output, context) => {
|
|
3655
|
-
const parsedOutput = {
|
|
3656
|
-
...output,
|
|
3657
|
-
body: await parseErrorBody(output.body, context),
|
|
3658
|
-
};
|
|
3659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3660
|
-
switch (errorCode) {
|
|
3661
|
-
case "ArgumentException":
|
|
3662
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3663
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3664
|
-
case "InternalServiceException":
|
|
3665
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
3666
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3667
|
-
case "LimitExceededException":
|
|
3668
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3669
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3670
|
-
case "NotFoundException":
|
|
3671
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3672
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3673
|
-
default:
|
|
3674
|
-
const parsedBody = parsedOutput.body;
|
|
3675
|
-
return throwDefaultError({
|
|
3676
|
-
output,
|
|
3677
|
-
parsedBody,
|
|
3678
|
-
errorCode,
|
|
3679
|
-
});
|
|
3680
|
-
}
|
|
3681
|
-
};
|
|
3682
|
-
const de_UpdateUploadCommand = async (output, context) => {
|
|
3683
|
-
if (output.statusCode >= 300) {
|
|
3684
|
-
return de_UpdateUploadCommandError(output, context);
|
|
3685
|
-
}
|
|
3686
|
-
const data = await parseBody(output.body, context);
|
|
3687
|
-
let contents = {};
|
|
3688
|
-
contents = de_UpdateUploadResult(data, context);
|
|
3689
|
-
const response = {
|
|
3690
|
-
$metadata: deserializeMetadata(output),
|
|
3691
|
-
...contents,
|
|
3692
|
-
};
|
|
3693
|
-
return response;
|
|
3694
|
-
};
|
|
3695
|
-
exports.de_UpdateUploadCommand = de_UpdateUploadCommand;
|
|
3696
|
-
const de_UpdateUploadCommandError = async (output, context) => {
|
|
3697
|
-
const parsedOutput = {
|
|
3698
|
-
...output,
|
|
3699
|
-
body: await parseErrorBody(output.body, context),
|
|
3700
|
-
};
|
|
3701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3702
|
-
switch (errorCode) {
|
|
3703
|
-
case "ArgumentException":
|
|
3704
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3705
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3706
|
-
case "LimitExceededException":
|
|
3707
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3708
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3709
|
-
case "NotFoundException":
|
|
3710
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3711
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3712
|
-
case "ServiceAccountException":
|
|
3713
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3714
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3715
|
-
default:
|
|
3716
|
-
const parsedBody = parsedOutput.body;
|
|
3717
|
-
return throwDefaultError({
|
|
3718
|
-
output,
|
|
3719
|
-
parsedBody,
|
|
3720
|
-
errorCode,
|
|
3721
|
-
});
|
|
3722
|
-
}
|
|
3723
|
-
};
|
|
3724
|
-
const de_UpdateVPCEConfigurationCommand = async (output, context) => {
|
|
3725
|
-
if (output.statusCode >= 300) {
|
|
3726
|
-
return de_UpdateVPCEConfigurationCommandError(output, context);
|
|
3727
|
-
}
|
|
3728
|
-
const data = await parseBody(output.body, context);
|
|
3729
|
-
let contents = {};
|
|
3730
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3731
|
-
const response = {
|
|
3732
|
-
$metadata: deserializeMetadata(output),
|
|
3733
|
-
...contents,
|
|
3734
|
-
};
|
|
3735
|
-
return response;
|
|
3736
|
-
};
|
|
3737
|
-
exports.de_UpdateVPCEConfigurationCommand = de_UpdateVPCEConfigurationCommand;
|
|
3738
|
-
const de_UpdateVPCEConfigurationCommandError = async (output, context) => {
|
|
3739
|
-
const parsedOutput = {
|
|
3740
|
-
...output,
|
|
3741
|
-
body: await parseErrorBody(output.body, context),
|
|
3742
|
-
};
|
|
3743
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3744
|
-
switch (errorCode) {
|
|
3745
|
-
case "ArgumentException":
|
|
3746
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3747
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3748
|
-
case "InvalidOperationException":
|
|
3749
|
-
case "com.amazonaws.devicefarm#InvalidOperationException":
|
|
3750
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
3751
|
-
case "NotFoundException":
|
|
3752
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3753
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3754
|
-
case "ServiceAccountException":
|
|
3755
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3756
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3757
|
-
default:
|
|
3758
|
-
const parsedBody = parsedOutput.body;
|
|
3759
|
-
return throwDefaultError({
|
|
3760
|
-
output,
|
|
3761
|
-
parsedBody,
|
|
3762
|
-
errorCode,
|
|
3763
|
-
});
|
|
3764
|
-
}
|
|
3765
|
-
};
|
|
3766
|
-
const de_ArgumentExceptionRes = async (parsedOutput, context) => {
|
|
3767
|
-
const body = parsedOutput.body;
|
|
3768
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3769
|
-
const exception = new models_0_1.ArgumentException({
|
|
3770
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3771
|
-
...deserialized,
|
|
3772
|
-
});
|
|
3773
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3774
|
-
};
|
|
3775
|
-
const de_CannotDeleteExceptionRes = async (parsedOutput, context) => {
|
|
3776
|
-
const body = parsedOutput.body;
|
|
3777
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3778
|
-
const exception = new models_0_1.CannotDeleteException({
|
|
3779
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3780
|
-
...deserialized,
|
|
3781
|
-
});
|
|
3782
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3783
|
-
};
|
|
3784
|
-
const de_IdempotencyExceptionRes = async (parsedOutput, context) => {
|
|
3785
|
-
const body = parsedOutput.body;
|
|
3786
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3787
|
-
const exception = new models_0_1.IdempotencyException({
|
|
3788
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3789
|
-
...deserialized,
|
|
3790
|
-
});
|
|
3791
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3792
|
-
};
|
|
3793
|
-
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
3794
|
-
const body = parsedOutput.body;
|
|
3795
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3796
|
-
const exception = new models_0_1.InternalServiceException({
|
|
3797
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3798
|
-
...deserialized,
|
|
3799
|
-
});
|
|
3800
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3801
|
-
};
|
|
3802
|
-
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
3803
|
-
const body = parsedOutput.body;
|
|
3804
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3805
|
-
const exception = new models_0_1.InvalidOperationException({
|
|
3806
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3807
|
-
...deserialized,
|
|
3808
|
-
});
|
|
3809
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3810
|
-
};
|
|
3811
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3812
|
-
const body = parsedOutput.body;
|
|
3813
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3814
|
-
const exception = new models_0_1.LimitExceededException({
|
|
3815
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3816
|
-
...deserialized,
|
|
3817
|
-
});
|
|
3818
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3819
|
-
};
|
|
3820
|
-
const de_NotEligibleExceptionRes = async (parsedOutput, context) => {
|
|
3821
|
-
const body = parsedOutput.body;
|
|
3822
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3823
|
-
const exception = new models_0_1.NotEligibleException({
|
|
3824
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3825
|
-
...deserialized,
|
|
3826
|
-
});
|
|
3827
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3828
|
-
};
|
|
3829
|
-
const de_NotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3830
|
-
const body = parsedOutput.body;
|
|
3831
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3832
|
-
const exception = new models_0_1.NotFoundException({
|
|
3833
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3834
|
-
...deserialized,
|
|
3835
|
-
});
|
|
3836
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3837
|
-
};
|
|
3838
|
-
const de_ServiceAccountExceptionRes = async (parsedOutput, context) => {
|
|
3839
|
-
const body = parsedOutput.body;
|
|
3840
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3841
|
-
const exception = new models_0_1.ServiceAccountException({
|
|
3842
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3843
|
-
...deserialized,
|
|
3844
|
-
});
|
|
3845
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3846
|
-
};
|
|
3847
|
-
const de_TagOperationExceptionRes = async (parsedOutput, context) => {
|
|
3848
|
-
const body = parsedOutput.body;
|
|
3849
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3850
|
-
const exception = new models_0_1.TagOperationException({
|
|
3851
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3852
|
-
...deserialized,
|
|
3853
|
-
});
|
|
3854
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3855
|
-
};
|
|
3856
|
-
const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
|
|
3857
|
-
const body = parsedOutput.body;
|
|
3858
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3859
|
-
const exception = new models_0_1.TagPolicyException({
|
|
3860
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3861
|
-
...deserialized,
|
|
3862
|
-
});
|
|
3863
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3864
|
-
};
|
|
3865
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
3866
|
-
const body = parsedOutput.body;
|
|
3867
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3868
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
3869
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3870
|
-
...deserialized,
|
|
3871
|
-
});
|
|
3872
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3873
|
-
};
|
|
3874
|
-
const se_GetDevicePoolCompatibilityRequest = (input, context) => {
|
|
3875
|
-
return (0, smithy_client_1.take)(input, {
|
|
3876
|
-
appArn: [],
|
|
3877
|
-
configuration: (_) => se_ScheduleRunConfiguration(_, context),
|
|
3878
|
-
devicePoolArn: [],
|
|
3879
|
-
test: smithy_client_1._json,
|
|
3880
|
-
testType: [],
|
|
3881
|
-
});
|
|
3882
|
-
};
|
|
3883
|
-
const se_ListTestGridSessionsRequest = (input, context) => {
|
|
3884
|
-
return (0, smithy_client_1.take)(input, {
|
|
3885
|
-
creationTimeAfter: (_) => Math.round(_.getTime() / 1000),
|
|
3886
|
-
creationTimeBefore: (_) => Math.round(_.getTime() / 1000),
|
|
3887
|
-
endTimeAfter: (_) => Math.round(_.getTime() / 1000),
|
|
3888
|
-
endTimeBefore: (_) => Math.round(_.getTime() / 1000),
|
|
3889
|
-
maxResult: [],
|
|
3890
|
-
nextToken: [],
|
|
3891
|
-
projectArn: [],
|
|
3892
|
-
status: [],
|
|
3893
|
-
});
|
|
3894
|
-
};
|
|
3895
|
-
const se_Location = (input, context) => {
|
|
3896
|
-
return (0, smithy_client_1.take)(input, {
|
|
3897
|
-
latitude: smithy_client_1.serializeFloat,
|
|
3898
|
-
longitude: smithy_client_1.serializeFloat,
|
|
3899
|
-
});
|
|
3900
|
-
};
|
|
3901
|
-
const se_ScheduleRunConfiguration = (input, context) => {
|
|
3902
|
-
return (0, smithy_client_1.take)(input, {
|
|
3903
|
-
auxiliaryApps: smithy_client_1._json,
|
|
3904
|
-
billingMethod: [],
|
|
3905
|
-
customerArtifactPaths: smithy_client_1._json,
|
|
3906
|
-
extraDataPackageArn: [],
|
|
3907
|
-
locale: [],
|
|
3908
|
-
location: (_) => se_Location(_, context),
|
|
3909
|
-
networkProfileArn: [],
|
|
3910
|
-
radios: smithy_client_1._json,
|
|
3911
|
-
vpceConfigurationArns: smithy_client_1._json,
|
|
3912
|
-
});
|
|
3913
|
-
};
|
|
3914
|
-
const se_ScheduleRunRequest = (input, context) => {
|
|
3915
|
-
return (0, smithy_client_1.take)(input, {
|
|
3916
|
-
appArn: [],
|
|
3917
|
-
configuration: (_) => se_ScheduleRunConfiguration(_, context),
|
|
3918
|
-
devicePoolArn: [],
|
|
3919
|
-
deviceSelectionConfiguration: smithy_client_1._json,
|
|
3920
|
-
executionConfiguration: smithy_client_1._json,
|
|
3921
|
-
name: [],
|
|
3922
|
-
projectArn: [],
|
|
3923
|
-
test: smithy_client_1._json,
|
|
3924
|
-
});
|
|
3925
|
-
};
|
|
3926
|
-
const de_AccountSettings = (output, context) => {
|
|
3927
|
-
return (0, smithy_client_1.take)(output, {
|
|
3928
|
-
awsAccountNumber: smithy_client_1.expectString,
|
|
3929
|
-
defaultJobTimeoutMinutes: smithy_client_1.expectInt32,
|
|
3930
|
-
maxJobTimeoutMinutes: smithy_client_1.expectInt32,
|
|
3931
|
-
maxSlots: smithy_client_1._json,
|
|
3932
|
-
skipAppResign: smithy_client_1.expectBoolean,
|
|
3933
|
-
trialMinutes: (_) => de_TrialMinutes(_, context),
|
|
3934
|
-
unmeteredDevices: smithy_client_1._json,
|
|
3935
|
-
unmeteredRemoteAccessDevices: smithy_client_1._json,
|
|
3936
|
-
});
|
|
3937
|
-
};
|
|
3938
|
-
const de_CPU = (output, context) => {
|
|
3939
|
-
return (0, smithy_client_1.take)(output, {
|
|
3940
|
-
architecture: smithy_client_1.expectString,
|
|
3941
|
-
clock: smithy_client_1.limitedParseDouble,
|
|
3942
|
-
frequency: smithy_client_1.expectString,
|
|
3943
|
-
});
|
|
3944
|
-
};
|
|
3945
|
-
const de_CreateProjectResult = (output, context) => {
|
|
3946
|
-
return (0, smithy_client_1.take)(output, {
|
|
3947
|
-
project: (_) => de_Project(_, context),
|
|
3948
|
-
});
|
|
3949
|
-
};
|
|
3950
|
-
const de_CreateRemoteAccessSessionResult = (output, context) => {
|
|
3951
|
-
return (0, smithy_client_1.take)(output, {
|
|
3952
|
-
remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
|
|
3953
|
-
});
|
|
3954
|
-
};
|
|
3955
|
-
const de_CreateTestGridProjectResult = (output, context) => {
|
|
3956
|
-
return (0, smithy_client_1.take)(output, {
|
|
3957
|
-
testGridProject: (_) => de_TestGridProject(_, context),
|
|
3958
|
-
});
|
|
3959
|
-
};
|
|
3960
|
-
const de_CreateTestGridUrlResult = (output, context) => {
|
|
3961
|
-
return (0, smithy_client_1.take)(output, {
|
|
3962
|
-
expires: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3963
|
-
url: smithy_client_1.expectString,
|
|
3964
|
-
});
|
|
3965
|
-
};
|
|
3966
|
-
const de_CreateUploadResult = (output, context) => {
|
|
3967
|
-
return (0, smithy_client_1.take)(output, {
|
|
3968
|
-
upload: (_) => de_Upload(_, context),
|
|
3969
|
-
});
|
|
3970
|
-
};
|
|
3971
|
-
const de_Device = (output, context) => {
|
|
3972
|
-
return (0, smithy_client_1.take)(output, {
|
|
3973
|
-
arn: smithy_client_1.expectString,
|
|
3974
|
-
availability: smithy_client_1.expectString,
|
|
3975
|
-
carrier: smithy_client_1.expectString,
|
|
3976
|
-
cpu: (_) => de_CPU(_, context),
|
|
3977
|
-
fleetName: smithy_client_1.expectString,
|
|
3978
|
-
fleetType: smithy_client_1.expectString,
|
|
3979
|
-
formFactor: smithy_client_1.expectString,
|
|
3980
|
-
heapSize: smithy_client_1.expectLong,
|
|
3981
|
-
image: smithy_client_1.expectString,
|
|
3982
|
-
instances: smithy_client_1._json,
|
|
3983
|
-
manufacturer: smithy_client_1.expectString,
|
|
3984
|
-
memory: smithy_client_1.expectLong,
|
|
3985
|
-
model: smithy_client_1.expectString,
|
|
3986
|
-
modelId: smithy_client_1.expectString,
|
|
3987
|
-
name: smithy_client_1.expectString,
|
|
3988
|
-
os: smithy_client_1.expectString,
|
|
3989
|
-
platform: smithy_client_1.expectString,
|
|
3990
|
-
radio: smithy_client_1.expectString,
|
|
3991
|
-
remoteAccessEnabled: smithy_client_1.expectBoolean,
|
|
3992
|
-
remoteDebugEnabled: smithy_client_1.expectBoolean,
|
|
3993
|
-
resolution: smithy_client_1._json,
|
|
3994
|
-
});
|
|
3995
|
-
};
|
|
3996
|
-
const de_DeviceMinutes = (output, context) => {
|
|
3997
|
-
return (0, smithy_client_1.take)(output, {
|
|
3998
|
-
metered: smithy_client_1.limitedParseDouble,
|
|
3999
|
-
total: smithy_client_1.limitedParseDouble,
|
|
4000
|
-
unmetered: smithy_client_1.limitedParseDouble,
|
|
4001
|
-
});
|
|
4002
|
-
};
|
|
4003
|
-
const de_DevicePoolCompatibilityResult = (output, context) => {
|
|
4004
|
-
return (0, smithy_client_1.take)(output, {
|
|
4005
|
-
compatible: smithy_client_1.expectBoolean,
|
|
4006
|
-
device: (_) => de_Device(_, context),
|
|
4007
|
-
incompatibilityMessages: smithy_client_1._json,
|
|
4008
|
-
});
|
|
4009
|
-
};
|
|
4010
|
-
const de_DevicePoolCompatibilityResults = (output, context) => {
|
|
4011
|
-
const retVal = (output || [])
|
|
4012
|
-
.filter((e) => e != null)
|
|
4013
|
-
.map((entry) => {
|
|
4014
|
-
return de_DevicePoolCompatibilityResult(entry, context);
|
|
4015
|
-
});
|
|
4016
|
-
return retVal;
|
|
4017
|
-
};
|
|
4018
|
-
const de_Devices = (output, context) => {
|
|
4019
|
-
const retVal = (output || [])
|
|
4020
|
-
.filter((e) => e != null)
|
|
4021
|
-
.map((entry) => {
|
|
4022
|
-
return de_Device(entry, context);
|
|
4023
|
-
});
|
|
4024
|
-
return retVal;
|
|
4025
|
-
};
|
|
4026
|
-
const de_GetAccountSettingsResult = (output, context) => {
|
|
4027
|
-
return (0, smithy_client_1.take)(output, {
|
|
4028
|
-
accountSettings: (_) => de_AccountSettings(_, context),
|
|
4029
|
-
});
|
|
4030
|
-
};
|
|
4031
|
-
const de_GetDevicePoolCompatibilityResult = (output, context) => {
|
|
4032
|
-
return (0, smithy_client_1.take)(output, {
|
|
4033
|
-
compatibleDevices: (_) => de_DevicePoolCompatibilityResults(_, context),
|
|
4034
|
-
incompatibleDevices: (_) => de_DevicePoolCompatibilityResults(_, context),
|
|
4035
|
-
});
|
|
4036
|
-
};
|
|
4037
|
-
const de_GetDeviceResult = (output, context) => {
|
|
4038
|
-
return (0, smithy_client_1.take)(output, {
|
|
4039
|
-
device: (_) => de_Device(_, context),
|
|
4040
|
-
});
|
|
4041
|
-
};
|
|
4042
|
-
const de_GetJobResult = (output, context) => {
|
|
4043
|
-
return (0, smithy_client_1.take)(output, {
|
|
4044
|
-
job: (_) => de_Job(_, context),
|
|
4045
|
-
});
|
|
4046
|
-
};
|
|
4047
|
-
const de_GetOfferingStatusResult = (output, context) => {
|
|
4048
|
-
return (0, smithy_client_1.take)(output, {
|
|
4049
|
-
current: (_) => de_OfferingStatusMap(_, context),
|
|
4050
|
-
nextPeriod: (_) => de_OfferingStatusMap(_, context),
|
|
4051
|
-
nextToken: smithy_client_1.expectString,
|
|
4052
|
-
});
|
|
4053
|
-
};
|
|
4054
|
-
const de_GetProjectResult = (output, context) => {
|
|
4055
|
-
return (0, smithy_client_1.take)(output, {
|
|
4056
|
-
project: (_) => de_Project(_, context),
|
|
4057
|
-
});
|
|
4058
|
-
};
|
|
4059
|
-
const de_GetRemoteAccessSessionResult = (output, context) => {
|
|
4060
|
-
return (0, smithy_client_1.take)(output, {
|
|
4061
|
-
remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
|
|
4062
|
-
});
|
|
4063
|
-
};
|
|
4064
|
-
const de_GetRunResult = (output, context) => {
|
|
4065
|
-
return (0, smithy_client_1.take)(output, {
|
|
4066
|
-
run: (_) => de_Run(_, context),
|
|
4067
|
-
});
|
|
4068
|
-
};
|
|
4069
|
-
const de_GetSuiteResult = (output, context) => {
|
|
4070
|
-
return (0, smithy_client_1.take)(output, {
|
|
4071
|
-
suite: (_) => de_Suite(_, context),
|
|
4072
|
-
});
|
|
4073
|
-
};
|
|
4074
|
-
const de_GetTestGridProjectResult = (output, context) => {
|
|
4075
|
-
return (0, smithy_client_1.take)(output, {
|
|
4076
|
-
testGridProject: (_) => de_TestGridProject(_, context),
|
|
4077
|
-
});
|
|
4078
|
-
};
|
|
4079
|
-
const de_GetTestGridSessionResult = (output, context) => {
|
|
4080
|
-
return (0, smithy_client_1.take)(output, {
|
|
4081
|
-
testGridSession: (_) => de_TestGridSession(_, context),
|
|
4082
|
-
});
|
|
4083
|
-
};
|
|
4084
|
-
const de_GetTestResult = (output, context) => {
|
|
4085
|
-
return (0, smithy_client_1.take)(output, {
|
|
4086
|
-
test: (_) => de_Test(_, context),
|
|
4087
|
-
});
|
|
4088
|
-
};
|
|
4089
|
-
const de_GetUploadResult = (output, context) => {
|
|
4090
|
-
return (0, smithy_client_1.take)(output, {
|
|
4091
|
-
upload: (_) => de_Upload(_, context),
|
|
4092
|
-
});
|
|
4093
|
-
};
|
|
4094
|
-
const de_InstallToRemoteAccessSessionResult = (output, context) => {
|
|
4095
|
-
return (0, smithy_client_1.take)(output, {
|
|
4096
|
-
appUpload: (_) => de_Upload(_, context),
|
|
4097
|
-
});
|
|
4098
|
-
};
|
|
4099
|
-
const de_Job = (output, context) => {
|
|
4100
|
-
return (0, smithy_client_1.take)(output, {
|
|
4101
|
-
arn: smithy_client_1.expectString,
|
|
4102
|
-
counters: smithy_client_1._json,
|
|
4103
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4104
|
-
device: (_) => de_Device(_, context),
|
|
4105
|
-
deviceMinutes: (_) => de_DeviceMinutes(_, context),
|
|
4106
|
-
instanceArn: smithy_client_1.expectString,
|
|
4107
|
-
message: smithy_client_1.expectString,
|
|
4108
|
-
name: smithy_client_1.expectString,
|
|
4109
|
-
result: smithy_client_1.expectString,
|
|
4110
|
-
started: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4111
|
-
status: smithy_client_1.expectString,
|
|
4112
|
-
stopped: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4113
|
-
type: smithy_client_1.expectString,
|
|
4114
|
-
videoCapture: smithy_client_1.expectBoolean,
|
|
4115
|
-
videoEndpoint: smithy_client_1.expectString,
|
|
4116
|
-
});
|
|
4117
|
-
};
|
|
4118
|
-
const de_Jobs = (output, context) => {
|
|
4119
|
-
const retVal = (output || [])
|
|
4120
|
-
.filter((e) => e != null)
|
|
4121
|
-
.map((entry) => {
|
|
4122
|
-
return de_Job(entry, context);
|
|
4123
|
-
});
|
|
4124
|
-
return retVal;
|
|
4125
|
-
};
|
|
4126
|
-
const de_ListDevicesResult = (output, context) => {
|
|
4127
|
-
return (0, smithy_client_1.take)(output, {
|
|
4128
|
-
devices: (_) => de_Devices(_, context),
|
|
4129
|
-
nextToken: smithy_client_1.expectString,
|
|
4130
|
-
});
|
|
4131
|
-
};
|
|
4132
|
-
const de_ListJobsResult = (output, context) => {
|
|
4133
|
-
return (0, smithy_client_1.take)(output, {
|
|
4134
|
-
jobs: (_) => de_Jobs(_, context),
|
|
4135
|
-
nextToken: smithy_client_1.expectString,
|
|
4136
|
-
});
|
|
4137
|
-
};
|
|
4138
|
-
const de_ListOfferingsResult = (output, context) => {
|
|
4139
|
-
return (0, smithy_client_1.take)(output, {
|
|
4140
|
-
nextToken: smithy_client_1.expectString,
|
|
4141
|
-
offerings: (_) => de_Offerings(_, context),
|
|
4142
|
-
});
|
|
4143
|
-
};
|
|
4144
|
-
const de_ListOfferingTransactionsResult = (output, context) => {
|
|
4145
|
-
return (0, smithy_client_1.take)(output, {
|
|
4146
|
-
nextToken: smithy_client_1.expectString,
|
|
4147
|
-
offeringTransactions: (_) => de_OfferingTransactions(_, context),
|
|
4148
|
-
});
|
|
4149
|
-
};
|
|
4150
|
-
const de_ListProjectsResult = (output, context) => {
|
|
4151
|
-
return (0, smithy_client_1.take)(output, {
|
|
4152
|
-
nextToken: smithy_client_1.expectString,
|
|
4153
|
-
projects: (_) => de_Projects(_, context),
|
|
4154
|
-
});
|
|
4155
|
-
};
|
|
4156
|
-
const de_ListRemoteAccessSessionsResult = (output, context) => {
|
|
4157
|
-
return (0, smithy_client_1.take)(output, {
|
|
4158
|
-
nextToken: smithy_client_1.expectString,
|
|
4159
|
-
remoteAccessSessions: (_) => de_RemoteAccessSessions(_, context),
|
|
4160
|
-
});
|
|
4161
|
-
};
|
|
4162
|
-
const de_ListRunsResult = (output, context) => {
|
|
4163
|
-
return (0, smithy_client_1.take)(output, {
|
|
4164
|
-
nextToken: smithy_client_1.expectString,
|
|
4165
|
-
runs: (_) => de_Runs(_, context),
|
|
4166
|
-
});
|
|
4167
|
-
};
|
|
4168
|
-
const de_ListSuitesResult = (output, context) => {
|
|
4169
|
-
return (0, smithy_client_1.take)(output, {
|
|
4170
|
-
nextToken: smithy_client_1.expectString,
|
|
4171
|
-
suites: (_) => de_Suites(_, context),
|
|
4172
|
-
});
|
|
4173
|
-
};
|
|
4174
|
-
const de_ListTestGridProjectsResult = (output, context) => {
|
|
4175
|
-
return (0, smithy_client_1.take)(output, {
|
|
4176
|
-
nextToken: smithy_client_1.expectString,
|
|
4177
|
-
testGridProjects: (_) => de_TestGridProjects(_, context),
|
|
4178
|
-
});
|
|
4179
|
-
};
|
|
4180
|
-
const de_ListTestGridSessionActionsResult = (output, context) => {
|
|
4181
|
-
return (0, smithy_client_1.take)(output, {
|
|
4182
|
-
actions: (_) => de_TestGridSessionActions(_, context),
|
|
4183
|
-
nextToken: smithy_client_1.expectString,
|
|
4184
|
-
});
|
|
4185
|
-
};
|
|
4186
|
-
const de_ListTestGridSessionsResult = (output, context) => {
|
|
4187
|
-
return (0, smithy_client_1.take)(output, {
|
|
4188
|
-
nextToken: smithy_client_1.expectString,
|
|
4189
|
-
testGridSessions: (_) => de_TestGridSessions(_, context),
|
|
4190
|
-
});
|
|
4191
|
-
};
|
|
4192
|
-
const de_ListTestsResult = (output, context) => {
|
|
4193
|
-
return (0, smithy_client_1.take)(output, {
|
|
4194
|
-
nextToken: smithy_client_1.expectString,
|
|
4195
|
-
tests: (_) => de_Tests(_, context),
|
|
4196
|
-
});
|
|
4197
|
-
};
|
|
4198
|
-
const de_ListUniqueProblemsResult = (output, context) => {
|
|
4199
|
-
return (0, smithy_client_1.take)(output, {
|
|
4200
|
-
nextToken: smithy_client_1.expectString,
|
|
4201
|
-
uniqueProblems: (_) => de_UniqueProblemsByExecutionResultMap(_, context),
|
|
4202
|
-
});
|
|
4203
|
-
};
|
|
4204
|
-
const de_ListUploadsResult = (output, context) => {
|
|
4205
|
-
return (0, smithy_client_1.take)(output, {
|
|
4206
|
-
nextToken: smithy_client_1.expectString,
|
|
4207
|
-
uploads: (_) => de_Uploads(_, context),
|
|
4208
|
-
});
|
|
4209
|
-
};
|
|
4210
|
-
const de_Location = (output, context) => {
|
|
4211
|
-
return (0, smithy_client_1.take)(output, {
|
|
4212
|
-
latitude: smithy_client_1.limitedParseDouble,
|
|
4213
|
-
longitude: smithy_client_1.limitedParseDouble,
|
|
4214
|
-
});
|
|
4215
|
-
};
|
|
4216
|
-
const de_MonetaryAmount = (output, context) => {
|
|
4217
|
-
return (0, smithy_client_1.take)(output, {
|
|
4218
|
-
amount: smithy_client_1.limitedParseDouble,
|
|
4219
|
-
currencyCode: smithy_client_1.expectString,
|
|
4220
|
-
});
|
|
4221
|
-
};
|
|
4222
|
-
const de_Offering = (output, context) => {
|
|
4223
|
-
return (0, smithy_client_1.take)(output, {
|
|
4224
|
-
description: smithy_client_1.expectString,
|
|
4225
|
-
id: smithy_client_1.expectString,
|
|
4226
|
-
platform: smithy_client_1.expectString,
|
|
4227
|
-
recurringCharges: (_) => de_RecurringCharges(_, context),
|
|
4228
|
-
type: smithy_client_1.expectString,
|
|
4229
|
-
});
|
|
4230
|
-
};
|
|
4231
|
-
const de_Offerings = (output, context) => {
|
|
4232
|
-
const retVal = (output || [])
|
|
4233
|
-
.filter((e) => e != null)
|
|
4234
|
-
.map((entry) => {
|
|
4235
|
-
return de_Offering(entry, context);
|
|
4236
|
-
});
|
|
4237
|
-
return retVal;
|
|
4238
|
-
};
|
|
4239
|
-
const de_OfferingStatus = (output, context) => {
|
|
4240
|
-
return (0, smithy_client_1.take)(output, {
|
|
4241
|
-
effectiveOn: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4242
|
-
offering: (_) => de_Offering(_, context),
|
|
4243
|
-
quantity: smithy_client_1.expectInt32,
|
|
4244
|
-
type: smithy_client_1.expectString,
|
|
4245
|
-
});
|
|
4246
|
-
};
|
|
4247
|
-
const de_OfferingStatusMap = (output, context) => {
|
|
4248
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4249
|
-
if (value === null) {
|
|
4250
|
-
return acc;
|
|
4251
|
-
}
|
|
4252
|
-
acc[key] = de_OfferingStatus(value, context);
|
|
4253
|
-
return acc;
|
|
4254
|
-
}, {});
|
|
4255
|
-
};
|
|
4256
|
-
const de_OfferingTransaction = (output, context) => {
|
|
4257
|
-
return (0, smithy_client_1.take)(output, {
|
|
4258
|
-
cost: (_) => de_MonetaryAmount(_, context),
|
|
4259
|
-
createdOn: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4260
|
-
offeringPromotionId: smithy_client_1.expectString,
|
|
4261
|
-
offeringStatus: (_) => de_OfferingStatus(_, context),
|
|
4262
|
-
transactionId: smithy_client_1.expectString,
|
|
4263
|
-
});
|
|
4264
|
-
};
|
|
4265
|
-
const de_OfferingTransactions = (output, context) => {
|
|
4266
|
-
const retVal = (output || [])
|
|
4267
|
-
.filter((e) => e != null)
|
|
4268
|
-
.map((entry) => {
|
|
4269
|
-
return de_OfferingTransaction(entry, context);
|
|
4270
|
-
});
|
|
4271
|
-
return retVal;
|
|
4272
|
-
};
|
|
4273
|
-
const de_Problem = (output, context) => {
|
|
4274
|
-
return (0, smithy_client_1.take)(output, {
|
|
4275
|
-
device: (_) => de_Device(_, context),
|
|
4276
|
-
job: smithy_client_1._json,
|
|
4277
|
-
message: smithy_client_1.expectString,
|
|
4278
|
-
result: smithy_client_1.expectString,
|
|
4279
|
-
run: smithy_client_1._json,
|
|
4280
|
-
suite: smithy_client_1._json,
|
|
4281
|
-
test: smithy_client_1._json,
|
|
4282
|
-
});
|
|
4283
|
-
};
|
|
4284
|
-
const de_Problems = (output, context) => {
|
|
4285
|
-
const retVal = (output || [])
|
|
4286
|
-
.filter((e) => e != null)
|
|
4287
|
-
.map((entry) => {
|
|
4288
|
-
return de_Problem(entry, context);
|
|
4289
|
-
});
|
|
4290
|
-
return retVal;
|
|
4291
|
-
};
|
|
4292
|
-
const de_Project = (output, context) => {
|
|
4293
|
-
return (0, smithy_client_1.take)(output, {
|
|
4294
|
-
arn: smithy_client_1.expectString,
|
|
4295
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4296
|
-
defaultJobTimeoutMinutes: smithy_client_1.expectInt32,
|
|
4297
|
-
name: smithy_client_1.expectString,
|
|
4298
|
-
vpcConfig: smithy_client_1._json,
|
|
4299
|
-
});
|
|
4300
|
-
};
|
|
4301
|
-
const de_Projects = (output, context) => {
|
|
4302
|
-
const retVal = (output || [])
|
|
4303
|
-
.filter((e) => e != null)
|
|
4304
|
-
.map((entry) => {
|
|
4305
|
-
return de_Project(entry, context);
|
|
4306
|
-
});
|
|
4307
|
-
return retVal;
|
|
4308
|
-
};
|
|
4309
|
-
const de_PurchaseOfferingResult = (output, context) => {
|
|
4310
|
-
return (0, smithy_client_1.take)(output, {
|
|
4311
|
-
offeringTransaction: (_) => de_OfferingTransaction(_, context),
|
|
4312
|
-
});
|
|
4313
|
-
};
|
|
4314
|
-
const de_RecurringCharge = (output, context) => {
|
|
4315
|
-
return (0, smithy_client_1.take)(output, {
|
|
4316
|
-
cost: (_) => de_MonetaryAmount(_, context),
|
|
4317
|
-
frequency: smithy_client_1.expectString,
|
|
4318
|
-
});
|
|
4319
|
-
};
|
|
4320
|
-
const de_RecurringCharges = (output, context) => {
|
|
4321
|
-
const retVal = (output || [])
|
|
4322
|
-
.filter((e) => e != null)
|
|
4323
|
-
.map((entry) => {
|
|
4324
|
-
return de_RecurringCharge(entry, context);
|
|
4325
|
-
});
|
|
4326
|
-
return retVal;
|
|
4327
|
-
};
|
|
4328
|
-
const de_RemoteAccessSession = (output, context) => {
|
|
4329
|
-
return (0, smithy_client_1.take)(output, {
|
|
4330
|
-
arn: smithy_client_1.expectString,
|
|
4331
|
-
billingMethod: smithy_client_1.expectString,
|
|
4332
|
-
clientId: smithy_client_1.expectString,
|
|
4333
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4334
|
-
device: (_) => de_Device(_, context),
|
|
4335
|
-
deviceMinutes: (_) => de_DeviceMinutes(_, context),
|
|
4336
|
-
deviceUdid: smithy_client_1.expectString,
|
|
4337
|
-
endpoint: smithy_client_1.expectString,
|
|
4338
|
-
hostAddress: smithy_client_1.expectString,
|
|
4339
|
-
instanceArn: smithy_client_1.expectString,
|
|
4340
|
-
interactionMode: smithy_client_1.expectString,
|
|
4341
|
-
message: smithy_client_1.expectString,
|
|
4342
|
-
name: smithy_client_1.expectString,
|
|
4343
|
-
remoteDebugEnabled: smithy_client_1.expectBoolean,
|
|
4344
|
-
remoteRecordAppArn: smithy_client_1.expectString,
|
|
4345
|
-
remoteRecordEnabled: smithy_client_1.expectBoolean,
|
|
4346
|
-
result: smithy_client_1.expectString,
|
|
4347
|
-
skipAppResign: smithy_client_1.expectBoolean,
|
|
4348
|
-
started: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4349
|
-
status: smithy_client_1.expectString,
|
|
4350
|
-
stopped: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4351
|
-
vpcConfig: smithy_client_1._json,
|
|
4352
|
-
});
|
|
4353
|
-
};
|
|
4354
|
-
const de_RemoteAccessSessions = (output, context) => {
|
|
4355
|
-
const retVal = (output || [])
|
|
4356
|
-
.filter((e) => e != null)
|
|
4357
|
-
.map((entry) => {
|
|
4358
|
-
return de_RemoteAccessSession(entry, context);
|
|
4359
|
-
});
|
|
4360
|
-
return retVal;
|
|
4361
|
-
};
|
|
4362
|
-
const de_RenewOfferingResult = (output, context) => {
|
|
4363
|
-
return (0, smithy_client_1.take)(output, {
|
|
4364
|
-
offeringTransaction: (_) => de_OfferingTransaction(_, context),
|
|
4365
|
-
});
|
|
4366
|
-
};
|
|
4367
|
-
const de_Run = (output, context) => {
|
|
4368
|
-
return (0, smithy_client_1.take)(output, {
|
|
4369
|
-
appUpload: smithy_client_1.expectString,
|
|
4370
|
-
arn: smithy_client_1.expectString,
|
|
4371
|
-
billingMethod: smithy_client_1.expectString,
|
|
4372
|
-
completedJobs: smithy_client_1.expectInt32,
|
|
4373
|
-
counters: smithy_client_1._json,
|
|
4374
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4375
|
-
customerArtifactPaths: smithy_client_1._json,
|
|
4376
|
-
deviceMinutes: (_) => de_DeviceMinutes(_, context),
|
|
4377
|
-
devicePoolArn: smithy_client_1.expectString,
|
|
4378
|
-
deviceSelectionResult: smithy_client_1._json,
|
|
4379
|
-
eventCount: smithy_client_1.expectInt32,
|
|
4380
|
-
jobTimeoutMinutes: smithy_client_1.expectInt32,
|
|
4381
|
-
locale: smithy_client_1.expectString,
|
|
4382
|
-
location: (_) => de_Location(_, context),
|
|
4383
|
-
message: smithy_client_1.expectString,
|
|
4384
|
-
name: smithy_client_1.expectString,
|
|
4385
|
-
networkProfile: smithy_client_1._json,
|
|
4386
|
-
parsingResultUrl: smithy_client_1.expectString,
|
|
4387
|
-
platform: smithy_client_1.expectString,
|
|
4388
|
-
radios: smithy_client_1._json,
|
|
4389
|
-
result: smithy_client_1.expectString,
|
|
4390
|
-
resultCode: smithy_client_1.expectString,
|
|
4391
|
-
seed: smithy_client_1.expectInt32,
|
|
4392
|
-
skipAppResign: smithy_client_1.expectBoolean,
|
|
4393
|
-
started: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4394
|
-
status: smithy_client_1.expectString,
|
|
4395
|
-
stopped: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4396
|
-
testSpecArn: smithy_client_1.expectString,
|
|
4397
|
-
totalJobs: smithy_client_1.expectInt32,
|
|
4398
|
-
type: smithy_client_1.expectString,
|
|
4399
|
-
vpcConfig: smithy_client_1._json,
|
|
4400
|
-
webUrl: smithy_client_1.expectString,
|
|
4401
|
-
});
|
|
4402
|
-
};
|
|
4403
|
-
const de_Runs = (output, context) => {
|
|
4404
|
-
const retVal = (output || [])
|
|
4405
|
-
.filter((e) => e != null)
|
|
4406
|
-
.map((entry) => {
|
|
4407
|
-
return de_Run(entry, context);
|
|
4408
|
-
});
|
|
4409
|
-
return retVal;
|
|
4410
|
-
};
|
|
4411
|
-
const de_ScheduleRunResult = (output, context) => {
|
|
4412
|
-
return (0, smithy_client_1.take)(output, {
|
|
4413
|
-
run: (_) => de_Run(_, context),
|
|
4414
|
-
});
|
|
4415
|
-
};
|
|
4416
|
-
const de_StopJobResult = (output, context) => {
|
|
4417
|
-
return (0, smithy_client_1.take)(output, {
|
|
4418
|
-
job: (_) => de_Job(_, context),
|
|
4419
|
-
});
|
|
4420
|
-
};
|
|
4421
|
-
const de_StopRemoteAccessSessionResult = (output, context) => {
|
|
4422
|
-
return (0, smithy_client_1.take)(output, {
|
|
4423
|
-
remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
|
|
4424
|
-
});
|
|
4425
|
-
};
|
|
4426
|
-
const de_StopRunResult = (output, context) => {
|
|
4427
|
-
return (0, smithy_client_1.take)(output, {
|
|
4428
|
-
run: (_) => de_Run(_, context),
|
|
4429
|
-
});
|
|
4430
|
-
};
|
|
4431
|
-
const de_Suite = (output, context) => {
|
|
4432
|
-
return (0, smithy_client_1.take)(output, {
|
|
4433
|
-
arn: smithy_client_1.expectString,
|
|
4434
|
-
counters: smithy_client_1._json,
|
|
4435
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4436
|
-
deviceMinutes: (_) => de_DeviceMinutes(_, context),
|
|
4437
|
-
message: smithy_client_1.expectString,
|
|
4438
|
-
name: smithy_client_1.expectString,
|
|
4439
|
-
result: smithy_client_1.expectString,
|
|
4440
|
-
started: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4441
|
-
status: smithy_client_1.expectString,
|
|
4442
|
-
stopped: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4443
|
-
type: smithy_client_1.expectString,
|
|
4444
|
-
});
|
|
4445
|
-
};
|
|
4446
|
-
const de_Suites = (output, context) => {
|
|
4447
|
-
const retVal = (output || [])
|
|
4448
|
-
.filter((e) => e != null)
|
|
4449
|
-
.map((entry) => {
|
|
4450
|
-
return de_Suite(entry, context);
|
|
4451
|
-
});
|
|
4452
|
-
return retVal;
|
|
4453
|
-
};
|
|
4454
|
-
const de_Test = (output, context) => {
|
|
4455
|
-
return (0, smithy_client_1.take)(output, {
|
|
4456
|
-
arn: smithy_client_1.expectString,
|
|
4457
|
-
counters: smithy_client_1._json,
|
|
4458
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4459
|
-
deviceMinutes: (_) => de_DeviceMinutes(_, context),
|
|
4460
|
-
message: smithy_client_1.expectString,
|
|
4461
|
-
name: smithy_client_1.expectString,
|
|
4462
|
-
result: smithy_client_1.expectString,
|
|
4463
|
-
started: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4464
|
-
status: smithy_client_1.expectString,
|
|
4465
|
-
stopped: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4466
|
-
type: smithy_client_1.expectString,
|
|
4467
|
-
});
|
|
4468
|
-
};
|
|
4469
|
-
const de_TestGridProject = (output, context) => {
|
|
4470
|
-
return (0, smithy_client_1.take)(output, {
|
|
4471
|
-
arn: smithy_client_1.expectString,
|
|
4472
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4473
|
-
description: smithy_client_1.expectString,
|
|
4474
|
-
name: smithy_client_1.expectString,
|
|
4475
|
-
vpcConfig: smithy_client_1._json,
|
|
4476
|
-
});
|
|
4477
|
-
};
|
|
4478
|
-
const de_TestGridProjects = (output, context) => {
|
|
4479
|
-
const retVal = (output || [])
|
|
4480
|
-
.filter((e) => e != null)
|
|
4481
|
-
.map((entry) => {
|
|
4482
|
-
return de_TestGridProject(entry, context);
|
|
4483
|
-
});
|
|
4484
|
-
return retVal;
|
|
4485
|
-
};
|
|
4486
|
-
const de_TestGridSession = (output, context) => {
|
|
4487
|
-
return (0, smithy_client_1.take)(output, {
|
|
4488
|
-
arn: smithy_client_1.expectString,
|
|
4489
|
-
billingMinutes: smithy_client_1.limitedParseDouble,
|
|
4490
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4491
|
-
ended: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4492
|
-
seleniumProperties: smithy_client_1.expectString,
|
|
4493
|
-
status: smithy_client_1.expectString,
|
|
4494
|
-
});
|
|
4495
|
-
};
|
|
4496
|
-
const de_TestGridSessionAction = (output, context) => {
|
|
4497
|
-
return (0, smithy_client_1.take)(output, {
|
|
4498
|
-
action: smithy_client_1.expectString,
|
|
4499
|
-
duration: smithy_client_1.expectLong,
|
|
4500
|
-
requestMethod: smithy_client_1.expectString,
|
|
4501
|
-
started: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4502
|
-
statusCode: smithy_client_1.expectString,
|
|
4503
|
-
});
|
|
4504
|
-
};
|
|
4505
|
-
const de_TestGridSessionActions = (output, context) => {
|
|
4506
|
-
const retVal = (output || [])
|
|
4507
|
-
.filter((e) => e != null)
|
|
4508
|
-
.map((entry) => {
|
|
4509
|
-
return de_TestGridSessionAction(entry, context);
|
|
4510
|
-
});
|
|
4511
|
-
return retVal;
|
|
4512
|
-
};
|
|
4513
|
-
const de_TestGridSessions = (output, context) => {
|
|
4514
|
-
const retVal = (output || [])
|
|
4515
|
-
.filter((e) => e != null)
|
|
4516
|
-
.map((entry) => {
|
|
4517
|
-
return de_TestGridSession(entry, context);
|
|
4518
|
-
});
|
|
4519
|
-
return retVal;
|
|
4520
|
-
};
|
|
4521
|
-
const de_Tests = (output, context) => {
|
|
4522
|
-
const retVal = (output || [])
|
|
4523
|
-
.filter((e) => e != null)
|
|
4524
|
-
.map((entry) => {
|
|
4525
|
-
return de_Test(entry, context);
|
|
4526
|
-
});
|
|
4527
|
-
return retVal;
|
|
4528
|
-
};
|
|
4529
|
-
const de_TrialMinutes = (output, context) => {
|
|
4530
|
-
return (0, smithy_client_1.take)(output, {
|
|
4531
|
-
remaining: smithy_client_1.limitedParseDouble,
|
|
4532
|
-
total: smithy_client_1.limitedParseDouble,
|
|
4533
|
-
});
|
|
4534
|
-
};
|
|
4535
|
-
const de_UniqueProblem = (output, context) => {
|
|
4536
|
-
return (0, smithy_client_1.take)(output, {
|
|
4537
|
-
message: smithy_client_1.expectString,
|
|
4538
|
-
problems: (_) => de_Problems(_, context),
|
|
4539
|
-
});
|
|
4540
|
-
};
|
|
4541
|
-
const de_UniqueProblems = (output, context) => {
|
|
4542
|
-
const retVal = (output || [])
|
|
4543
|
-
.filter((e) => e != null)
|
|
4544
|
-
.map((entry) => {
|
|
4545
|
-
return de_UniqueProblem(entry, context);
|
|
4546
|
-
});
|
|
4547
|
-
return retVal;
|
|
4548
|
-
};
|
|
4549
|
-
const de_UniqueProblemsByExecutionResultMap = (output, context) => {
|
|
4550
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4551
|
-
if (value === null) {
|
|
4552
|
-
return acc;
|
|
4553
|
-
}
|
|
4554
|
-
acc[key] = de_UniqueProblems(value, context);
|
|
4555
|
-
return acc;
|
|
4556
|
-
}, {});
|
|
4557
|
-
};
|
|
4558
|
-
const de_UpdateProjectResult = (output, context) => {
|
|
4559
|
-
return (0, smithy_client_1.take)(output, {
|
|
4560
|
-
project: (_) => de_Project(_, context),
|
|
4561
|
-
});
|
|
4562
|
-
};
|
|
4563
|
-
const de_UpdateTestGridProjectResult = (output, context) => {
|
|
4564
|
-
return (0, smithy_client_1.take)(output, {
|
|
4565
|
-
testGridProject: (_) => de_TestGridProject(_, context),
|
|
4566
|
-
});
|
|
4567
|
-
};
|
|
4568
|
-
const de_UpdateUploadResult = (output, context) => {
|
|
4569
|
-
return (0, smithy_client_1.take)(output, {
|
|
4570
|
-
upload: (_) => de_Upload(_, context),
|
|
4571
|
-
});
|
|
4572
|
-
};
|
|
4573
|
-
const de_Upload = (output, context) => {
|
|
4574
|
-
return (0, smithy_client_1.take)(output, {
|
|
4575
|
-
arn: smithy_client_1.expectString,
|
|
4576
|
-
category: smithy_client_1.expectString,
|
|
4577
|
-
contentType: smithy_client_1.expectString,
|
|
4578
|
-
created: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4579
|
-
message: smithy_client_1.expectString,
|
|
4580
|
-
metadata: smithy_client_1.expectString,
|
|
4581
|
-
name: smithy_client_1.expectString,
|
|
4582
|
-
status: smithy_client_1.expectString,
|
|
4583
|
-
type: smithy_client_1.expectString,
|
|
4584
|
-
url: smithy_client_1.expectString,
|
|
4585
|
-
});
|
|
4586
|
-
};
|
|
4587
|
-
const de_Uploads = (output, context) => {
|
|
4588
|
-
const retVal = (output || [])
|
|
4589
|
-
.filter((e) => e != null)
|
|
4590
|
-
.map((entry) => {
|
|
4591
|
-
return de_Upload(entry, context);
|
|
4592
|
-
});
|
|
4593
|
-
return retVal;
|
|
4594
|
-
};
|
|
4595
|
-
const deserializeMetadata = (output) => ({
|
|
4596
|
-
httpStatusCode: output.statusCode,
|
|
4597
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4598
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4599
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4600
|
-
});
|
|
4601
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4602
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(DeviceFarmServiceException_1.DeviceFarmServiceException);
|
|
4603
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4604
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4605
|
-
const contents = {
|
|
4606
|
-
protocol,
|
|
4607
|
-
hostname,
|
|
4608
|
-
port,
|
|
4609
|
-
method: "POST",
|
|
4610
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
4611
|
-
headers,
|
|
4612
|
-
};
|
|
4613
|
-
if (resolvedHostname !== undefined) {
|
|
4614
|
-
contents.hostname = resolvedHostname;
|
|
4615
|
-
}
|
|
4616
|
-
if (body !== undefined) {
|
|
4617
|
-
contents.body = body;
|
|
4618
|
-
}
|
|
4619
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
4620
|
-
};
|
|
4621
|
-
function sharedHeaders(operation) {
|
|
4622
|
-
return {
|
|
4623
|
-
"content-type": "application/x-amz-json-1.1",
|
|
4624
|
-
"x-amz-target": `DeviceFarm_20150623.${operation}`,
|
|
4625
|
-
};
|
|
4626
|
-
}
|
|
4627
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4628
|
-
if (encoded.length) {
|
|
4629
|
-
return JSON.parse(encoded);
|
|
4630
|
-
}
|
|
4631
|
-
return {};
|
|
4632
|
-
});
|
|
4633
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4634
|
-
const value = await parseBody(errorBody, context);
|
|
4635
|
-
value.message = value.message ?? value.Message;
|
|
4636
|
-
return value;
|
|
4637
|
-
};
|
|
4638
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4639
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4640
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4641
|
-
let cleanValue = rawValue;
|
|
4642
|
-
if (typeof cleanValue === "number") {
|
|
4643
|
-
cleanValue = cleanValue.toString();
|
|
4644
|
-
}
|
|
4645
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4646
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4647
|
-
}
|
|
4648
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4649
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4650
|
-
}
|
|
4651
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4652
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4653
|
-
}
|
|
4654
|
-
return cleanValue;
|
|
4655
|
-
};
|
|
4656
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4657
|
-
if (headerKey !== undefined) {
|
|
4658
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4659
|
-
}
|
|
4660
|
-
if (data.code !== undefined) {
|
|
4661
|
-
return sanitizeErrorCode(data.code);
|
|
4662
|
-
}
|
|
4663
|
-
if (data["__type"] !== undefined) {
|
|
4664
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4665
|
-
}
|
|
4666
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|