@aws-sdk/client-datasync 3.812.0 → 3.814.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 (96) hide show
  1. package/README.md +3 -107
  2. package/dist-cjs/index.js +26 -890
  3. package/dist-es/DataSync.js +0 -26
  4. package/dist-es/commands/index.js +0 -13
  5. package/dist-es/models/models_0.js +18 -62
  6. package/dist-es/pagination/index.js +0 -4
  7. package/dist-es/protocols/Aws_json1_1.js +2 -554
  8. package/dist-types/DataSync.d.ts +3 -96
  9. package/dist-types/DataSyncClient.d.ts +5 -18
  10. package/dist-types/commands/CreateAgentCommand.d.ts +2 -1
  11. package/dist-types/commands/CreateLocationFsxLustreCommand.d.ts +3 -3
  12. package/dist-types/commands/CreateLocationFsxOpenZfsCommand.d.ts +5 -4
  13. package/dist-types/commands/CreateLocationHdfsCommand.d.ts +2 -2
  14. package/dist-types/commands/CreateLocationNfsCommand.d.ts +2 -2
  15. package/dist-types/commands/CreateLocationObjectStorageCommand.d.ts +1 -2
  16. package/dist-types/commands/CreateLocationS3Command.d.ts +4 -2
  17. package/dist-types/commands/CreateTaskCommand.d.ts +4 -3
  18. package/dist-types/commands/DescribeAgentCommand.d.ts +2 -2
  19. package/dist-types/commands/DescribeLocationAzureBlobCommand.d.ts +2 -1
  20. package/dist-types/commands/DescribeTaskCommand.d.ts +2 -1
  21. package/dist-types/commands/UpdateLocationAzureBlobCommand.d.ts +2 -1
  22. package/dist-types/commands/UpdateLocationEfsCommand.d.ts +4 -2
  23. package/dist-types/commands/UpdateLocationFsxLustreCommand.d.ts +4 -2
  24. package/dist-types/commands/UpdateLocationFsxOntapCommand.d.ts +4 -2
  25. package/dist-types/commands/UpdateLocationFsxOpenZfsCommand.d.ts +5 -3
  26. package/dist-types/commands/UpdateLocationFsxWindowsCommand.d.ts +4 -2
  27. package/dist-types/commands/UpdateLocationHdfsCommand.d.ts +4 -3
  28. package/dist-types/commands/UpdateLocationNfsCommand.d.ts +4 -3
  29. package/dist-types/commands/UpdateLocationObjectStorageCommand.d.ts +4 -2
  30. package/dist-types/commands/UpdateLocationS3Command.d.ts +3 -2
  31. package/dist-types/commands/UpdateLocationSmbCommand.d.ts +4 -3
  32. package/dist-types/commands/UpdateTaskCommand.d.ts +2 -1
  33. package/dist-types/commands/UpdateTaskExecutionCommand.d.ts +2 -2
  34. package/dist-types/commands/index.d.ts +0 -13
  35. package/dist-types/index.d.ts +3 -3
  36. package/dist-types/models/models_0.d.ts +368 -1499
  37. package/dist-types/pagination/index.d.ts +0 -4
  38. package/dist-types/protocols/Aws_json1_1.d.ts +0 -117
  39. package/dist-types/ts3.4/DataSync.d.ts +0 -229
  40. package/dist-types/ts3.4/DataSyncClient.d.ts +0 -78
  41. package/dist-types/ts3.4/commands/index.d.ts +0 -13
  42. package/dist-types/ts3.4/models/models_0.d.ts +18 -307
  43. package/dist-types/ts3.4/pagination/index.d.ts +0 -4
  44. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -156
  45. package/package.json +2 -4
  46. package/dist-es/commands/AddStorageSystemCommand.js +0 -23
  47. package/dist-es/commands/DescribeDiscoveryJobCommand.js +0 -22
  48. package/dist-es/commands/DescribeStorageSystemCommand.js +0 -22
  49. package/dist-es/commands/DescribeStorageSystemResourceMetricsCommand.js +0 -22
  50. package/dist-es/commands/DescribeStorageSystemResourcesCommand.js +0 -22
  51. package/dist-es/commands/GenerateRecommendationsCommand.js +0 -22
  52. package/dist-es/commands/ListDiscoveryJobsCommand.js +0 -22
  53. package/dist-es/commands/ListStorageSystemsCommand.js +0 -22
  54. package/dist-es/commands/RemoveStorageSystemCommand.js +0 -22
  55. package/dist-es/commands/StartDiscoveryJobCommand.js +0 -22
  56. package/dist-es/commands/StopDiscoveryJobCommand.js +0 -22
  57. package/dist-es/commands/UpdateDiscoveryJobCommand.js +0 -22
  58. package/dist-es/commands/UpdateStorageSystemCommand.js +0 -23
  59. package/dist-es/pagination/DescribeStorageSystemResourceMetricsPaginator.js +0 -4
  60. package/dist-es/pagination/DescribeStorageSystemResourcesPaginator.js +0 -4
  61. package/dist-es/pagination/ListDiscoveryJobsPaginator.js +0 -4
  62. package/dist-es/pagination/ListStorageSystemsPaginator.js +0 -4
  63. package/dist-types/commands/AddStorageSystemCommand.d.ts +0 -100
  64. package/dist-types/commands/DescribeDiscoveryJobCommand.d.ts +0 -84
  65. package/dist-types/commands/DescribeStorageSystemCommand.d.ts +0 -94
  66. package/dist-types/commands/DescribeStorageSystemResourceMetricsCommand.d.ts +0 -118
  67. package/dist-types/commands/DescribeStorageSystemResourcesCommand.d.ts +0 -208
  68. package/dist-types/commands/GenerateRecommendationsCommand.d.ts +0 -85
  69. package/dist-types/commands/ListDiscoveryJobsCommand.d.ts +0 -88
  70. package/dist-types/commands/ListStorageSystemsCommand.d.ts +0 -86
  71. package/dist-types/commands/RemoveStorageSystemCommand.d.ts +0 -78
  72. package/dist-types/commands/StartDiscoveryJobCommand.d.ts +0 -89
  73. package/dist-types/commands/StopDiscoveryJobCommand.d.ts +0 -80
  74. package/dist-types/commands/UpdateDiscoveryJobCommand.d.ts +0 -78
  75. package/dist-types/commands/UpdateStorageSystemCommand.d.ts +0 -91
  76. package/dist-types/pagination/DescribeStorageSystemResourceMetricsPaginator.d.ts +0 -7
  77. package/dist-types/pagination/DescribeStorageSystemResourcesPaginator.d.ts +0 -7
  78. package/dist-types/pagination/ListDiscoveryJobsPaginator.d.ts +0 -7
  79. package/dist-types/pagination/ListStorageSystemsPaginator.d.ts +0 -7
  80. package/dist-types/ts3.4/commands/AddStorageSystemCommand.d.ts +0 -50
  81. package/dist-types/ts3.4/commands/DescribeDiscoveryJobCommand.d.ts +0 -51
  82. package/dist-types/ts3.4/commands/DescribeStorageSystemCommand.d.ts +0 -51
  83. package/dist-types/ts3.4/commands/DescribeStorageSystemResourceMetricsCommand.d.ts +0 -51
  84. package/dist-types/ts3.4/commands/DescribeStorageSystemResourcesCommand.d.ts +0 -51
  85. package/dist-types/ts3.4/commands/GenerateRecommendationsCommand.d.ts +0 -51
  86. package/dist-types/ts3.4/commands/ListDiscoveryJobsCommand.d.ts +0 -51
  87. package/dist-types/ts3.4/commands/ListStorageSystemsCommand.d.ts +0 -51
  88. package/dist-types/ts3.4/commands/RemoveStorageSystemCommand.d.ts +0 -51
  89. package/dist-types/ts3.4/commands/StartDiscoveryJobCommand.d.ts +0 -51
  90. package/dist-types/ts3.4/commands/StopDiscoveryJobCommand.d.ts +0 -50
  91. package/dist-types/ts3.4/commands/UpdateDiscoveryJobCommand.d.ts +0 -51
  92. package/dist-types/ts3.4/commands/UpdateStorageSystemCommand.d.ts +0 -51
  93. package/dist-types/ts3.4/pagination/DescribeStorageSystemResourceMetricsPaginator.d.ts +0 -11
  94. package/dist-types/ts3.4/pagination/DescribeStorageSystemResourcesPaginator.d.ts +0 -11
  95. package/dist-types/ts3.4/pagination/ListDiscoveryJobsPaginator.d.ts +0 -11
  96. package/dist-types/ts3.4/pagination/ListStorageSystemsPaginator.d.ts +0 -11
@@ -1,22 +1,8 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
- import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } 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, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "uuid";
2
+ import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
5
4
  import { DataSyncServiceException as __BaseException } from "../models/DataSyncServiceException";
6
5
  import { InternalException, InvalidRequestException, } from "../models/models_0";
7
- export const se_AddStorageSystemCommand = async (input, context) => {
8
- const headers = sharedHeaders("AddStorageSystem");
9
- let body;
10
- body = JSON.stringify(se_AddStorageSystemRequest(input, context));
11
- let { hostname: resolvedHostname } = await context.endpoint();
12
- if (context.disableHostPrefix !== true) {
13
- resolvedHostname = "discovery-" + resolvedHostname;
14
- if (!__isValidHostname(resolvedHostname)) {
15
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
16
- }
17
- }
18
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
19
- };
20
6
  export const se_CancelTaskExecutionCommand = async (input, context) => {
21
7
  const headers = sharedHeaders("CancelTaskExecution");
22
8
  let body;
@@ -125,19 +111,6 @@ export const se_DescribeAgentCommand = async (input, context) => {
125
111
  body = JSON.stringify(_json(input));
126
112
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
127
113
  };
128
- export const se_DescribeDiscoveryJobCommand = async (input, context) => {
129
- const headers = sharedHeaders("DescribeDiscoveryJob");
130
- let body;
131
- body = JSON.stringify(_json(input));
132
- let { hostname: resolvedHostname } = await context.endpoint();
133
- if (context.disableHostPrefix !== true) {
134
- resolvedHostname = "discovery-" + resolvedHostname;
135
- if (!__isValidHostname(resolvedHostname)) {
136
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
137
- }
138
- }
139
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
140
- };
141
114
  export const se_DescribeLocationAzureBlobCommand = async (input, context) => {
142
115
  const headers = sharedHeaders("DescribeLocationAzureBlob");
143
116
  let body;
@@ -204,45 +177,6 @@ export const se_DescribeLocationSmbCommand = async (input, context) => {
204
177
  body = JSON.stringify(_json(input));
205
178
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
206
179
  };
207
- export const se_DescribeStorageSystemCommand = async (input, context) => {
208
- const headers = sharedHeaders("DescribeStorageSystem");
209
- let body;
210
- body = JSON.stringify(_json(input));
211
- let { hostname: resolvedHostname } = await context.endpoint();
212
- if (context.disableHostPrefix !== true) {
213
- resolvedHostname = "discovery-" + resolvedHostname;
214
- if (!__isValidHostname(resolvedHostname)) {
215
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
216
- }
217
- }
218
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
219
- };
220
- export const se_DescribeStorageSystemResourceMetricsCommand = async (input, context) => {
221
- const headers = sharedHeaders("DescribeStorageSystemResourceMetrics");
222
- let body;
223
- body = JSON.stringify(se_DescribeStorageSystemResourceMetricsRequest(input, context));
224
- let { hostname: resolvedHostname } = await context.endpoint();
225
- if (context.disableHostPrefix !== true) {
226
- resolvedHostname = "discovery-" + resolvedHostname;
227
- if (!__isValidHostname(resolvedHostname)) {
228
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
229
- }
230
- }
231
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
232
- };
233
- export const se_DescribeStorageSystemResourcesCommand = async (input, context) => {
234
- const headers = sharedHeaders("DescribeStorageSystemResources");
235
- let body;
236
- body = JSON.stringify(_json(input));
237
- let { hostname: resolvedHostname } = await context.endpoint();
238
- if (context.disableHostPrefix !== true) {
239
- resolvedHostname = "discovery-" + resolvedHostname;
240
- if (!__isValidHostname(resolvedHostname)) {
241
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
242
- }
243
- }
244
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
245
- };
246
180
  export const se_DescribeTaskCommand = async (input, context) => {
247
181
  const headers = sharedHeaders("DescribeTask");
248
182
  let body;
@@ -255,57 +189,18 @@ export const se_DescribeTaskExecutionCommand = async (input, context) => {
255
189
  body = JSON.stringify(_json(input));
256
190
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
257
191
  };
258
- export const se_GenerateRecommendationsCommand = async (input, context) => {
259
- const headers = sharedHeaders("GenerateRecommendations");
260
- let body;
261
- body = JSON.stringify(_json(input));
262
- let { hostname: resolvedHostname } = await context.endpoint();
263
- if (context.disableHostPrefix !== true) {
264
- resolvedHostname = "discovery-" + resolvedHostname;
265
- if (!__isValidHostname(resolvedHostname)) {
266
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
267
- }
268
- }
269
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
270
- };
271
192
  export const se_ListAgentsCommand = async (input, context) => {
272
193
  const headers = sharedHeaders("ListAgents");
273
194
  let body;
274
195
  body = JSON.stringify(_json(input));
275
196
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
276
197
  };
277
- export const se_ListDiscoveryJobsCommand = async (input, context) => {
278
- const headers = sharedHeaders("ListDiscoveryJobs");
279
- let body;
280
- body = JSON.stringify(_json(input));
281
- let { hostname: resolvedHostname } = await context.endpoint();
282
- if (context.disableHostPrefix !== true) {
283
- resolvedHostname = "discovery-" + resolvedHostname;
284
- if (!__isValidHostname(resolvedHostname)) {
285
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
286
- }
287
- }
288
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
289
- };
290
198
  export const se_ListLocationsCommand = async (input, context) => {
291
199
  const headers = sharedHeaders("ListLocations");
292
200
  let body;
293
201
  body = JSON.stringify(_json(input));
294
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
295
203
  };
296
- export const se_ListStorageSystemsCommand = async (input, context) => {
297
- const headers = sharedHeaders("ListStorageSystems");
298
- let body;
299
- body = JSON.stringify(_json(input));
300
- let { hostname: resolvedHostname } = await context.endpoint();
301
- if (context.disableHostPrefix !== true) {
302
- resolvedHostname = "discovery-" + resolvedHostname;
303
- if (!__isValidHostname(resolvedHostname)) {
304
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
305
- }
306
- }
307
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
308
- };
309
204
  export const se_ListTagsForResourceCommand = async (input, context) => {
310
205
  const headers = sharedHeaders("ListTagsForResource");
311
206
  let body;
@@ -324,51 +219,12 @@ export const se_ListTasksCommand = async (input, context) => {
324
219
  body = JSON.stringify(_json(input));
325
220
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
326
221
  };
327
- export const se_RemoveStorageSystemCommand = async (input, context) => {
328
- const headers = sharedHeaders("RemoveStorageSystem");
329
- let body;
330
- body = JSON.stringify(_json(input));
331
- let { hostname: resolvedHostname } = await context.endpoint();
332
- if (context.disableHostPrefix !== true) {
333
- resolvedHostname = "discovery-" + resolvedHostname;
334
- if (!__isValidHostname(resolvedHostname)) {
335
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
336
- }
337
- }
338
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
339
- };
340
- export const se_StartDiscoveryJobCommand = async (input, context) => {
341
- const headers = sharedHeaders("StartDiscoveryJob");
342
- let body;
343
- body = JSON.stringify(se_StartDiscoveryJobRequest(input, context));
344
- let { hostname: resolvedHostname } = await context.endpoint();
345
- if (context.disableHostPrefix !== true) {
346
- resolvedHostname = "discovery-" + resolvedHostname;
347
- if (!__isValidHostname(resolvedHostname)) {
348
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
349
- }
350
- }
351
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
352
- };
353
222
  export const se_StartTaskExecutionCommand = async (input, context) => {
354
223
  const headers = sharedHeaders("StartTaskExecution");
355
224
  let body;
356
225
  body = JSON.stringify(_json(input));
357
226
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
358
227
  };
359
- export const se_StopDiscoveryJobCommand = async (input, context) => {
360
- const headers = sharedHeaders("StopDiscoveryJob");
361
- let body;
362
- body = JSON.stringify(_json(input));
363
- let { hostname: resolvedHostname } = await context.endpoint();
364
- if (context.disableHostPrefix !== true) {
365
- resolvedHostname = "discovery-" + resolvedHostname;
366
- if (!__isValidHostname(resolvedHostname)) {
367
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
368
- }
369
- }
370
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
371
- };
372
228
  export const se_TagResourceCommand = async (input, context) => {
373
229
  const headers = sharedHeaders("TagResource");
374
230
  let body;
@@ -387,19 +243,6 @@ export const se_UpdateAgentCommand = async (input, context) => {
387
243
  body = JSON.stringify(_json(input));
388
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
389
245
  };
390
- export const se_UpdateDiscoveryJobCommand = async (input, context) => {
391
- const headers = sharedHeaders("UpdateDiscoveryJob");
392
- let body;
393
- body = JSON.stringify(_json(input));
394
- let { hostname: resolvedHostname } = await context.endpoint();
395
- if (context.disableHostPrefix !== true) {
396
- resolvedHostname = "discovery-" + resolvedHostname;
397
- if (!__isValidHostname(resolvedHostname)) {
398
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
399
- }
400
- }
401
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
402
- };
403
246
  export const se_UpdateLocationAzureBlobCommand = async (input, context) => {
404
247
  const headers = sharedHeaders("UpdateLocationAzureBlob");
405
248
  let body;
@@ -466,19 +309,6 @@ export const se_UpdateLocationSmbCommand = async (input, context) => {
466
309
  body = JSON.stringify(se_UpdateLocationSmbRequest(input, context));
467
310
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
468
311
  };
469
- export const se_UpdateStorageSystemCommand = async (input, context) => {
470
- const headers = sharedHeaders("UpdateStorageSystem");
471
- let body;
472
- body = JSON.stringify(_json(input));
473
- let { hostname: resolvedHostname } = await context.endpoint();
474
- if (context.disableHostPrefix !== true) {
475
- resolvedHostname = "discovery-" + resolvedHostname;
476
- if (!__isValidHostname(resolvedHostname)) {
477
- throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
478
- }
479
- }
480
- return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
481
- };
482
312
  export const se_UpdateTaskCommand = async (input, context) => {
483
313
  const headers = sharedHeaders("UpdateTask");
484
314
  let body;
@@ -491,19 +321,6 @@ export const se_UpdateTaskExecutionCommand = async (input, context) => {
491
321
  body = JSON.stringify(_json(input));
492
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
493
323
  };
494
- export const de_AddStorageSystemCommand = 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
324
  export const de_CancelTaskExecutionCommand = async (output, context) => {
508
325
  if (output.statusCode >= 300) {
509
326
  return de_CommandError(output, context);
@@ -738,19 +555,6 @@ export const de_DescribeAgentCommand = async (output, context) => {
738
555
  };
739
556
  return response;
740
557
  };
741
- export const de_DescribeDiscoveryJobCommand = 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 = de_DescribeDiscoveryJobResponse(data, context);
748
- const response = {
749
- $metadata: deserializeMetadata(output),
750
- ...contents,
751
- };
752
- return response;
753
- };
754
558
  export const de_DescribeLocationAzureBlobCommand = async (output, context) => {
755
559
  if (output.statusCode >= 300) {
756
560
  return de_CommandError(output, context);
@@ -894,45 +698,6 @@ export const de_DescribeLocationSmbCommand = async (output, context) => {
894
698
  };
895
699
  return response;
896
700
  };
897
- export const de_DescribeStorageSystemCommand = 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_DescribeStorageSystemResponse(data, context);
904
- const response = {
905
- $metadata: deserializeMetadata(output),
906
- ...contents,
907
- };
908
- return response;
909
- };
910
- export const de_DescribeStorageSystemResourceMetricsCommand = 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_DescribeStorageSystemResourceMetricsResponse(data, context);
917
- const response = {
918
- $metadata: deserializeMetadata(output),
919
- ...contents,
920
- };
921
- return response;
922
- };
923
- export const de_DescribeStorageSystemResourcesCommand = 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 = de_DescribeStorageSystemResourcesResponse(data, context);
930
- const response = {
931
- $metadata: deserializeMetadata(output),
932
- ...contents,
933
- };
934
- return response;
935
- };
936
701
  export const de_DescribeTaskCommand = async (output, context) => {
937
702
  if (output.statusCode >= 300) {
938
703
  return de_CommandError(output, context);
@@ -959,19 +724,6 @@ export const de_DescribeTaskExecutionCommand = async (output, context) => {
959
724
  };
960
725
  return response;
961
726
  };
962
- export const de_GenerateRecommendationsCommand = 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
727
  export const de_ListAgentsCommand = async (output, context) => {
976
728
  if (output.statusCode >= 300) {
977
729
  return de_CommandError(output, context);
@@ -985,19 +737,6 @@ export const de_ListAgentsCommand = async (output, context) => {
985
737
  };
986
738
  return response;
987
739
  };
988
- export const de_ListDiscoveryJobsCommand = 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 = _json(data);
995
- const response = {
996
- $metadata: deserializeMetadata(output),
997
- ...contents,
998
- };
999
- return response;
1000
- };
1001
740
  export const de_ListLocationsCommand = async (output, context) => {
1002
741
  if (output.statusCode >= 300) {
1003
742
  return de_CommandError(output, context);
@@ -1011,19 +750,6 @@ export const de_ListLocationsCommand = async (output, context) => {
1011
750
  };
1012
751
  return response;
1013
752
  };
1014
- export const de_ListStorageSystemsCommand = 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 = _json(data);
1021
- const response = {
1022
- $metadata: deserializeMetadata(output),
1023
- ...contents,
1024
- };
1025
- return response;
1026
- };
1027
753
  export const de_ListTagsForResourceCommand = async (output, context) => {
1028
754
  if (output.statusCode >= 300) {
1029
755
  return de_CommandError(output, context);
@@ -1063,32 +789,6 @@ export const de_ListTasksCommand = async (output, context) => {
1063
789
  };
1064
790
  return response;
1065
791
  };
1066
- export const de_RemoveStorageSystemCommand = 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 = _json(data);
1073
- const response = {
1074
- $metadata: deserializeMetadata(output),
1075
- ...contents,
1076
- };
1077
- return response;
1078
- };
1079
- export const de_StartDiscoveryJobCommand = 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 = _json(data);
1086
- const response = {
1087
- $metadata: deserializeMetadata(output),
1088
- ...contents,
1089
- };
1090
- return response;
1091
- };
1092
792
  export const de_StartTaskExecutionCommand = async (output, context) => {
1093
793
  if (output.statusCode >= 300) {
1094
794
  return de_CommandError(output, context);
@@ -1102,19 +802,6 @@ export const de_StartTaskExecutionCommand = async (output, context) => {
1102
802
  };
1103
803
  return response;
1104
804
  };
1105
- export const de_StopDiscoveryJobCommand = 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 = _json(data);
1112
- const response = {
1113
- $metadata: deserializeMetadata(output),
1114
- ...contents,
1115
- };
1116
- return response;
1117
- };
1118
805
  export const de_TagResourceCommand = async (output, context) => {
1119
806
  if (output.statusCode >= 300) {
1120
807
  return de_CommandError(output, context);
@@ -1154,19 +841,6 @@ export const de_UpdateAgentCommand = async (output, context) => {
1154
841
  };
1155
842
  return response;
1156
843
  };
1157
- export const de_UpdateDiscoveryJobCommand = 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 = _json(data);
1164
- const response = {
1165
- $metadata: deserializeMetadata(output),
1166
- ...contents,
1167
- };
1168
- return response;
1169
- };
1170
844
  export const de_UpdateLocationAzureBlobCommand = async (output, context) => {
1171
845
  if (output.statusCode >= 300) {
1172
846
  return de_CommandError(output, context);
@@ -1310,19 +984,6 @@ export const de_UpdateLocationSmbCommand = async (output, context) => {
1310
984
  };
1311
985
  return response;
1312
986
  };
1313
- export const de_UpdateStorageSystemCommand = 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 = _json(data);
1320
- const response = {
1321
- $metadata: deserializeMetadata(output),
1322
- ...contents,
1323
- };
1324
- return response;
1325
- };
1326
987
  export const de_UpdateTaskCommand = async (output, context) => {
1327
988
  if (output.statusCode >= 300) {
1328
989
  return de_CommandError(output, context);
@@ -1389,18 +1050,6 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
1389
1050
  });
1390
1051
  return __decorateServiceException(exception, body);
1391
1052
  };
1392
- const se_AddStorageSystemRequest = (input, context) => {
1393
- return take(input, {
1394
- AgentArns: _json,
1395
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1396
- CloudWatchLogGroupArn: [],
1397
- Credentials: _json,
1398
- Name: [],
1399
- ServerConfiguration: _json,
1400
- SystemType: [],
1401
- Tags: _json,
1402
- });
1403
- };
1404
1053
  const se_CreateLocationHdfsRequest = (input, context) => {
1405
1054
  return take(input, {
1406
1055
  AgentArns: _json,
@@ -1449,25 +1098,6 @@ const se_CreateLocationSmbRequest = (input, context) => {
1449
1098
  User: [],
1450
1099
  });
1451
1100
  };
1452
- const se_DescribeStorageSystemResourceMetricsRequest = (input, context) => {
1453
- return take(input, {
1454
- DiscoveryJobArn: [],
1455
- EndTime: (_) => _.getTime() / 1_000,
1456
- MaxResults: [],
1457
- NextToken: [],
1458
- ResourceId: [],
1459
- ResourceType: [],
1460
- StartTime: (_) => _.getTime() / 1_000,
1461
- });
1462
- };
1463
- const se_StartDiscoveryJobRequest = (input, context) => {
1464
- return take(input, {
1465
- ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
1466
- CollectionDurationMinutes: [],
1467
- StorageSystemArn: [],
1468
- Tags: _json,
1469
- });
1470
- };
1471
1101
  const se_UpdateLocationHdfsRequest = (input, context) => {
1472
1102
  return take(input, {
1473
1103
  AgentArns: _json,
@@ -1527,16 +1157,6 @@ const de_DescribeAgentResponse = (output, context) => {
1527
1157
  Status: __expectString,
1528
1158
  });
1529
1159
  };
1530
- const de_DescribeDiscoveryJobResponse = (output, context) => {
1531
- return take(output, {
1532
- CollectionDurationMinutes: __expectInt32,
1533
- DiscoveryJobArn: __expectString,
1534
- JobEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1535
- JobStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1536
- Status: __expectString,
1537
- StorageSystemArn: __expectString,
1538
- });
1539
- };
1540
1160
  const de_DescribeLocationAzureBlobResponse = (output, context) => {
1541
1161
  return take(output, {
1542
1162
  AccessTier: __expectString,
@@ -1658,32 +1278,6 @@ const de_DescribeLocationSmbResponse = (output, context) => {
1658
1278
  User: __expectString,
1659
1279
  });
1660
1280
  };
1661
- const de_DescribeStorageSystemResourceMetricsResponse = (output, context) => {
1662
- return take(output, {
1663
- Metrics: (_) => de_Metrics(_, context),
1664
- NextToken: __expectString,
1665
- });
1666
- };
1667
- const de_DescribeStorageSystemResourcesResponse = (output, context) => {
1668
- return take(output, {
1669
- NextToken: __expectString,
1670
- ResourceDetails: (_) => de_ResourceDetails(_, context),
1671
- });
1672
- };
1673
- const de_DescribeStorageSystemResponse = (output, context) => {
1674
- return take(output, {
1675
- AgentArns: _json,
1676
- CloudWatchLogGroupArn: __expectString,
1677
- ConnectivityStatus: __expectString,
1678
- CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1679
- ErrorMessage: __expectString,
1680
- Name: __expectString,
1681
- SecretsManagerArn: __expectString,
1682
- ServerConfiguration: _json,
1683
- StorageSystemArn: __expectString,
1684
- SystemType: __expectString,
1685
- });
1686
- };
1687
1281
  const de_DescribeTaskExecutionResponse = (output, context) => {
1688
1282
  return take(output, {
1689
1283
  BytesCompressed: __expectLong,
@@ -1736,144 +1330,6 @@ const de_DescribeTaskResponse = (output, context) => {
1736
1330
  TaskReportConfig: _json,
1737
1331
  });
1738
1332
  };
1739
- const de_IOPS = (output, context) => {
1740
- return take(output, {
1741
- Other: __limitedParseDouble,
1742
- Read: __limitedParseDouble,
1743
- Total: __limitedParseDouble,
1744
- Write: __limitedParseDouble,
1745
- });
1746
- };
1747
- const de_Latency = (output, context) => {
1748
- return take(output, {
1749
- Other: __limitedParseDouble,
1750
- Read: __limitedParseDouble,
1751
- Write: __limitedParseDouble,
1752
- });
1753
- };
1754
- const de_MaxP95Performance = (output, context) => {
1755
- return take(output, {
1756
- IopsOther: __limitedParseDouble,
1757
- IopsRead: __limitedParseDouble,
1758
- IopsTotal: __limitedParseDouble,
1759
- IopsWrite: __limitedParseDouble,
1760
- LatencyOther: __limitedParseDouble,
1761
- LatencyRead: __limitedParseDouble,
1762
- LatencyWrite: __limitedParseDouble,
1763
- ThroughputOther: __limitedParseDouble,
1764
- ThroughputRead: __limitedParseDouble,
1765
- ThroughputTotal: __limitedParseDouble,
1766
- ThroughputWrite: __limitedParseDouble,
1767
- });
1768
- };
1769
- const de_Metrics = (output, context) => {
1770
- const retVal = (output || [])
1771
- .filter((e) => e != null)
1772
- .map((entry) => {
1773
- return de_ResourceMetrics(entry, context);
1774
- });
1775
- return retVal;
1776
- };
1777
- const de_NetAppONTAPCluster = (output, context) => {
1778
- return take(output, {
1779
- CifsShareCount: __expectLong,
1780
- ClusterBlockStorageLogicalUsed: __expectLong,
1781
- ClusterBlockStorageSize: __expectLong,
1782
- ClusterBlockStorageUsed: __expectLong,
1783
- ClusterCloudStorageUsed: __expectLong,
1784
- ClusterName: __expectString,
1785
- LunCount: __expectLong,
1786
- MaxP95Performance: (_) => de_MaxP95Performance(_, context),
1787
- NfsExportedVolumes: __expectLong,
1788
- RecommendationStatus: __expectString,
1789
- Recommendations: _json,
1790
- ResourceId: __expectString,
1791
- });
1792
- };
1793
- const de_NetAppONTAPClusters = (output, context) => {
1794
- const retVal = (output || [])
1795
- .filter((e) => e != null)
1796
- .map((entry) => {
1797
- return de_NetAppONTAPCluster(entry, context);
1798
- });
1799
- return retVal;
1800
- };
1801
- const de_NetAppONTAPSVM = (output, context) => {
1802
- return take(output, {
1803
- CifsShareCount: __expectLong,
1804
- ClusterUuid: __expectString,
1805
- EnabledProtocols: _json,
1806
- LunCount: __expectLong,
1807
- MaxP95Performance: (_) => de_MaxP95Performance(_, context),
1808
- NfsExportedVolumes: __expectLong,
1809
- RecommendationStatus: __expectString,
1810
- Recommendations: _json,
1811
- ResourceId: __expectString,
1812
- SvmName: __expectString,
1813
- TotalCapacityProvisioned: __expectLong,
1814
- TotalCapacityUsed: __expectLong,
1815
- TotalLogicalCapacityUsed: __expectLong,
1816
- TotalSnapshotCapacityUsed: __expectLong,
1817
- });
1818
- };
1819
- const de_NetAppONTAPSVMs = (output, context) => {
1820
- const retVal = (output || [])
1821
- .filter((e) => e != null)
1822
- .map((entry) => {
1823
- return de_NetAppONTAPSVM(entry, context);
1824
- });
1825
- return retVal;
1826
- };
1827
- const de_NetAppONTAPVolume = (output, context) => {
1828
- return take(output, {
1829
- CapacityProvisioned: __expectLong,
1830
- CapacityUsed: __expectLong,
1831
- CifsShareCount: __expectLong,
1832
- LogicalCapacityUsed: __expectLong,
1833
- LunCount: __expectLong,
1834
- MaxP95Performance: (_) => de_MaxP95Performance(_, context),
1835
- NfsExported: __expectBoolean,
1836
- RecommendationStatus: __expectString,
1837
- Recommendations: _json,
1838
- ResourceId: __expectString,
1839
- SecurityStyle: __expectString,
1840
- SnapshotCapacityUsed: __expectLong,
1841
- SvmName: __expectString,
1842
- SvmUuid: __expectString,
1843
- VolumeName: __expectString,
1844
- });
1845
- };
1846
- const de_NetAppONTAPVolumes = (output, context) => {
1847
- const retVal = (output || [])
1848
- .filter((e) => e != null)
1849
- .map((entry) => {
1850
- return de_NetAppONTAPVolume(entry, context);
1851
- });
1852
- return retVal;
1853
- };
1854
- const de_P95Metrics = (output, context) => {
1855
- return take(output, {
1856
- IOPS: (_) => de_IOPS(_, context),
1857
- Latency: (_) => de_Latency(_, context),
1858
- Throughput: (_) => de_Throughput(_, context),
1859
- });
1860
- };
1861
- const de_ResourceDetails = (output, context) => {
1862
- return take(output, {
1863
- NetAppONTAPClusters: (_) => de_NetAppONTAPClusters(_, context),
1864
- NetAppONTAPSVMs: (_) => de_NetAppONTAPSVMs(_, context),
1865
- NetAppONTAPVolumes: (_) => de_NetAppONTAPVolumes(_, context),
1866
- });
1867
- };
1868
- const de_ResourceMetrics = (output, context) => {
1869
- return take(output, {
1870
- Capacity: _json,
1871
- P95Metrics: (_) => de_P95Metrics(_, context),
1872
- ResourceId: __expectString,
1873
- ResourceType: __expectString,
1874
- Timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1875
- });
1876
- };
1877
1333
  const de_TaskScheduleDetails = (output, context) => {
1878
1334
  return take(output, {
1879
1335
  DisabledBy: __expectString,
@@ -1881,14 +1337,6 @@ const de_TaskScheduleDetails = (output, context) => {
1881
1337
  StatusUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1882
1338
  });
1883
1339
  };
1884
- const de_Throughput = (output, context) => {
1885
- return take(output, {
1886
- Other: __limitedParseDouble,
1887
- Read: __limitedParseDouble,
1888
- Total: __limitedParseDouble,
1889
- Write: __limitedParseDouble,
1890
- });
1891
- };
1892
1340
  const deserializeMetadata = (output) => ({
1893
1341
  httpStatusCode: output.statusCode,
1894
1342
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],