@aws-sdk/client-iotdeviceadvisor 3.31.0 → 3.35.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 +39 -0
- package/{dist/cjs → dist-cjs}/IotDeviceAdvisor.js +1 -1
- package/dist-cjs/IotDeviceAdvisor.js.map +1 -0
- package/{dist/cjs → dist-cjs}/IotDeviceAdvisorClient.js +14 -14
- package/dist-cjs/IotDeviceAdvisorClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateSuiteDefinitionCommand.js +5 -5
- package/dist-cjs/commands/CreateSuiteDefinitionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteSuiteDefinitionCommand.js +5 -5
- package/dist-cjs/commands/DeleteSuiteDefinitionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetSuiteDefinitionCommand.js +5 -5
- package/dist-cjs/commands/GetSuiteDefinitionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetSuiteRunCommand.js +5 -5
- package/dist-cjs/commands/GetSuiteRunCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetSuiteRunReportCommand.js +5 -5
- package/dist-cjs/commands/GetSuiteRunReportCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListSuiteDefinitionsCommand.js +5 -5
- package/dist-cjs/commands/ListSuiteDefinitionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListSuiteRunsCommand.js +5 -5
- package/dist-cjs/commands/ListSuiteRunsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StartSuiteRunCommand.js +5 -5
- package/dist-cjs/commands/StartSuiteRunCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StopSuiteRunCommand.js +5 -5
- package/dist-cjs/commands/StopSuiteRunCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateSuiteDefinitionCommand.js +5 -5
- package/dist-cjs/commands/UpdateSuiteDefinitionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +23 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListSuiteDefinitionsPaginator.js +1 -1
- package/dist-cjs/pagination/ListSuiteDefinitionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListSuiteRunsPaginator.js +1 -1
- package/dist-cjs/pagination/ListSuiteRunsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +92 -92
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/IotDeviceAdvisor.js +2 -5
- package/dist-es/IotDeviceAdvisor.js.map +1 -0
- package/{dist/es → dist-es}/IotDeviceAdvisorClient.js +2 -10
- package/dist-es/IotDeviceAdvisorClient.js.map +1 -0
- package/{dist/es → dist-es}/commands/CreateSuiteDefinitionCommand.js +4 -29
- package/dist-es/commands/CreateSuiteDefinitionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteSuiteDefinitionCommand.js +4 -29
- package/dist-es/commands/DeleteSuiteDefinitionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetSuiteDefinitionCommand.js +4 -29
- package/dist-es/commands/GetSuiteDefinitionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetSuiteRunCommand.js +4 -29
- package/dist-es/commands/GetSuiteRunCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetSuiteRunReportCommand.js +4 -29
- package/dist-es/commands/GetSuiteRunReportCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListSuiteDefinitionsCommand.js +4 -29
- package/dist-es/commands/ListSuiteDefinitionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListSuiteRunsCommand.js +4 -30
- package/dist-es/commands/ListSuiteRunsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StartSuiteRunCommand.js +4 -29
- package/dist-es/commands/StartSuiteRunCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StopSuiteRunCommand.js +4 -29
- package/dist-es/commands/StopSuiteRunCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateSuiteDefinitionCommand.js +4 -29
- package/dist-es/commands/UpdateSuiteDefinitionCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -114
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListSuiteDefinitionsPaginator.js +17 -29
- package/dist-es/pagination/ListSuiteDefinitionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListSuiteRunsPaginator.js +17 -29
- package/dist-es/pagination/ListSuiteRunsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +252 -257
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/IotDeviceAdvisor.d.ts +2 -2
- package/{dist/types → dist-types}/IotDeviceAdvisorClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateSuiteDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteSuiteDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSuiteDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSuiteRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetSuiteRunReportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListSuiteDefinitionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListSuiteRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartSuiteRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopSuiteRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateSuiteDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSuiteDefinitionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSuiteRunsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/IotDeviceAdvisor.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/IotDeviceAdvisorClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CreateSuiteDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteSuiteDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetSuiteDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetSuiteRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetSuiteRunReportCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListSuiteDefinitionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListSuiteRunsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartSuiteRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopSuiteRunCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateSuiteDefinitionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSuiteDefinitionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSuiteRunsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{IotDeviceAdvisor.ts → src/IotDeviceAdvisor.ts} +3 -2
- package/{IotDeviceAdvisorClient.ts → src/IotDeviceAdvisorClient.ts} +43 -42
- package/{commands → src/commands}/CreateSuiteDefinitionCommand.ts +8 -7
- package/{commands → src/commands}/DeleteSuiteDefinitionCommand.ts +8 -7
- package/{commands → src/commands}/GetSuiteDefinitionCommand.ts +8 -7
- package/{commands → src/commands}/GetSuiteRunCommand.ts +8 -7
- package/{commands → src/commands}/GetSuiteRunReportCommand.ts +8 -7
- package/{commands → src/commands}/ListSuiteDefinitionsCommand.ts +8 -7
- package/{commands → src/commands}/ListSuiteRunsCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/StartSuiteRunCommand.ts +8 -7
- package/{commands → src/commands}/StopSuiteRunCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateSuiteDefinitionCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListSuiteDefinitionsPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListSuiteRunsPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_restJson1.ts +35 -34
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/IotDeviceAdvisor.js.map +0 -1
- package/dist/cjs/IotDeviceAdvisorClient.js.map +0 -1
- package/dist/cjs/commands/CreateSuiteDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteSuiteDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/GetSuiteDefinitionCommand.js.map +0 -1
- package/dist/cjs/commands/GetSuiteRunCommand.js.map +0 -1
- package/dist/cjs/commands/GetSuiteRunReportCommand.js.map +0 -1
- package/dist/cjs/commands/ListSuiteDefinitionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListSuiteRunsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartSuiteRunCommand.js.map +0 -1
- package/dist/cjs/commands/StopSuiteRunCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateSuiteDefinitionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -23
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/ListSuiteDefinitionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListSuiteRunsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/IotDeviceAdvisor.js.map +0 -1
- package/dist/es/IotDeviceAdvisorClient.js.map +0 -1
- package/dist/es/commands/CreateSuiteDefinitionCommand.js.map +0 -1
- package/dist/es/commands/DeleteSuiteDefinitionCommand.js.map +0 -1
- package/dist/es/commands/GetSuiteDefinitionCommand.js.map +0 -1
- package/dist/es/commands/GetSuiteRunCommand.js.map +0 -1
- package/dist/es/commands/GetSuiteRunReportCommand.js.map +0 -1
- package/dist/es/commands/ListSuiteDefinitionsCommand.js.map +0 -1
- package/dist/es/commands/ListSuiteRunsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StartSuiteRunCommand.js.map +0 -1
- package/dist/es/commands/StopSuiteRunCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateSuiteDefinitionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/ListSuiteDefinitionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListSuiteRunsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -8,7 +8,7 @@ const serializeAws_restJson1CreateSuiteDefinitionCommand = async (input, context
|
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify({
|
|
14
14
|
...(input.suiteDefinitionConfiguration !== undefined &&
|
|
@@ -37,7 +37,7 @@ const serializeAws_restJson1DeleteSuiteDefinitionCommand = async (input, context
|
|
|
37
37
|
if (labelValue.length <= 0) {
|
|
38
38
|
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
39
39
|
}
|
|
40
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}",
|
|
40
|
+
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
@@ -63,7 +63,7 @@ const serializeAws_restJson1GetSuiteDefinitionCommand = async (input, context) =
|
|
|
63
63
|
if (labelValue.length <= 0) {
|
|
64
64
|
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
65
65
|
}
|
|
66
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}",
|
|
66
|
+
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
69
69
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
@@ -94,7 +94,7 @@ const serializeAws_restJson1GetSuiteRunCommand = async (input, context) => {
|
|
|
94
94
|
if (labelValue.length <= 0) {
|
|
95
95
|
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
96
96
|
}
|
|
97
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}",
|
|
97
|
+
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
@@ -104,7 +104,7 @@ const serializeAws_restJson1GetSuiteRunCommand = async (input, context) => {
|
|
|
104
104
|
if (labelValue.length <= 0) {
|
|
105
105
|
throw new Error("Empty value provided for input HTTP label: suiteRunId.");
|
|
106
106
|
}
|
|
107
|
-
resolvedPath = resolvedPath.replace("{suiteRunId}",
|
|
107
|
+
resolvedPath = resolvedPath.replace("{suiteRunId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
108
108
|
}
|
|
109
109
|
else {
|
|
110
110
|
throw new Error("No value provided for input HTTP label: suiteRunId.");
|
|
@@ -131,7 +131,7 @@ const serializeAws_restJson1GetSuiteRunReportCommand = async (input, context) =>
|
|
|
131
131
|
if (labelValue.length <= 0) {
|
|
132
132
|
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
133
133
|
}
|
|
134
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}",
|
|
134
|
+
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
135
135
|
}
|
|
136
136
|
else {
|
|
137
137
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
@@ -141,7 +141,7 @@ const serializeAws_restJson1GetSuiteRunReportCommand = async (input, context) =>
|
|
|
141
141
|
if (labelValue.length <= 0) {
|
|
142
142
|
throw new Error("Empty value provided for input HTTP label: suiteRunId.");
|
|
143
143
|
}
|
|
144
|
-
resolvedPath = resolvedPath.replace("{suiteRunId}",
|
|
144
|
+
resolvedPath = resolvedPath.replace("{suiteRunId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
145
145
|
}
|
|
146
146
|
else {
|
|
147
147
|
throw new Error("No value provided for input HTTP label: suiteRunId.");
|
|
@@ -161,7 +161,7 @@ exports.serializeAws_restJson1GetSuiteRunReportCommand = serializeAws_restJson1G
|
|
|
161
161
|
const serializeAws_restJson1ListSuiteDefinitionsCommand = async (input, context) => {
|
|
162
162
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
163
|
const headers = {};
|
|
164
|
-
|
|
164
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/suiteDefinitions";
|
|
165
165
|
const query = {
|
|
166
166
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
167
167
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
@@ -182,7 +182,7 @@ exports.serializeAws_restJson1ListSuiteDefinitionsCommand = serializeAws_restJso
|
|
|
182
182
|
const serializeAws_restJson1ListSuiteRunsCommand = async (input, context) => {
|
|
183
183
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
184
184
|
const headers = {};
|
|
185
|
-
|
|
185
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/suiteRuns";
|
|
186
186
|
const query = {
|
|
187
187
|
...(input.suiteDefinitionId !== undefined && { suiteDefinitionId: input.suiteDefinitionId }),
|
|
188
188
|
...(input.suiteDefinitionVersion !== undefined && { suiteDefinitionVersion: input.suiteDefinitionVersion }),
|
|
@@ -211,7 +211,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
211
211
|
if (labelValue.length <= 0) {
|
|
212
212
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
213
213
|
}
|
|
214
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
214
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
217
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -240,7 +240,7 @@ const serializeAws_restJson1StartSuiteRunCommand = async (input, context) => {
|
|
|
240
240
|
if (labelValue.length <= 0) {
|
|
241
241
|
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
242
242
|
}
|
|
243
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}",
|
|
243
|
+
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
244
244
|
}
|
|
245
245
|
else {
|
|
246
246
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
@@ -276,7 +276,7 @@ const serializeAws_restJson1StopSuiteRunCommand = async (input, context) => {
|
|
|
276
276
|
if (labelValue.length <= 0) {
|
|
277
277
|
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
278
278
|
}
|
|
279
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}",
|
|
279
|
+
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
280
280
|
}
|
|
281
281
|
else {
|
|
282
282
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
@@ -286,7 +286,7 @@ const serializeAws_restJson1StopSuiteRunCommand = async (input, context) => {
|
|
|
286
286
|
if (labelValue.length <= 0) {
|
|
287
287
|
throw new Error("Empty value provided for input HTTP label: suiteRunId.");
|
|
288
288
|
}
|
|
289
|
-
resolvedPath = resolvedPath.replace("{suiteRunId}",
|
|
289
|
+
resolvedPath = resolvedPath.replace("{suiteRunId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
290
290
|
}
|
|
291
291
|
else {
|
|
292
292
|
throw new Error("No value provided for input HTTP label: suiteRunId.");
|
|
@@ -314,7 +314,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
314
314
|
if (labelValue.length <= 0) {
|
|
315
315
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
316
316
|
}
|
|
317
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
317
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
318
318
|
}
|
|
319
319
|
else {
|
|
320
320
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -343,7 +343,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
343
343
|
if (labelValue.length <= 0) {
|
|
344
344
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
345
345
|
}
|
|
346
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
346
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
347
347
|
}
|
|
348
348
|
else {
|
|
349
349
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -375,7 +375,7 @@ const serializeAws_restJson1UpdateSuiteDefinitionCommand = async (input, context
|
|
|
375
375
|
if (labelValue.length <= 0) {
|
|
376
376
|
throw new Error("Empty value provided for input HTTP label: suiteDefinitionId.");
|
|
377
377
|
}
|
|
378
|
-
resolvedPath = resolvedPath.replace("{suiteDefinitionId}",
|
|
378
|
+
resolvedPath = resolvedPath.replace("{suiteDefinitionId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
379
379
|
}
|
|
380
380
|
else {
|
|
381
381
|
throw new Error("No value provided for input HTTP label: suiteDefinitionId.");
|
|
@@ -409,18 +409,18 @@ const deserializeAws_restJson1CreateSuiteDefinitionCommand = async (output, cont
|
|
|
409
409
|
suiteDefinitionId: undefined,
|
|
410
410
|
suiteDefinitionName: undefined,
|
|
411
411
|
};
|
|
412
|
-
const data =
|
|
412
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
413
413
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
414
|
-
contents.createdAt =
|
|
414
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.createdAt)));
|
|
415
415
|
}
|
|
416
416
|
if (data.suiteDefinitionArn !== undefined && data.suiteDefinitionArn !== null) {
|
|
417
|
-
contents.suiteDefinitionArn =
|
|
417
|
+
contents.suiteDefinitionArn = smithy_client_1.expectString(data.suiteDefinitionArn);
|
|
418
418
|
}
|
|
419
419
|
if (data.suiteDefinitionId !== undefined && data.suiteDefinitionId !== null) {
|
|
420
|
-
contents.suiteDefinitionId =
|
|
420
|
+
contents.suiteDefinitionId = smithy_client_1.expectString(data.suiteDefinitionId);
|
|
421
421
|
}
|
|
422
422
|
if (data.suiteDefinitionName !== undefined && data.suiteDefinitionName !== null) {
|
|
423
|
-
contents.suiteDefinitionName =
|
|
423
|
+
contents.suiteDefinitionName = smithy_client_1.expectString(data.suiteDefinitionName);
|
|
424
424
|
}
|
|
425
425
|
return Promise.resolve(contents);
|
|
426
426
|
};
|
|
@@ -533,27 +533,27 @@ const deserializeAws_restJson1GetSuiteDefinitionCommand = async (output, context
|
|
|
533
533
|
suiteDefinitionVersion: undefined,
|
|
534
534
|
tags: undefined,
|
|
535
535
|
};
|
|
536
|
-
const data =
|
|
536
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
537
537
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
538
|
-
contents.createdAt =
|
|
538
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.createdAt)));
|
|
539
539
|
}
|
|
540
540
|
if (data.lastModifiedAt !== undefined && data.lastModifiedAt !== null) {
|
|
541
|
-
contents.lastModifiedAt =
|
|
541
|
+
contents.lastModifiedAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastModifiedAt)));
|
|
542
542
|
}
|
|
543
543
|
if (data.latestVersion !== undefined && data.latestVersion !== null) {
|
|
544
|
-
contents.latestVersion =
|
|
544
|
+
contents.latestVersion = smithy_client_1.expectString(data.latestVersion);
|
|
545
545
|
}
|
|
546
546
|
if (data.suiteDefinitionArn !== undefined && data.suiteDefinitionArn !== null) {
|
|
547
|
-
contents.suiteDefinitionArn =
|
|
547
|
+
contents.suiteDefinitionArn = smithy_client_1.expectString(data.suiteDefinitionArn);
|
|
548
548
|
}
|
|
549
549
|
if (data.suiteDefinitionConfiguration !== undefined && data.suiteDefinitionConfiguration !== null) {
|
|
550
550
|
contents.suiteDefinitionConfiguration = deserializeAws_restJson1SuiteDefinitionConfiguration(data.suiteDefinitionConfiguration, context);
|
|
551
551
|
}
|
|
552
552
|
if (data.suiteDefinitionId !== undefined && data.suiteDefinitionId !== null) {
|
|
553
|
-
contents.suiteDefinitionId =
|
|
553
|
+
contents.suiteDefinitionId = smithy_client_1.expectString(data.suiteDefinitionId);
|
|
554
554
|
}
|
|
555
555
|
if (data.suiteDefinitionVersion !== undefined && data.suiteDefinitionVersion !== null) {
|
|
556
|
-
contents.suiteDefinitionVersion =
|
|
556
|
+
contents.suiteDefinitionVersion = smithy_client_1.expectString(data.suiteDefinitionVersion);
|
|
557
557
|
}
|
|
558
558
|
if (data.tags !== undefined && data.tags !== null) {
|
|
559
559
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -628,33 +628,33 @@ const deserializeAws_restJson1GetSuiteRunCommand = async (output, context) => {
|
|
|
628
628
|
tags: undefined,
|
|
629
629
|
testResult: undefined,
|
|
630
630
|
};
|
|
631
|
-
const data =
|
|
631
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
632
632
|
if (data.endTime !== undefined && data.endTime !== null) {
|
|
633
|
-
contents.endTime =
|
|
633
|
+
contents.endTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.endTime)));
|
|
634
634
|
}
|
|
635
635
|
if (data.errorReason !== undefined && data.errorReason !== null) {
|
|
636
|
-
contents.errorReason =
|
|
636
|
+
contents.errorReason = smithy_client_1.expectString(data.errorReason);
|
|
637
637
|
}
|
|
638
638
|
if (data.startTime !== undefined && data.startTime !== null) {
|
|
639
|
-
contents.startTime =
|
|
639
|
+
contents.startTime = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.startTime)));
|
|
640
640
|
}
|
|
641
641
|
if (data.status !== undefined && data.status !== null) {
|
|
642
|
-
contents.status =
|
|
642
|
+
contents.status = smithy_client_1.expectString(data.status);
|
|
643
643
|
}
|
|
644
644
|
if (data.suiteDefinitionId !== undefined && data.suiteDefinitionId !== null) {
|
|
645
|
-
contents.suiteDefinitionId =
|
|
645
|
+
contents.suiteDefinitionId = smithy_client_1.expectString(data.suiteDefinitionId);
|
|
646
646
|
}
|
|
647
647
|
if (data.suiteDefinitionVersion !== undefined && data.suiteDefinitionVersion !== null) {
|
|
648
|
-
contents.suiteDefinitionVersion =
|
|
648
|
+
contents.suiteDefinitionVersion = smithy_client_1.expectString(data.suiteDefinitionVersion);
|
|
649
649
|
}
|
|
650
650
|
if (data.suiteRunArn !== undefined && data.suiteRunArn !== null) {
|
|
651
|
-
contents.suiteRunArn =
|
|
651
|
+
contents.suiteRunArn = smithy_client_1.expectString(data.suiteRunArn);
|
|
652
652
|
}
|
|
653
653
|
if (data.suiteRunConfiguration !== undefined && data.suiteRunConfiguration !== null) {
|
|
654
654
|
contents.suiteRunConfiguration = deserializeAws_restJson1SuiteRunConfiguration(data.suiteRunConfiguration, context);
|
|
655
655
|
}
|
|
656
656
|
if (data.suiteRunId !== undefined && data.suiteRunId !== null) {
|
|
657
|
-
contents.suiteRunId =
|
|
657
|
+
contents.suiteRunId = smithy_client_1.expectString(data.suiteRunId);
|
|
658
658
|
}
|
|
659
659
|
if (data.tags !== undefined && data.tags !== null) {
|
|
660
660
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
@@ -722,9 +722,9 @@ const deserializeAws_restJson1GetSuiteRunReportCommand = async (output, context)
|
|
|
722
722
|
$metadata: deserializeMetadata(output),
|
|
723
723
|
qualificationReportDownloadUrl: undefined,
|
|
724
724
|
};
|
|
725
|
-
const data =
|
|
725
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
726
726
|
if (data.qualificationReportDownloadUrl !== undefined && data.qualificationReportDownloadUrl !== null) {
|
|
727
|
-
contents.qualificationReportDownloadUrl =
|
|
727
|
+
contents.qualificationReportDownloadUrl = smithy_client_1.expectString(data.qualificationReportDownloadUrl);
|
|
728
728
|
}
|
|
729
729
|
return Promise.resolve(contents);
|
|
730
730
|
};
|
|
@@ -787,9 +787,9 @@ const deserializeAws_restJson1ListSuiteDefinitionsCommand = async (output, conte
|
|
|
787
787
|
nextToken: undefined,
|
|
788
788
|
suiteDefinitionInformationList: undefined,
|
|
789
789
|
};
|
|
790
|
-
const data =
|
|
790
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
791
791
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
792
|
-
contents.nextToken =
|
|
792
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
793
793
|
}
|
|
794
794
|
if (data.suiteDefinitionInformationList !== undefined && data.suiteDefinitionInformationList !== null) {
|
|
795
795
|
contents.suiteDefinitionInformationList = deserializeAws_restJson1SuiteDefinitionInformationList(data.suiteDefinitionInformationList, context);
|
|
@@ -847,9 +847,9 @@ const deserializeAws_restJson1ListSuiteRunsCommand = async (output, context) =>
|
|
|
847
847
|
nextToken: undefined,
|
|
848
848
|
suiteRunsList: undefined,
|
|
849
849
|
};
|
|
850
|
-
const data =
|
|
850
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
851
851
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
852
|
-
contents.nextToken =
|
|
852
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
853
853
|
}
|
|
854
854
|
if (data.suiteRunsList !== undefined && data.suiteRunsList !== null) {
|
|
855
855
|
contents.suiteRunsList = deserializeAws_restJson1SuiteRunsList(data.suiteRunsList, context);
|
|
@@ -906,7 +906,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
906
906
|
$metadata: deserializeMetadata(output),
|
|
907
907
|
tags: undefined,
|
|
908
908
|
};
|
|
909
|
-
const data =
|
|
909
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
910
910
|
if (data.tags !== undefined && data.tags !== null) {
|
|
911
911
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
912
912
|
}
|
|
@@ -972,15 +972,15 @@ const deserializeAws_restJson1StartSuiteRunCommand = async (output, context) =>
|
|
|
972
972
|
suiteRunArn: undefined,
|
|
973
973
|
suiteRunId: undefined,
|
|
974
974
|
};
|
|
975
|
-
const data =
|
|
975
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
976
976
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
977
|
-
contents.createdAt =
|
|
977
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.createdAt)));
|
|
978
978
|
}
|
|
979
979
|
if (data.suiteRunArn !== undefined && data.suiteRunArn !== null) {
|
|
980
|
-
contents.suiteRunArn =
|
|
980
|
+
contents.suiteRunArn = smithy_client_1.expectString(data.suiteRunArn);
|
|
981
981
|
}
|
|
982
982
|
if (data.suiteRunId !== undefined && data.suiteRunId !== null) {
|
|
983
|
-
contents.suiteRunId =
|
|
983
|
+
contents.suiteRunId = smithy_client_1.expectString(data.suiteRunId);
|
|
984
984
|
}
|
|
985
985
|
return Promise.resolve(contents);
|
|
986
986
|
};
|
|
@@ -1227,24 +1227,24 @@ const deserializeAws_restJson1UpdateSuiteDefinitionCommand = async (output, cont
|
|
|
1227
1227
|
suiteDefinitionName: undefined,
|
|
1228
1228
|
suiteDefinitionVersion: undefined,
|
|
1229
1229
|
};
|
|
1230
|
-
const data =
|
|
1230
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1231
1231
|
if (data.createdAt !== undefined && data.createdAt !== null) {
|
|
1232
|
-
contents.createdAt =
|
|
1232
|
+
contents.createdAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.createdAt)));
|
|
1233
1233
|
}
|
|
1234
1234
|
if (data.lastUpdatedAt !== undefined && data.lastUpdatedAt !== null) {
|
|
1235
|
-
contents.lastUpdatedAt =
|
|
1235
|
+
contents.lastUpdatedAt = smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(data.lastUpdatedAt)));
|
|
1236
1236
|
}
|
|
1237
1237
|
if (data.suiteDefinitionArn !== undefined && data.suiteDefinitionArn !== null) {
|
|
1238
|
-
contents.suiteDefinitionArn =
|
|
1238
|
+
contents.suiteDefinitionArn = smithy_client_1.expectString(data.suiteDefinitionArn);
|
|
1239
1239
|
}
|
|
1240
1240
|
if (data.suiteDefinitionId !== undefined && data.suiteDefinitionId !== null) {
|
|
1241
|
-
contents.suiteDefinitionId =
|
|
1241
|
+
contents.suiteDefinitionId = smithy_client_1.expectString(data.suiteDefinitionId);
|
|
1242
1242
|
}
|
|
1243
1243
|
if (data.suiteDefinitionName !== undefined && data.suiteDefinitionName !== null) {
|
|
1244
|
-
contents.suiteDefinitionName =
|
|
1244
|
+
contents.suiteDefinitionName = smithy_client_1.expectString(data.suiteDefinitionName);
|
|
1245
1245
|
}
|
|
1246
1246
|
if (data.suiteDefinitionVersion !== undefined && data.suiteDefinitionVersion !== null) {
|
|
1247
|
-
contents.suiteDefinitionVersion =
|
|
1247
|
+
contents.suiteDefinitionVersion = smithy_client_1.expectString(data.suiteDefinitionVersion);
|
|
1248
1248
|
}
|
|
1249
1249
|
return Promise.resolve(contents);
|
|
1250
1250
|
};
|
|
@@ -1299,7 +1299,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1299
1299
|
};
|
|
1300
1300
|
const data = parsedOutput.body;
|
|
1301
1301
|
if (data.message !== undefined && data.message !== null) {
|
|
1302
|
-
contents.message =
|
|
1302
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
1303
1303
|
}
|
|
1304
1304
|
return contents;
|
|
1305
1305
|
};
|
|
@@ -1312,7 +1312,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1312
1312
|
};
|
|
1313
1313
|
const data = parsedOutput.body;
|
|
1314
1314
|
if (data.message !== undefined && data.message !== null) {
|
|
1315
|
-
contents.message =
|
|
1315
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
1316
1316
|
}
|
|
1317
1317
|
return contents;
|
|
1318
1318
|
};
|
|
@@ -1325,7 +1325,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1325
1325
|
};
|
|
1326
1326
|
const data = parsedOutput.body;
|
|
1327
1327
|
if (data.message !== undefined && data.message !== null) {
|
|
1328
|
-
contents.message =
|
|
1328
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
1329
1329
|
}
|
|
1330
1330
|
return contents;
|
|
1331
1331
|
};
|
|
@@ -1338,7 +1338,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1338
1338
|
};
|
|
1339
1339
|
const data = parsedOutput.body;
|
|
1340
1340
|
if (data.message !== undefined && data.message !== null) {
|
|
1341
|
-
contents.message =
|
|
1341
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
1342
1342
|
}
|
|
1343
1343
|
return contents;
|
|
1344
1344
|
};
|
|
@@ -1407,8 +1407,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
1407
1407
|
};
|
|
1408
1408
|
const deserializeAws_restJson1DeviceUnderTest = (output, context) => {
|
|
1409
1409
|
return {
|
|
1410
|
-
certificateArn:
|
|
1411
|
-
thingArn:
|
|
1410
|
+
certificateArn: smithy_client_1.expectString(output.certificateArn),
|
|
1411
|
+
thingArn: smithy_client_1.expectString(output.thingArn),
|
|
1412
1412
|
};
|
|
1413
1413
|
};
|
|
1414
1414
|
const deserializeAws_restJson1DeviceUnderTestList = (output, context) => {
|
|
@@ -1423,8 +1423,8 @@ const deserializeAws_restJson1DeviceUnderTestList = (output, context) => {
|
|
|
1423
1423
|
};
|
|
1424
1424
|
const deserializeAws_restJson1GroupResult = (output, context) => {
|
|
1425
1425
|
return {
|
|
1426
|
-
groupId:
|
|
1427
|
-
groupName:
|
|
1426
|
+
groupId: smithy_client_1.expectString(output.groupId),
|
|
1427
|
+
groupName: smithy_client_1.expectString(output.groupName),
|
|
1428
1428
|
tests: output.tests !== undefined && output.tests !== null
|
|
1429
1429
|
? deserializeAws_restJson1TestCaseRuns(output.tests, context)
|
|
1430
1430
|
: undefined,
|
|
@@ -1447,31 +1447,31 @@ const deserializeAws_restJson1SelectedTestList = (output, context) => {
|
|
|
1447
1447
|
if (entry === null) {
|
|
1448
1448
|
return null;
|
|
1449
1449
|
}
|
|
1450
|
-
return
|
|
1450
|
+
return smithy_client_1.expectString(entry);
|
|
1451
1451
|
});
|
|
1452
1452
|
};
|
|
1453
1453
|
const deserializeAws_restJson1SuiteDefinitionConfiguration = (output, context) => {
|
|
1454
1454
|
return {
|
|
1455
|
-
devicePermissionRoleArn:
|
|
1455
|
+
devicePermissionRoleArn: smithy_client_1.expectString(output.devicePermissionRoleArn),
|
|
1456
1456
|
devices: output.devices !== undefined && output.devices !== null
|
|
1457
1457
|
? deserializeAws_restJson1DeviceUnderTestList(output.devices, context)
|
|
1458
1458
|
: undefined,
|
|
1459
|
-
intendedForQualification:
|
|
1460
|
-
rootGroup:
|
|
1461
|
-
suiteDefinitionName:
|
|
1459
|
+
intendedForQualification: smithy_client_1.expectBoolean(output.intendedForQualification),
|
|
1460
|
+
rootGroup: smithy_client_1.expectString(output.rootGroup),
|
|
1461
|
+
suiteDefinitionName: smithy_client_1.expectString(output.suiteDefinitionName),
|
|
1462
1462
|
};
|
|
1463
1463
|
};
|
|
1464
1464
|
const deserializeAws_restJson1SuiteDefinitionInformation = (output, context) => {
|
|
1465
1465
|
return {
|
|
1466
1466
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
1467
|
-
?
|
|
1467
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
1468
1468
|
: undefined,
|
|
1469
1469
|
defaultDevices: output.defaultDevices !== undefined && output.defaultDevices !== null
|
|
1470
1470
|
? deserializeAws_restJson1DeviceUnderTestList(output.defaultDevices, context)
|
|
1471
1471
|
: undefined,
|
|
1472
|
-
intendedForQualification:
|
|
1473
|
-
suiteDefinitionId:
|
|
1474
|
-
suiteDefinitionName:
|
|
1472
|
+
intendedForQualification: smithy_client_1.expectBoolean(output.intendedForQualification),
|
|
1473
|
+
suiteDefinitionId: smithy_client_1.expectString(output.suiteDefinitionId),
|
|
1474
|
+
suiteDefinitionName: smithy_client_1.expectString(output.suiteDefinitionName),
|
|
1475
1475
|
};
|
|
1476
1476
|
};
|
|
1477
1477
|
const deserializeAws_restJson1SuiteDefinitionInformationList = (output, context) => {
|
|
@@ -1497,21 +1497,21 @@ const deserializeAws_restJson1SuiteRunConfiguration = (output, context) => {
|
|
|
1497
1497
|
const deserializeAws_restJson1SuiteRunInformation = (output, context) => {
|
|
1498
1498
|
return {
|
|
1499
1499
|
createdAt: output.createdAt !== undefined && output.createdAt !== null
|
|
1500
|
-
?
|
|
1500
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdAt)))
|
|
1501
1501
|
: undefined,
|
|
1502
1502
|
endAt: output.endAt !== undefined && output.endAt !== null
|
|
1503
|
-
?
|
|
1503
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endAt)))
|
|
1504
1504
|
: undefined,
|
|
1505
|
-
failed:
|
|
1506
|
-
passed:
|
|
1505
|
+
failed: smithy_client_1.expectInt32(output.failed),
|
|
1506
|
+
passed: smithy_client_1.expectInt32(output.passed),
|
|
1507
1507
|
startedAt: output.startedAt !== undefined && output.startedAt !== null
|
|
1508
|
-
?
|
|
1508
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startedAt)))
|
|
1509
1509
|
: undefined,
|
|
1510
|
-
status:
|
|
1511
|
-
suiteDefinitionId:
|
|
1512
|
-
suiteDefinitionName:
|
|
1513
|
-
suiteDefinitionVersion:
|
|
1514
|
-
suiteRunId:
|
|
1510
|
+
status: smithy_client_1.expectString(output.status),
|
|
1511
|
+
suiteDefinitionId: smithy_client_1.expectString(output.suiteDefinitionId),
|
|
1512
|
+
suiteDefinitionName: smithy_client_1.expectString(output.suiteDefinitionName),
|
|
1513
|
+
suiteDefinitionVersion: smithy_client_1.expectString(output.suiteDefinitionVersion),
|
|
1514
|
+
suiteRunId: smithy_client_1.expectString(output.suiteRunId),
|
|
1515
1515
|
};
|
|
1516
1516
|
};
|
|
1517
1517
|
const deserializeAws_restJson1SuiteRunsList = (output, context) => {
|
|
@@ -1531,25 +1531,25 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
return {
|
|
1533
1533
|
...acc,
|
|
1534
|
-
[key]:
|
|
1534
|
+
[key]: smithy_client_1.expectString(value),
|
|
1535
1535
|
};
|
|
1536
1536
|
}, {});
|
|
1537
1537
|
};
|
|
1538
1538
|
const deserializeAws_restJson1TestCaseRun = (output, context) => {
|
|
1539
1539
|
return {
|
|
1540
1540
|
endTime: output.endTime !== undefined && output.endTime !== null
|
|
1541
|
-
?
|
|
1541
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
|
|
1542
1542
|
: undefined,
|
|
1543
|
-
failure:
|
|
1544
|
-
logUrl:
|
|
1543
|
+
failure: smithy_client_1.expectString(output.failure),
|
|
1544
|
+
logUrl: smithy_client_1.expectString(output.logUrl),
|
|
1545
1545
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
1546
|
-
?
|
|
1546
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
|
|
1547
1547
|
: undefined,
|
|
1548
|
-
status:
|
|
1549
|
-
testCaseDefinitionId:
|
|
1550
|
-
testCaseDefinitionName:
|
|
1551
|
-
testCaseRunId:
|
|
1552
|
-
warnings:
|
|
1548
|
+
status: smithy_client_1.expectString(output.status),
|
|
1549
|
+
testCaseDefinitionId: smithy_client_1.expectString(output.testCaseDefinitionId),
|
|
1550
|
+
testCaseDefinitionName: smithy_client_1.expectString(output.testCaseDefinitionName),
|
|
1551
|
+
testCaseRunId: smithy_client_1.expectString(output.testCaseRunId),
|
|
1552
|
+
warnings: smithy_client_1.expectString(output.warnings),
|
|
1553
1553
|
};
|
|
1554
1554
|
};
|
|
1555
1555
|
const deserializeAws_restJson1TestCaseRuns = (output, context) => {
|