@aws-sdk/client-device-farm 3.927.0 → 3.929.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.
Files changed (101) hide show
  1. package/dist-cjs/index.js +2140 -3002
  2. package/dist-cjs/runtimeConfig.shared.js +7 -0
  3. package/dist-es/DeviceFarmClient.js +2 -0
  4. package/dist-es/commands/CreateDevicePoolCommand.js +3 -9
  5. package/dist-es/commands/CreateInstanceProfileCommand.js +3 -9
  6. package/dist-es/commands/CreateNetworkProfileCommand.js +3 -9
  7. package/dist-es/commands/CreateProjectCommand.js +3 -9
  8. package/dist-es/commands/CreateRemoteAccessSessionCommand.js +3 -9
  9. package/dist-es/commands/CreateTestGridProjectCommand.js +3 -9
  10. package/dist-es/commands/CreateTestGridUrlCommand.js +3 -10
  11. package/dist-es/commands/CreateUploadCommand.js +3 -10
  12. package/dist-es/commands/CreateVPCEConfigurationCommand.js +3 -9
  13. package/dist-es/commands/DeleteDevicePoolCommand.js +3 -9
  14. package/dist-es/commands/DeleteInstanceProfileCommand.js +3 -9
  15. package/dist-es/commands/DeleteNetworkProfileCommand.js +3 -9
  16. package/dist-es/commands/DeleteProjectCommand.js +3 -9
  17. package/dist-es/commands/DeleteRemoteAccessSessionCommand.js +3 -9
  18. package/dist-es/commands/DeleteRunCommand.js +3 -9
  19. package/dist-es/commands/DeleteTestGridProjectCommand.js +3 -9
  20. package/dist-es/commands/DeleteUploadCommand.js +3 -9
  21. package/dist-es/commands/DeleteVPCEConfigurationCommand.js +3 -9
  22. package/dist-es/commands/GetAccountSettingsCommand.js +3 -9
  23. package/dist-es/commands/GetDeviceCommand.js +3 -9
  24. package/dist-es/commands/GetDeviceInstanceCommand.js +3 -9
  25. package/dist-es/commands/GetDevicePoolCommand.js +3 -9
  26. package/dist-es/commands/GetDevicePoolCompatibilityCommand.js +3 -9
  27. package/dist-es/commands/GetInstanceProfileCommand.js +3 -9
  28. package/dist-es/commands/GetJobCommand.js +3 -9
  29. package/dist-es/commands/GetNetworkProfileCommand.js +3 -9
  30. package/dist-es/commands/GetOfferingStatusCommand.js +3 -9
  31. package/dist-es/commands/GetProjectCommand.js +3 -9
  32. package/dist-es/commands/GetRemoteAccessSessionCommand.js +3 -9
  33. package/dist-es/commands/GetRunCommand.js +3 -9
  34. package/dist-es/commands/GetSuiteCommand.js +3 -9
  35. package/dist-es/commands/GetTestCommand.js +3 -9
  36. package/dist-es/commands/GetTestGridProjectCommand.js +3 -9
  37. package/dist-es/commands/GetTestGridSessionCommand.js +3 -9
  38. package/dist-es/commands/GetUploadCommand.js +3 -10
  39. package/dist-es/commands/GetVPCEConfigurationCommand.js +3 -9
  40. package/dist-es/commands/InstallToRemoteAccessSessionCommand.js +3 -10
  41. package/dist-es/commands/ListArtifactsCommand.js +3 -9
  42. package/dist-es/commands/ListDeviceInstancesCommand.js +3 -9
  43. package/dist-es/commands/ListDevicePoolsCommand.js +3 -9
  44. package/dist-es/commands/ListDevicesCommand.js +3 -9
  45. package/dist-es/commands/ListInstanceProfilesCommand.js +3 -9
  46. package/dist-es/commands/ListJobsCommand.js +3 -9
  47. package/dist-es/commands/ListNetworkProfilesCommand.js +3 -9
  48. package/dist-es/commands/ListOfferingPromotionsCommand.js +3 -9
  49. package/dist-es/commands/ListOfferingTransactionsCommand.js +3 -9
  50. package/dist-es/commands/ListOfferingsCommand.js +3 -9
  51. package/dist-es/commands/ListProjectsCommand.js +3 -9
  52. package/dist-es/commands/ListRemoteAccessSessionsCommand.js +3 -9
  53. package/dist-es/commands/ListRunsCommand.js +3 -9
  54. package/dist-es/commands/ListSamplesCommand.js +3 -9
  55. package/dist-es/commands/ListSuitesCommand.js +3 -9
  56. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  57. package/dist-es/commands/ListTestGridProjectsCommand.js +3 -9
  58. package/dist-es/commands/ListTestGridSessionActionsCommand.js +3 -9
  59. package/dist-es/commands/ListTestGridSessionArtifactsCommand.js +3 -10
  60. package/dist-es/commands/ListTestGridSessionsCommand.js +3 -9
  61. package/dist-es/commands/ListTestsCommand.js +3 -9
  62. package/dist-es/commands/ListUniqueProblemsCommand.js +3 -9
  63. package/dist-es/commands/ListUploadsCommand.js +3 -10
  64. package/dist-es/commands/ListVPCEConfigurationsCommand.js +3 -9
  65. package/dist-es/commands/PurchaseOfferingCommand.js +3 -9
  66. package/dist-es/commands/RenewOfferingCommand.js +3 -9
  67. package/dist-es/commands/ScheduleRunCommand.js +3 -9
  68. package/dist-es/commands/StopJobCommand.js +3 -9
  69. package/dist-es/commands/StopRemoteAccessSessionCommand.js +3 -9
  70. package/dist-es/commands/StopRunCommand.js +3 -9
  71. package/dist-es/commands/TagResourceCommand.js +3 -9
  72. package/dist-es/commands/UntagResourceCommand.js +3 -9
  73. package/dist-es/commands/UpdateDeviceInstanceCommand.js +3 -9
  74. package/dist-es/commands/UpdateDevicePoolCommand.js +3 -9
  75. package/dist-es/commands/UpdateInstanceProfileCommand.js +3 -9
  76. package/dist-es/commands/UpdateNetworkProfileCommand.js +3 -9
  77. package/dist-es/commands/UpdateProjectCommand.js +3 -9
  78. package/dist-es/commands/UpdateTestGridProjectCommand.js +3 -9
  79. package/dist-es/commands/UpdateUploadCommand.js +3 -10
  80. package/dist-es/commands/UpdateVPCEConfigurationCommand.js +3 -9
  81. package/dist-es/models/models_0.js +0 -37
  82. package/dist-es/runtimeConfig.shared.js +7 -0
  83. package/dist-es/schemas/schemas_0.js +1965 -0
  84. package/dist-types/DeviceFarmClient.d.ts +10 -1
  85. package/dist-types/models/models_0.d.ts +0 -36
  86. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  87. package/dist-types/runtimeConfig.d.ts +1 -0
  88. package/dist-types/runtimeConfig.native.d.ts +1 -0
  89. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  90. package/dist-types/schemas/schemas_0.d.ts +347 -0
  91. package/dist-types/ts3.4/DeviceFarmClient.d.ts +4 -0
  92. package/dist-types/ts3.4/models/models_0.d.ts +0 -25
  93. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  94. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  95. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  96. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  97. package/dist-types/ts3.4/schemas/schemas_0.d.ts +354 -0
  98. package/package.json +5 -5
  99. package/dist-es/protocols/Aws_json1_1.js +0 -2386
  100. package/dist-types/protocols/Aws_json1_1.d.ts +0 -695
  101. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -929
@@ -1,2386 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { DeviceFarmServiceException as __BaseException } from "../models/DeviceFarmServiceException";
5
- import { ArgumentException, CannotDeleteException, IdempotencyException, InternalServiceException, InvalidOperationException, LimitExceededException, NotEligibleException, NotFoundException, ServiceAccountException, TagOperationException, TagPolicyException, TooManyTagsException, } from "../models/models_0";
6
- export const se_CreateDevicePoolCommand = async (input, context) => {
7
- const headers = sharedHeaders("CreateDevicePool");
8
- let body;
9
- body = JSON.stringify(_json(input));
10
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
- };
12
- export const se_CreateInstanceProfileCommand = async (input, context) => {
13
- const headers = sharedHeaders("CreateInstanceProfile");
14
- let body;
15
- body = JSON.stringify(_json(input));
16
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
17
- };
18
- export const se_CreateNetworkProfileCommand = async (input, context) => {
19
- const headers = sharedHeaders("CreateNetworkProfile");
20
- let body;
21
- body = JSON.stringify(_json(input));
22
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
23
- };
24
- export const se_CreateProjectCommand = async (input, context) => {
25
- const headers = sharedHeaders("CreateProject");
26
- let body;
27
- body = JSON.stringify(_json(input));
28
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
29
- };
30
- export const se_CreateRemoteAccessSessionCommand = async (input, context) => {
31
- const headers = sharedHeaders("CreateRemoteAccessSession");
32
- let body;
33
- body = JSON.stringify(_json(input));
34
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
- };
36
- export const se_CreateTestGridProjectCommand = async (input, context) => {
37
- const headers = sharedHeaders("CreateTestGridProject");
38
- let body;
39
- body = JSON.stringify(_json(input));
40
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
41
- };
42
- export const se_CreateTestGridUrlCommand = async (input, context) => {
43
- const headers = sharedHeaders("CreateTestGridUrl");
44
- let body;
45
- body = JSON.stringify(_json(input));
46
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
- };
48
- export const se_CreateUploadCommand = async (input, context) => {
49
- const headers = sharedHeaders("CreateUpload");
50
- let body;
51
- body = JSON.stringify(_json(input));
52
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
53
- };
54
- export const se_CreateVPCEConfigurationCommand = async (input, context) => {
55
- const headers = sharedHeaders("CreateVPCEConfiguration");
56
- let body;
57
- body = JSON.stringify(_json(input));
58
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
59
- };
60
- export const se_DeleteDevicePoolCommand = async (input, context) => {
61
- const headers = sharedHeaders("DeleteDevicePool");
62
- let body;
63
- body = JSON.stringify(_json(input));
64
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
65
- };
66
- export const se_DeleteInstanceProfileCommand = async (input, context) => {
67
- const headers = sharedHeaders("DeleteInstanceProfile");
68
- let body;
69
- body = JSON.stringify(_json(input));
70
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
71
- };
72
- export const se_DeleteNetworkProfileCommand = async (input, context) => {
73
- const headers = sharedHeaders("DeleteNetworkProfile");
74
- let body;
75
- body = JSON.stringify(_json(input));
76
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
- };
78
- export const se_DeleteProjectCommand = async (input, context) => {
79
- const headers = sharedHeaders("DeleteProject");
80
- let body;
81
- body = JSON.stringify(_json(input));
82
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
83
- };
84
- export const se_DeleteRemoteAccessSessionCommand = async (input, context) => {
85
- const headers = sharedHeaders("DeleteRemoteAccessSession");
86
- let body;
87
- body = JSON.stringify(_json(input));
88
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
- };
90
- export const se_DeleteRunCommand = async (input, context) => {
91
- const headers = sharedHeaders("DeleteRun");
92
- let body;
93
- body = JSON.stringify(_json(input));
94
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
95
- };
96
- export const se_DeleteTestGridProjectCommand = async (input, context) => {
97
- const headers = sharedHeaders("DeleteTestGridProject");
98
- let body;
99
- body = JSON.stringify(_json(input));
100
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
101
- };
102
- export const se_DeleteUploadCommand = async (input, context) => {
103
- const headers = sharedHeaders("DeleteUpload");
104
- let body;
105
- body = JSON.stringify(_json(input));
106
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
- };
108
- export const se_DeleteVPCEConfigurationCommand = async (input, context) => {
109
- const headers = sharedHeaders("DeleteVPCEConfiguration");
110
- let body;
111
- body = JSON.stringify(_json(input));
112
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
113
- };
114
- export const se_GetAccountSettingsCommand = async (input, context) => {
115
- const headers = sharedHeaders("GetAccountSettings");
116
- let body;
117
- body = JSON.stringify(_json(input));
118
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
- };
120
- export const se_GetDeviceCommand = async (input, context) => {
121
- const headers = sharedHeaders("GetDevice");
122
- let body;
123
- body = JSON.stringify(_json(input));
124
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
125
- };
126
- export const se_GetDeviceInstanceCommand = async (input, context) => {
127
- const headers = sharedHeaders("GetDeviceInstance");
128
- let body;
129
- body = JSON.stringify(_json(input));
130
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
131
- };
132
- export const se_GetDevicePoolCommand = async (input, context) => {
133
- const headers = sharedHeaders("GetDevicePool");
134
- let body;
135
- body = JSON.stringify(_json(input));
136
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
137
- };
138
- export const se_GetDevicePoolCompatibilityCommand = async (input, context) => {
139
- const headers = sharedHeaders("GetDevicePoolCompatibility");
140
- let body;
141
- body = JSON.stringify(se_GetDevicePoolCompatibilityRequest(input, context));
142
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
143
- };
144
- export const se_GetInstanceProfileCommand = async (input, context) => {
145
- const headers = sharedHeaders("GetInstanceProfile");
146
- let body;
147
- body = JSON.stringify(_json(input));
148
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
149
- };
150
- export const se_GetJobCommand = async (input, context) => {
151
- const headers = sharedHeaders("GetJob");
152
- let body;
153
- body = JSON.stringify(_json(input));
154
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
155
- };
156
- export const se_GetNetworkProfileCommand = async (input, context) => {
157
- const headers = sharedHeaders("GetNetworkProfile");
158
- let body;
159
- body = JSON.stringify(_json(input));
160
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
- };
162
- export const se_GetOfferingStatusCommand = async (input, context) => {
163
- const headers = sharedHeaders("GetOfferingStatus");
164
- let body;
165
- body = JSON.stringify(_json(input));
166
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
167
- };
168
- export const se_GetProjectCommand = async (input, context) => {
169
- const headers = sharedHeaders("GetProject");
170
- let body;
171
- body = JSON.stringify(_json(input));
172
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
173
- };
174
- export const se_GetRemoteAccessSessionCommand = async (input, context) => {
175
- const headers = sharedHeaders("GetRemoteAccessSession");
176
- let body;
177
- body = JSON.stringify(_json(input));
178
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
- };
180
- export const se_GetRunCommand = async (input, context) => {
181
- const headers = sharedHeaders("GetRun");
182
- let body;
183
- body = JSON.stringify(_json(input));
184
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
185
- };
186
- export const se_GetSuiteCommand = async (input, context) => {
187
- const headers = sharedHeaders("GetSuite");
188
- let body;
189
- body = JSON.stringify(_json(input));
190
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
191
- };
192
- export const se_GetTestCommand = async (input, context) => {
193
- const headers = sharedHeaders("GetTest");
194
- let body;
195
- body = JSON.stringify(_json(input));
196
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
197
- };
198
- export const se_GetTestGridProjectCommand = async (input, context) => {
199
- const headers = sharedHeaders("GetTestGridProject");
200
- let body;
201
- body = JSON.stringify(_json(input));
202
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
- };
204
- export const se_GetTestGridSessionCommand = async (input, context) => {
205
- const headers = sharedHeaders("GetTestGridSession");
206
- let body;
207
- body = JSON.stringify(_json(input));
208
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
209
- };
210
- export const se_GetUploadCommand = async (input, context) => {
211
- const headers = sharedHeaders("GetUpload");
212
- let body;
213
- body = JSON.stringify(_json(input));
214
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
215
- };
216
- export const se_GetVPCEConfigurationCommand = async (input, context) => {
217
- const headers = sharedHeaders("GetVPCEConfiguration");
218
- let body;
219
- body = JSON.stringify(_json(input));
220
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
221
- };
222
- export const se_InstallToRemoteAccessSessionCommand = async (input, context) => {
223
- const headers = sharedHeaders("InstallToRemoteAccessSession");
224
- let body;
225
- body = JSON.stringify(_json(input));
226
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
227
- };
228
- export const se_ListArtifactsCommand = async (input, context) => {
229
- const headers = sharedHeaders("ListArtifacts");
230
- let body;
231
- body = JSON.stringify(_json(input));
232
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
233
- };
234
- export const se_ListDeviceInstancesCommand = async (input, context) => {
235
- const headers = sharedHeaders("ListDeviceInstances");
236
- let body;
237
- body = JSON.stringify(_json(input));
238
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
239
- };
240
- export const se_ListDevicePoolsCommand = async (input, context) => {
241
- const headers = sharedHeaders("ListDevicePools");
242
- let body;
243
- body = JSON.stringify(_json(input));
244
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
- };
246
- export const se_ListDevicesCommand = async (input, context) => {
247
- const headers = sharedHeaders("ListDevices");
248
- let body;
249
- body = JSON.stringify(_json(input));
250
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
251
- };
252
- export const se_ListInstanceProfilesCommand = async (input, context) => {
253
- const headers = sharedHeaders("ListInstanceProfiles");
254
- let body;
255
- body = JSON.stringify(_json(input));
256
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
- };
258
- export const se_ListJobsCommand = async (input, context) => {
259
- const headers = sharedHeaders("ListJobs");
260
- let body;
261
- body = JSON.stringify(_json(input));
262
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
263
- };
264
- export const se_ListNetworkProfilesCommand = async (input, context) => {
265
- const headers = sharedHeaders("ListNetworkProfiles");
266
- let body;
267
- body = JSON.stringify(_json(input));
268
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
269
- };
270
- export const se_ListOfferingPromotionsCommand = async (input, context) => {
271
- const headers = sharedHeaders("ListOfferingPromotions");
272
- let body;
273
- body = JSON.stringify(_json(input));
274
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
275
- };
276
- export const se_ListOfferingsCommand = async (input, context) => {
277
- const headers = sharedHeaders("ListOfferings");
278
- let body;
279
- body = JSON.stringify(_json(input));
280
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
281
- };
282
- export const se_ListOfferingTransactionsCommand = async (input, context) => {
283
- const headers = sharedHeaders("ListOfferingTransactions");
284
- let body;
285
- body = JSON.stringify(_json(input));
286
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
- };
288
- export const se_ListProjectsCommand = async (input, context) => {
289
- const headers = sharedHeaders("ListProjects");
290
- let body;
291
- body = JSON.stringify(_json(input));
292
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
293
- };
294
- export const se_ListRemoteAccessSessionsCommand = async (input, context) => {
295
- const headers = sharedHeaders("ListRemoteAccessSessions");
296
- let body;
297
- body = JSON.stringify(_json(input));
298
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
- };
300
- export const se_ListRunsCommand = async (input, context) => {
301
- const headers = sharedHeaders("ListRuns");
302
- let body;
303
- body = JSON.stringify(_json(input));
304
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
305
- };
306
- export const se_ListSamplesCommand = async (input, context) => {
307
- const headers = sharedHeaders("ListSamples");
308
- let body;
309
- body = JSON.stringify(_json(input));
310
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
- };
312
- export const se_ListSuitesCommand = async (input, context) => {
313
- const headers = sharedHeaders("ListSuites");
314
- let body;
315
- body = JSON.stringify(_json(input));
316
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
317
- };
318
- export const se_ListTagsForResourceCommand = async (input, context) => {
319
- const headers = sharedHeaders("ListTagsForResource");
320
- let body;
321
- body = JSON.stringify(_json(input));
322
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
323
- };
324
- export const se_ListTestGridProjectsCommand = async (input, context) => {
325
- const headers = sharedHeaders("ListTestGridProjects");
326
- let body;
327
- body = JSON.stringify(_json(input));
328
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
- };
330
- export const se_ListTestGridSessionActionsCommand = async (input, context) => {
331
- const headers = sharedHeaders("ListTestGridSessionActions");
332
- let body;
333
- body = JSON.stringify(_json(input));
334
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
335
- };
336
- export const se_ListTestGridSessionArtifactsCommand = async (input, context) => {
337
- const headers = sharedHeaders("ListTestGridSessionArtifacts");
338
- let body;
339
- body = JSON.stringify(_json(input));
340
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
341
- };
342
- export const se_ListTestGridSessionsCommand = async (input, context) => {
343
- const headers = sharedHeaders("ListTestGridSessions");
344
- let body;
345
- body = JSON.stringify(se_ListTestGridSessionsRequest(input, context));
346
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
347
- };
348
- export const se_ListTestsCommand = async (input, context) => {
349
- const headers = sharedHeaders("ListTests");
350
- let body;
351
- body = JSON.stringify(_json(input));
352
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
353
- };
354
- export const se_ListUniqueProblemsCommand = async (input, context) => {
355
- const headers = sharedHeaders("ListUniqueProblems");
356
- let body;
357
- body = JSON.stringify(_json(input));
358
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
359
- };
360
- export const se_ListUploadsCommand = async (input, context) => {
361
- const headers = sharedHeaders("ListUploads");
362
- let body;
363
- body = JSON.stringify(_json(input));
364
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
365
- };
366
- export const se_ListVPCEConfigurationsCommand = async (input, context) => {
367
- const headers = sharedHeaders("ListVPCEConfigurations");
368
- let body;
369
- body = JSON.stringify(_json(input));
370
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
371
- };
372
- export const se_PurchaseOfferingCommand = async (input, context) => {
373
- const headers = sharedHeaders("PurchaseOffering");
374
- let body;
375
- body = JSON.stringify(_json(input));
376
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
377
- };
378
- export const se_RenewOfferingCommand = async (input, context) => {
379
- const headers = sharedHeaders("RenewOffering");
380
- let body;
381
- body = JSON.stringify(_json(input));
382
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
- };
384
- export const se_ScheduleRunCommand = async (input, context) => {
385
- const headers = sharedHeaders("ScheduleRun");
386
- let body;
387
- body = JSON.stringify(se_ScheduleRunRequest(input, context));
388
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
- };
390
- export const se_StopJobCommand = async (input, context) => {
391
- const headers = sharedHeaders("StopJob");
392
- let body;
393
- body = JSON.stringify(_json(input));
394
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
395
- };
396
- export const se_StopRemoteAccessSessionCommand = async (input, context) => {
397
- const headers = sharedHeaders("StopRemoteAccessSession");
398
- let body;
399
- body = JSON.stringify(_json(input));
400
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
401
- };
402
- export const se_StopRunCommand = async (input, context) => {
403
- const headers = sharedHeaders("StopRun");
404
- let body;
405
- body = JSON.stringify(_json(input));
406
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
407
- };
408
- export const se_TagResourceCommand = async (input, context) => {
409
- const headers = sharedHeaders("TagResource");
410
- let body;
411
- body = JSON.stringify(_json(input));
412
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
413
- };
414
- export const se_UntagResourceCommand = async (input, context) => {
415
- const headers = sharedHeaders("UntagResource");
416
- let body;
417
- body = JSON.stringify(_json(input));
418
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
- };
420
- export const se_UpdateDeviceInstanceCommand = async (input, context) => {
421
- const headers = sharedHeaders("UpdateDeviceInstance");
422
- let body;
423
- body = JSON.stringify(_json(input));
424
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
425
- };
426
- export const se_UpdateDevicePoolCommand = async (input, context) => {
427
- const headers = sharedHeaders("UpdateDevicePool");
428
- let body;
429
- body = JSON.stringify(_json(input));
430
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
431
- };
432
- export const se_UpdateInstanceProfileCommand = async (input, context) => {
433
- const headers = sharedHeaders("UpdateInstanceProfile");
434
- let body;
435
- body = JSON.stringify(_json(input));
436
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
437
- };
438
- export const se_UpdateNetworkProfileCommand = async (input, context) => {
439
- const headers = sharedHeaders("UpdateNetworkProfile");
440
- let body;
441
- body = JSON.stringify(_json(input));
442
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
- };
444
- export const se_UpdateProjectCommand = async (input, context) => {
445
- const headers = sharedHeaders("UpdateProject");
446
- let body;
447
- body = JSON.stringify(_json(input));
448
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
449
- };
450
- export const se_UpdateTestGridProjectCommand = async (input, context) => {
451
- const headers = sharedHeaders("UpdateTestGridProject");
452
- let body;
453
- body = JSON.stringify(_json(input));
454
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
455
- };
456
- export const se_UpdateUploadCommand = async (input, context) => {
457
- const headers = sharedHeaders("UpdateUpload");
458
- let body;
459
- body = JSON.stringify(_json(input));
460
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
461
- };
462
- export const se_UpdateVPCEConfigurationCommand = async (input, context) => {
463
- const headers = sharedHeaders("UpdateVPCEConfiguration");
464
- let body;
465
- body = JSON.stringify(_json(input));
466
- return buildHttpRpcRequest(context, headers, "/", undefined, body);
467
- };
468
- export const de_CreateDevicePoolCommand = async (output, context) => {
469
- if (output.statusCode >= 300) {
470
- return de_CommandError(output, context);
471
- }
472
- const data = await parseBody(output.body, context);
473
- let contents = {};
474
- contents = _json(data);
475
- const response = {
476
- $metadata: deserializeMetadata(output),
477
- ...contents,
478
- };
479
- return response;
480
- };
481
- export const de_CreateInstanceProfileCommand = async (output, context) => {
482
- if (output.statusCode >= 300) {
483
- return de_CommandError(output, context);
484
- }
485
- const data = await parseBody(output.body, context);
486
- let contents = {};
487
- contents = _json(data);
488
- const response = {
489
- $metadata: deserializeMetadata(output),
490
- ...contents,
491
- };
492
- return response;
493
- };
494
- export const de_CreateNetworkProfileCommand = async (output, context) => {
495
- if (output.statusCode >= 300) {
496
- return de_CommandError(output, context);
497
- }
498
- const data = await parseBody(output.body, context);
499
- let contents = {};
500
- contents = _json(data);
501
- const response = {
502
- $metadata: deserializeMetadata(output),
503
- ...contents,
504
- };
505
- return response;
506
- };
507
- export const de_CreateProjectCommand = async (output, context) => {
508
- if (output.statusCode >= 300) {
509
- return de_CommandError(output, context);
510
- }
511
- const data = await parseBody(output.body, context);
512
- let contents = {};
513
- contents = de_CreateProjectResult(data, context);
514
- const response = {
515
- $metadata: deserializeMetadata(output),
516
- ...contents,
517
- };
518
- return response;
519
- };
520
- export const de_CreateRemoteAccessSessionCommand = async (output, context) => {
521
- if (output.statusCode >= 300) {
522
- return de_CommandError(output, context);
523
- }
524
- const data = await parseBody(output.body, context);
525
- let contents = {};
526
- contents = de_CreateRemoteAccessSessionResult(data, context);
527
- const response = {
528
- $metadata: deserializeMetadata(output),
529
- ...contents,
530
- };
531
- return response;
532
- };
533
- export const de_CreateTestGridProjectCommand = async (output, context) => {
534
- if (output.statusCode >= 300) {
535
- return de_CommandError(output, context);
536
- }
537
- const data = await parseBody(output.body, context);
538
- let contents = {};
539
- contents = de_CreateTestGridProjectResult(data, context);
540
- const response = {
541
- $metadata: deserializeMetadata(output),
542
- ...contents,
543
- };
544
- return response;
545
- };
546
- export const de_CreateTestGridUrlCommand = async (output, context) => {
547
- if (output.statusCode >= 300) {
548
- return de_CommandError(output, context);
549
- }
550
- const data = await parseBody(output.body, context);
551
- let contents = {};
552
- contents = de_CreateTestGridUrlResult(data, context);
553
- const response = {
554
- $metadata: deserializeMetadata(output),
555
- ...contents,
556
- };
557
- return response;
558
- };
559
- export const de_CreateUploadCommand = async (output, context) => {
560
- if (output.statusCode >= 300) {
561
- return de_CommandError(output, context);
562
- }
563
- const data = await parseBody(output.body, context);
564
- let contents = {};
565
- contents = de_CreateUploadResult(data, context);
566
- const response = {
567
- $metadata: deserializeMetadata(output),
568
- ...contents,
569
- };
570
- return response;
571
- };
572
- export const de_CreateVPCEConfigurationCommand = async (output, context) => {
573
- if (output.statusCode >= 300) {
574
- return de_CommandError(output, context);
575
- }
576
- const data = await parseBody(output.body, context);
577
- let contents = {};
578
- contents = _json(data);
579
- const response = {
580
- $metadata: deserializeMetadata(output),
581
- ...contents,
582
- };
583
- return response;
584
- };
585
- export const de_DeleteDevicePoolCommand = async (output, context) => {
586
- if (output.statusCode >= 300) {
587
- return de_CommandError(output, context);
588
- }
589
- const data = await parseBody(output.body, context);
590
- let contents = {};
591
- contents = _json(data);
592
- const response = {
593
- $metadata: deserializeMetadata(output),
594
- ...contents,
595
- };
596
- return response;
597
- };
598
- export const de_DeleteInstanceProfileCommand = async (output, context) => {
599
- if (output.statusCode >= 300) {
600
- return de_CommandError(output, context);
601
- }
602
- const data = await parseBody(output.body, context);
603
- let contents = {};
604
- contents = _json(data);
605
- const response = {
606
- $metadata: deserializeMetadata(output),
607
- ...contents,
608
- };
609
- return response;
610
- };
611
- export const de_DeleteNetworkProfileCommand = async (output, context) => {
612
- if (output.statusCode >= 300) {
613
- return de_CommandError(output, context);
614
- }
615
- const data = await parseBody(output.body, context);
616
- let contents = {};
617
- contents = _json(data);
618
- const response = {
619
- $metadata: deserializeMetadata(output),
620
- ...contents,
621
- };
622
- return response;
623
- };
624
- export const de_DeleteProjectCommand = async (output, context) => {
625
- if (output.statusCode >= 300) {
626
- return de_CommandError(output, context);
627
- }
628
- const data = await parseBody(output.body, context);
629
- let contents = {};
630
- contents = _json(data);
631
- const response = {
632
- $metadata: deserializeMetadata(output),
633
- ...contents,
634
- };
635
- return response;
636
- };
637
- export const de_DeleteRemoteAccessSessionCommand = async (output, context) => {
638
- if (output.statusCode >= 300) {
639
- return de_CommandError(output, context);
640
- }
641
- const data = await parseBody(output.body, context);
642
- let contents = {};
643
- contents = _json(data);
644
- const response = {
645
- $metadata: deserializeMetadata(output),
646
- ...contents,
647
- };
648
- return response;
649
- };
650
- export const de_DeleteRunCommand = async (output, context) => {
651
- if (output.statusCode >= 300) {
652
- return de_CommandError(output, context);
653
- }
654
- const data = await parseBody(output.body, context);
655
- let contents = {};
656
- contents = _json(data);
657
- const response = {
658
- $metadata: deserializeMetadata(output),
659
- ...contents,
660
- };
661
- return response;
662
- };
663
- export const de_DeleteTestGridProjectCommand = async (output, context) => {
664
- if (output.statusCode >= 300) {
665
- return de_CommandError(output, context);
666
- }
667
- const data = await parseBody(output.body, context);
668
- let contents = {};
669
- contents = _json(data);
670
- const response = {
671
- $metadata: deserializeMetadata(output),
672
- ...contents,
673
- };
674
- return response;
675
- };
676
- export const de_DeleteUploadCommand = async (output, context) => {
677
- if (output.statusCode >= 300) {
678
- return de_CommandError(output, context);
679
- }
680
- const data = await parseBody(output.body, context);
681
- let contents = {};
682
- contents = _json(data);
683
- const response = {
684
- $metadata: deserializeMetadata(output),
685
- ...contents,
686
- };
687
- return response;
688
- };
689
- export const de_DeleteVPCEConfigurationCommand = async (output, context) => {
690
- if (output.statusCode >= 300) {
691
- return de_CommandError(output, context);
692
- }
693
- const data = await parseBody(output.body, context);
694
- let contents = {};
695
- contents = _json(data);
696
- const response = {
697
- $metadata: deserializeMetadata(output),
698
- ...contents,
699
- };
700
- return response;
701
- };
702
- export const de_GetAccountSettingsCommand = async (output, context) => {
703
- if (output.statusCode >= 300) {
704
- return de_CommandError(output, context);
705
- }
706
- const data = await parseBody(output.body, context);
707
- let contents = {};
708
- contents = de_GetAccountSettingsResult(data, context);
709
- const response = {
710
- $metadata: deserializeMetadata(output),
711
- ...contents,
712
- };
713
- return response;
714
- };
715
- export const de_GetDeviceCommand = async (output, context) => {
716
- if (output.statusCode >= 300) {
717
- return de_CommandError(output, context);
718
- }
719
- const data = await parseBody(output.body, context);
720
- let contents = {};
721
- contents = de_GetDeviceResult(data, context);
722
- const response = {
723
- $metadata: deserializeMetadata(output),
724
- ...contents,
725
- };
726
- return response;
727
- };
728
- export const de_GetDeviceInstanceCommand = async (output, context) => {
729
- if (output.statusCode >= 300) {
730
- return de_CommandError(output, context);
731
- }
732
- const data = await parseBody(output.body, context);
733
- let contents = {};
734
- contents = _json(data);
735
- const response = {
736
- $metadata: deserializeMetadata(output),
737
- ...contents,
738
- };
739
- return response;
740
- };
741
- export const de_GetDevicePoolCommand = async (output, context) => {
742
- if (output.statusCode >= 300) {
743
- return de_CommandError(output, context);
744
- }
745
- const data = await parseBody(output.body, context);
746
- let contents = {};
747
- contents = _json(data);
748
- const response = {
749
- $metadata: deserializeMetadata(output),
750
- ...contents,
751
- };
752
- return response;
753
- };
754
- export const de_GetDevicePoolCompatibilityCommand = async (output, context) => {
755
- if (output.statusCode >= 300) {
756
- return de_CommandError(output, context);
757
- }
758
- const data = await parseBody(output.body, context);
759
- let contents = {};
760
- contents = de_GetDevicePoolCompatibilityResult(data, context);
761
- const response = {
762
- $metadata: deserializeMetadata(output),
763
- ...contents,
764
- };
765
- return response;
766
- };
767
- export const de_GetInstanceProfileCommand = async (output, context) => {
768
- if (output.statusCode >= 300) {
769
- return de_CommandError(output, context);
770
- }
771
- const data = await parseBody(output.body, context);
772
- let contents = {};
773
- contents = _json(data);
774
- const response = {
775
- $metadata: deserializeMetadata(output),
776
- ...contents,
777
- };
778
- return response;
779
- };
780
- export const de_GetJobCommand = async (output, context) => {
781
- if (output.statusCode >= 300) {
782
- return de_CommandError(output, context);
783
- }
784
- const data = await parseBody(output.body, context);
785
- let contents = {};
786
- contents = de_GetJobResult(data, context);
787
- const response = {
788
- $metadata: deserializeMetadata(output),
789
- ...contents,
790
- };
791
- return response;
792
- };
793
- export const de_GetNetworkProfileCommand = async (output, context) => {
794
- if (output.statusCode >= 300) {
795
- return de_CommandError(output, context);
796
- }
797
- const data = await parseBody(output.body, context);
798
- let contents = {};
799
- contents = _json(data);
800
- const response = {
801
- $metadata: deserializeMetadata(output),
802
- ...contents,
803
- };
804
- return response;
805
- };
806
- export const de_GetOfferingStatusCommand = async (output, context) => {
807
- if (output.statusCode >= 300) {
808
- return de_CommandError(output, context);
809
- }
810
- const data = await parseBody(output.body, context);
811
- let contents = {};
812
- contents = de_GetOfferingStatusResult(data, context);
813
- const response = {
814
- $metadata: deserializeMetadata(output),
815
- ...contents,
816
- };
817
- return response;
818
- };
819
- export const de_GetProjectCommand = async (output, context) => {
820
- if (output.statusCode >= 300) {
821
- return de_CommandError(output, context);
822
- }
823
- const data = await parseBody(output.body, context);
824
- let contents = {};
825
- contents = de_GetProjectResult(data, context);
826
- const response = {
827
- $metadata: deserializeMetadata(output),
828
- ...contents,
829
- };
830
- return response;
831
- };
832
- export const de_GetRemoteAccessSessionCommand = async (output, context) => {
833
- if (output.statusCode >= 300) {
834
- return de_CommandError(output, context);
835
- }
836
- const data = await parseBody(output.body, context);
837
- let contents = {};
838
- contents = de_GetRemoteAccessSessionResult(data, context);
839
- const response = {
840
- $metadata: deserializeMetadata(output),
841
- ...contents,
842
- };
843
- return response;
844
- };
845
- export const de_GetRunCommand = async (output, context) => {
846
- if (output.statusCode >= 300) {
847
- return de_CommandError(output, context);
848
- }
849
- const data = await parseBody(output.body, context);
850
- let contents = {};
851
- contents = de_GetRunResult(data, context);
852
- const response = {
853
- $metadata: deserializeMetadata(output),
854
- ...contents,
855
- };
856
- return response;
857
- };
858
- export const de_GetSuiteCommand = async (output, context) => {
859
- if (output.statusCode >= 300) {
860
- return de_CommandError(output, context);
861
- }
862
- const data = await parseBody(output.body, context);
863
- let contents = {};
864
- contents = de_GetSuiteResult(data, context);
865
- const response = {
866
- $metadata: deserializeMetadata(output),
867
- ...contents,
868
- };
869
- return response;
870
- };
871
- export const de_GetTestCommand = async (output, context) => {
872
- if (output.statusCode >= 300) {
873
- return de_CommandError(output, context);
874
- }
875
- const data = await parseBody(output.body, context);
876
- let contents = {};
877
- contents = de_GetTestResult(data, context);
878
- const response = {
879
- $metadata: deserializeMetadata(output),
880
- ...contents,
881
- };
882
- return response;
883
- };
884
- export const de_GetTestGridProjectCommand = async (output, context) => {
885
- if (output.statusCode >= 300) {
886
- return de_CommandError(output, context);
887
- }
888
- const data = await parseBody(output.body, context);
889
- let contents = {};
890
- contents = de_GetTestGridProjectResult(data, context);
891
- const response = {
892
- $metadata: deserializeMetadata(output),
893
- ...contents,
894
- };
895
- return response;
896
- };
897
- export const de_GetTestGridSessionCommand = async (output, context) => {
898
- if (output.statusCode >= 300) {
899
- return de_CommandError(output, context);
900
- }
901
- const data = await parseBody(output.body, context);
902
- let contents = {};
903
- contents = de_GetTestGridSessionResult(data, context);
904
- const response = {
905
- $metadata: deserializeMetadata(output),
906
- ...contents,
907
- };
908
- return response;
909
- };
910
- export const de_GetUploadCommand = async (output, context) => {
911
- if (output.statusCode >= 300) {
912
- return de_CommandError(output, context);
913
- }
914
- const data = await parseBody(output.body, context);
915
- let contents = {};
916
- contents = de_GetUploadResult(data, context);
917
- const response = {
918
- $metadata: deserializeMetadata(output),
919
- ...contents,
920
- };
921
- return response;
922
- };
923
- export const de_GetVPCEConfigurationCommand = async (output, context) => {
924
- if (output.statusCode >= 300) {
925
- return de_CommandError(output, context);
926
- }
927
- const data = await parseBody(output.body, context);
928
- let contents = {};
929
- contents = _json(data);
930
- const response = {
931
- $metadata: deserializeMetadata(output),
932
- ...contents,
933
- };
934
- return response;
935
- };
936
- export const de_InstallToRemoteAccessSessionCommand = async (output, context) => {
937
- if (output.statusCode >= 300) {
938
- return de_CommandError(output, context);
939
- }
940
- const data = await parseBody(output.body, context);
941
- let contents = {};
942
- contents = de_InstallToRemoteAccessSessionResult(data, context);
943
- const response = {
944
- $metadata: deserializeMetadata(output),
945
- ...contents,
946
- };
947
- return response;
948
- };
949
- export const de_ListArtifactsCommand = async (output, context) => {
950
- if (output.statusCode >= 300) {
951
- return de_CommandError(output, context);
952
- }
953
- const data = await parseBody(output.body, context);
954
- let contents = {};
955
- contents = _json(data);
956
- const response = {
957
- $metadata: deserializeMetadata(output),
958
- ...contents,
959
- };
960
- return response;
961
- };
962
- export const de_ListDeviceInstancesCommand = async (output, context) => {
963
- if (output.statusCode >= 300) {
964
- return de_CommandError(output, context);
965
- }
966
- const data = await parseBody(output.body, context);
967
- let contents = {};
968
- contents = _json(data);
969
- const response = {
970
- $metadata: deserializeMetadata(output),
971
- ...contents,
972
- };
973
- return response;
974
- };
975
- export const de_ListDevicePoolsCommand = async (output, context) => {
976
- if (output.statusCode >= 300) {
977
- return de_CommandError(output, context);
978
- }
979
- const data = await parseBody(output.body, context);
980
- let contents = {};
981
- contents = _json(data);
982
- const response = {
983
- $metadata: deserializeMetadata(output),
984
- ...contents,
985
- };
986
- return response;
987
- };
988
- export const de_ListDevicesCommand = async (output, context) => {
989
- if (output.statusCode >= 300) {
990
- return de_CommandError(output, context);
991
- }
992
- const data = await parseBody(output.body, context);
993
- let contents = {};
994
- contents = de_ListDevicesResult(data, context);
995
- const response = {
996
- $metadata: deserializeMetadata(output),
997
- ...contents,
998
- };
999
- return response;
1000
- };
1001
- export const de_ListInstanceProfilesCommand = async (output, context) => {
1002
- if (output.statusCode >= 300) {
1003
- return de_CommandError(output, context);
1004
- }
1005
- const data = await parseBody(output.body, context);
1006
- let contents = {};
1007
- contents = _json(data);
1008
- const response = {
1009
- $metadata: deserializeMetadata(output),
1010
- ...contents,
1011
- };
1012
- return response;
1013
- };
1014
- export const de_ListJobsCommand = async (output, context) => {
1015
- if (output.statusCode >= 300) {
1016
- return de_CommandError(output, context);
1017
- }
1018
- const data = await parseBody(output.body, context);
1019
- let contents = {};
1020
- contents = de_ListJobsResult(data, context);
1021
- const response = {
1022
- $metadata: deserializeMetadata(output),
1023
- ...contents,
1024
- };
1025
- return response;
1026
- };
1027
- export const de_ListNetworkProfilesCommand = async (output, context) => {
1028
- if (output.statusCode >= 300) {
1029
- return de_CommandError(output, context);
1030
- }
1031
- const data = await parseBody(output.body, context);
1032
- let contents = {};
1033
- contents = _json(data);
1034
- const response = {
1035
- $metadata: deserializeMetadata(output),
1036
- ...contents,
1037
- };
1038
- return response;
1039
- };
1040
- export const de_ListOfferingPromotionsCommand = async (output, context) => {
1041
- if (output.statusCode >= 300) {
1042
- return de_CommandError(output, context);
1043
- }
1044
- const data = await parseBody(output.body, context);
1045
- let contents = {};
1046
- contents = _json(data);
1047
- const response = {
1048
- $metadata: deserializeMetadata(output),
1049
- ...contents,
1050
- };
1051
- return response;
1052
- };
1053
- export const de_ListOfferingsCommand = async (output, context) => {
1054
- if (output.statusCode >= 300) {
1055
- return de_CommandError(output, context);
1056
- }
1057
- const data = await parseBody(output.body, context);
1058
- let contents = {};
1059
- contents = de_ListOfferingsResult(data, context);
1060
- const response = {
1061
- $metadata: deserializeMetadata(output),
1062
- ...contents,
1063
- };
1064
- return response;
1065
- };
1066
- export const de_ListOfferingTransactionsCommand = async (output, context) => {
1067
- if (output.statusCode >= 300) {
1068
- return de_CommandError(output, context);
1069
- }
1070
- const data = await parseBody(output.body, context);
1071
- let contents = {};
1072
- contents = de_ListOfferingTransactionsResult(data, context);
1073
- const response = {
1074
- $metadata: deserializeMetadata(output),
1075
- ...contents,
1076
- };
1077
- return response;
1078
- };
1079
- export const de_ListProjectsCommand = async (output, context) => {
1080
- if (output.statusCode >= 300) {
1081
- return de_CommandError(output, context);
1082
- }
1083
- const data = await parseBody(output.body, context);
1084
- let contents = {};
1085
- contents = de_ListProjectsResult(data, context);
1086
- const response = {
1087
- $metadata: deserializeMetadata(output),
1088
- ...contents,
1089
- };
1090
- return response;
1091
- };
1092
- export const de_ListRemoteAccessSessionsCommand = async (output, context) => {
1093
- if (output.statusCode >= 300) {
1094
- return de_CommandError(output, context);
1095
- }
1096
- const data = await parseBody(output.body, context);
1097
- let contents = {};
1098
- contents = de_ListRemoteAccessSessionsResult(data, context);
1099
- const response = {
1100
- $metadata: deserializeMetadata(output),
1101
- ...contents,
1102
- };
1103
- return response;
1104
- };
1105
- export const de_ListRunsCommand = async (output, context) => {
1106
- if (output.statusCode >= 300) {
1107
- return de_CommandError(output, context);
1108
- }
1109
- const data = await parseBody(output.body, context);
1110
- let contents = {};
1111
- contents = de_ListRunsResult(data, context);
1112
- const response = {
1113
- $metadata: deserializeMetadata(output),
1114
- ...contents,
1115
- };
1116
- return response;
1117
- };
1118
- export const de_ListSamplesCommand = async (output, context) => {
1119
- if (output.statusCode >= 300) {
1120
- return de_CommandError(output, context);
1121
- }
1122
- const data = await parseBody(output.body, context);
1123
- let contents = {};
1124
- contents = _json(data);
1125
- const response = {
1126
- $metadata: deserializeMetadata(output),
1127
- ...contents,
1128
- };
1129
- return response;
1130
- };
1131
- export const de_ListSuitesCommand = async (output, context) => {
1132
- if (output.statusCode >= 300) {
1133
- return de_CommandError(output, context);
1134
- }
1135
- const data = await parseBody(output.body, context);
1136
- let contents = {};
1137
- contents = de_ListSuitesResult(data, context);
1138
- const response = {
1139
- $metadata: deserializeMetadata(output),
1140
- ...contents,
1141
- };
1142
- return response;
1143
- };
1144
- export const de_ListTagsForResourceCommand = async (output, context) => {
1145
- if (output.statusCode >= 300) {
1146
- return de_CommandError(output, context);
1147
- }
1148
- const data = await parseBody(output.body, context);
1149
- let contents = {};
1150
- contents = _json(data);
1151
- const response = {
1152
- $metadata: deserializeMetadata(output),
1153
- ...contents,
1154
- };
1155
- return response;
1156
- };
1157
- export const de_ListTestGridProjectsCommand = async (output, context) => {
1158
- if (output.statusCode >= 300) {
1159
- return de_CommandError(output, context);
1160
- }
1161
- const data = await parseBody(output.body, context);
1162
- let contents = {};
1163
- contents = de_ListTestGridProjectsResult(data, context);
1164
- const response = {
1165
- $metadata: deserializeMetadata(output),
1166
- ...contents,
1167
- };
1168
- return response;
1169
- };
1170
- export const de_ListTestGridSessionActionsCommand = async (output, context) => {
1171
- if (output.statusCode >= 300) {
1172
- return de_CommandError(output, context);
1173
- }
1174
- const data = await parseBody(output.body, context);
1175
- let contents = {};
1176
- contents = de_ListTestGridSessionActionsResult(data, context);
1177
- const response = {
1178
- $metadata: deserializeMetadata(output),
1179
- ...contents,
1180
- };
1181
- return response;
1182
- };
1183
- export const de_ListTestGridSessionArtifactsCommand = async (output, context) => {
1184
- if (output.statusCode >= 300) {
1185
- return de_CommandError(output, context);
1186
- }
1187
- const data = await parseBody(output.body, context);
1188
- let contents = {};
1189
- contents = _json(data);
1190
- const response = {
1191
- $metadata: deserializeMetadata(output),
1192
- ...contents,
1193
- };
1194
- return response;
1195
- };
1196
- export const de_ListTestGridSessionsCommand = async (output, context) => {
1197
- if (output.statusCode >= 300) {
1198
- return de_CommandError(output, context);
1199
- }
1200
- const data = await parseBody(output.body, context);
1201
- let contents = {};
1202
- contents = de_ListTestGridSessionsResult(data, context);
1203
- const response = {
1204
- $metadata: deserializeMetadata(output),
1205
- ...contents,
1206
- };
1207
- return response;
1208
- };
1209
- export const de_ListTestsCommand = async (output, context) => {
1210
- if (output.statusCode >= 300) {
1211
- return de_CommandError(output, context);
1212
- }
1213
- const data = await parseBody(output.body, context);
1214
- let contents = {};
1215
- contents = de_ListTestsResult(data, context);
1216
- const response = {
1217
- $metadata: deserializeMetadata(output),
1218
- ...contents,
1219
- };
1220
- return response;
1221
- };
1222
- export const de_ListUniqueProblemsCommand = async (output, context) => {
1223
- if (output.statusCode >= 300) {
1224
- return de_CommandError(output, context);
1225
- }
1226
- const data = await parseBody(output.body, context);
1227
- let contents = {};
1228
- contents = de_ListUniqueProblemsResult(data, context);
1229
- const response = {
1230
- $metadata: deserializeMetadata(output),
1231
- ...contents,
1232
- };
1233
- return response;
1234
- };
1235
- export const de_ListUploadsCommand = async (output, context) => {
1236
- if (output.statusCode >= 300) {
1237
- return de_CommandError(output, context);
1238
- }
1239
- const data = await parseBody(output.body, context);
1240
- let contents = {};
1241
- contents = de_ListUploadsResult(data, context);
1242
- const response = {
1243
- $metadata: deserializeMetadata(output),
1244
- ...contents,
1245
- };
1246
- return response;
1247
- };
1248
- export const de_ListVPCEConfigurationsCommand = async (output, context) => {
1249
- if (output.statusCode >= 300) {
1250
- return de_CommandError(output, context);
1251
- }
1252
- const data = await parseBody(output.body, context);
1253
- let contents = {};
1254
- contents = _json(data);
1255
- const response = {
1256
- $metadata: deserializeMetadata(output),
1257
- ...contents,
1258
- };
1259
- return response;
1260
- };
1261
- export const de_PurchaseOfferingCommand = async (output, context) => {
1262
- if (output.statusCode >= 300) {
1263
- return de_CommandError(output, context);
1264
- }
1265
- const data = await parseBody(output.body, context);
1266
- let contents = {};
1267
- contents = de_PurchaseOfferingResult(data, context);
1268
- const response = {
1269
- $metadata: deserializeMetadata(output),
1270
- ...contents,
1271
- };
1272
- return response;
1273
- };
1274
- export const de_RenewOfferingCommand = async (output, context) => {
1275
- if (output.statusCode >= 300) {
1276
- return de_CommandError(output, context);
1277
- }
1278
- const data = await parseBody(output.body, context);
1279
- let contents = {};
1280
- contents = de_RenewOfferingResult(data, context);
1281
- const response = {
1282
- $metadata: deserializeMetadata(output),
1283
- ...contents,
1284
- };
1285
- return response;
1286
- };
1287
- export const de_ScheduleRunCommand = async (output, context) => {
1288
- if (output.statusCode >= 300) {
1289
- return de_CommandError(output, context);
1290
- }
1291
- const data = await parseBody(output.body, context);
1292
- let contents = {};
1293
- contents = de_ScheduleRunResult(data, context);
1294
- const response = {
1295
- $metadata: deserializeMetadata(output),
1296
- ...contents,
1297
- };
1298
- return response;
1299
- };
1300
- export const de_StopJobCommand = async (output, context) => {
1301
- if (output.statusCode >= 300) {
1302
- return de_CommandError(output, context);
1303
- }
1304
- const data = await parseBody(output.body, context);
1305
- let contents = {};
1306
- contents = de_StopJobResult(data, context);
1307
- const response = {
1308
- $metadata: deserializeMetadata(output),
1309
- ...contents,
1310
- };
1311
- return response;
1312
- };
1313
- export const de_StopRemoteAccessSessionCommand = async (output, context) => {
1314
- if (output.statusCode >= 300) {
1315
- return de_CommandError(output, context);
1316
- }
1317
- const data = await parseBody(output.body, context);
1318
- let contents = {};
1319
- contents = de_StopRemoteAccessSessionResult(data, context);
1320
- const response = {
1321
- $metadata: deserializeMetadata(output),
1322
- ...contents,
1323
- };
1324
- return response;
1325
- };
1326
- export const de_StopRunCommand = async (output, context) => {
1327
- if (output.statusCode >= 300) {
1328
- return de_CommandError(output, context);
1329
- }
1330
- const data = await parseBody(output.body, context);
1331
- let contents = {};
1332
- contents = de_StopRunResult(data, context);
1333
- const response = {
1334
- $metadata: deserializeMetadata(output),
1335
- ...contents,
1336
- };
1337
- return response;
1338
- };
1339
- export const de_TagResourceCommand = async (output, context) => {
1340
- if (output.statusCode >= 300) {
1341
- return de_CommandError(output, context);
1342
- }
1343
- const data = await parseBody(output.body, context);
1344
- let contents = {};
1345
- contents = _json(data);
1346
- const response = {
1347
- $metadata: deserializeMetadata(output),
1348
- ...contents,
1349
- };
1350
- return response;
1351
- };
1352
- export const de_UntagResourceCommand = async (output, context) => {
1353
- if (output.statusCode >= 300) {
1354
- return de_CommandError(output, context);
1355
- }
1356
- const data = await parseBody(output.body, context);
1357
- let contents = {};
1358
- contents = _json(data);
1359
- const response = {
1360
- $metadata: deserializeMetadata(output),
1361
- ...contents,
1362
- };
1363
- return response;
1364
- };
1365
- export const de_UpdateDeviceInstanceCommand = async (output, context) => {
1366
- if (output.statusCode >= 300) {
1367
- return de_CommandError(output, context);
1368
- }
1369
- const data = await parseBody(output.body, context);
1370
- let contents = {};
1371
- contents = _json(data);
1372
- const response = {
1373
- $metadata: deserializeMetadata(output),
1374
- ...contents,
1375
- };
1376
- return response;
1377
- };
1378
- export const de_UpdateDevicePoolCommand = async (output, context) => {
1379
- if (output.statusCode >= 300) {
1380
- return de_CommandError(output, context);
1381
- }
1382
- const data = await parseBody(output.body, context);
1383
- let contents = {};
1384
- contents = _json(data);
1385
- const response = {
1386
- $metadata: deserializeMetadata(output),
1387
- ...contents,
1388
- };
1389
- return response;
1390
- };
1391
- export const de_UpdateInstanceProfileCommand = async (output, context) => {
1392
- if (output.statusCode >= 300) {
1393
- return de_CommandError(output, context);
1394
- }
1395
- const data = await parseBody(output.body, context);
1396
- let contents = {};
1397
- contents = _json(data);
1398
- const response = {
1399
- $metadata: deserializeMetadata(output),
1400
- ...contents,
1401
- };
1402
- return response;
1403
- };
1404
- export const de_UpdateNetworkProfileCommand = async (output, context) => {
1405
- if (output.statusCode >= 300) {
1406
- return de_CommandError(output, context);
1407
- }
1408
- const data = await parseBody(output.body, context);
1409
- let contents = {};
1410
- contents = _json(data);
1411
- const response = {
1412
- $metadata: deserializeMetadata(output),
1413
- ...contents,
1414
- };
1415
- return response;
1416
- };
1417
- export const de_UpdateProjectCommand = async (output, context) => {
1418
- if (output.statusCode >= 300) {
1419
- return de_CommandError(output, context);
1420
- }
1421
- const data = await parseBody(output.body, context);
1422
- let contents = {};
1423
- contents = de_UpdateProjectResult(data, context);
1424
- const response = {
1425
- $metadata: deserializeMetadata(output),
1426
- ...contents,
1427
- };
1428
- return response;
1429
- };
1430
- export const de_UpdateTestGridProjectCommand = async (output, context) => {
1431
- if (output.statusCode >= 300) {
1432
- return de_CommandError(output, context);
1433
- }
1434
- const data = await parseBody(output.body, context);
1435
- let contents = {};
1436
- contents = de_UpdateTestGridProjectResult(data, context);
1437
- const response = {
1438
- $metadata: deserializeMetadata(output),
1439
- ...contents,
1440
- };
1441
- return response;
1442
- };
1443
- export const de_UpdateUploadCommand = async (output, context) => {
1444
- if (output.statusCode >= 300) {
1445
- return de_CommandError(output, context);
1446
- }
1447
- const data = await parseBody(output.body, context);
1448
- let contents = {};
1449
- contents = de_UpdateUploadResult(data, context);
1450
- const response = {
1451
- $metadata: deserializeMetadata(output),
1452
- ...contents,
1453
- };
1454
- return response;
1455
- };
1456
- export const de_UpdateVPCEConfigurationCommand = async (output, context) => {
1457
- if (output.statusCode >= 300) {
1458
- return de_CommandError(output, context);
1459
- }
1460
- const data = await parseBody(output.body, context);
1461
- let contents = {};
1462
- contents = _json(data);
1463
- const response = {
1464
- $metadata: deserializeMetadata(output),
1465
- ...contents,
1466
- };
1467
- return response;
1468
- };
1469
- const de_CommandError = async (output, context) => {
1470
- const parsedOutput = {
1471
- ...output,
1472
- body: await parseErrorBody(output.body, context),
1473
- };
1474
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1475
- switch (errorCode) {
1476
- case "ArgumentException":
1477
- case "com.amazonaws.devicefarm#ArgumentException":
1478
- throw await de_ArgumentExceptionRes(parsedOutput, context);
1479
- case "LimitExceededException":
1480
- case "com.amazonaws.devicefarm#LimitExceededException":
1481
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1482
- case "NotFoundException":
1483
- case "com.amazonaws.devicefarm#NotFoundException":
1484
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1485
- case "ServiceAccountException":
1486
- case "com.amazonaws.devicefarm#ServiceAccountException":
1487
- throw await de_ServiceAccountExceptionRes(parsedOutput, context);
1488
- case "TagOperationException":
1489
- case "com.amazonaws.devicefarm#TagOperationException":
1490
- throw await de_TagOperationExceptionRes(parsedOutput, context);
1491
- case "InternalServiceException":
1492
- case "com.amazonaws.devicefarm#InternalServiceException":
1493
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1494
- case "CannotDeleteException":
1495
- case "com.amazonaws.devicefarm#CannotDeleteException":
1496
- throw await de_CannotDeleteExceptionRes(parsedOutput, context);
1497
- case "InvalidOperationException":
1498
- case "com.amazonaws.devicefarm#InvalidOperationException":
1499
- throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1500
- case "NotEligibleException":
1501
- case "com.amazonaws.devicefarm#NotEligibleException":
1502
- throw await de_NotEligibleExceptionRes(parsedOutput, context);
1503
- case "IdempotencyException":
1504
- case "com.amazonaws.devicefarm#IdempotencyException":
1505
- throw await de_IdempotencyExceptionRes(parsedOutput, context);
1506
- case "TagPolicyException":
1507
- case "com.amazonaws.devicefarm#TagPolicyException":
1508
- throw await de_TagPolicyExceptionRes(parsedOutput, context);
1509
- case "TooManyTagsException":
1510
- case "com.amazonaws.devicefarm#TooManyTagsException":
1511
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1512
- default:
1513
- const parsedBody = parsedOutput.body;
1514
- return throwDefaultError({
1515
- output,
1516
- parsedBody,
1517
- errorCode,
1518
- });
1519
- }
1520
- };
1521
- const de_ArgumentExceptionRes = async (parsedOutput, context) => {
1522
- const body = parsedOutput.body;
1523
- const deserialized = _json(body);
1524
- const exception = new ArgumentException({
1525
- $metadata: deserializeMetadata(parsedOutput),
1526
- ...deserialized,
1527
- });
1528
- return __decorateServiceException(exception, body);
1529
- };
1530
- const de_CannotDeleteExceptionRes = async (parsedOutput, context) => {
1531
- const body = parsedOutput.body;
1532
- const deserialized = _json(body);
1533
- const exception = new CannotDeleteException({
1534
- $metadata: deserializeMetadata(parsedOutput),
1535
- ...deserialized,
1536
- });
1537
- return __decorateServiceException(exception, body);
1538
- };
1539
- const de_IdempotencyExceptionRes = async (parsedOutput, context) => {
1540
- const body = parsedOutput.body;
1541
- const deserialized = _json(body);
1542
- const exception = new IdempotencyException({
1543
- $metadata: deserializeMetadata(parsedOutput),
1544
- ...deserialized,
1545
- });
1546
- return __decorateServiceException(exception, body);
1547
- };
1548
- const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
1549
- const body = parsedOutput.body;
1550
- const deserialized = _json(body);
1551
- const exception = new InternalServiceException({
1552
- $metadata: deserializeMetadata(parsedOutput),
1553
- ...deserialized,
1554
- });
1555
- return __decorateServiceException(exception, body);
1556
- };
1557
- const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
1558
- const body = parsedOutput.body;
1559
- const deserialized = _json(body);
1560
- const exception = new InvalidOperationException({
1561
- $metadata: deserializeMetadata(parsedOutput),
1562
- ...deserialized,
1563
- });
1564
- return __decorateServiceException(exception, body);
1565
- };
1566
- const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
1567
- const body = parsedOutput.body;
1568
- const deserialized = _json(body);
1569
- const exception = new LimitExceededException({
1570
- $metadata: deserializeMetadata(parsedOutput),
1571
- ...deserialized,
1572
- });
1573
- return __decorateServiceException(exception, body);
1574
- };
1575
- const de_NotEligibleExceptionRes = async (parsedOutput, context) => {
1576
- const body = parsedOutput.body;
1577
- const deserialized = _json(body);
1578
- const exception = new NotEligibleException({
1579
- $metadata: deserializeMetadata(parsedOutput),
1580
- ...deserialized,
1581
- });
1582
- return __decorateServiceException(exception, body);
1583
- };
1584
- const de_NotFoundExceptionRes = async (parsedOutput, context) => {
1585
- const body = parsedOutput.body;
1586
- const deserialized = _json(body);
1587
- const exception = new NotFoundException({
1588
- $metadata: deserializeMetadata(parsedOutput),
1589
- ...deserialized,
1590
- });
1591
- return __decorateServiceException(exception, body);
1592
- };
1593
- const de_ServiceAccountExceptionRes = async (parsedOutput, context) => {
1594
- const body = parsedOutput.body;
1595
- const deserialized = _json(body);
1596
- const exception = new ServiceAccountException({
1597
- $metadata: deserializeMetadata(parsedOutput),
1598
- ...deserialized,
1599
- });
1600
- return __decorateServiceException(exception, body);
1601
- };
1602
- const de_TagOperationExceptionRes = async (parsedOutput, context) => {
1603
- const body = parsedOutput.body;
1604
- const deserialized = _json(body);
1605
- const exception = new TagOperationException({
1606
- $metadata: deserializeMetadata(parsedOutput),
1607
- ...deserialized,
1608
- });
1609
- return __decorateServiceException(exception, body);
1610
- };
1611
- const de_TagPolicyExceptionRes = async (parsedOutput, context) => {
1612
- const body = parsedOutput.body;
1613
- const deserialized = _json(body);
1614
- const exception = new TagPolicyException({
1615
- $metadata: deserializeMetadata(parsedOutput),
1616
- ...deserialized,
1617
- });
1618
- return __decorateServiceException(exception, body);
1619
- };
1620
- const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
1621
- const body = parsedOutput.body;
1622
- const deserialized = _json(body);
1623
- const exception = new TooManyTagsException({
1624
- $metadata: deserializeMetadata(parsedOutput),
1625
- ...deserialized,
1626
- });
1627
- return __decorateServiceException(exception, body);
1628
- };
1629
- const se_GetDevicePoolCompatibilityRequest = (input, context) => {
1630
- return take(input, {
1631
- appArn: [],
1632
- configuration: (_) => se_ScheduleRunConfiguration(_, context),
1633
- devicePoolArn: [],
1634
- projectArn: [],
1635
- test: _json,
1636
- testType: [],
1637
- });
1638
- };
1639
- const se_ListTestGridSessionsRequest = (input, context) => {
1640
- return take(input, {
1641
- creationTimeAfter: (_) => _.getTime() / 1_000,
1642
- creationTimeBefore: (_) => _.getTime() / 1_000,
1643
- endTimeAfter: (_) => _.getTime() / 1_000,
1644
- endTimeBefore: (_) => _.getTime() / 1_000,
1645
- maxResult: [],
1646
- nextToken: [],
1647
- projectArn: [],
1648
- status: [],
1649
- });
1650
- };
1651
- const se_Location = (input, context) => {
1652
- return take(input, {
1653
- latitude: __serializeFloat,
1654
- longitude: __serializeFloat,
1655
- });
1656
- };
1657
- const se_ScheduleRunConfiguration = (input, context) => {
1658
- return take(input, {
1659
- auxiliaryApps: _json,
1660
- billingMethod: [],
1661
- customerArtifactPaths: _json,
1662
- deviceProxy: _json,
1663
- extraDataPackageArn: [],
1664
- locale: [],
1665
- location: (_) => se_Location(_, context),
1666
- networkProfileArn: [],
1667
- radios: _json,
1668
- vpceConfigurationArns: _json,
1669
- });
1670
- };
1671
- const se_ScheduleRunRequest = (input, context) => {
1672
- return take(input, {
1673
- appArn: [],
1674
- configuration: (_) => se_ScheduleRunConfiguration(_, context),
1675
- devicePoolArn: [],
1676
- deviceSelectionConfiguration: _json,
1677
- executionConfiguration: _json,
1678
- name: [],
1679
- projectArn: [],
1680
- test: _json,
1681
- });
1682
- };
1683
- const de_AccountSettings = (output, context) => {
1684
- return take(output, {
1685
- awsAccountNumber: __expectString,
1686
- defaultJobTimeoutMinutes: __expectInt32,
1687
- maxJobTimeoutMinutes: __expectInt32,
1688
- maxSlots: _json,
1689
- skipAppResign: __expectBoolean,
1690
- trialMinutes: (_) => de_TrialMinutes(_, context),
1691
- unmeteredDevices: _json,
1692
- unmeteredRemoteAccessDevices: _json,
1693
- });
1694
- };
1695
- const de_CPU = (output, context) => {
1696
- return take(output, {
1697
- architecture: __expectString,
1698
- clock: __limitedParseDouble,
1699
- frequency: __expectString,
1700
- });
1701
- };
1702
- const de_CreateProjectResult = (output, context) => {
1703
- return take(output, {
1704
- project: (_) => de_Project(_, context),
1705
- });
1706
- };
1707
- const de_CreateRemoteAccessSessionResult = (output, context) => {
1708
- return take(output, {
1709
- remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
1710
- });
1711
- };
1712
- const de_CreateTestGridProjectResult = (output, context) => {
1713
- return take(output, {
1714
- testGridProject: (_) => de_TestGridProject(_, context),
1715
- });
1716
- };
1717
- const de_CreateTestGridUrlResult = (output, context) => {
1718
- return take(output, {
1719
- expires: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1720
- url: __expectString,
1721
- });
1722
- };
1723
- const de_CreateUploadResult = (output, context) => {
1724
- return take(output, {
1725
- upload: (_) => de_Upload(_, context),
1726
- });
1727
- };
1728
- const de_Device = (output, context) => {
1729
- return take(output, {
1730
- arn: __expectString,
1731
- availability: __expectString,
1732
- carrier: __expectString,
1733
- cpu: (_) => de_CPU(_, context),
1734
- fleetName: __expectString,
1735
- fleetType: __expectString,
1736
- formFactor: __expectString,
1737
- heapSize: __expectLong,
1738
- image: __expectString,
1739
- instances: _json,
1740
- manufacturer: __expectString,
1741
- memory: __expectLong,
1742
- model: __expectString,
1743
- modelId: __expectString,
1744
- name: __expectString,
1745
- os: __expectString,
1746
- platform: __expectString,
1747
- radio: __expectString,
1748
- remoteAccessEnabled: __expectBoolean,
1749
- remoteDebugEnabled: __expectBoolean,
1750
- resolution: _json,
1751
- });
1752
- };
1753
- const de_DeviceMinutes = (output, context) => {
1754
- return take(output, {
1755
- metered: __limitedParseDouble,
1756
- total: __limitedParseDouble,
1757
- unmetered: __limitedParseDouble,
1758
- });
1759
- };
1760
- const de_DevicePoolCompatibilityResult = (output, context) => {
1761
- return take(output, {
1762
- compatible: __expectBoolean,
1763
- device: (_) => de_Device(_, context),
1764
- incompatibilityMessages: _json,
1765
- });
1766
- };
1767
- const de_DevicePoolCompatibilityResults = (output, context) => {
1768
- const retVal = (output || [])
1769
- .filter((e) => e != null)
1770
- .map((entry) => {
1771
- return de_DevicePoolCompatibilityResult(entry, context);
1772
- });
1773
- return retVal;
1774
- };
1775
- const de_Devices = (output, context) => {
1776
- const retVal = (output || [])
1777
- .filter((e) => e != null)
1778
- .map((entry) => {
1779
- return de_Device(entry, context);
1780
- });
1781
- return retVal;
1782
- };
1783
- const de_GetAccountSettingsResult = (output, context) => {
1784
- return take(output, {
1785
- accountSettings: (_) => de_AccountSettings(_, context),
1786
- });
1787
- };
1788
- const de_GetDevicePoolCompatibilityResult = (output, context) => {
1789
- return take(output, {
1790
- compatibleDevices: (_) => de_DevicePoolCompatibilityResults(_, context),
1791
- incompatibleDevices: (_) => de_DevicePoolCompatibilityResults(_, context),
1792
- });
1793
- };
1794
- const de_GetDeviceResult = (output, context) => {
1795
- return take(output, {
1796
- device: (_) => de_Device(_, context),
1797
- });
1798
- };
1799
- const de_GetJobResult = (output, context) => {
1800
- return take(output, {
1801
- job: (_) => de_Job(_, context),
1802
- });
1803
- };
1804
- const de_GetOfferingStatusResult = (output, context) => {
1805
- return take(output, {
1806
- current: (_) => de_OfferingStatusMap(_, context),
1807
- nextPeriod: (_) => de_OfferingStatusMap(_, context),
1808
- nextToken: __expectString,
1809
- });
1810
- };
1811
- const de_GetProjectResult = (output, context) => {
1812
- return take(output, {
1813
- project: (_) => de_Project(_, context),
1814
- });
1815
- };
1816
- const de_GetRemoteAccessSessionResult = (output, context) => {
1817
- return take(output, {
1818
- remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
1819
- });
1820
- };
1821
- const de_GetRunResult = (output, context) => {
1822
- return take(output, {
1823
- run: (_) => de_Run(_, context),
1824
- });
1825
- };
1826
- const de_GetSuiteResult = (output, context) => {
1827
- return take(output, {
1828
- suite: (_) => de_Suite(_, context),
1829
- });
1830
- };
1831
- const de_GetTestGridProjectResult = (output, context) => {
1832
- return take(output, {
1833
- testGridProject: (_) => de_TestGridProject(_, context),
1834
- });
1835
- };
1836
- const de_GetTestGridSessionResult = (output, context) => {
1837
- return take(output, {
1838
- testGridSession: (_) => de_TestGridSession(_, context),
1839
- });
1840
- };
1841
- const de_GetTestResult = (output, context) => {
1842
- return take(output, {
1843
- test: (_) => de_Test(_, context),
1844
- });
1845
- };
1846
- const de_GetUploadResult = (output, context) => {
1847
- return take(output, {
1848
- upload: (_) => de_Upload(_, context),
1849
- });
1850
- };
1851
- const de_InstallToRemoteAccessSessionResult = (output, context) => {
1852
- return take(output, {
1853
- appUpload: (_) => de_Upload(_, context),
1854
- });
1855
- };
1856
- const de_Job = (output, context) => {
1857
- return take(output, {
1858
- arn: __expectString,
1859
- counters: _json,
1860
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1861
- device: (_) => de_Device(_, context),
1862
- deviceMinutes: (_) => de_DeviceMinutes(_, context),
1863
- instanceArn: __expectString,
1864
- message: __expectString,
1865
- name: __expectString,
1866
- result: __expectString,
1867
- started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1868
- status: __expectString,
1869
- stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1870
- type: __expectString,
1871
- videoCapture: __expectBoolean,
1872
- videoEndpoint: __expectString,
1873
- });
1874
- };
1875
- const de_Jobs = (output, context) => {
1876
- const retVal = (output || [])
1877
- .filter((e) => e != null)
1878
- .map((entry) => {
1879
- return de_Job(entry, context);
1880
- });
1881
- return retVal;
1882
- };
1883
- const de_ListDevicesResult = (output, context) => {
1884
- return take(output, {
1885
- devices: (_) => de_Devices(_, context),
1886
- nextToken: __expectString,
1887
- });
1888
- };
1889
- const de_ListJobsResult = (output, context) => {
1890
- return take(output, {
1891
- jobs: (_) => de_Jobs(_, context),
1892
- nextToken: __expectString,
1893
- });
1894
- };
1895
- const de_ListOfferingsResult = (output, context) => {
1896
- return take(output, {
1897
- nextToken: __expectString,
1898
- offerings: (_) => de_Offerings(_, context),
1899
- });
1900
- };
1901
- const de_ListOfferingTransactionsResult = (output, context) => {
1902
- return take(output, {
1903
- nextToken: __expectString,
1904
- offeringTransactions: (_) => de_OfferingTransactions(_, context),
1905
- });
1906
- };
1907
- const de_ListProjectsResult = (output, context) => {
1908
- return take(output, {
1909
- nextToken: __expectString,
1910
- projects: (_) => de_Projects(_, context),
1911
- });
1912
- };
1913
- const de_ListRemoteAccessSessionsResult = (output, context) => {
1914
- return take(output, {
1915
- nextToken: __expectString,
1916
- remoteAccessSessions: (_) => de_RemoteAccessSessions(_, context),
1917
- });
1918
- };
1919
- const de_ListRunsResult = (output, context) => {
1920
- return take(output, {
1921
- nextToken: __expectString,
1922
- runs: (_) => de_Runs(_, context),
1923
- });
1924
- };
1925
- const de_ListSuitesResult = (output, context) => {
1926
- return take(output, {
1927
- nextToken: __expectString,
1928
- suites: (_) => de_Suites(_, context),
1929
- });
1930
- };
1931
- const de_ListTestGridProjectsResult = (output, context) => {
1932
- return take(output, {
1933
- nextToken: __expectString,
1934
- testGridProjects: (_) => de_TestGridProjects(_, context),
1935
- });
1936
- };
1937
- const de_ListTestGridSessionActionsResult = (output, context) => {
1938
- return take(output, {
1939
- actions: (_) => de_TestGridSessionActions(_, context),
1940
- nextToken: __expectString,
1941
- });
1942
- };
1943
- const de_ListTestGridSessionsResult = (output, context) => {
1944
- return take(output, {
1945
- nextToken: __expectString,
1946
- testGridSessions: (_) => de_TestGridSessions(_, context),
1947
- });
1948
- };
1949
- const de_ListTestsResult = (output, context) => {
1950
- return take(output, {
1951
- nextToken: __expectString,
1952
- tests: (_) => de_Tests(_, context),
1953
- });
1954
- };
1955
- const de_ListUniqueProblemsResult = (output, context) => {
1956
- return take(output, {
1957
- nextToken: __expectString,
1958
- uniqueProblems: (_) => de_UniqueProblemsByExecutionResultMap(_, context),
1959
- });
1960
- };
1961
- const de_ListUploadsResult = (output, context) => {
1962
- return take(output, {
1963
- nextToken: __expectString,
1964
- uploads: (_) => de_Uploads(_, context),
1965
- });
1966
- };
1967
- const de_Location = (output, context) => {
1968
- return take(output, {
1969
- latitude: __limitedParseDouble,
1970
- longitude: __limitedParseDouble,
1971
- });
1972
- };
1973
- const de_MonetaryAmount = (output, context) => {
1974
- return take(output, {
1975
- amount: __limitedParseDouble,
1976
- currencyCode: __expectString,
1977
- });
1978
- };
1979
- const de_Offering = (output, context) => {
1980
- return take(output, {
1981
- description: __expectString,
1982
- id: __expectString,
1983
- platform: __expectString,
1984
- recurringCharges: (_) => de_RecurringCharges(_, context),
1985
- type: __expectString,
1986
- });
1987
- };
1988
- const de_Offerings = (output, context) => {
1989
- const retVal = (output || [])
1990
- .filter((e) => e != null)
1991
- .map((entry) => {
1992
- return de_Offering(entry, context);
1993
- });
1994
- return retVal;
1995
- };
1996
- const de_OfferingStatus = (output, context) => {
1997
- return take(output, {
1998
- effectiveOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1999
- offering: (_) => de_Offering(_, context),
2000
- quantity: __expectInt32,
2001
- type: __expectString,
2002
- });
2003
- };
2004
- const de_OfferingStatusMap = (output, context) => {
2005
- return Object.entries(output).reduce((acc, [key, value]) => {
2006
- if (value === null) {
2007
- return acc;
2008
- }
2009
- acc[key] = de_OfferingStatus(value, context);
2010
- return acc;
2011
- }, {});
2012
- };
2013
- const de_OfferingTransaction = (output, context) => {
2014
- return take(output, {
2015
- cost: (_) => de_MonetaryAmount(_, context),
2016
- createdOn: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2017
- offeringPromotionId: __expectString,
2018
- offeringStatus: (_) => de_OfferingStatus(_, context),
2019
- transactionId: __expectString,
2020
- });
2021
- };
2022
- const de_OfferingTransactions = (output, context) => {
2023
- const retVal = (output || [])
2024
- .filter((e) => e != null)
2025
- .map((entry) => {
2026
- return de_OfferingTransaction(entry, context);
2027
- });
2028
- return retVal;
2029
- };
2030
- const de_Problem = (output, context) => {
2031
- return take(output, {
2032
- device: (_) => de_Device(_, context),
2033
- job: _json,
2034
- message: __expectString,
2035
- result: __expectString,
2036
- run: _json,
2037
- suite: _json,
2038
- test: _json,
2039
- });
2040
- };
2041
- const de_Problems = (output, context) => {
2042
- const retVal = (output || [])
2043
- .filter((e) => e != null)
2044
- .map((entry) => {
2045
- return de_Problem(entry, context);
2046
- });
2047
- return retVal;
2048
- };
2049
- const de_Project = (output, context) => {
2050
- return take(output, {
2051
- arn: __expectString,
2052
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2053
- defaultJobTimeoutMinutes: __expectInt32,
2054
- name: __expectString,
2055
- vpcConfig: _json,
2056
- });
2057
- };
2058
- const de_Projects = (output, context) => {
2059
- const retVal = (output || [])
2060
- .filter((e) => e != null)
2061
- .map((entry) => {
2062
- return de_Project(entry, context);
2063
- });
2064
- return retVal;
2065
- };
2066
- const de_PurchaseOfferingResult = (output, context) => {
2067
- return take(output, {
2068
- offeringTransaction: (_) => de_OfferingTransaction(_, context),
2069
- });
2070
- };
2071
- const de_RecurringCharge = (output, context) => {
2072
- return take(output, {
2073
- cost: (_) => de_MonetaryAmount(_, context),
2074
- frequency: __expectString,
2075
- });
2076
- };
2077
- const de_RecurringCharges = (output, context) => {
2078
- const retVal = (output || [])
2079
- .filter((e) => e != null)
2080
- .map((entry) => {
2081
- return de_RecurringCharge(entry, context);
2082
- });
2083
- return retVal;
2084
- };
2085
- const de_RemoteAccessSession = (output, context) => {
2086
- return take(output, {
2087
- appUpload: __expectString,
2088
- arn: __expectString,
2089
- billingMethod: __expectString,
2090
- clientId: __expectString,
2091
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2092
- device: (_) => de_Device(_, context),
2093
- deviceMinutes: (_) => de_DeviceMinutes(_, context),
2094
- deviceProxy: _json,
2095
- deviceUdid: __expectString,
2096
- endpoint: __expectString,
2097
- hostAddress: __expectString,
2098
- instanceArn: __expectString,
2099
- interactionMode: __expectString,
2100
- message: __expectString,
2101
- name: __expectString,
2102
- remoteDebugEnabled: __expectBoolean,
2103
- remoteRecordAppArn: __expectString,
2104
- remoteRecordEnabled: __expectBoolean,
2105
- result: __expectString,
2106
- skipAppResign: __expectBoolean,
2107
- started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2108
- status: __expectString,
2109
- stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2110
- vpcConfig: _json,
2111
- });
2112
- };
2113
- const de_RemoteAccessSessions = (output, context) => {
2114
- const retVal = (output || [])
2115
- .filter((e) => e != null)
2116
- .map((entry) => {
2117
- return de_RemoteAccessSession(entry, context);
2118
- });
2119
- return retVal;
2120
- };
2121
- const de_RenewOfferingResult = (output, context) => {
2122
- return take(output, {
2123
- offeringTransaction: (_) => de_OfferingTransaction(_, context),
2124
- });
2125
- };
2126
- const de_Run = (output, context) => {
2127
- return take(output, {
2128
- appUpload: __expectString,
2129
- arn: __expectString,
2130
- billingMethod: __expectString,
2131
- completedJobs: __expectInt32,
2132
- counters: _json,
2133
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2134
- customerArtifactPaths: _json,
2135
- deviceMinutes: (_) => de_DeviceMinutes(_, context),
2136
- devicePoolArn: __expectString,
2137
- deviceProxy: _json,
2138
- deviceSelectionResult: _json,
2139
- eventCount: __expectInt32,
2140
- jobTimeoutMinutes: __expectInt32,
2141
- locale: __expectString,
2142
- location: (_) => de_Location(_, context),
2143
- message: __expectString,
2144
- name: __expectString,
2145
- networkProfile: _json,
2146
- parsingResultUrl: __expectString,
2147
- platform: __expectString,
2148
- radios: _json,
2149
- result: __expectString,
2150
- resultCode: __expectString,
2151
- seed: __expectInt32,
2152
- skipAppResign: __expectBoolean,
2153
- started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2154
- status: __expectString,
2155
- stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2156
- testSpecArn: __expectString,
2157
- totalJobs: __expectInt32,
2158
- type: __expectString,
2159
- vpcConfig: _json,
2160
- webUrl: __expectString,
2161
- });
2162
- };
2163
- const de_Runs = (output, context) => {
2164
- const retVal = (output || [])
2165
- .filter((e) => e != null)
2166
- .map((entry) => {
2167
- return de_Run(entry, context);
2168
- });
2169
- return retVal;
2170
- };
2171
- const de_ScheduleRunResult = (output, context) => {
2172
- return take(output, {
2173
- run: (_) => de_Run(_, context),
2174
- });
2175
- };
2176
- const de_StopJobResult = (output, context) => {
2177
- return take(output, {
2178
- job: (_) => de_Job(_, context),
2179
- });
2180
- };
2181
- const de_StopRemoteAccessSessionResult = (output, context) => {
2182
- return take(output, {
2183
- remoteAccessSession: (_) => de_RemoteAccessSession(_, context),
2184
- });
2185
- };
2186
- const de_StopRunResult = (output, context) => {
2187
- return take(output, {
2188
- run: (_) => de_Run(_, context),
2189
- });
2190
- };
2191
- const de_Suite = (output, context) => {
2192
- return take(output, {
2193
- arn: __expectString,
2194
- counters: _json,
2195
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2196
- deviceMinutes: (_) => de_DeviceMinutes(_, context),
2197
- message: __expectString,
2198
- name: __expectString,
2199
- result: __expectString,
2200
- started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2201
- status: __expectString,
2202
- stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2203
- type: __expectString,
2204
- });
2205
- };
2206
- const de_Suites = (output, context) => {
2207
- const retVal = (output || [])
2208
- .filter((e) => e != null)
2209
- .map((entry) => {
2210
- return de_Suite(entry, context);
2211
- });
2212
- return retVal;
2213
- };
2214
- const de_Test = (output, context) => {
2215
- return take(output, {
2216
- arn: __expectString,
2217
- counters: _json,
2218
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2219
- deviceMinutes: (_) => de_DeviceMinutes(_, context),
2220
- message: __expectString,
2221
- name: __expectString,
2222
- result: __expectString,
2223
- started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2224
- status: __expectString,
2225
- stopped: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2226
- type: __expectString,
2227
- });
2228
- };
2229
- const de_TestGridProject = (output, context) => {
2230
- return take(output, {
2231
- arn: __expectString,
2232
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2233
- description: __expectString,
2234
- name: __expectString,
2235
- vpcConfig: _json,
2236
- });
2237
- };
2238
- const de_TestGridProjects = (output, context) => {
2239
- const retVal = (output || [])
2240
- .filter((e) => e != null)
2241
- .map((entry) => {
2242
- return de_TestGridProject(entry, context);
2243
- });
2244
- return retVal;
2245
- };
2246
- const de_TestGridSession = (output, context) => {
2247
- return take(output, {
2248
- arn: __expectString,
2249
- billingMinutes: __limitedParseDouble,
2250
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2251
- ended: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2252
- seleniumProperties: __expectString,
2253
- status: __expectString,
2254
- });
2255
- };
2256
- const de_TestGridSessionAction = (output, context) => {
2257
- return take(output, {
2258
- action: __expectString,
2259
- duration: __expectLong,
2260
- requestMethod: __expectString,
2261
- started: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2262
- statusCode: __expectString,
2263
- });
2264
- };
2265
- const de_TestGridSessionActions = (output, context) => {
2266
- const retVal = (output || [])
2267
- .filter((e) => e != null)
2268
- .map((entry) => {
2269
- return de_TestGridSessionAction(entry, context);
2270
- });
2271
- return retVal;
2272
- };
2273
- const de_TestGridSessions = (output, context) => {
2274
- const retVal = (output || [])
2275
- .filter((e) => e != null)
2276
- .map((entry) => {
2277
- return de_TestGridSession(entry, context);
2278
- });
2279
- return retVal;
2280
- };
2281
- const de_Tests = (output, context) => {
2282
- const retVal = (output || [])
2283
- .filter((e) => e != null)
2284
- .map((entry) => {
2285
- return de_Test(entry, context);
2286
- });
2287
- return retVal;
2288
- };
2289
- const de_TrialMinutes = (output, context) => {
2290
- return take(output, {
2291
- remaining: __limitedParseDouble,
2292
- total: __limitedParseDouble,
2293
- });
2294
- };
2295
- const de_UniqueProblem = (output, context) => {
2296
- return take(output, {
2297
- message: __expectString,
2298
- problems: (_) => de_Problems(_, context),
2299
- });
2300
- };
2301
- const de_UniqueProblems = (output, context) => {
2302
- const retVal = (output || [])
2303
- .filter((e) => e != null)
2304
- .map((entry) => {
2305
- return de_UniqueProblem(entry, context);
2306
- });
2307
- return retVal;
2308
- };
2309
- const de_UniqueProblemsByExecutionResultMap = (output, context) => {
2310
- return Object.entries(output).reduce((acc, [key, value]) => {
2311
- if (value === null) {
2312
- return acc;
2313
- }
2314
- acc[key] = de_UniqueProblems(value, context);
2315
- return acc;
2316
- }, {});
2317
- };
2318
- const de_UpdateProjectResult = (output, context) => {
2319
- return take(output, {
2320
- project: (_) => de_Project(_, context),
2321
- });
2322
- };
2323
- const de_UpdateTestGridProjectResult = (output, context) => {
2324
- return take(output, {
2325
- testGridProject: (_) => de_TestGridProject(_, context),
2326
- });
2327
- };
2328
- const de_UpdateUploadResult = (output, context) => {
2329
- return take(output, {
2330
- upload: (_) => de_Upload(_, context),
2331
- });
2332
- };
2333
- const de_Upload = (output, context) => {
2334
- return take(output, {
2335
- arn: __expectString,
2336
- category: __expectString,
2337
- contentType: __expectString,
2338
- created: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
2339
- message: __expectString,
2340
- metadata: __expectString,
2341
- name: __expectString,
2342
- status: __expectString,
2343
- type: __expectString,
2344
- url: __expectString,
2345
- });
2346
- };
2347
- const de_Uploads = (output, context) => {
2348
- const retVal = (output || [])
2349
- .filter((e) => e != null)
2350
- .map((entry) => {
2351
- return de_Upload(entry, context);
2352
- });
2353
- return retVal;
2354
- };
2355
- const deserializeMetadata = (output) => ({
2356
- httpStatusCode: output.statusCode,
2357
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2358
- extendedRequestId: output.headers["x-amz-id-2"],
2359
- cfId: output.headers["x-amz-cf-id"],
2360
- });
2361
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2362
- const throwDefaultError = withBaseException(__BaseException);
2363
- const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
2364
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2365
- const contents = {
2366
- protocol,
2367
- hostname,
2368
- port,
2369
- method: "POST",
2370
- path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2371
- headers,
2372
- };
2373
- if (resolvedHostname !== undefined) {
2374
- contents.hostname = resolvedHostname;
2375
- }
2376
- if (body !== undefined) {
2377
- contents.body = body;
2378
- }
2379
- return new __HttpRequest(contents);
2380
- };
2381
- function sharedHeaders(operation) {
2382
- return {
2383
- "content-type": "application/x-amz-json-1.1",
2384
- "x-amz-target": `DeviceFarm_20150623.${operation}`,
2385
- };
2386
- }