@aws-sdk/client-grafana 3.118.1 → 3.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +155 -202
- package/dist-es/protocols/Aws_restJson1.js +129 -176
- package/package.json +26 -26
|
@@ -58,24 +58,15 @@ export var serializeAws_restJson1CreateWorkspaceCommand = function (input, conte
|
|
|
58
58
|
"content-type": "application/json",
|
|
59
59
|
};
|
|
60
60
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/workspaces";
|
|
61
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType
|
|
62
|
-
input.accountAccessType !== null && { accountAccessType: input.accountAccessType })), (input.authenticationProviders !== undefined &&
|
|
63
|
-
input.authenticationProviders !== null && {
|
|
61
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType != null && { accountAccessType: input.accountAccessType })), (input.authenticationProviders != null && {
|
|
64
62
|
authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
|
|
65
|
-
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.organizationRoleName
|
|
66
|
-
input.organizationRoleName !== null && { organizationRoleName: input.organizationRoleName })), (input.permissionType !== undefined &&
|
|
67
|
-
input.permissionType !== null && { permissionType: input.permissionType })), (input.stackSetName !== undefined && input.stackSetName !== null && { stackSetName: input.stackSetName })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workspaceDataSources !== undefined &&
|
|
68
|
-
input.workspaceDataSources !== null && {
|
|
63
|
+
})), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName })), (input.permissionType != null && { permissionType: input.permissionType })), (input.stackSetName != null && { stackSetName: input.stackSetName })), (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.workspaceDataSources != null && {
|
|
69
64
|
workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
|
|
70
|
-
})), (input.workspaceDescription
|
|
71
|
-
input.workspaceDescription !== null && { workspaceDescription: input.workspaceDescription })), (input.workspaceName !== undefined && input.workspaceName !== null && { workspaceName: input.workspaceName })), (input.workspaceNotificationDestinations !== undefined &&
|
|
72
|
-
input.workspaceNotificationDestinations !== null && {
|
|
65
|
+
})), (input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription })), (input.workspaceName != null && { workspaceName: input.workspaceName })), (input.workspaceNotificationDestinations != null && {
|
|
73
66
|
workspaceNotificationDestinations: serializeAws_restJson1NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
74
|
-
})), (input.workspaceOrganizationalUnits
|
|
75
|
-
input.workspaceOrganizationalUnits !== null && {
|
|
67
|
+
})), (input.workspaceOrganizationalUnits != null && {
|
|
76
68
|
workspaceOrganizationalUnits: serializeAws_restJson1OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
77
|
-
})), (input.workspaceRoleArn
|
|
78
|
-
input.workspaceRoleArn !== null && { workspaceRoleArn: input.workspaceRoleArn })));
|
|
69
|
+
})), (input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn })));
|
|
79
70
|
return [2, new __HttpRequest({
|
|
80
71
|
protocol: protocol,
|
|
81
72
|
hostname: hostname,
|
|
@@ -109,7 +100,7 @@ export var serializeAws_restJson1CreateWorkspaceApiKeyCommand = function (input,
|
|
|
109
100
|
else {
|
|
110
101
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
111
102
|
}
|
|
112
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.keyName
|
|
103
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.keyName != null && { keyName: input.keyName })), (input.keyRole != null && { keyRole: input.keyRole })), (input.secondsToLive != null && { secondsToLive: input.secondsToLive })));
|
|
113
104
|
return [2, new __HttpRequest({
|
|
114
105
|
protocol: protocol,
|
|
115
106
|
hostname: hostname,
|
|
@@ -407,7 +398,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
407
398
|
else {
|
|
408
399
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
409
400
|
}
|
|
410
|
-
body = JSON.stringify(__assign({}, (input.tags
|
|
401
|
+
body = JSON.stringify(__assign({}, (input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) })));
|
|
411
402
|
return [2, new __HttpRequest({
|
|
412
403
|
protocol: protocol,
|
|
413
404
|
hostname: hostname,
|
|
@@ -474,8 +465,7 @@ export var serializeAws_restJson1UpdatePermissionsCommand = function (input, con
|
|
|
474
465
|
else {
|
|
475
466
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
476
467
|
}
|
|
477
|
-
body = JSON.stringify(__assign({}, (input.updateInstructionBatch
|
|
478
|
-
input.updateInstructionBatch !== null && {
|
|
468
|
+
body = JSON.stringify(__assign({}, (input.updateInstructionBatch != null && {
|
|
479
469
|
updateInstructionBatch: serializeAws_restJson1UpdateInstructionBatch(input.updateInstructionBatch, context),
|
|
480
470
|
})));
|
|
481
471
|
return [2, new __HttpRequest({
|
|
@@ -511,21 +501,13 @@ export var serializeAws_restJson1UpdateWorkspaceCommand = function (input, conte
|
|
|
511
501
|
else {
|
|
512
502
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
513
503
|
}
|
|
514
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType
|
|
515
|
-
input.accountAccessType !== null && { accountAccessType: input.accountAccessType })), (input.organizationRoleName !== undefined &&
|
|
516
|
-
input.organizationRoleName !== null && { organizationRoleName: input.organizationRoleName })), (input.permissionType !== undefined &&
|
|
517
|
-
input.permissionType !== null && { permissionType: input.permissionType })), (input.stackSetName !== undefined && input.stackSetName !== null && { stackSetName: input.stackSetName })), (input.workspaceDataSources !== undefined &&
|
|
518
|
-
input.workspaceDataSources !== null && {
|
|
504
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.accountAccessType != null && { accountAccessType: input.accountAccessType })), (input.organizationRoleName != null && { organizationRoleName: input.organizationRoleName })), (input.permissionType != null && { permissionType: input.permissionType })), (input.stackSetName != null && { stackSetName: input.stackSetName })), (input.workspaceDataSources != null && {
|
|
519
505
|
workspaceDataSources: serializeAws_restJson1DataSourceTypesList(input.workspaceDataSources, context),
|
|
520
|
-
})), (input.workspaceDescription
|
|
521
|
-
input.workspaceDescription !== null && { workspaceDescription: input.workspaceDescription })), (input.workspaceName !== undefined && input.workspaceName !== null && { workspaceName: input.workspaceName })), (input.workspaceNotificationDestinations !== undefined &&
|
|
522
|
-
input.workspaceNotificationDestinations !== null && {
|
|
506
|
+
})), (input.workspaceDescription != null && { workspaceDescription: input.workspaceDescription })), (input.workspaceName != null && { workspaceName: input.workspaceName })), (input.workspaceNotificationDestinations != null && {
|
|
523
507
|
workspaceNotificationDestinations: serializeAws_restJson1NotificationDestinationsList(input.workspaceNotificationDestinations, context),
|
|
524
|
-
})), (input.workspaceOrganizationalUnits
|
|
525
|
-
input.workspaceOrganizationalUnits !== null && {
|
|
508
|
+
})), (input.workspaceOrganizationalUnits != null && {
|
|
526
509
|
workspaceOrganizationalUnits: serializeAws_restJson1OrganizationalUnitList(input.workspaceOrganizationalUnits, context),
|
|
527
|
-
})), (input.workspaceRoleArn
|
|
528
|
-
input.workspaceRoleArn !== null && { workspaceRoleArn: input.workspaceRoleArn })));
|
|
510
|
+
})), (input.workspaceRoleArn != null && { workspaceRoleArn: input.workspaceRoleArn })));
|
|
529
511
|
return [2, new __HttpRequest({
|
|
530
512
|
protocol: protocol,
|
|
531
513
|
hostname: hostname,
|
|
@@ -559,11 +541,9 @@ export var serializeAws_restJson1UpdateWorkspaceAuthenticationCommand = function
|
|
|
559
541
|
else {
|
|
560
542
|
throw new Error("No value provided for input HTTP label: workspaceId.");
|
|
561
543
|
}
|
|
562
|
-
body = JSON.stringify(__assign(__assign({}, (input.authenticationProviders
|
|
563
|
-
input.authenticationProviders !== null && {
|
|
544
|
+
body = JSON.stringify(__assign(__assign({}, (input.authenticationProviders != null && {
|
|
564
545
|
authenticationProviders: serializeAws_restJson1AuthenticationProviders(input.authenticationProviders, context),
|
|
565
|
-
})), (input.samlConfiguration
|
|
566
|
-
input.samlConfiguration !== null && {
|
|
546
|
+
})), (input.samlConfiguration != null && {
|
|
567
547
|
samlConfiguration: serializeAws_restJson1SamlConfiguration(input.samlConfiguration, context),
|
|
568
548
|
})));
|
|
569
549
|
return [2, new __HttpRequest({
|
|
@@ -603,7 +583,7 @@ export var deserializeAws_restJson1AssociateLicenseCommand = function (output, c
|
|
|
603
583
|
});
|
|
604
584
|
}); };
|
|
605
585
|
var deserializeAws_restJson1AssociateLicenseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
606
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
586
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
607
587
|
var _c;
|
|
608
588
|
return __generator(this, function (_d) {
|
|
609
589
|
switch (_d.label) {
|
|
@@ -613,7 +593,6 @@ var deserializeAws_restJson1AssociateLicenseCommandError = function (output, con
|
|
|
613
593
|
return [4, parseBody(output.body, context)];
|
|
614
594
|
case 1:
|
|
615
595
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
616
|
-
errorCode = "UnknownError";
|
|
617
596
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
618
597
|
_b = errorCode;
|
|
619
598
|
switch (_b) {
|
|
@@ -641,10 +620,12 @@ var deserializeAws_restJson1AssociateLicenseCommandError = function (output, con
|
|
|
641
620
|
case 11: throw _d.sent();
|
|
642
621
|
case 12:
|
|
643
622
|
parsedBody = parsedOutput.body;
|
|
623
|
+
$metadata = deserializeMetadata(output);
|
|
624
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
644
625
|
response = new __BaseException({
|
|
645
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
626
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
646
627
|
$fault: "client",
|
|
647
|
-
$metadata:
|
|
628
|
+
$metadata: $metadata,
|
|
648
629
|
});
|
|
649
630
|
throw __decorateServiceException(response, parsedBody);
|
|
650
631
|
}
|
|
@@ -675,7 +656,7 @@ export var deserializeAws_restJson1CreateWorkspaceCommand = function (output, co
|
|
|
675
656
|
});
|
|
676
657
|
}); };
|
|
677
658
|
var deserializeAws_restJson1CreateWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
678
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
659
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
679
660
|
var _c;
|
|
680
661
|
return __generator(this, function (_d) {
|
|
681
662
|
switch (_d.label) {
|
|
@@ -685,7 +666,6 @@ var deserializeAws_restJson1CreateWorkspaceCommandError = function (output, cont
|
|
|
685
666
|
return [4, parseBody(output.body, context)];
|
|
686
667
|
case 1:
|
|
687
668
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
688
|
-
errorCode = "UnknownError";
|
|
689
669
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
670
|
_b = errorCode;
|
|
691
671
|
switch (_b) {
|
|
@@ -717,10 +697,12 @@ var deserializeAws_restJson1CreateWorkspaceCommandError = function (output, cont
|
|
|
717
697
|
case 13: throw _d.sent();
|
|
718
698
|
case 14:
|
|
719
699
|
parsedBody = parsedOutput.body;
|
|
700
|
+
$metadata = deserializeMetadata(output);
|
|
701
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
720
702
|
response = new __BaseException({
|
|
721
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
703
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
722
704
|
$fault: "client",
|
|
723
|
-
$metadata:
|
|
705
|
+
$metadata: $metadata,
|
|
724
706
|
});
|
|
725
707
|
throw __decorateServiceException(response, parsedBody);
|
|
726
708
|
}
|
|
@@ -759,7 +741,7 @@ export var deserializeAws_restJson1CreateWorkspaceApiKeyCommand = function (outp
|
|
|
759
741
|
});
|
|
760
742
|
}); };
|
|
761
743
|
var deserializeAws_restJson1CreateWorkspaceApiKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
762
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
744
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
763
745
|
var _c;
|
|
764
746
|
return __generator(this, function (_d) {
|
|
765
747
|
switch (_d.label) {
|
|
@@ -769,7 +751,6 @@ var deserializeAws_restJson1CreateWorkspaceApiKeyCommandError = function (output
|
|
|
769
751
|
return [4, parseBody(output.body, context)];
|
|
770
752
|
case 1:
|
|
771
753
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
772
|
-
errorCode = "UnknownError";
|
|
773
754
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
755
|
_b = errorCode;
|
|
775
756
|
switch (_b) {
|
|
@@ -805,10 +786,12 @@ var deserializeAws_restJson1CreateWorkspaceApiKeyCommandError = function (output
|
|
|
805
786
|
case 15: throw _d.sent();
|
|
806
787
|
case 16:
|
|
807
788
|
parsedBody = parsedOutput.body;
|
|
789
|
+
$metadata = deserializeMetadata(output);
|
|
790
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
808
791
|
response = new __BaseException({
|
|
809
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
792
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
810
793
|
$fault: "client",
|
|
811
|
-
$metadata:
|
|
794
|
+
$metadata: $metadata,
|
|
812
795
|
});
|
|
813
796
|
throw __decorateServiceException(response, parsedBody);
|
|
814
797
|
}
|
|
@@ -839,7 +822,7 @@ export var deserializeAws_restJson1DeleteWorkspaceCommand = function (output, co
|
|
|
839
822
|
});
|
|
840
823
|
}); };
|
|
841
824
|
var deserializeAws_restJson1DeleteWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
842
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
825
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
843
826
|
var _c;
|
|
844
827
|
return __generator(this, function (_d) {
|
|
845
828
|
switch (_d.label) {
|
|
@@ -849,7 +832,6 @@ var deserializeAws_restJson1DeleteWorkspaceCommandError = function (output, cont
|
|
|
849
832
|
return [4, parseBody(output.body, context)];
|
|
850
833
|
case 1:
|
|
851
834
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
852
|
-
errorCode = "UnknownError";
|
|
853
835
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
854
836
|
_b = errorCode;
|
|
855
837
|
switch (_b) {
|
|
@@ -881,10 +863,12 @@ var deserializeAws_restJson1DeleteWorkspaceCommandError = function (output, cont
|
|
|
881
863
|
case 13: throw _d.sent();
|
|
882
864
|
case 14:
|
|
883
865
|
parsedBody = parsedOutput.body;
|
|
866
|
+
$metadata = deserializeMetadata(output);
|
|
867
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
884
868
|
response = new __BaseException({
|
|
885
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
869
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
886
870
|
$fault: "client",
|
|
887
|
-
$metadata:
|
|
871
|
+
$metadata: $metadata,
|
|
888
872
|
});
|
|
889
873
|
throw __decorateServiceException(response, parsedBody);
|
|
890
874
|
}
|
|
@@ -919,7 +903,7 @@ export var deserializeAws_restJson1DeleteWorkspaceApiKeyCommand = function (outp
|
|
|
919
903
|
});
|
|
920
904
|
}); };
|
|
921
905
|
var deserializeAws_restJson1DeleteWorkspaceApiKeyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
922
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
906
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
923
907
|
var _c;
|
|
924
908
|
return __generator(this, function (_d) {
|
|
925
909
|
switch (_d.label) {
|
|
@@ -929,7 +913,6 @@ var deserializeAws_restJson1DeleteWorkspaceApiKeyCommandError = function (output
|
|
|
929
913
|
return [4, parseBody(output.body, context)];
|
|
930
914
|
case 1:
|
|
931
915
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
932
|
-
errorCode = "UnknownError";
|
|
933
916
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
917
|
_b = errorCode;
|
|
935
918
|
switch (_b) {
|
|
@@ -961,10 +944,12 @@ var deserializeAws_restJson1DeleteWorkspaceApiKeyCommandError = function (output
|
|
|
961
944
|
case 13: throw _d.sent();
|
|
962
945
|
case 14:
|
|
963
946
|
parsedBody = parsedOutput.body;
|
|
947
|
+
$metadata = deserializeMetadata(output);
|
|
948
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
964
949
|
response = new __BaseException({
|
|
965
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
950
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
966
951
|
$fault: "client",
|
|
967
|
-
$metadata:
|
|
952
|
+
$metadata: $metadata,
|
|
968
953
|
});
|
|
969
954
|
throw __decorateServiceException(response, parsedBody);
|
|
970
955
|
}
|
|
@@ -995,7 +980,7 @@ export var deserializeAws_restJson1DescribeWorkspaceCommand = function (output,
|
|
|
995
980
|
});
|
|
996
981
|
}); };
|
|
997
982
|
var deserializeAws_restJson1DescribeWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
998
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
983
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
999
984
|
var _c;
|
|
1000
985
|
return __generator(this, function (_d) {
|
|
1001
986
|
switch (_d.label) {
|
|
@@ -1005,7 +990,6 @@ var deserializeAws_restJson1DescribeWorkspaceCommandError = function (output, co
|
|
|
1005
990
|
return [4, parseBody(output.body, context)];
|
|
1006
991
|
case 1:
|
|
1007
992
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1008
|
-
errorCode = "UnknownError";
|
|
1009
993
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1010
994
|
_b = errorCode;
|
|
1011
995
|
switch (_b) {
|
|
@@ -1033,10 +1017,12 @@ var deserializeAws_restJson1DescribeWorkspaceCommandError = function (output, co
|
|
|
1033
1017
|
case 11: throw _d.sent();
|
|
1034
1018
|
case 12:
|
|
1035
1019
|
parsedBody = parsedOutput.body;
|
|
1020
|
+
$metadata = deserializeMetadata(output);
|
|
1021
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1036
1022
|
response = new __BaseException({
|
|
1037
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1023
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1038
1024
|
$fault: "client",
|
|
1039
|
-
$metadata:
|
|
1025
|
+
$metadata: $metadata,
|
|
1040
1026
|
});
|
|
1041
1027
|
throw __decorateServiceException(response, parsedBody);
|
|
1042
1028
|
}
|
|
@@ -1067,7 +1053,7 @@ export var deserializeAws_restJson1DescribeWorkspaceAuthenticationCommand = func
|
|
|
1067
1053
|
});
|
|
1068
1054
|
}); };
|
|
1069
1055
|
var deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1070
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1056
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1071
1057
|
var _c;
|
|
1072
1058
|
return __generator(this, function (_d) {
|
|
1073
1059
|
switch (_d.label) {
|
|
@@ -1077,7 +1063,6 @@ var deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = functi
|
|
|
1077
1063
|
return [4, parseBody(output.body, context)];
|
|
1078
1064
|
case 1:
|
|
1079
1065
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1080
|
-
errorCode = "UnknownError";
|
|
1081
1066
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1082
1067
|
_b = errorCode;
|
|
1083
1068
|
switch (_b) {
|
|
@@ -1105,10 +1090,12 @@ var deserializeAws_restJson1DescribeWorkspaceAuthenticationCommandError = functi
|
|
|
1105
1090
|
case 11: throw _d.sent();
|
|
1106
1091
|
case 12:
|
|
1107
1092
|
parsedBody = parsedOutput.body;
|
|
1093
|
+
$metadata = deserializeMetadata(output);
|
|
1094
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1108
1095
|
response = new __BaseException({
|
|
1109
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1096
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1110
1097
|
$fault: "client",
|
|
1111
|
-
$metadata:
|
|
1098
|
+
$metadata: $metadata,
|
|
1112
1099
|
});
|
|
1113
1100
|
throw __decorateServiceException(response, parsedBody);
|
|
1114
1101
|
}
|
|
@@ -1139,7 +1126,7 @@ export var deserializeAws_restJson1DisassociateLicenseCommand = function (output
|
|
|
1139
1126
|
});
|
|
1140
1127
|
}); };
|
|
1141
1128
|
var deserializeAws_restJson1DisassociateLicenseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1142
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1129
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1143
1130
|
var _c;
|
|
1144
1131
|
return __generator(this, function (_d) {
|
|
1145
1132
|
switch (_d.label) {
|
|
@@ -1149,7 +1136,6 @@ var deserializeAws_restJson1DisassociateLicenseCommandError = function (output,
|
|
|
1149
1136
|
return [4, parseBody(output.body, context)];
|
|
1150
1137
|
case 1:
|
|
1151
1138
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1152
|
-
errorCode = "UnknownError";
|
|
1153
1139
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1140
|
_b = errorCode;
|
|
1155
1141
|
switch (_b) {
|
|
@@ -1177,10 +1163,12 @@ var deserializeAws_restJson1DisassociateLicenseCommandError = function (output,
|
|
|
1177
1163
|
case 11: throw _d.sent();
|
|
1178
1164
|
case 12:
|
|
1179
1165
|
parsedBody = parsedOutput.body;
|
|
1166
|
+
$metadata = deserializeMetadata(output);
|
|
1167
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1180
1168
|
response = new __BaseException({
|
|
1181
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1169
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1182
1170
|
$fault: "client",
|
|
1183
|
-
$metadata:
|
|
1171
|
+
$metadata: $metadata,
|
|
1184
1172
|
});
|
|
1185
1173
|
throw __decorateServiceException(response, parsedBody);
|
|
1186
1174
|
}
|
|
@@ -1215,7 +1203,7 @@ export var deserializeAws_restJson1ListPermissionsCommand = function (output, co
|
|
|
1215
1203
|
});
|
|
1216
1204
|
}); };
|
|
1217
1205
|
var deserializeAws_restJson1ListPermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1218
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1206
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1219
1207
|
var _c;
|
|
1220
1208
|
return __generator(this, function (_d) {
|
|
1221
1209
|
switch (_d.label) {
|
|
@@ -1225,7 +1213,6 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
|
|
|
1225
1213
|
return [4, parseBody(output.body, context)];
|
|
1226
1214
|
case 1:
|
|
1227
1215
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1228
|
-
errorCode = "UnknownError";
|
|
1229
1216
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1230
1217
|
_b = errorCode;
|
|
1231
1218
|
switch (_b) {
|
|
@@ -1253,10 +1240,12 @@ var deserializeAws_restJson1ListPermissionsCommandError = function (output, cont
|
|
|
1253
1240
|
case 11: throw _d.sent();
|
|
1254
1241
|
case 12:
|
|
1255
1242
|
parsedBody = parsedOutput.body;
|
|
1243
|
+
$metadata = deserializeMetadata(output);
|
|
1244
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1256
1245
|
response = new __BaseException({
|
|
1257
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1246
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1258
1247
|
$fault: "client",
|
|
1259
|
-
$metadata:
|
|
1248
|
+
$metadata: $metadata,
|
|
1260
1249
|
});
|
|
1261
1250
|
throw __decorateServiceException(response, parsedBody);
|
|
1262
1251
|
}
|
|
@@ -1287,7 +1276,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
1287
1276
|
});
|
|
1288
1277
|
}); };
|
|
1289
1278
|
var deserializeAws_restJson1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1290
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1279
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1291
1280
|
var _c;
|
|
1292
1281
|
return __generator(this, function (_d) {
|
|
1293
1282
|
switch (_d.label) {
|
|
@@ -1297,7 +1286,6 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1297
1286
|
return [4, parseBody(output.body, context)];
|
|
1298
1287
|
case 1:
|
|
1299
1288
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1300
|
-
errorCode = "UnknownError";
|
|
1301
1289
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1302
1290
|
_b = errorCode;
|
|
1303
1291
|
switch (_b) {
|
|
@@ -1325,10 +1313,12 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1325
1313
|
case 11: throw _d.sent();
|
|
1326
1314
|
case 12:
|
|
1327
1315
|
parsedBody = parsedOutput.body;
|
|
1316
|
+
$metadata = deserializeMetadata(output);
|
|
1317
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1328
1318
|
response = new __BaseException({
|
|
1329
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1319
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1330
1320
|
$fault: "client",
|
|
1331
|
-
$metadata:
|
|
1321
|
+
$metadata: $metadata,
|
|
1332
1322
|
});
|
|
1333
1323
|
throw __decorateServiceException(response, parsedBody);
|
|
1334
1324
|
}
|
|
@@ -1363,7 +1353,7 @@ export var deserializeAws_restJson1ListWorkspacesCommand = function (output, con
|
|
|
1363
1353
|
});
|
|
1364
1354
|
}); };
|
|
1365
1355
|
var deserializeAws_restJson1ListWorkspacesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1366
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1356
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1367
1357
|
var _c;
|
|
1368
1358
|
return __generator(this, function (_d) {
|
|
1369
1359
|
switch (_d.label) {
|
|
@@ -1373,7 +1363,6 @@ var deserializeAws_restJson1ListWorkspacesCommandError = function (output, conte
|
|
|
1373
1363
|
return [4, parseBody(output.body, context)];
|
|
1374
1364
|
case 1:
|
|
1375
1365
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1376
|
-
errorCode = "UnknownError";
|
|
1377
1366
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
1367
|
_b = errorCode;
|
|
1379
1368
|
switch (_b) {
|
|
@@ -1393,10 +1382,12 @@ var deserializeAws_restJson1ListWorkspacesCommandError = function (output, conte
|
|
|
1393
1382
|
case 7: throw _d.sent();
|
|
1394
1383
|
case 8:
|
|
1395
1384
|
parsedBody = parsedOutput.body;
|
|
1385
|
+
$metadata = deserializeMetadata(output);
|
|
1386
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1396
1387
|
response = new __BaseException({
|
|
1397
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1388
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1398
1389
|
$fault: "client",
|
|
1399
|
-
$metadata:
|
|
1390
|
+
$metadata: $metadata,
|
|
1400
1391
|
});
|
|
1401
1392
|
throw __decorateServiceException(response, parsedBody);
|
|
1402
1393
|
}
|
|
@@ -1421,7 +1412,7 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1421
1412
|
});
|
|
1422
1413
|
}); };
|
|
1423
1414
|
var deserializeAws_restJson1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1424
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1415
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1425
1416
|
var _c;
|
|
1426
1417
|
return __generator(this, function (_d) {
|
|
1427
1418
|
switch (_d.label) {
|
|
@@ -1431,7 +1422,6 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1431
1422
|
return [4, parseBody(output.body, context)];
|
|
1432
1423
|
case 1:
|
|
1433
1424
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1434
|
-
errorCode = "UnknownError";
|
|
1435
1425
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1436
1426
|
_b = errorCode;
|
|
1437
1427
|
switch (_b) {
|
|
@@ -1459,10 +1449,12 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1459
1449
|
case 11: throw _d.sent();
|
|
1460
1450
|
case 12:
|
|
1461
1451
|
parsedBody = parsedOutput.body;
|
|
1452
|
+
$metadata = deserializeMetadata(output);
|
|
1453
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1462
1454
|
response = new __BaseException({
|
|
1463
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1455
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1464
1456
|
$fault: "client",
|
|
1465
|
-
$metadata:
|
|
1457
|
+
$metadata: $metadata,
|
|
1466
1458
|
});
|
|
1467
1459
|
throw __decorateServiceException(response, parsedBody);
|
|
1468
1460
|
}
|
|
@@ -1487,7 +1479,7 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1487
1479
|
});
|
|
1488
1480
|
}); };
|
|
1489
1481
|
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1490
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1482
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1491
1483
|
var _c;
|
|
1492
1484
|
return __generator(this, function (_d) {
|
|
1493
1485
|
switch (_d.label) {
|
|
@@ -1497,7 +1489,6 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1497
1489
|
return [4, parseBody(output.body, context)];
|
|
1498
1490
|
case 1:
|
|
1499
1491
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1500
|
-
errorCode = "UnknownError";
|
|
1501
1492
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1502
1493
|
_b = errorCode;
|
|
1503
1494
|
switch (_b) {
|
|
@@ -1525,10 +1516,12 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1525
1516
|
case 11: throw _d.sent();
|
|
1526
1517
|
case 12:
|
|
1527
1518
|
parsedBody = parsedOutput.body;
|
|
1519
|
+
$metadata = deserializeMetadata(output);
|
|
1520
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1528
1521
|
response = new __BaseException({
|
|
1529
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1522
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1530
1523
|
$fault: "client",
|
|
1531
|
-
$metadata:
|
|
1524
|
+
$metadata: $metadata,
|
|
1532
1525
|
});
|
|
1533
1526
|
throw __decorateServiceException(response, parsedBody);
|
|
1534
1527
|
}
|
|
@@ -1559,7 +1552,7 @@ export var deserializeAws_restJson1UpdatePermissionsCommand = function (output,
|
|
|
1559
1552
|
});
|
|
1560
1553
|
}); };
|
|
1561
1554
|
var deserializeAws_restJson1UpdatePermissionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1562
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1555
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1563
1556
|
var _c;
|
|
1564
1557
|
return __generator(this, function (_d) {
|
|
1565
1558
|
switch (_d.label) {
|
|
@@ -1569,7 +1562,6 @@ var deserializeAws_restJson1UpdatePermissionsCommandError = function (output, co
|
|
|
1569
1562
|
return [4, parseBody(output.body, context)];
|
|
1570
1563
|
case 1:
|
|
1571
1564
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1572
|
-
errorCode = "UnknownError";
|
|
1573
1565
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1574
1566
|
_b = errorCode;
|
|
1575
1567
|
switch (_b) {
|
|
@@ -1597,10 +1589,12 @@ var deserializeAws_restJson1UpdatePermissionsCommandError = function (output, co
|
|
|
1597
1589
|
case 11: throw _d.sent();
|
|
1598
1590
|
case 12:
|
|
1599
1591
|
parsedBody = parsedOutput.body;
|
|
1592
|
+
$metadata = deserializeMetadata(output);
|
|
1593
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1600
1594
|
response = new __BaseException({
|
|
1601
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1595
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1602
1596
|
$fault: "client",
|
|
1603
|
-
$metadata:
|
|
1597
|
+
$metadata: $metadata,
|
|
1604
1598
|
});
|
|
1605
1599
|
throw __decorateServiceException(response, parsedBody);
|
|
1606
1600
|
}
|
|
@@ -1631,7 +1625,7 @@ export var deserializeAws_restJson1UpdateWorkspaceCommand = function (output, co
|
|
|
1631
1625
|
});
|
|
1632
1626
|
}); };
|
|
1633
1627
|
var deserializeAws_restJson1UpdateWorkspaceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1634
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1628
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1635
1629
|
var _c;
|
|
1636
1630
|
return __generator(this, function (_d) {
|
|
1637
1631
|
switch (_d.label) {
|
|
@@ -1641,7 +1635,6 @@ var deserializeAws_restJson1UpdateWorkspaceCommandError = function (output, cont
|
|
|
1641
1635
|
return [4, parseBody(output.body, context)];
|
|
1642
1636
|
case 1:
|
|
1643
1637
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1644
|
-
errorCode = "UnknownError";
|
|
1645
1638
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1646
1639
|
_b = errorCode;
|
|
1647
1640
|
switch (_b) {
|
|
@@ -1673,10 +1666,12 @@ var deserializeAws_restJson1UpdateWorkspaceCommandError = function (output, cont
|
|
|
1673
1666
|
case 13: throw _d.sent();
|
|
1674
1667
|
case 14:
|
|
1675
1668
|
parsedBody = parsedOutput.body;
|
|
1669
|
+
$metadata = deserializeMetadata(output);
|
|
1670
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1676
1671
|
response = new __BaseException({
|
|
1677
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1672
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1678
1673
|
$fault: "client",
|
|
1679
|
-
$metadata:
|
|
1674
|
+
$metadata: $metadata,
|
|
1680
1675
|
});
|
|
1681
1676
|
throw __decorateServiceException(response, parsedBody);
|
|
1682
1677
|
}
|
|
@@ -1707,7 +1702,7 @@ export var deserializeAws_restJson1UpdateWorkspaceAuthenticationCommand = functi
|
|
|
1707
1702
|
});
|
|
1708
1703
|
}); };
|
|
1709
1704
|
var deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1710
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1705
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1711
1706
|
var _c;
|
|
1712
1707
|
return __generator(this, function (_d) {
|
|
1713
1708
|
switch (_d.label) {
|
|
@@ -1717,7 +1712,6 @@ var deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = function
|
|
|
1717
1712
|
return [4, parseBody(output.body, context)];
|
|
1718
1713
|
case 1:
|
|
1719
1714
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1720
|
-
errorCode = "UnknownError";
|
|
1721
1715
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1722
1716
|
_b = errorCode;
|
|
1723
1717
|
switch (_b) {
|
|
@@ -1749,10 +1743,12 @@ var deserializeAws_restJson1UpdateWorkspaceAuthenticationCommandError = function
|
|
|
1749
1743
|
case 13: throw _d.sent();
|
|
1750
1744
|
case 14:
|
|
1751
1745
|
parsedBody = parsedOutput.body;
|
|
1746
|
+
$metadata = deserializeMetadata(output);
|
|
1747
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1752
1748
|
response = new __BaseException({
|
|
1753
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1749
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1754
1750
|
$fault: "client",
|
|
1755
|
-
$metadata:
|
|
1751
|
+
$metadata: $metadata,
|
|
1756
1752
|
});
|
|
1757
1753
|
throw __decorateServiceException(response, parsedBody);
|
|
1758
1754
|
}
|
|
@@ -1895,7 +1891,7 @@ var serializeAws_restJson1AllowedOrganizations = function (input, context) {
|
|
|
1895
1891
|
});
|
|
1896
1892
|
};
|
|
1897
1893
|
var serializeAws_restJson1AssertionAttributes = function (input, context) {
|
|
1898
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.email
|
|
1894
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.email != null && { email: input.email })), (input.groups != null && { groups: input.groups })), (input.login != null && { login: input.login })), (input.name != null && { name: input.name })), (input.org != null && { org: input.org })), (input.role != null && { role: input.role }));
|
|
1899
1895
|
};
|
|
1900
1896
|
var serializeAws_restJson1AuthenticationProviders = function (input, context) {
|
|
1901
1897
|
return input
|
|
@@ -1955,21 +1951,14 @@ var serializeAws_restJson1RoleValueList = function (input, context) {
|
|
|
1955
1951
|
});
|
|
1956
1952
|
};
|
|
1957
1953
|
var serializeAws_restJson1RoleValues = function (input, context) {
|
|
1958
|
-
return __assign(__assign({}, (input.admin
|
|
1959
|
-
input.admin !== null && { admin: serializeAws_restJson1RoleValueList(input.admin, context) })), (input.editor !== undefined &&
|
|
1960
|
-
input.editor !== null && { editor: serializeAws_restJson1RoleValueList(input.editor, context) }));
|
|
1954
|
+
return __assign(__assign({}, (input.admin != null && { admin: serializeAws_restJson1RoleValueList(input.admin, context) })), (input.editor != null && { editor: serializeAws_restJson1RoleValueList(input.editor, context) }));
|
|
1961
1955
|
};
|
|
1962
1956
|
var serializeAws_restJson1SamlConfiguration = function (input, context) {
|
|
1963
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.allowedOrganizations
|
|
1964
|
-
input.allowedOrganizations !== null && {
|
|
1957
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.allowedOrganizations != null && {
|
|
1965
1958
|
allowedOrganizations: serializeAws_restJson1AllowedOrganizations(input.allowedOrganizations, context),
|
|
1966
|
-
})), (input.assertionAttributes
|
|
1967
|
-
input.assertionAttributes !== null && {
|
|
1959
|
+
})), (input.assertionAttributes != null && {
|
|
1968
1960
|
assertionAttributes: serializeAws_restJson1AssertionAttributes(input.assertionAttributes, context),
|
|
1969
|
-
})), (input.idpMetadata
|
|
1970
|
-
input.idpMetadata !== null && { idpMetadata: serializeAws_restJson1IdpMetadata(input.idpMetadata, context) })), (input.loginValidityDuration !== undefined &&
|
|
1971
|
-
input.loginValidityDuration !== null && { loginValidityDuration: input.loginValidityDuration })), (input.roleValues !== undefined &&
|
|
1972
|
-
input.roleValues !== null && { roleValues: serializeAws_restJson1RoleValues(input.roleValues, context) }));
|
|
1961
|
+
})), (input.idpMetadata != null && { idpMetadata: serializeAws_restJson1IdpMetadata(input.idpMetadata, context) })), (input.loginValidityDuration != null && { loginValidityDuration: input.loginValidityDuration })), (input.roleValues != null && { roleValues: serializeAws_restJson1RoleValues(input.roleValues, context) }));
|
|
1973
1962
|
};
|
|
1974
1963
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
1975
1964
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
@@ -1982,8 +1971,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
1982
1971
|
}, {});
|
|
1983
1972
|
};
|
|
1984
1973
|
var serializeAws_restJson1UpdateInstruction = function (input, context) {
|
|
1985
|
-
return __assign(__assign(__assign({}, (input.action
|
|
1986
|
-
input.users !== null && { users: serializeAws_restJson1UserList(input.users, context) }));
|
|
1974
|
+
return __assign(__assign(__assign({}, (input.action != null && { action: input.action })), (input.role != null && { role: input.role })), (input.users != null && { users: serializeAws_restJson1UserList(input.users, context) }));
|
|
1987
1975
|
};
|
|
1988
1976
|
var serializeAws_restJson1UpdateInstructionBatch = function (input, context) {
|
|
1989
1977
|
return input
|
|
@@ -1996,7 +1984,7 @@ var serializeAws_restJson1UpdateInstructionBatch = function (input, context) {
|
|
|
1996
1984
|
});
|
|
1997
1985
|
};
|
|
1998
1986
|
var serializeAws_restJson1User = function (input, context) {
|
|
1999
|
-
return __assign(__assign({}, (input.id
|
|
1987
|
+
return __assign(__assign({}, (input.id != null && { id: input.id })), (input.type != null && { type: input.type }));
|
|
2000
1988
|
};
|
|
2001
1989
|
var serializeAws_restJson1UserList = function (input, context) {
|
|
2002
1990
|
return input
|
|
@@ -2031,15 +2019,9 @@ var deserializeAws_restJson1AssertionAttributes = function (output, context) {
|
|
|
2031
2019
|
};
|
|
2032
2020
|
var deserializeAws_restJson1AuthenticationDescription = function (output, context) {
|
|
2033
2021
|
return {
|
|
2034
|
-
awsSso: output.awsSso
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
providers: output.providers !== undefined && output.providers !== null
|
|
2038
|
-
? deserializeAws_restJson1AuthenticationProviders(output.providers, context)
|
|
2039
|
-
: undefined,
|
|
2040
|
-
saml: output.saml !== undefined && output.saml !== null
|
|
2041
|
-
? deserializeAws_restJson1SamlAuthentication(output.saml, context)
|
|
2042
|
-
: undefined,
|
|
2022
|
+
awsSso: output.awsSso != null ? deserializeAws_restJson1AwsSsoAuthentication(output.awsSso, context) : undefined,
|
|
2023
|
+
providers: output.providers != null ? deserializeAws_restJson1AuthenticationProviders(output.providers, context) : undefined,
|
|
2024
|
+
saml: output.saml != null ? deserializeAws_restJson1SamlAuthentication(output.saml, context) : undefined,
|
|
2043
2025
|
};
|
|
2044
2026
|
};
|
|
2045
2027
|
var deserializeAws_restJson1AuthenticationProviders = function (output, context) {
|
|
@@ -2055,9 +2037,7 @@ var deserializeAws_restJson1AuthenticationProviders = function (output, context)
|
|
|
2055
2037
|
};
|
|
2056
2038
|
var deserializeAws_restJson1AuthenticationSummary = function (output, context) {
|
|
2057
2039
|
return {
|
|
2058
|
-
providers: output.providers
|
|
2059
|
-
? deserializeAws_restJson1AuthenticationProviders(output.providers, context)
|
|
2060
|
-
: undefined,
|
|
2040
|
+
providers: output.providers != null ? deserializeAws_restJson1AuthenticationProviders(output.providers, context) : undefined,
|
|
2061
2041
|
samlConfigurationStatus: __expectString(output.samlConfigurationStatus),
|
|
2062
2042
|
};
|
|
2063
2043
|
};
|
|
@@ -2111,9 +2091,7 @@ var deserializeAws_restJson1OrganizationalUnitList = function (output, context)
|
|
|
2111
2091
|
var deserializeAws_restJson1PermissionEntry = function (output, context) {
|
|
2112
2092
|
return {
|
|
2113
2093
|
role: __expectString(output.role),
|
|
2114
|
-
user: output.user
|
|
2115
|
-
? deserializeAws_restJson1User(output.user, context)
|
|
2116
|
-
: undefined,
|
|
2094
|
+
user: output.user != null ? deserializeAws_restJson1User(output.user, context) : undefined,
|
|
2117
2095
|
};
|
|
2118
2096
|
};
|
|
2119
2097
|
var deserializeAws_restJson1PermissionEntryList = function (output, context) {
|
|
@@ -2140,17 +2118,13 @@ var deserializeAws_restJson1RoleValueList = function (output, context) {
|
|
|
2140
2118
|
};
|
|
2141
2119
|
var deserializeAws_restJson1RoleValues = function (output, context) {
|
|
2142
2120
|
return {
|
|
2143
|
-
admin: output.admin
|
|
2144
|
-
|
|
2145
|
-
: undefined,
|
|
2146
|
-
editor: output.editor !== undefined && output.editor !== null
|
|
2147
|
-
? deserializeAws_restJson1RoleValueList(output.editor, context)
|
|
2148
|
-
: undefined,
|
|
2121
|
+
admin: output.admin != null ? deserializeAws_restJson1RoleValueList(output.admin, context) : undefined,
|
|
2122
|
+
editor: output.editor != null ? deserializeAws_restJson1RoleValueList(output.editor, context) : undefined,
|
|
2149
2123
|
};
|
|
2150
2124
|
};
|
|
2151
2125
|
var deserializeAws_restJson1SamlAuthentication = function (output, context) {
|
|
2152
2126
|
return {
|
|
2153
|
-
configuration: output.configuration
|
|
2127
|
+
configuration: output.configuration != null
|
|
2154
2128
|
? deserializeAws_restJson1SamlConfiguration(output.configuration, context)
|
|
2155
2129
|
: undefined,
|
|
2156
2130
|
status: __expectString(output.status),
|
|
@@ -2158,19 +2132,17 @@ var deserializeAws_restJson1SamlAuthentication = function (output, context) {
|
|
|
2158
2132
|
};
|
|
2159
2133
|
var deserializeAws_restJson1SamlConfiguration = function (output, context) {
|
|
2160
2134
|
return {
|
|
2161
|
-
allowedOrganizations: output.allowedOrganizations
|
|
2135
|
+
allowedOrganizations: output.allowedOrganizations != null
|
|
2162
2136
|
? deserializeAws_restJson1AllowedOrganizations(output.allowedOrganizations, context)
|
|
2163
2137
|
: undefined,
|
|
2164
|
-
assertionAttributes: output.assertionAttributes
|
|
2138
|
+
assertionAttributes: output.assertionAttributes != null
|
|
2165
2139
|
? deserializeAws_restJson1AssertionAttributes(output.assertionAttributes, context)
|
|
2166
2140
|
: undefined,
|
|
2167
|
-
idpMetadata: output.idpMetadata
|
|
2141
|
+
idpMetadata: output.idpMetadata != null
|
|
2168
2142
|
? deserializeAws_restJson1IdpMetadata(__expectUnion(output.idpMetadata), context)
|
|
2169
2143
|
: undefined,
|
|
2170
2144
|
loginValidityDuration: __expectInt32(output.loginValidityDuration),
|
|
2171
|
-
roleValues: output.roleValues
|
|
2172
|
-
? deserializeAws_restJson1RoleValues(output.roleValues, context)
|
|
2173
|
-
: undefined,
|
|
2145
|
+
roleValues: output.roleValues != null ? deserializeAws_restJson1RoleValues(output.roleValues, context) : undefined,
|
|
2174
2146
|
};
|
|
2175
2147
|
};
|
|
2176
2148
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
@@ -2185,9 +2157,7 @@ var deserializeAws_restJson1TagMap = function (output, context) {
|
|
|
2185
2157
|
};
|
|
2186
2158
|
var deserializeAws_restJson1UpdateError = function (output, context) {
|
|
2187
2159
|
return {
|
|
2188
|
-
causedBy: output.causedBy
|
|
2189
|
-
? deserializeAws_restJson1UpdateInstruction(output.causedBy, context)
|
|
2190
|
-
: undefined,
|
|
2160
|
+
causedBy: output.causedBy != null ? deserializeAws_restJson1UpdateInstruction(output.causedBy, context) : undefined,
|
|
2191
2161
|
code: __expectInt32(output.code),
|
|
2192
2162
|
message: __expectString(output.message),
|
|
2193
2163
|
};
|
|
@@ -2207,9 +2177,7 @@ var deserializeAws_restJson1UpdateInstruction = function (output, context) {
|
|
|
2207
2177
|
return {
|
|
2208
2178
|
action: __expectString(output.action),
|
|
2209
2179
|
role: __expectString(output.role),
|
|
2210
|
-
users: output.users
|
|
2211
|
-
? deserializeAws_restJson1UserList(output.users, context)
|
|
2212
|
-
: undefined,
|
|
2180
|
+
users: output.users != null ? deserializeAws_restJson1UserList(output.users, context) : undefined,
|
|
2213
2181
|
};
|
|
2214
2182
|
};
|
|
2215
2183
|
var deserializeAws_restJson1User = function (output, context) {
|
|
@@ -2249,44 +2217,36 @@ var deserializeAws_restJson1ValidationExceptionFieldList = function (output, con
|
|
|
2249
2217
|
var deserializeAws_restJson1WorkspaceDescription = function (output, context) {
|
|
2250
2218
|
return {
|
|
2251
2219
|
accountAccessType: __expectString(output.accountAccessType),
|
|
2252
|
-
authentication: output.authentication
|
|
2220
|
+
authentication: output.authentication != null
|
|
2253
2221
|
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
2254
2222
|
: undefined,
|
|
2255
|
-
created: output.created
|
|
2256
|
-
|
|
2257
|
-
: undefined,
|
|
2258
|
-
dataSources: output.dataSources !== undefined && output.dataSources !== null
|
|
2259
|
-
? deserializeAws_restJson1DataSourceTypesList(output.dataSources, context)
|
|
2260
|
-
: undefined,
|
|
2223
|
+
created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
|
|
2224
|
+
dataSources: output.dataSources != null ? deserializeAws_restJson1DataSourceTypesList(output.dataSources, context) : undefined,
|
|
2261
2225
|
description: __expectString(output.description),
|
|
2262
2226
|
endpoint: __expectString(output.endpoint),
|
|
2263
2227
|
freeTrialConsumed: __expectBoolean(output.freeTrialConsumed),
|
|
2264
|
-
freeTrialExpiration: output.freeTrialExpiration
|
|
2228
|
+
freeTrialExpiration: output.freeTrialExpiration != null
|
|
2265
2229
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.freeTrialExpiration)))
|
|
2266
2230
|
: undefined,
|
|
2267
2231
|
grafanaVersion: __expectString(output.grafanaVersion),
|
|
2268
2232
|
id: __expectString(output.id),
|
|
2269
|
-
licenseExpiration: output.licenseExpiration
|
|
2233
|
+
licenseExpiration: output.licenseExpiration != null
|
|
2270
2234
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.licenseExpiration)))
|
|
2271
2235
|
: undefined,
|
|
2272
2236
|
licenseType: __expectString(output.licenseType),
|
|
2273
|
-
modified: output.modified
|
|
2274
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified)))
|
|
2275
|
-
: undefined,
|
|
2237
|
+
modified: output.modified != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified))) : undefined,
|
|
2276
2238
|
name: __expectString(output.name),
|
|
2277
|
-
notificationDestinations: output.notificationDestinations
|
|
2239
|
+
notificationDestinations: output.notificationDestinations != null
|
|
2278
2240
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
2279
2241
|
: undefined,
|
|
2280
2242
|
organizationRoleName: __expectString(output.organizationRoleName),
|
|
2281
|
-
organizationalUnits: output.organizationalUnits
|
|
2243
|
+
organizationalUnits: output.organizationalUnits != null
|
|
2282
2244
|
? deserializeAws_restJson1OrganizationalUnitList(output.organizationalUnits, context)
|
|
2283
2245
|
: undefined,
|
|
2284
2246
|
permissionType: __expectString(output.permissionType),
|
|
2285
2247
|
stackSetName: __expectString(output.stackSetName),
|
|
2286
2248
|
status: __expectString(output.status),
|
|
2287
|
-
tags: output.tags
|
|
2288
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
2289
|
-
: undefined,
|
|
2249
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
2290
2250
|
workspaceRoleArn: __expectString(output.workspaceRoleArn),
|
|
2291
2251
|
};
|
|
2292
2252
|
};
|
|
@@ -2303,27 +2263,21 @@ var deserializeAws_restJson1WorkspaceList = function (output, context) {
|
|
|
2303
2263
|
};
|
|
2304
2264
|
var deserializeAws_restJson1WorkspaceSummary = function (output, context) {
|
|
2305
2265
|
return {
|
|
2306
|
-
authentication: output.authentication
|
|
2266
|
+
authentication: output.authentication != null
|
|
2307
2267
|
? deserializeAws_restJson1AuthenticationSummary(output.authentication, context)
|
|
2308
2268
|
: undefined,
|
|
2309
|
-
created: output.created
|
|
2310
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created)))
|
|
2311
|
-
: undefined,
|
|
2269
|
+
created: output.created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.created))) : undefined,
|
|
2312
2270
|
description: __expectString(output.description),
|
|
2313
2271
|
endpoint: __expectString(output.endpoint),
|
|
2314
2272
|
grafanaVersion: __expectString(output.grafanaVersion),
|
|
2315
2273
|
id: __expectString(output.id),
|
|
2316
|
-
modified: output.modified
|
|
2317
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified)))
|
|
2318
|
-
: undefined,
|
|
2274
|
+
modified: output.modified != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.modified))) : undefined,
|
|
2319
2275
|
name: __expectString(output.name),
|
|
2320
|
-
notificationDestinations: output.notificationDestinations
|
|
2276
|
+
notificationDestinations: output.notificationDestinations != null
|
|
2321
2277
|
? deserializeAws_restJson1NotificationDestinationsList(output.notificationDestinations, context)
|
|
2322
2278
|
: undefined,
|
|
2323
2279
|
status: __expectString(output.status),
|
|
2324
|
-
tags: output.tags
|
|
2325
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
2326
|
-
: undefined,
|
|
2280
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
2327
2281
|
};
|
|
2328
2282
|
};
|
|
2329
2283
|
var deserializeMetadata = function (output) {
|
|
@@ -2382,5 +2336,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2382
2336
|
if (data["__type"] !== undefined) {
|
|
2383
2337
|
return sanitizeErrorCode(data["__type"]);
|
|
2384
2338
|
}
|
|
2385
|
-
return "";
|
|
2386
2339
|
};
|