@aws-sdk/client-iot 3.345.0 → 3.347.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -0
- package/dist-cjs/IoT.js +24 -0
- package/dist-cjs/commands/CreatePackageCommand.js +47 -0
- package/dist-cjs/commands/CreatePackageVersionCommand.js +47 -0
- package/dist-cjs/commands/DeletePackageCommand.js +46 -0
- package/dist-cjs/commands/DeletePackageVersionCommand.js +46 -0
- package/dist-cjs/commands/GetPackageCommand.js +47 -0
- package/dist-cjs/commands/GetPackageConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetPackageVersionCommand.js +47 -0
- package/dist-cjs/commands/ListPackageVersionsCommand.js +46 -0
- package/dist-cjs/commands/ListPackagesCommand.js +46 -0
- package/dist-cjs/commands/UpdatePackageCommand.js +47 -0
- package/dist-cjs/commands/UpdatePackageConfigurationCommand.js +46 -0
- package/dist-cjs/commands/UpdatePackageVersionCommand.js +47 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +68 -1
- package/dist-cjs/models/models_1.js +13 -14
- package/dist-cjs/models/models_2.js +17 -1
- package/dist-cjs/pagination/ListPackageVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/ListPackagesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +897 -46
- package/dist-es/IoT.js +24 -0
- package/dist-es/commands/CreatePackageCommand.js +43 -0
- package/dist-es/commands/CreatePackageVersionCommand.js +43 -0
- package/dist-es/commands/DeletePackageCommand.js +42 -0
- package/dist-es/commands/DeletePackageVersionCommand.js +42 -0
- package/dist-es/commands/GetPackageCommand.js +43 -0
- package/dist-es/commands/GetPackageConfigurationCommand.js +42 -0
- package/dist-es/commands/GetPackageVersionCommand.js +43 -0
- package/dist-es/commands/ListPackageVersionsCommand.js +42 -0
- package/dist-es/commands/ListPackagesCommand.js +42 -0
- package/dist-es/commands/UpdatePackageCommand.js +43 -0
- package/dist-es/commands/UpdatePackageConfigurationCommand.js +42 -0
- package/dist-es/commands/UpdatePackageVersionCommand.js +43 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +60 -0
- package/dist-es/models/models_1.js +10 -12
- package/dist-es/models/models_2.js +14 -0
- package/dist-es/pagination/ListPackageVersionsPaginator.js +25 -0
- package/dist-es/pagination/ListPackagesPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +862 -35
- package/dist-types/IoT.d.ts +84 -0
- package/dist-types/IoTClient.d.ts +14 -2
- package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +1 -1
- package/dist-types/commands/CreateJobCommand.d.ts +3 -0
- package/dist-types/commands/CreateJobTemplateCommand.d.ts +3 -0
- package/dist-types/commands/CreatePackageCommand.d.ts +97 -0
- package/dist-types/commands/CreatePackageVersionCommand.d.ts +107 -0
- package/dist-types/commands/DeleteFleetMetricCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobExecutionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteJobTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteMitigationActionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteOTAUpdateCommand.d.ts +1 -1
- package/dist-types/commands/DeletePackageCommand.d.ts +85 -0
- package/dist-types/commands/DeletePackageVersionCommand.d.ts +85 -0
- package/dist-types/commands/DescribeJobCommand.d.ts +3 -0
- package/dist-types/commands/DescribeJobTemplateCommand.d.ts +3 -0
- package/dist-types/commands/GetPackageCommand.d.ts +92 -0
- package/dist-types/commands/GetPackageConfigurationCommand.d.ts +82 -0
- package/dist-types/commands/GetPackageVersionCommand.d.ts +98 -0
- package/dist-types/commands/ListPackageVersionsCommand.d.ts +96 -0
- package/dist-types/commands/ListPackagesCommand.d.ts +93 -0
- package/dist-types/commands/ListPolicyVersionsCommand.d.ts +2 -1
- package/dist-types/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListPrincipalThingsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
- package/dist-types/commands/ListRoleAliasesCommand.d.ts +1 -1
- package/dist-types/commands/ListScheduledAuditsCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilesCommand.d.ts +1 -1
- package/dist-types/commands/ListSecurityProfilesForTargetCommand.d.ts +1 -2
- package/dist-types/commands/UpdatePackageCommand.d.ts +89 -0
- package/dist-types/commands/UpdatePackageConfigurationCommand.d.ts +86 -0
- package/dist-types/commands/UpdatePackageVersionCommand.d.ts +92 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +184 -134
- package/dist-types/models/models_1.d.ts +416 -405
- package/dist-types/models/models_2.d.ts +529 -2
- package/dist-types/pagination/ListPackageVersionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPackagesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +108 -0
- package/dist-types/ts3.4/IoT.d.ts +204 -0
- package/dist-types/ts3.4/IoTClient.d.ts +72 -0
- package/dist-types/ts3.4/commands/CreatePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreatePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteFleetMetricCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobExecutionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteJobTemplateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteMitigationActionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteOTAUpdateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeletePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeletePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetPackageCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetPackageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetPackageVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPackageVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPackagesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListPolicyVersionsCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListPrincipalPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListPrincipalThingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProvisioningTemplateVersionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListProvisioningTemplatesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRelatedResourcesForAuditFindingCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListRoleAliasesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListScheduledAuditsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSecurityProfilesForTargetCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/UpdatePackageCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdatePackageConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdatePackageVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +71 -29
- package/dist-types/ts3.4/models/models_1.d.ts +114 -121
- package/dist-types/ts3.4/models/models_2.d.ts +152 -2
- package/dist-types/ts3.4/pagination/ListPackageVersionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPackagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +144 -0
- package/package.json +28 -28
|
@@ -2,8 +2,8 @@ import { _json, decorateServiceException as __decorateServiceException, expectBo
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { IoTServiceException as __BaseException } from "../models/IoTServiceException";
|
|
5
|
-
import { CertificateStateException, CertificateValidationException, ConflictException, ConflictingResourceUpdateException, DeleteConflictException, IndexNotReadyException, InternalException, InternalFailureException, InvalidAggregationException, InvalidQueryException, InvalidRequestException, InvalidStateTransitionException, LimitExceededException, MalformedPolicyException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, SqlParseException, ThrottlingException, TransferAlreadyCompletedException, UnauthorizedException, VersionConflictException, VersionsLimitExceededException, } from "../models/models_0";
|
|
6
|
-
import {
|
|
5
|
+
import { CertificateStateException, CertificateValidationException, ConflictException, ConflictingResourceUpdateException, DeleteConflictException, IndexNotReadyException, InternalException, InternalFailureException, InternalServerException, InvalidAggregationException, InvalidQueryException, InvalidRequestException, InvalidStateTransitionException, LimitExceededException, MalformedPolicyException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, SqlParseException, ThrottlingException, TransferAlreadyCompletedException, UnauthorizedException, ValidationException, VersionConflictException, VersionsLimitExceededException, } from "../models/models_0";
|
|
6
|
+
import { NotConfiguredException, } from "../models/models_1";
|
|
7
7
|
import { CertificateConflictException, InvalidResponseException, RegistrationCodeValidationException, ResourceRegistrationFailureException, TaskAlreadyExistsException, TransferConflictException, } from "../models/models_2";
|
|
8
8
|
export const se_AcceptCertificateTransferCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -570,6 +570,7 @@ export const se_CreateJobCommand = async (input, context) => {
|
|
|
570
570
|
body = JSON.stringify(take(input, {
|
|
571
571
|
abortConfig: (_) => se_AbortConfig(_, context),
|
|
572
572
|
description: [],
|
|
573
|
+
destinationPackageVersions: (_) => _json(_),
|
|
573
574
|
document: [],
|
|
574
575
|
documentParameters: (_) => _json(_),
|
|
575
576
|
documentSource: [],
|
|
@@ -605,6 +606,7 @@ export const se_CreateJobTemplateCommand = async (input, context) => {
|
|
|
605
606
|
body = JSON.stringify(take(input, {
|
|
606
607
|
abortConfig: (_) => se_AbortConfig(_, context),
|
|
607
608
|
description: [],
|
|
609
|
+
destinationPackageVersions: (_) => _json(_),
|
|
608
610
|
document: [],
|
|
609
611
|
documentSource: [],
|
|
610
612
|
jobArn: [],
|
|
@@ -699,6 +701,61 @@ export const se_CreateOTAUpdateCommand = async (input, context) => {
|
|
|
699
701
|
body,
|
|
700
702
|
});
|
|
701
703
|
};
|
|
704
|
+
export const se_CreatePackageCommand = async (input, context) => {
|
|
705
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
706
|
+
const headers = {
|
|
707
|
+
"content-type": "application/json",
|
|
708
|
+
};
|
|
709
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}";
|
|
710
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
711
|
+
const query = map({
|
|
712
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
713
|
+
});
|
|
714
|
+
let body;
|
|
715
|
+
body = JSON.stringify(take(input, {
|
|
716
|
+
description: [],
|
|
717
|
+
tags: (_) => _json(_),
|
|
718
|
+
}));
|
|
719
|
+
return new __HttpRequest({
|
|
720
|
+
protocol,
|
|
721
|
+
hostname,
|
|
722
|
+
port,
|
|
723
|
+
method: "PUT",
|
|
724
|
+
headers,
|
|
725
|
+
path: resolvedPath,
|
|
726
|
+
query,
|
|
727
|
+
body,
|
|
728
|
+
});
|
|
729
|
+
};
|
|
730
|
+
export const se_CreatePackageVersionCommand = async (input, context) => {
|
|
731
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
732
|
+
const headers = {
|
|
733
|
+
"content-type": "application/json",
|
|
734
|
+
};
|
|
735
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
736
|
+
"/packages/{packageName}/versions/{versionName}";
|
|
737
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
738
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
|
|
739
|
+
const query = map({
|
|
740
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
741
|
+
});
|
|
742
|
+
let body;
|
|
743
|
+
body = JSON.stringify(take(input, {
|
|
744
|
+
attributes: (_) => _json(_),
|
|
745
|
+
description: [],
|
|
746
|
+
tags: (_) => _json(_),
|
|
747
|
+
}));
|
|
748
|
+
return new __HttpRequest({
|
|
749
|
+
protocol,
|
|
750
|
+
hostname,
|
|
751
|
+
port,
|
|
752
|
+
method: "PUT",
|
|
753
|
+
headers,
|
|
754
|
+
path: resolvedPath,
|
|
755
|
+
query,
|
|
756
|
+
body,
|
|
757
|
+
});
|
|
758
|
+
};
|
|
702
759
|
export const se_CreatePolicyCommand = async (input, context) => {
|
|
703
760
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
704
761
|
const headers = {
|
|
@@ -1331,6 +1388,48 @@ export const se_DeleteOTAUpdateCommand = async (input, context) => {
|
|
|
1331
1388
|
body,
|
|
1332
1389
|
});
|
|
1333
1390
|
};
|
|
1391
|
+
export const se_DeletePackageCommand = async (input, context) => {
|
|
1392
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1393
|
+
const headers = {};
|
|
1394
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}";
|
|
1395
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
1396
|
+
const query = map({
|
|
1397
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
1398
|
+
});
|
|
1399
|
+
let body;
|
|
1400
|
+
return new __HttpRequest({
|
|
1401
|
+
protocol,
|
|
1402
|
+
hostname,
|
|
1403
|
+
port,
|
|
1404
|
+
method: "DELETE",
|
|
1405
|
+
headers,
|
|
1406
|
+
path: resolvedPath,
|
|
1407
|
+
query,
|
|
1408
|
+
body,
|
|
1409
|
+
});
|
|
1410
|
+
};
|
|
1411
|
+
export const se_DeletePackageVersionCommand = async (input, context) => {
|
|
1412
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1413
|
+
const headers = {};
|
|
1414
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1415
|
+
"/packages/{packageName}/versions/{versionName}";
|
|
1416
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
1417
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
|
|
1418
|
+
const query = map({
|
|
1419
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
1420
|
+
});
|
|
1421
|
+
let body;
|
|
1422
|
+
return new __HttpRequest({
|
|
1423
|
+
protocol,
|
|
1424
|
+
hostname,
|
|
1425
|
+
port,
|
|
1426
|
+
method: "DELETE",
|
|
1427
|
+
headers,
|
|
1428
|
+
path: resolvedPath,
|
|
1429
|
+
query,
|
|
1430
|
+
body,
|
|
1431
|
+
});
|
|
1432
|
+
};
|
|
1334
1433
|
export const se_DeletePolicyCommand = async (input, context) => {
|
|
1335
1434
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1336
1435
|
const headers = {};
|
|
@@ -2441,6 +2540,58 @@ export const se_GetOTAUpdateCommand = async (input, context) => {
|
|
|
2441
2540
|
body,
|
|
2442
2541
|
});
|
|
2443
2542
|
};
|
|
2543
|
+
export const se_GetPackageCommand = async (input, context) => {
|
|
2544
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2545
|
+
const headers = {};
|
|
2546
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}";
|
|
2547
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
2548
|
+
let body;
|
|
2549
|
+
return new __HttpRequest({
|
|
2550
|
+
protocol,
|
|
2551
|
+
hostname,
|
|
2552
|
+
port,
|
|
2553
|
+
method: "GET",
|
|
2554
|
+
headers,
|
|
2555
|
+
path: resolvedPath,
|
|
2556
|
+
body,
|
|
2557
|
+
});
|
|
2558
|
+
};
|
|
2559
|
+
export const se_GetPackageConfigurationCommand = async (input, context) => {
|
|
2560
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2561
|
+
const headers = {
|
|
2562
|
+
"content-type": "application/json",
|
|
2563
|
+
};
|
|
2564
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/package-configuration";
|
|
2565
|
+
let body;
|
|
2566
|
+
body = "";
|
|
2567
|
+
return new __HttpRequest({
|
|
2568
|
+
protocol,
|
|
2569
|
+
hostname,
|
|
2570
|
+
port,
|
|
2571
|
+
method: "GET",
|
|
2572
|
+
headers,
|
|
2573
|
+
path: resolvedPath,
|
|
2574
|
+
body,
|
|
2575
|
+
});
|
|
2576
|
+
};
|
|
2577
|
+
export const se_GetPackageVersionCommand = async (input, context) => {
|
|
2578
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2579
|
+
const headers = {};
|
|
2580
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
2581
|
+
"/packages/{packageName}/versions/{versionName}";
|
|
2582
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
2583
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
|
|
2584
|
+
let body;
|
|
2585
|
+
return new __HttpRequest({
|
|
2586
|
+
protocol,
|
|
2587
|
+
hostname,
|
|
2588
|
+
port,
|
|
2589
|
+
method: "GET",
|
|
2590
|
+
headers,
|
|
2591
|
+
path: resolvedPath,
|
|
2592
|
+
body,
|
|
2593
|
+
});
|
|
2594
|
+
};
|
|
2444
2595
|
export const se_GetPercentilesCommand = async (input, context) => {
|
|
2445
2596
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2446
2597
|
const headers = {
|
|
@@ -3244,6 +3395,48 @@ export const se_ListOutgoingCertificatesCommand = async (input, context) => {
|
|
|
3244
3395
|
body,
|
|
3245
3396
|
});
|
|
3246
3397
|
};
|
|
3398
|
+
export const se_ListPackagesCommand = async (input, context) => {
|
|
3399
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3400
|
+
const headers = {};
|
|
3401
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages";
|
|
3402
|
+
const query = map({
|
|
3403
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3404
|
+
nextToken: [, input.nextToken],
|
|
3405
|
+
});
|
|
3406
|
+
let body;
|
|
3407
|
+
return new __HttpRequest({
|
|
3408
|
+
protocol,
|
|
3409
|
+
hostname,
|
|
3410
|
+
port,
|
|
3411
|
+
method: "GET",
|
|
3412
|
+
headers,
|
|
3413
|
+
path: resolvedPath,
|
|
3414
|
+
query,
|
|
3415
|
+
body,
|
|
3416
|
+
});
|
|
3417
|
+
};
|
|
3418
|
+
export const se_ListPackageVersionsCommand = async (input, context) => {
|
|
3419
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3420
|
+
const headers = {};
|
|
3421
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}/versions";
|
|
3422
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
3423
|
+
const query = map({
|
|
3424
|
+
status: [, input.status],
|
|
3425
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
3426
|
+
nextToken: [, input.nextToken],
|
|
3427
|
+
});
|
|
3428
|
+
let body;
|
|
3429
|
+
return new __HttpRequest({
|
|
3430
|
+
protocol,
|
|
3431
|
+
hostname,
|
|
3432
|
+
port,
|
|
3433
|
+
method: "GET",
|
|
3434
|
+
headers,
|
|
3435
|
+
path: resolvedPath,
|
|
3436
|
+
query,
|
|
3437
|
+
body,
|
|
3438
|
+
});
|
|
3439
|
+
};
|
|
3247
3440
|
export const se_ListPoliciesCommand = async (input, context) => {
|
|
3248
3441
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3249
3442
|
const headers = {};
|
|
@@ -4805,6 +4998,86 @@ export const se_UpdateMitigationActionCommand = async (input, context) => {
|
|
|
4805
4998
|
body,
|
|
4806
4999
|
});
|
|
4807
5000
|
};
|
|
5001
|
+
export const se_UpdatePackageCommand = async (input, context) => {
|
|
5002
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5003
|
+
const headers = {
|
|
5004
|
+
"content-type": "application/json",
|
|
5005
|
+
};
|
|
5006
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/packages/{packageName}";
|
|
5007
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
5008
|
+
const query = map({
|
|
5009
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
5010
|
+
});
|
|
5011
|
+
let body;
|
|
5012
|
+
body = JSON.stringify(take(input, {
|
|
5013
|
+
defaultVersionName: [],
|
|
5014
|
+
description: [],
|
|
5015
|
+
unsetDefaultVersion: [],
|
|
5016
|
+
}));
|
|
5017
|
+
return new __HttpRequest({
|
|
5018
|
+
protocol,
|
|
5019
|
+
hostname,
|
|
5020
|
+
port,
|
|
5021
|
+
method: "PATCH",
|
|
5022
|
+
headers,
|
|
5023
|
+
path: resolvedPath,
|
|
5024
|
+
query,
|
|
5025
|
+
body,
|
|
5026
|
+
});
|
|
5027
|
+
};
|
|
5028
|
+
export const se_UpdatePackageConfigurationCommand = async (input, context) => {
|
|
5029
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5030
|
+
const headers = {
|
|
5031
|
+
"content-type": "application/json",
|
|
5032
|
+
};
|
|
5033
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/package-configuration";
|
|
5034
|
+
const query = map({
|
|
5035
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
5036
|
+
});
|
|
5037
|
+
let body;
|
|
5038
|
+
body = JSON.stringify(take(input, {
|
|
5039
|
+
versionUpdateByJobsConfig: (_) => _json(_),
|
|
5040
|
+
}));
|
|
5041
|
+
return new __HttpRequest({
|
|
5042
|
+
protocol,
|
|
5043
|
+
hostname,
|
|
5044
|
+
port,
|
|
5045
|
+
method: "PATCH",
|
|
5046
|
+
headers,
|
|
5047
|
+
path: resolvedPath,
|
|
5048
|
+
query,
|
|
5049
|
+
body,
|
|
5050
|
+
});
|
|
5051
|
+
};
|
|
5052
|
+
export const se_UpdatePackageVersionCommand = async (input, context) => {
|
|
5053
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
5054
|
+
const headers = {
|
|
5055
|
+
"content-type": "application/json",
|
|
5056
|
+
};
|
|
5057
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
5058
|
+
"/packages/{packageName}/versions/{versionName}";
|
|
5059
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "packageName", () => input.packageName, "{packageName}", false);
|
|
5060
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "versionName", () => input.versionName, "{versionName}", false);
|
|
5061
|
+
const query = map({
|
|
5062
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
5063
|
+
});
|
|
5064
|
+
let body;
|
|
5065
|
+
body = JSON.stringify(take(input, {
|
|
5066
|
+
action: [],
|
|
5067
|
+
attributes: (_) => _json(_),
|
|
5068
|
+
description: [],
|
|
5069
|
+
}));
|
|
5070
|
+
return new __HttpRequest({
|
|
5071
|
+
protocol,
|
|
5072
|
+
hostname,
|
|
5073
|
+
port,
|
|
5074
|
+
method: "PATCH",
|
|
5075
|
+
headers,
|
|
5076
|
+
path: resolvedPath,
|
|
5077
|
+
query,
|
|
5078
|
+
body,
|
|
5079
|
+
});
|
|
5080
|
+
};
|
|
4808
5081
|
export const se_UpdateProvisioningTemplateCommand = async (input, context) => {
|
|
4809
5082
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4810
5083
|
const headers = {
|
|
@@ -6434,6 +6707,104 @@ const de_CreateOTAUpdateCommandError = async (output, context) => {
|
|
|
6434
6707
|
});
|
|
6435
6708
|
}
|
|
6436
6709
|
};
|
|
6710
|
+
export const de_CreatePackageCommand = async (output, context) => {
|
|
6711
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6712
|
+
return de_CreatePackageCommandError(output, context);
|
|
6713
|
+
}
|
|
6714
|
+
const contents = map({
|
|
6715
|
+
$metadata: deserializeMetadata(output),
|
|
6716
|
+
});
|
|
6717
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6718
|
+
const doc = take(data, {
|
|
6719
|
+
description: __expectString,
|
|
6720
|
+
packageArn: __expectString,
|
|
6721
|
+
packageName: __expectString,
|
|
6722
|
+
});
|
|
6723
|
+
Object.assign(contents, doc);
|
|
6724
|
+
return contents;
|
|
6725
|
+
};
|
|
6726
|
+
const de_CreatePackageCommandError = async (output, context) => {
|
|
6727
|
+
const parsedOutput = {
|
|
6728
|
+
...output,
|
|
6729
|
+
body: await parseErrorBody(output.body, context),
|
|
6730
|
+
};
|
|
6731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6732
|
+
switch (errorCode) {
|
|
6733
|
+
case "ConflictException":
|
|
6734
|
+
case "com.amazonaws.iot#ConflictException":
|
|
6735
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6736
|
+
case "InternalServerException":
|
|
6737
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
6738
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6739
|
+
case "ServiceQuotaExceededException":
|
|
6740
|
+
case "com.amazonaws.iot#ServiceQuotaExceededException":
|
|
6741
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6742
|
+
case "ThrottlingException":
|
|
6743
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
6744
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6745
|
+
case "ValidationException":
|
|
6746
|
+
case "com.amazonaws.iot#ValidationException":
|
|
6747
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6748
|
+
default:
|
|
6749
|
+
const parsedBody = parsedOutput.body;
|
|
6750
|
+
return throwDefaultError({
|
|
6751
|
+
output,
|
|
6752
|
+
parsedBody,
|
|
6753
|
+
errorCode,
|
|
6754
|
+
});
|
|
6755
|
+
}
|
|
6756
|
+
};
|
|
6757
|
+
export const de_CreatePackageVersionCommand = async (output, context) => {
|
|
6758
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6759
|
+
return de_CreatePackageVersionCommandError(output, context);
|
|
6760
|
+
}
|
|
6761
|
+
const contents = map({
|
|
6762
|
+
$metadata: deserializeMetadata(output),
|
|
6763
|
+
});
|
|
6764
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
6765
|
+
const doc = take(data, {
|
|
6766
|
+
attributes: _json,
|
|
6767
|
+
description: __expectString,
|
|
6768
|
+
errorReason: __expectString,
|
|
6769
|
+
packageName: __expectString,
|
|
6770
|
+
packageVersionArn: __expectString,
|
|
6771
|
+
status: __expectString,
|
|
6772
|
+
versionName: __expectString,
|
|
6773
|
+
});
|
|
6774
|
+
Object.assign(contents, doc);
|
|
6775
|
+
return contents;
|
|
6776
|
+
};
|
|
6777
|
+
const de_CreatePackageVersionCommandError = async (output, context) => {
|
|
6778
|
+
const parsedOutput = {
|
|
6779
|
+
...output,
|
|
6780
|
+
body: await parseErrorBody(output.body, context),
|
|
6781
|
+
};
|
|
6782
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6783
|
+
switch (errorCode) {
|
|
6784
|
+
case "ConflictException":
|
|
6785
|
+
case "com.amazonaws.iot#ConflictException":
|
|
6786
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
6787
|
+
case "InternalServerException":
|
|
6788
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
6789
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
6790
|
+
case "ServiceQuotaExceededException":
|
|
6791
|
+
case "com.amazonaws.iot#ServiceQuotaExceededException":
|
|
6792
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
6793
|
+
case "ThrottlingException":
|
|
6794
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
6795
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
6796
|
+
case "ValidationException":
|
|
6797
|
+
case "com.amazonaws.iot#ValidationException":
|
|
6798
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
6799
|
+
default:
|
|
6800
|
+
const parsedBody = parsedOutput.body;
|
|
6801
|
+
return throwDefaultError({
|
|
6802
|
+
output,
|
|
6803
|
+
parsedBody,
|
|
6804
|
+
errorCode,
|
|
6805
|
+
});
|
|
6806
|
+
}
|
|
6807
|
+
};
|
|
6437
6808
|
export const de_CreatePolicyCommand = async (output, context) => {
|
|
6438
6809
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6439
6810
|
return de_CreatePolicyCommandError(output, context);
|
|
@@ -7789,6 +8160,76 @@ const de_DeleteOTAUpdateCommandError = async (output, context) => {
|
|
|
7789
8160
|
});
|
|
7790
8161
|
}
|
|
7791
8162
|
};
|
|
8163
|
+
export const de_DeletePackageCommand = async (output, context) => {
|
|
8164
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8165
|
+
return de_DeletePackageCommandError(output, context);
|
|
8166
|
+
}
|
|
8167
|
+
const contents = map({
|
|
8168
|
+
$metadata: deserializeMetadata(output),
|
|
8169
|
+
});
|
|
8170
|
+
await collectBody(output.body, context);
|
|
8171
|
+
return contents;
|
|
8172
|
+
};
|
|
8173
|
+
const de_DeletePackageCommandError = async (output, context) => {
|
|
8174
|
+
const parsedOutput = {
|
|
8175
|
+
...output,
|
|
8176
|
+
body: await parseErrorBody(output.body, context),
|
|
8177
|
+
};
|
|
8178
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8179
|
+
switch (errorCode) {
|
|
8180
|
+
case "InternalServerException":
|
|
8181
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
8182
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
8183
|
+
case "ThrottlingException":
|
|
8184
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
8185
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
8186
|
+
case "ValidationException":
|
|
8187
|
+
case "com.amazonaws.iot#ValidationException":
|
|
8188
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
8189
|
+
default:
|
|
8190
|
+
const parsedBody = parsedOutput.body;
|
|
8191
|
+
return throwDefaultError({
|
|
8192
|
+
output,
|
|
8193
|
+
parsedBody,
|
|
8194
|
+
errorCode,
|
|
8195
|
+
});
|
|
8196
|
+
}
|
|
8197
|
+
};
|
|
8198
|
+
export const de_DeletePackageVersionCommand = async (output, context) => {
|
|
8199
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
8200
|
+
return de_DeletePackageVersionCommandError(output, context);
|
|
8201
|
+
}
|
|
8202
|
+
const contents = map({
|
|
8203
|
+
$metadata: deserializeMetadata(output),
|
|
8204
|
+
});
|
|
8205
|
+
await collectBody(output.body, context);
|
|
8206
|
+
return contents;
|
|
8207
|
+
};
|
|
8208
|
+
const de_DeletePackageVersionCommandError = async (output, context) => {
|
|
8209
|
+
const parsedOutput = {
|
|
8210
|
+
...output,
|
|
8211
|
+
body: await parseErrorBody(output.body, context),
|
|
8212
|
+
};
|
|
8213
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
8214
|
+
switch (errorCode) {
|
|
8215
|
+
case "InternalServerException":
|
|
8216
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
8217
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
8218
|
+
case "ThrottlingException":
|
|
8219
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
8220
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
8221
|
+
case "ValidationException":
|
|
8222
|
+
case "com.amazonaws.iot#ValidationException":
|
|
8223
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
8224
|
+
default:
|
|
8225
|
+
const parsedBody = parsedOutput.body;
|
|
8226
|
+
return throwDefaultError({
|
|
8227
|
+
output,
|
|
8228
|
+
parsedBody,
|
|
8229
|
+
errorCode,
|
|
8230
|
+
});
|
|
8231
|
+
}
|
|
8232
|
+
};
|
|
7792
8233
|
export const de_DeletePolicyCommand = async (output, context) => {
|
|
7793
8234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
7794
8235
|
return de_DeletePolicyCommandError(output, context);
|
|
@@ -9419,6 +9860,7 @@ export const de_DescribeJobTemplateCommand = async (output, context) => {
|
|
|
9419
9860
|
abortConfig: (_) => de_AbortConfig(_, context),
|
|
9420
9861
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
9421
9862
|
description: __expectString,
|
|
9863
|
+
destinationPackageVersions: _json,
|
|
9422
9864
|
document: __expectString,
|
|
9423
9865
|
documentSource: __expectString,
|
|
9424
9866
|
jobExecutionsRetryConfig: _json,
|
|
@@ -10602,12 +11044,147 @@ const de_GetJobDocumentCommandError = async (output, context) => {
|
|
|
10602
11044
|
case "ResourceNotFoundException":
|
|
10603
11045
|
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
10604
11046
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10605
|
-
case "ServiceUnavailableException":
|
|
10606
|
-
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
10607
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11047
|
+
case "ServiceUnavailableException":
|
|
11048
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
11049
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11050
|
+
case "ThrottlingException":
|
|
11051
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
11052
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11053
|
+
default:
|
|
11054
|
+
const parsedBody = parsedOutput.body;
|
|
11055
|
+
return throwDefaultError({
|
|
11056
|
+
output,
|
|
11057
|
+
parsedBody,
|
|
11058
|
+
errorCode,
|
|
11059
|
+
});
|
|
11060
|
+
}
|
|
11061
|
+
};
|
|
11062
|
+
export const de_GetLoggingOptionsCommand = async (output, context) => {
|
|
11063
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11064
|
+
return de_GetLoggingOptionsCommandError(output, context);
|
|
11065
|
+
}
|
|
11066
|
+
const contents = map({
|
|
11067
|
+
$metadata: deserializeMetadata(output),
|
|
11068
|
+
});
|
|
11069
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
11070
|
+
const doc = take(data, {
|
|
11071
|
+
logLevel: __expectString,
|
|
11072
|
+
roleArn: __expectString,
|
|
11073
|
+
});
|
|
11074
|
+
Object.assign(contents, doc);
|
|
11075
|
+
return contents;
|
|
11076
|
+
};
|
|
11077
|
+
const de_GetLoggingOptionsCommandError = async (output, context) => {
|
|
11078
|
+
const parsedOutput = {
|
|
11079
|
+
...output,
|
|
11080
|
+
body: await parseErrorBody(output.body, context),
|
|
11081
|
+
};
|
|
11082
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11083
|
+
switch (errorCode) {
|
|
11084
|
+
case "InternalException":
|
|
11085
|
+
case "com.amazonaws.iot#InternalException":
|
|
11086
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
11087
|
+
case "InvalidRequestException":
|
|
11088
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
11089
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11090
|
+
case "ServiceUnavailableException":
|
|
11091
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
11092
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11093
|
+
default:
|
|
11094
|
+
const parsedBody = parsedOutput.body;
|
|
11095
|
+
return throwDefaultError({
|
|
11096
|
+
output,
|
|
11097
|
+
parsedBody,
|
|
11098
|
+
errorCode,
|
|
11099
|
+
});
|
|
11100
|
+
}
|
|
11101
|
+
};
|
|
11102
|
+
export const de_GetOTAUpdateCommand = async (output, context) => {
|
|
11103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11104
|
+
return de_GetOTAUpdateCommandError(output, context);
|
|
11105
|
+
}
|
|
11106
|
+
const contents = map({
|
|
11107
|
+
$metadata: deserializeMetadata(output),
|
|
11108
|
+
});
|
|
11109
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
11110
|
+
const doc = take(data, {
|
|
11111
|
+
otaUpdateInfo: (_) => de_OTAUpdateInfo(_, context),
|
|
11112
|
+
});
|
|
11113
|
+
Object.assign(contents, doc);
|
|
11114
|
+
return contents;
|
|
11115
|
+
};
|
|
11116
|
+
const de_GetOTAUpdateCommandError = async (output, context) => {
|
|
11117
|
+
const parsedOutput = {
|
|
11118
|
+
...output,
|
|
11119
|
+
body: await parseErrorBody(output.body, context),
|
|
11120
|
+
};
|
|
11121
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11122
|
+
switch (errorCode) {
|
|
11123
|
+
case "InternalFailureException":
|
|
11124
|
+
case "com.amazonaws.iot#InternalFailureException":
|
|
11125
|
+
throw await de_InternalFailureExceptionRes(parsedOutput, context);
|
|
11126
|
+
case "InvalidRequestException":
|
|
11127
|
+
case "com.amazonaws.iot#InvalidRequestException":
|
|
11128
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11129
|
+
case "ResourceNotFoundException":
|
|
11130
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
11131
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
11132
|
+
case "ServiceUnavailableException":
|
|
11133
|
+
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
11134
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11135
|
+
case "ThrottlingException":
|
|
11136
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
11137
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11138
|
+
case "UnauthorizedException":
|
|
11139
|
+
case "com.amazonaws.iot#UnauthorizedException":
|
|
11140
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
11141
|
+
default:
|
|
11142
|
+
const parsedBody = parsedOutput.body;
|
|
11143
|
+
return throwDefaultError({
|
|
11144
|
+
output,
|
|
11145
|
+
parsedBody,
|
|
11146
|
+
errorCode,
|
|
11147
|
+
});
|
|
11148
|
+
}
|
|
11149
|
+
};
|
|
11150
|
+
export const de_GetPackageCommand = async (output, context) => {
|
|
11151
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
11152
|
+
return de_GetPackageCommandError(output, context);
|
|
11153
|
+
}
|
|
11154
|
+
const contents = map({
|
|
11155
|
+
$metadata: deserializeMetadata(output),
|
|
11156
|
+
});
|
|
11157
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
11158
|
+
const doc = take(data, {
|
|
11159
|
+
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
11160
|
+
defaultVersionName: __expectString,
|
|
11161
|
+
description: __expectString,
|
|
11162
|
+
lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
11163
|
+
packageArn: __expectString,
|
|
11164
|
+
packageName: __expectString,
|
|
11165
|
+
});
|
|
11166
|
+
Object.assign(contents, doc);
|
|
11167
|
+
return contents;
|
|
11168
|
+
};
|
|
11169
|
+
const de_GetPackageCommandError = async (output, context) => {
|
|
11170
|
+
const parsedOutput = {
|
|
11171
|
+
...output,
|
|
11172
|
+
body: await parseErrorBody(output.body, context),
|
|
11173
|
+
};
|
|
11174
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
11175
|
+
switch (errorCode) {
|
|
11176
|
+
case "InternalServerException":
|
|
11177
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
11178
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
11179
|
+
case "ResourceNotFoundException":
|
|
11180
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
11181
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10608
11182
|
case "ThrottlingException":
|
|
10609
11183
|
case "com.amazonaws.iot#ThrottlingException":
|
|
10610
11184
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
11185
|
+
case "ValidationException":
|
|
11186
|
+
case "com.amazonaws.iot#ValidationException":
|
|
11187
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
10611
11188
|
default:
|
|
10612
11189
|
const parsedBody = parsedOutput.body;
|
|
10613
11190
|
return throwDefaultError({
|
|
@@ -10617,37 +11194,33 @@ const de_GetJobDocumentCommandError = async (output, context) => {
|
|
|
10617
11194
|
});
|
|
10618
11195
|
}
|
|
10619
11196
|
};
|
|
10620
|
-
export const
|
|
11197
|
+
export const de_GetPackageConfigurationCommand = async (output, context) => {
|
|
10621
11198
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10622
|
-
return
|
|
11199
|
+
return de_GetPackageConfigurationCommandError(output, context);
|
|
10623
11200
|
}
|
|
10624
11201
|
const contents = map({
|
|
10625
11202
|
$metadata: deserializeMetadata(output),
|
|
10626
11203
|
});
|
|
10627
11204
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
10628
11205
|
const doc = take(data, {
|
|
10629
|
-
|
|
10630
|
-
roleArn: __expectString,
|
|
11206
|
+
versionUpdateByJobsConfig: _json,
|
|
10631
11207
|
});
|
|
10632
11208
|
Object.assign(contents, doc);
|
|
10633
11209
|
return contents;
|
|
10634
11210
|
};
|
|
10635
|
-
const
|
|
11211
|
+
const de_GetPackageConfigurationCommandError = async (output, context) => {
|
|
10636
11212
|
const parsedOutput = {
|
|
10637
11213
|
...output,
|
|
10638
11214
|
body: await parseErrorBody(output.body, context),
|
|
10639
11215
|
};
|
|
10640
11216
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10641
11217
|
switch (errorCode) {
|
|
10642
|
-
case "
|
|
10643
|
-
case "com.amazonaws.iot#
|
|
10644
|
-
throw await
|
|
10645
|
-
case "
|
|
10646
|
-
case "com.amazonaws.iot#
|
|
10647
|
-
throw await
|
|
10648
|
-
case "ServiceUnavailableException":
|
|
10649
|
-
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
10650
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
11218
|
+
case "InternalServerException":
|
|
11219
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
11220
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
11221
|
+
case "ThrottlingException":
|
|
11222
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
11223
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
10651
11224
|
default:
|
|
10652
11225
|
const parsedBody = parsedOutput.body;
|
|
10653
11226
|
return throwDefaultError({
|
|
@@ -10657,45 +11230,47 @@ const de_GetLoggingOptionsCommandError = async (output, context) => {
|
|
|
10657
11230
|
});
|
|
10658
11231
|
}
|
|
10659
11232
|
};
|
|
10660
|
-
export const
|
|
11233
|
+
export const de_GetPackageVersionCommand = async (output, context) => {
|
|
10661
11234
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
10662
|
-
return
|
|
11235
|
+
return de_GetPackageVersionCommandError(output, context);
|
|
10663
11236
|
}
|
|
10664
11237
|
const contents = map({
|
|
10665
11238
|
$metadata: deserializeMetadata(output),
|
|
10666
11239
|
});
|
|
10667
11240
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
10668
11241
|
const doc = take(data, {
|
|
10669
|
-
|
|
11242
|
+
attributes: _json,
|
|
11243
|
+
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
11244
|
+
description: __expectString,
|
|
11245
|
+
errorReason: __expectString,
|
|
11246
|
+
lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
11247
|
+
packageName: __expectString,
|
|
11248
|
+
packageVersionArn: __expectString,
|
|
11249
|
+
status: __expectString,
|
|
11250
|
+
versionName: __expectString,
|
|
10670
11251
|
});
|
|
10671
11252
|
Object.assign(contents, doc);
|
|
10672
11253
|
return contents;
|
|
10673
11254
|
};
|
|
10674
|
-
const
|
|
11255
|
+
const de_GetPackageVersionCommandError = async (output, context) => {
|
|
10675
11256
|
const parsedOutput = {
|
|
10676
11257
|
...output,
|
|
10677
11258
|
body: await parseErrorBody(output.body, context),
|
|
10678
11259
|
};
|
|
10679
11260
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
10680
11261
|
switch (errorCode) {
|
|
10681
|
-
case "
|
|
10682
|
-
case "com.amazonaws.iot#
|
|
10683
|
-
throw await
|
|
10684
|
-
case "InvalidRequestException":
|
|
10685
|
-
case "com.amazonaws.iot#InvalidRequestException":
|
|
10686
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
11262
|
+
case "InternalServerException":
|
|
11263
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
11264
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
10687
11265
|
case "ResourceNotFoundException":
|
|
10688
11266
|
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
10689
11267
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
10690
|
-
case "ServiceUnavailableException":
|
|
10691
|
-
case "com.amazonaws.iot#ServiceUnavailableException":
|
|
10692
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
10693
11268
|
case "ThrottlingException":
|
|
10694
11269
|
case "com.amazonaws.iot#ThrottlingException":
|
|
10695
11270
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
10696
|
-
case "
|
|
10697
|
-
case "com.amazonaws.iot#
|
|
10698
|
-
throw await
|
|
11271
|
+
case "ValidationException":
|
|
11272
|
+
case "com.amazonaws.iot#ValidationException":
|
|
11273
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
10699
11274
|
default:
|
|
10700
11275
|
const parsedBody = parsedOutput.body;
|
|
10701
11276
|
return throwDefaultError({
|
|
@@ -12306,6 +12881,86 @@ const de_ListOutgoingCertificatesCommandError = async (output, context) => {
|
|
|
12306
12881
|
});
|
|
12307
12882
|
}
|
|
12308
12883
|
};
|
|
12884
|
+
export const de_ListPackagesCommand = async (output, context) => {
|
|
12885
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12886
|
+
return de_ListPackagesCommandError(output, context);
|
|
12887
|
+
}
|
|
12888
|
+
const contents = map({
|
|
12889
|
+
$metadata: deserializeMetadata(output),
|
|
12890
|
+
});
|
|
12891
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
12892
|
+
const doc = take(data, {
|
|
12893
|
+
nextToken: __expectString,
|
|
12894
|
+
packageSummaries: (_) => de_PackageSummaryList(_, context),
|
|
12895
|
+
});
|
|
12896
|
+
Object.assign(contents, doc);
|
|
12897
|
+
return contents;
|
|
12898
|
+
};
|
|
12899
|
+
const de_ListPackagesCommandError = async (output, context) => {
|
|
12900
|
+
const parsedOutput = {
|
|
12901
|
+
...output,
|
|
12902
|
+
body: await parseErrorBody(output.body, context),
|
|
12903
|
+
};
|
|
12904
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12905
|
+
switch (errorCode) {
|
|
12906
|
+
case "InternalServerException":
|
|
12907
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
12908
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
12909
|
+
case "ThrottlingException":
|
|
12910
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
12911
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
12912
|
+
case "ValidationException":
|
|
12913
|
+
case "com.amazonaws.iot#ValidationException":
|
|
12914
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
12915
|
+
default:
|
|
12916
|
+
const parsedBody = parsedOutput.body;
|
|
12917
|
+
return throwDefaultError({
|
|
12918
|
+
output,
|
|
12919
|
+
parsedBody,
|
|
12920
|
+
errorCode,
|
|
12921
|
+
});
|
|
12922
|
+
}
|
|
12923
|
+
};
|
|
12924
|
+
export const de_ListPackageVersionsCommand = async (output, context) => {
|
|
12925
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12926
|
+
return de_ListPackageVersionsCommandError(output, context);
|
|
12927
|
+
}
|
|
12928
|
+
const contents = map({
|
|
12929
|
+
$metadata: deserializeMetadata(output),
|
|
12930
|
+
});
|
|
12931
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
12932
|
+
const doc = take(data, {
|
|
12933
|
+
nextToken: __expectString,
|
|
12934
|
+
packageVersionSummaries: (_) => de_PackageVersionSummaryList(_, context),
|
|
12935
|
+
});
|
|
12936
|
+
Object.assign(contents, doc);
|
|
12937
|
+
return contents;
|
|
12938
|
+
};
|
|
12939
|
+
const de_ListPackageVersionsCommandError = async (output, context) => {
|
|
12940
|
+
const parsedOutput = {
|
|
12941
|
+
...output,
|
|
12942
|
+
body: await parseErrorBody(output.body, context),
|
|
12943
|
+
};
|
|
12944
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
12945
|
+
switch (errorCode) {
|
|
12946
|
+
case "InternalServerException":
|
|
12947
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
12948
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
12949
|
+
case "ThrottlingException":
|
|
12950
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
12951
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
12952
|
+
case "ValidationException":
|
|
12953
|
+
case "com.amazonaws.iot#ValidationException":
|
|
12954
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
12955
|
+
default:
|
|
12956
|
+
const parsedBody = parsedOutput.body;
|
|
12957
|
+
return throwDefaultError({
|
|
12958
|
+
output,
|
|
12959
|
+
parsedBody,
|
|
12960
|
+
errorCode,
|
|
12961
|
+
});
|
|
12962
|
+
}
|
|
12963
|
+
};
|
|
12309
12964
|
export const de_ListPoliciesCommand = async (output, context) => {
|
|
12310
12965
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
12311
12966
|
return de_ListPoliciesCommandError(output, context);
|
|
@@ -15414,6 +16069,117 @@ const de_UpdateMitigationActionCommandError = async (output, context) => {
|
|
|
15414
16069
|
});
|
|
15415
16070
|
}
|
|
15416
16071
|
};
|
|
16072
|
+
export const de_UpdatePackageCommand = async (output, context) => {
|
|
16073
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16074
|
+
return de_UpdatePackageCommandError(output, context);
|
|
16075
|
+
}
|
|
16076
|
+
const contents = map({
|
|
16077
|
+
$metadata: deserializeMetadata(output),
|
|
16078
|
+
});
|
|
16079
|
+
await collectBody(output.body, context);
|
|
16080
|
+
return contents;
|
|
16081
|
+
};
|
|
16082
|
+
const de_UpdatePackageCommandError = async (output, context) => {
|
|
16083
|
+
const parsedOutput = {
|
|
16084
|
+
...output,
|
|
16085
|
+
body: await parseErrorBody(output.body, context),
|
|
16086
|
+
};
|
|
16087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16088
|
+
switch (errorCode) {
|
|
16089
|
+
case "InternalServerException":
|
|
16090
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
16091
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
16092
|
+
case "ResourceNotFoundException":
|
|
16093
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
16094
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
16095
|
+
case "ThrottlingException":
|
|
16096
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
16097
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
16098
|
+
case "ValidationException":
|
|
16099
|
+
case "com.amazonaws.iot#ValidationException":
|
|
16100
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
16101
|
+
default:
|
|
16102
|
+
const parsedBody = parsedOutput.body;
|
|
16103
|
+
return throwDefaultError({
|
|
16104
|
+
output,
|
|
16105
|
+
parsedBody,
|
|
16106
|
+
errorCode,
|
|
16107
|
+
});
|
|
16108
|
+
}
|
|
16109
|
+
};
|
|
16110
|
+
export const de_UpdatePackageConfigurationCommand = async (output, context) => {
|
|
16111
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16112
|
+
return de_UpdatePackageConfigurationCommandError(output, context);
|
|
16113
|
+
}
|
|
16114
|
+
const contents = map({
|
|
16115
|
+
$metadata: deserializeMetadata(output),
|
|
16116
|
+
});
|
|
16117
|
+
await collectBody(output.body, context);
|
|
16118
|
+
return contents;
|
|
16119
|
+
};
|
|
16120
|
+
const de_UpdatePackageConfigurationCommandError = async (output, context) => {
|
|
16121
|
+
const parsedOutput = {
|
|
16122
|
+
...output,
|
|
16123
|
+
body: await parseErrorBody(output.body, context),
|
|
16124
|
+
};
|
|
16125
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16126
|
+
switch (errorCode) {
|
|
16127
|
+
case "InternalServerException":
|
|
16128
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
16129
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
16130
|
+
case "ThrottlingException":
|
|
16131
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
16132
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
16133
|
+
case "ValidationException":
|
|
16134
|
+
case "com.amazonaws.iot#ValidationException":
|
|
16135
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
16136
|
+
default:
|
|
16137
|
+
const parsedBody = parsedOutput.body;
|
|
16138
|
+
return throwDefaultError({
|
|
16139
|
+
output,
|
|
16140
|
+
parsedBody,
|
|
16141
|
+
errorCode,
|
|
16142
|
+
});
|
|
16143
|
+
}
|
|
16144
|
+
};
|
|
16145
|
+
export const de_UpdatePackageVersionCommand = async (output, context) => {
|
|
16146
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16147
|
+
return de_UpdatePackageVersionCommandError(output, context);
|
|
16148
|
+
}
|
|
16149
|
+
const contents = map({
|
|
16150
|
+
$metadata: deserializeMetadata(output),
|
|
16151
|
+
});
|
|
16152
|
+
await collectBody(output.body, context);
|
|
16153
|
+
return contents;
|
|
16154
|
+
};
|
|
16155
|
+
const de_UpdatePackageVersionCommandError = async (output, context) => {
|
|
16156
|
+
const parsedOutput = {
|
|
16157
|
+
...output,
|
|
16158
|
+
body: await parseErrorBody(output.body, context),
|
|
16159
|
+
};
|
|
16160
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
16161
|
+
switch (errorCode) {
|
|
16162
|
+
case "InternalServerException":
|
|
16163
|
+
case "com.amazonaws.iot#InternalServerException":
|
|
16164
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
16165
|
+
case "ResourceNotFoundException":
|
|
16166
|
+
case "com.amazonaws.iot#ResourceNotFoundException":
|
|
16167
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
16168
|
+
case "ThrottlingException":
|
|
16169
|
+
case "com.amazonaws.iot#ThrottlingException":
|
|
16170
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
16171
|
+
case "ValidationException":
|
|
16172
|
+
case "com.amazonaws.iot#ValidationException":
|
|
16173
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
16174
|
+
default:
|
|
16175
|
+
const parsedBody = parsedOutput.body;
|
|
16176
|
+
return throwDefaultError({
|
|
16177
|
+
output,
|
|
16178
|
+
parsedBody,
|
|
16179
|
+
errorCode,
|
|
16180
|
+
});
|
|
16181
|
+
}
|
|
16182
|
+
};
|
|
15417
16183
|
export const de_UpdateProvisioningTemplateCommand = async (output, context) => {
|
|
15418
16184
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
15419
16185
|
return de_UpdateProvisioningTemplateCommandError(output, context);
|
|
@@ -15907,6 +16673,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
15907
16673
|
const data = parsedOutput.body;
|
|
15908
16674
|
const doc = take(data, {
|
|
15909
16675
|
message: __expectString,
|
|
16676
|
+
resourceId: __expectString,
|
|
15910
16677
|
});
|
|
15911
16678
|
Object.assign(contents, doc);
|
|
15912
16679
|
const exception = new ConflictException({
|
|
@@ -16151,6 +16918,19 @@ const de_ResourceRegistrationFailureExceptionRes = async (parsedOutput, context)
|
|
|
16151
16918
|
});
|
|
16152
16919
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
16153
16920
|
};
|
|
16921
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
16922
|
+
const contents = map({});
|
|
16923
|
+
const data = parsedOutput.body;
|
|
16924
|
+
const doc = take(data, {
|
|
16925
|
+
message: __expectString,
|
|
16926
|
+
});
|
|
16927
|
+
Object.assign(contents, doc);
|
|
16928
|
+
const exception = new ServiceQuotaExceededException({
|
|
16929
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
16930
|
+
...contents,
|
|
16931
|
+
});
|
|
16932
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
16933
|
+
};
|
|
16154
16934
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
16155
16935
|
const contents = map({});
|
|
16156
16936
|
const data = parsedOutput.body;
|
|
@@ -16242,6 +17022,19 @@ const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
|
16242
17022
|
});
|
|
16243
17023
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
16244
17024
|
};
|
|
17025
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
17026
|
+
const contents = map({});
|
|
17027
|
+
const data = parsedOutput.body;
|
|
17028
|
+
const doc = take(data, {
|
|
17029
|
+
message: __expectString,
|
|
17030
|
+
});
|
|
17031
|
+
Object.assign(contents, doc);
|
|
17032
|
+
const exception = new ValidationException({
|
|
17033
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
17034
|
+
...contents,
|
|
17035
|
+
});
|
|
17036
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
17037
|
+
};
|
|
16245
17038
|
const de_VersionConflictExceptionRes = async (parsedOutput, context) => {
|
|
16246
17039
|
const contents = map({});
|
|
16247
17040
|
const data = parsedOutput.body;
|
|
@@ -16782,6 +17575,7 @@ const de_Job = (output, context) => {
|
|
|
16782
17575
|
completedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
16783
17576
|
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
16784
17577
|
description: __expectString,
|
|
17578
|
+
destinationPackageVersions: _json,
|
|
16785
17579
|
documentParameters: _json,
|
|
16786
17580
|
forceCanceled: __expectBoolean,
|
|
16787
17581
|
isConcurrent: __expectBoolean,
|
|
@@ -17017,6 +17811,39 @@ const de_OutgoingCertificates = (output, context) => {
|
|
|
17017
17811
|
});
|
|
17018
17812
|
return retVal;
|
|
17019
17813
|
};
|
|
17814
|
+
const de_PackageSummary = (output, context) => {
|
|
17815
|
+
return take(output, {
|
|
17816
|
+
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
17817
|
+
defaultVersionName: __expectString,
|
|
17818
|
+
lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
17819
|
+
packageName: __expectString,
|
|
17820
|
+
});
|
|
17821
|
+
};
|
|
17822
|
+
const de_PackageSummaryList = (output, context) => {
|
|
17823
|
+
const retVal = (output || [])
|
|
17824
|
+
.filter((e) => e != null)
|
|
17825
|
+
.map((entry) => {
|
|
17826
|
+
return de_PackageSummary(entry, context);
|
|
17827
|
+
});
|
|
17828
|
+
return retVal;
|
|
17829
|
+
};
|
|
17830
|
+
const de_PackageVersionSummary = (output, context) => {
|
|
17831
|
+
return take(output, {
|
|
17832
|
+
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
17833
|
+
lastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
17834
|
+
packageName: __expectString,
|
|
17835
|
+
status: __expectString,
|
|
17836
|
+
versionName: __expectString,
|
|
17837
|
+
});
|
|
17838
|
+
};
|
|
17839
|
+
const de_PackageVersionSummaryList = (output, context) => {
|
|
17840
|
+
const retVal = (output || [])
|
|
17841
|
+
.filter((e) => e != null)
|
|
17842
|
+
.map((entry) => {
|
|
17843
|
+
return de_PackageVersionSummary(entry, context);
|
|
17844
|
+
});
|
|
17845
|
+
return retVal;
|
|
17846
|
+
};
|
|
17020
17847
|
const de_Percentiles = (output, context) => {
|
|
17021
17848
|
const retVal = (output || [])
|
|
17022
17849
|
.filter((e) => e != null)
|