@aws-sdk/client-iottwinmaker 3.474.0 → 3.477.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/dist-cjs/protocols/Aws_restJson1.js +256 -513
- package/dist-es/protocols/Aws_restJson1.js +258 -515
- package/package.json +5 -4
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_DeleteEntityCommand = exports.de_DeleteComponentTypeCommand = exports.de_CreateWorkspaceCommand = exports.de_CreateSyncJobCommand = exports.de_CreateSceneCommand = exports.de_CreateMetadataTransferJobCommand = exports.de_CreateEntityCommand = exports.de_CreateComponentTypeCommand = exports.de_CancelMetadataTransferJobCommand = exports.de_BatchPutPropertyValuesCommand = exports.se_UpdateWorkspaceCommand = exports.se_UpdateSceneCommand = exports.se_UpdatePricingPlanCommand = exports.se_UpdateEntityCommand = exports.se_UpdateComponentTypeCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListWorkspacesCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSyncResourcesCommand = exports.se_ListSyncJobsCommand = exports.se_ListScenesCommand = exports.se_ListPropertiesCommand = exports.se_ListMetadataTransferJobsCommand = exports.se_ListEntitiesCommand = exports.se_ListComponentTypesCommand = exports.se_ListComponentsCommand = exports.se_GetWorkspaceCommand = exports.se_GetSyncJobCommand = exports.se_GetSceneCommand = exports.se_GetPropertyValueHistoryCommand = exports.se_GetPropertyValueCommand = exports.se_GetPricingPlanCommand = exports.se_GetMetadataTransferJobCommand = exports.se_GetEntityCommand = exports.se_GetComponentTypeCommand = exports.se_ExecuteQueryCommand = exports.se_DeleteWorkspaceCommand = exports.se_DeleteSyncJobCommand = exports.se_DeleteSceneCommand = exports.se_DeleteEntityCommand = exports.se_DeleteComponentTypeCommand = exports.se_CreateWorkspaceCommand = exports.se_CreateSyncJobCommand = exports.se_CreateSceneCommand = exports.se_CreateMetadataTransferJobCommand = exports.se_CreateEntityCommand = exports.se_CreateComponentTypeCommand = exports.se_CancelMetadataTransferJobCommand = exports.se_BatchPutPropertyValuesCommand = void 0;
|
|
4
4
|
exports.de_UpdateWorkspaceCommand = exports.de_UpdateSceneCommand = exports.de_UpdatePricingPlanCommand = exports.de_UpdateEntityCommand = exports.de_UpdateComponentTypeCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListWorkspacesCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSyncResourcesCommand = exports.de_ListSyncJobsCommand = exports.de_ListScenesCommand = exports.de_ListPropertiesCommand = exports.de_ListMetadataTransferJobsCommand = exports.de_ListEntitiesCommand = exports.de_ListComponentTypesCommand = exports.de_ListComponentsCommand = exports.de_GetWorkspaceCommand = exports.de_GetSyncJobCommand = exports.de_GetSceneCommand = exports.de_GetPropertyValueHistoryCommand = exports.de_GetPropertyValueCommand = exports.de_GetPricingPlanCommand = exports.de_GetMetadataTransferJobCommand = exports.de_GetEntityCommand = exports.de_GetComponentTypeCommand = exports.de_ExecuteQueryCommand = exports.de_DeleteWorkspaceCommand = exports.de_DeleteSyncJobCommand = exports.de_DeleteSceneCommand = void 0;
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
5
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
8
|
const IoTTwinMakerServiceException_1 = require("../models/IoTTwinMakerServiceException");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
9
10
|
const se_BatchPutPropertyValuesCommand = async (input, context) => {
|
|
10
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
12
|
const headers = {
|
|
12
13
|
"content-type": "application/json",
|
|
13
14
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
15
|
+
b.bp("/workspaces/{workspaceId}/entity-properties");
|
|
16
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
19
|
entries: (_) => se_Entries(_, context),
|
|
@@ -25,23 +25,16 @@ const se_BatchPutPropertyValuesCommand = async (input, context) => {
|
|
|
25
25
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
port,
|
|
32
|
-
method: "POST",
|
|
33
|
-
headers,
|
|
34
|
-
path: resolvedPath,
|
|
35
|
-
body,
|
|
36
|
-
});
|
|
28
|
+
b.hn(resolvedHostname);
|
|
29
|
+
b.m("POST").h(headers).b(body);
|
|
30
|
+
return b.build();
|
|
37
31
|
};
|
|
38
32
|
exports.se_BatchPutPropertyValuesCommand = se_BatchPutPropertyValuesCommand;
|
|
39
33
|
const se_CancelMetadataTransferJobCommand = async (input, context) => {
|
|
40
|
-
const
|
|
34
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
41
35
|
const headers = {};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
|
|
36
|
+
b.bp("/metadata-transfer-jobs/{metadataTransferJobId}/cancel");
|
|
37
|
+
b.p("metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
|
|
45
38
|
let body;
|
|
46
39
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
47
40
|
if (context.disableHostPrefix !== true) {
|
|
@@ -50,26 +43,19 @@ const se_CancelMetadataTransferJobCommand = async (input, context) => {
|
|
|
50
43
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
51
44
|
}
|
|
52
45
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
port,
|
|
57
|
-
method: "PUT",
|
|
58
|
-
headers,
|
|
59
|
-
path: resolvedPath,
|
|
60
|
-
body,
|
|
61
|
-
});
|
|
46
|
+
b.hn(resolvedHostname);
|
|
47
|
+
b.m("PUT").h(headers).b(body);
|
|
48
|
+
return b.build();
|
|
62
49
|
};
|
|
63
50
|
exports.se_CancelMetadataTransferJobCommand = se_CancelMetadataTransferJobCommand;
|
|
64
51
|
const se_CreateComponentTypeCommand = async (input, context) => {
|
|
65
|
-
const
|
|
52
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
66
53
|
const headers = {
|
|
67
54
|
"content-type": "application/json",
|
|
68
55
|
};
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
56
|
+
b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}");
|
|
57
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
58
|
+
b.p("componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
73
59
|
let body;
|
|
74
60
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
75
61
|
componentTypeName: [],
|
|
@@ -89,24 +75,18 @@ const se_CreateComponentTypeCommand = async (input, context) => {
|
|
|
89
75
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
90
76
|
}
|
|
91
77
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
port,
|
|
96
|
-
method: "POST",
|
|
97
|
-
headers,
|
|
98
|
-
path: resolvedPath,
|
|
99
|
-
body,
|
|
100
|
-
});
|
|
78
|
+
b.hn(resolvedHostname);
|
|
79
|
+
b.m("POST").h(headers).b(body);
|
|
80
|
+
return b.build();
|
|
101
81
|
};
|
|
102
82
|
exports.se_CreateComponentTypeCommand = se_CreateComponentTypeCommand;
|
|
103
83
|
const se_CreateEntityCommand = async (input, context) => {
|
|
104
|
-
const
|
|
84
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
105
85
|
const headers = {
|
|
106
86
|
"content-type": "application/json",
|
|
107
87
|
};
|
|
108
|
-
|
|
109
|
-
|
|
88
|
+
b.bp("/workspaces/{workspaceId}/entities");
|
|
89
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
110
90
|
let body;
|
|
111
91
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
112
92
|
components: (_) => se_ComponentsMapRequest(_, context),
|
|
@@ -124,23 +104,17 @@ const se_CreateEntityCommand = async (input, context) => {
|
|
|
124
104
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
125
105
|
}
|
|
126
106
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
port,
|
|
131
|
-
method: "POST",
|
|
132
|
-
headers,
|
|
133
|
-
path: resolvedPath,
|
|
134
|
-
body,
|
|
135
|
-
});
|
|
107
|
+
b.hn(resolvedHostname);
|
|
108
|
+
b.m("POST").h(headers).b(body);
|
|
109
|
+
return b.build();
|
|
136
110
|
};
|
|
137
111
|
exports.se_CreateEntityCommand = se_CreateEntityCommand;
|
|
138
112
|
const se_CreateMetadataTransferJobCommand = async (input, context) => {
|
|
139
|
-
const
|
|
113
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
140
114
|
const headers = {
|
|
141
115
|
"content-type": "application/json",
|
|
142
116
|
};
|
|
143
|
-
|
|
117
|
+
b.bp("/metadata-transfer-jobs");
|
|
144
118
|
let body;
|
|
145
119
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
120
|
description: [],
|
|
@@ -155,24 +129,18 @@ const se_CreateMetadataTransferJobCommand = async (input, context) => {
|
|
|
155
129
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
156
130
|
}
|
|
157
131
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
port,
|
|
162
|
-
method: "POST",
|
|
163
|
-
headers,
|
|
164
|
-
path: resolvedPath,
|
|
165
|
-
body,
|
|
166
|
-
});
|
|
132
|
+
b.hn(resolvedHostname);
|
|
133
|
+
b.m("POST").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
167
135
|
};
|
|
168
136
|
exports.se_CreateMetadataTransferJobCommand = se_CreateMetadataTransferJobCommand;
|
|
169
137
|
const se_CreateSceneCommand = async (input, context) => {
|
|
170
|
-
const
|
|
138
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
171
139
|
const headers = {
|
|
172
140
|
"content-type": "application/json",
|
|
173
141
|
};
|
|
174
|
-
|
|
175
|
-
|
|
142
|
+
b.bp("/workspaces/{workspaceId}/scenes");
|
|
143
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
176
144
|
let body;
|
|
177
145
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
178
146
|
capabilities: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -189,26 +157,19 @@ const se_CreateSceneCommand = async (input, context) => {
|
|
|
189
157
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
190
158
|
}
|
|
191
159
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
port,
|
|
196
|
-
method: "POST",
|
|
197
|
-
headers,
|
|
198
|
-
path: resolvedPath,
|
|
199
|
-
body,
|
|
200
|
-
});
|
|
160
|
+
b.hn(resolvedHostname);
|
|
161
|
+
b.m("POST").h(headers).b(body);
|
|
162
|
+
return b.build();
|
|
201
163
|
};
|
|
202
164
|
exports.se_CreateSceneCommand = se_CreateSceneCommand;
|
|
203
165
|
const se_CreateSyncJobCommand = async (input, context) => {
|
|
204
|
-
const
|
|
166
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
205
167
|
const headers = {
|
|
206
168
|
"content-type": "application/json",
|
|
207
169
|
};
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
|
|
170
|
+
b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}");
|
|
171
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
172
|
+
b.p("syncSource", () => input.syncSource, "{syncSource}", false);
|
|
212
173
|
let body;
|
|
213
174
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
214
175
|
syncRole: [],
|
|
@@ -221,24 +182,18 @@ const se_CreateSyncJobCommand = async (input, context) => {
|
|
|
221
182
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
222
183
|
}
|
|
223
184
|
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
port,
|
|
228
|
-
method: "POST",
|
|
229
|
-
headers,
|
|
230
|
-
path: resolvedPath,
|
|
231
|
-
body,
|
|
232
|
-
});
|
|
185
|
+
b.hn(resolvedHostname);
|
|
186
|
+
b.m("POST").h(headers).b(body);
|
|
187
|
+
return b.build();
|
|
233
188
|
};
|
|
234
189
|
exports.se_CreateSyncJobCommand = se_CreateSyncJobCommand;
|
|
235
190
|
const se_CreateWorkspaceCommand = async (input, context) => {
|
|
236
|
-
const
|
|
191
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
237
192
|
const headers = {
|
|
238
193
|
"content-type": "application/json",
|
|
239
194
|
};
|
|
240
|
-
|
|
241
|
-
|
|
195
|
+
b.bp("/workspaces/{workspaceId}");
|
|
196
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
242
197
|
let body;
|
|
243
198
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
244
199
|
description: [],
|
|
@@ -253,24 +208,17 @@ const se_CreateWorkspaceCommand = async (input, context) => {
|
|
|
253
208
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
254
209
|
}
|
|
255
210
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
port,
|
|
260
|
-
method: "POST",
|
|
261
|
-
headers,
|
|
262
|
-
path: resolvedPath,
|
|
263
|
-
body,
|
|
264
|
-
});
|
|
211
|
+
b.hn(resolvedHostname);
|
|
212
|
+
b.m("POST").h(headers).b(body);
|
|
213
|
+
return b.build();
|
|
265
214
|
};
|
|
266
215
|
exports.se_CreateWorkspaceCommand = se_CreateWorkspaceCommand;
|
|
267
216
|
const se_DeleteComponentTypeCommand = async (input, context) => {
|
|
268
|
-
const
|
|
217
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
269
218
|
const headers = {};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
219
|
+
b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}");
|
|
220
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
221
|
+
b.p("componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
274
222
|
let body;
|
|
275
223
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
276
224
|
if (context.disableHostPrefix !== true) {
|
|
@@ -279,26 +227,19 @@ const se_DeleteComponentTypeCommand = async (input, context) => {
|
|
|
279
227
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
280
228
|
}
|
|
281
229
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
port,
|
|
286
|
-
method: "DELETE",
|
|
287
|
-
headers,
|
|
288
|
-
path: resolvedPath,
|
|
289
|
-
body,
|
|
290
|
-
});
|
|
230
|
+
b.hn(resolvedHostname);
|
|
231
|
+
b.m("DELETE").h(headers).b(body);
|
|
232
|
+
return b.build();
|
|
291
233
|
};
|
|
292
234
|
exports.se_DeleteComponentTypeCommand = se_DeleteComponentTypeCommand;
|
|
293
235
|
const se_DeleteEntityCommand = async (input, context) => {
|
|
294
|
-
const
|
|
236
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
295
237
|
const headers = {};
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "entityId", () => input.entityId, "{entityId}", false);
|
|
238
|
+
b.bp("/workspaces/{workspaceId}/entities/{entityId}");
|
|
239
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
240
|
+
b.p("entityId", () => input.entityId, "{entityId}", false);
|
|
300
241
|
const query = (0, smithy_client_1.map)({
|
|
301
|
-
|
|
242
|
+
[_iR]: [() => input.isRecursive !== void 0, () => input[_iR].toString()],
|
|
302
243
|
});
|
|
303
244
|
let body;
|
|
304
245
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -308,25 +249,17 @@ const se_DeleteEntityCommand = async (input, context) => {
|
|
|
308
249
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
309
250
|
}
|
|
310
251
|
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
port,
|
|
315
|
-
method: "DELETE",
|
|
316
|
-
headers,
|
|
317
|
-
path: resolvedPath,
|
|
318
|
-
query,
|
|
319
|
-
body,
|
|
320
|
-
});
|
|
252
|
+
b.hn(resolvedHostname);
|
|
253
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
254
|
+
return b.build();
|
|
321
255
|
};
|
|
322
256
|
exports.se_DeleteEntityCommand = se_DeleteEntityCommand;
|
|
323
257
|
const se_DeleteSceneCommand = async (input, context) => {
|
|
324
|
-
const
|
|
258
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
325
259
|
const headers = {};
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sceneId", () => input.sceneId, "{sceneId}", false);
|
|
260
|
+
b.bp("/workspaces/{workspaceId}/scenes/{sceneId}");
|
|
261
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
262
|
+
b.p("sceneId", () => input.sceneId, "{sceneId}", false);
|
|
330
263
|
let body;
|
|
331
264
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
332
265
|
if (context.disableHostPrefix !== true) {
|
|
@@ -335,24 +268,17 @@ const se_DeleteSceneCommand = async (input, context) => {
|
|
|
335
268
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
336
269
|
}
|
|
337
270
|
}
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
port,
|
|
342
|
-
method: "DELETE",
|
|
343
|
-
headers,
|
|
344
|
-
path: resolvedPath,
|
|
345
|
-
body,
|
|
346
|
-
});
|
|
271
|
+
b.hn(resolvedHostname);
|
|
272
|
+
b.m("DELETE").h(headers).b(body);
|
|
273
|
+
return b.build();
|
|
347
274
|
};
|
|
348
275
|
exports.se_DeleteSceneCommand = se_DeleteSceneCommand;
|
|
349
276
|
const se_DeleteSyncJobCommand = async (input, context) => {
|
|
350
|
-
const
|
|
277
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
351
278
|
const headers = {};
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
|
|
279
|
+
b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}");
|
|
280
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
281
|
+
b.p("syncSource", () => input.syncSource, "{syncSource}", false);
|
|
356
282
|
let body;
|
|
357
283
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
358
284
|
if (context.disableHostPrefix !== true) {
|
|
@@ -361,22 +287,16 @@ const se_DeleteSyncJobCommand = async (input, context) => {
|
|
|
361
287
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
362
288
|
}
|
|
363
289
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
port,
|
|
368
|
-
method: "DELETE",
|
|
369
|
-
headers,
|
|
370
|
-
path: resolvedPath,
|
|
371
|
-
body,
|
|
372
|
-
});
|
|
290
|
+
b.hn(resolvedHostname);
|
|
291
|
+
b.m("DELETE").h(headers).b(body);
|
|
292
|
+
return b.build();
|
|
373
293
|
};
|
|
374
294
|
exports.se_DeleteSyncJobCommand = se_DeleteSyncJobCommand;
|
|
375
295
|
const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
376
|
-
const
|
|
296
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
377
297
|
const headers = {};
|
|
378
|
-
|
|
379
|
-
|
|
298
|
+
b.bp("/workspaces/{workspaceId}");
|
|
299
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
380
300
|
let body;
|
|
381
301
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
382
302
|
if (context.disableHostPrefix !== true) {
|
|
@@ -385,23 +305,17 @@ const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
|
385
305
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
386
306
|
}
|
|
387
307
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
port,
|
|
392
|
-
method: "DELETE",
|
|
393
|
-
headers,
|
|
394
|
-
path: resolvedPath,
|
|
395
|
-
body,
|
|
396
|
-
});
|
|
308
|
+
b.hn(resolvedHostname);
|
|
309
|
+
b.m("DELETE").h(headers).b(body);
|
|
310
|
+
return b.build();
|
|
397
311
|
};
|
|
398
312
|
exports.se_DeleteWorkspaceCommand = se_DeleteWorkspaceCommand;
|
|
399
313
|
const se_ExecuteQueryCommand = async (input, context) => {
|
|
400
|
-
const
|
|
314
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
401
315
|
const headers = {
|
|
402
316
|
"content-type": "application/json",
|
|
403
317
|
};
|
|
404
|
-
|
|
318
|
+
b.bp("/queries/execution");
|
|
405
319
|
let body;
|
|
406
320
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
407
321
|
maxResults: [],
|
|
@@ -416,24 +330,17 @@ const se_ExecuteQueryCommand = async (input, context) => {
|
|
|
416
330
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
417
331
|
}
|
|
418
332
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
port,
|
|
423
|
-
method: "POST",
|
|
424
|
-
headers,
|
|
425
|
-
path: resolvedPath,
|
|
426
|
-
body,
|
|
427
|
-
});
|
|
333
|
+
b.hn(resolvedHostname);
|
|
334
|
+
b.m("POST").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
428
336
|
};
|
|
429
337
|
exports.se_ExecuteQueryCommand = se_ExecuteQueryCommand;
|
|
430
338
|
const se_GetComponentTypeCommand = async (input, context) => {
|
|
431
|
-
const
|
|
339
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
432
340
|
const headers = {};
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
341
|
+
b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}");
|
|
342
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
343
|
+
b.p("componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
437
344
|
let body;
|
|
438
345
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
439
346
|
if (context.disableHostPrefix !== true) {
|
|
@@ -442,24 +349,17 @@ const se_GetComponentTypeCommand = async (input, context) => {
|
|
|
442
349
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
443
350
|
}
|
|
444
351
|
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
port,
|
|
449
|
-
method: "GET",
|
|
450
|
-
headers,
|
|
451
|
-
path: resolvedPath,
|
|
452
|
-
body,
|
|
453
|
-
});
|
|
352
|
+
b.hn(resolvedHostname);
|
|
353
|
+
b.m("GET").h(headers).b(body);
|
|
354
|
+
return b.build();
|
|
454
355
|
};
|
|
455
356
|
exports.se_GetComponentTypeCommand = se_GetComponentTypeCommand;
|
|
456
357
|
const se_GetEntityCommand = async (input, context) => {
|
|
457
|
-
const
|
|
358
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
458
359
|
const headers = {};
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "entityId", () => input.entityId, "{entityId}", false);
|
|
360
|
+
b.bp("/workspaces/{workspaceId}/entities/{entityId}");
|
|
361
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
362
|
+
b.p("entityId", () => input.entityId, "{entityId}", false);
|
|
463
363
|
let body;
|
|
464
364
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
465
365
|
if (context.disableHostPrefix !== true) {
|
|
@@ -468,23 +368,16 @@ const se_GetEntityCommand = async (input, context) => {
|
|
|
468
368
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
469
369
|
}
|
|
470
370
|
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
port,
|
|
475
|
-
method: "GET",
|
|
476
|
-
headers,
|
|
477
|
-
path: resolvedPath,
|
|
478
|
-
body,
|
|
479
|
-
});
|
|
371
|
+
b.hn(resolvedHostname);
|
|
372
|
+
b.m("GET").h(headers).b(body);
|
|
373
|
+
return b.build();
|
|
480
374
|
};
|
|
481
375
|
exports.se_GetEntityCommand = se_GetEntityCommand;
|
|
482
376
|
const se_GetMetadataTransferJobCommand = async (input, context) => {
|
|
483
|
-
const
|
|
377
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
484
378
|
const headers = {};
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
|
|
379
|
+
b.bp("/metadata-transfer-jobs/{metadataTransferJobId}");
|
|
380
|
+
b.p("metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
|
|
488
381
|
let body;
|
|
489
382
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
490
383
|
if (context.disableHostPrefix !== true) {
|
|
@@ -493,23 +386,17 @@ const se_GetMetadataTransferJobCommand = async (input, context) => {
|
|
|
493
386
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
494
387
|
}
|
|
495
388
|
}
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
port,
|
|
500
|
-
method: "GET",
|
|
501
|
-
headers,
|
|
502
|
-
path: resolvedPath,
|
|
503
|
-
body,
|
|
504
|
-
});
|
|
389
|
+
b.hn(resolvedHostname);
|
|
390
|
+
b.m("GET").h(headers).b(body);
|
|
391
|
+
return b.build();
|
|
505
392
|
};
|
|
506
393
|
exports.se_GetMetadataTransferJobCommand = se_GetMetadataTransferJobCommand;
|
|
507
394
|
const se_GetPricingPlanCommand = async (input, context) => {
|
|
508
|
-
const
|
|
395
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
509
396
|
const headers = {
|
|
510
397
|
"content-type": "application/json",
|
|
511
398
|
};
|
|
512
|
-
|
|
399
|
+
b.bp("/pricingplan");
|
|
513
400
|
let body;
|
|
514
401
|
body = "";
|
|
515
402
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -519,25 +406,18 @@ const se_GetPricingPlanCommand = async (input, context) => {
|
|
|
519
406
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
520
407
|
}
|
|
521
408
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
port,
|
|
526
|
-
method: "GET",
|
|
527
|
-
headers,
|
|
528
|
-
path: resolvedPath,
|
|
529
|
-
body,
|
|
530
|
-
});
|
|
409
|
+
b.hn(resolvedHostname);
|
|
410
|
+
b.m("GET").h(headers).b(body);
|
|
411
|
+
return b.build();
|
|
531
412
|
};
|
|
532
413
|
exports.se_GetPricingPlanCommand = se_GetPricingPlanCommand;
|
|
533
414
|
const se_GetPropertyValueCommand = async (input, context) => {
|
|
534
|
-
const
|
|
415
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
535
416
|
const headers = {
|
|
536
417
|
"content-type": "application/json",
|
|
537
418
|
};
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
419
|
+
b.bp("/workspaces/{workspaceId}/entity-properties/value");
|
|
420
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
541
421
|
let body;
|
|
542
422
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
543
423
|
componentName: [],
|
|
@@ -557,25 +437,18 @@ const se_GetPropertyValueCommand = async (input, context) => {
|
|
|
557
437
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
558
438
|
}
|
|
559
439
|
}
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
port,
|
|
564
|
-
method: "POST",
|
|
565
|
-
headers,
|
|
566
|
-
path: resolvedPath,
|
|
567
|
-
body,
|
|
568
|
-
});
|
|
440
|
+
b.hn(resolvedHostname);
|
|
441
|
+
b.m("POST").h(headers).b(body);
|
|
442
|
+
return b.build();
|
|
569
443
|
};
|
|
570
444
|
exports.se_GetPropertyValueCommand = se_GetPropertyValueCommand;
|
|
571
445
|
const se_GetPropertyValueHistoryCommand = async (input, context) => {
|
|
572
|
-
const
|
|
446
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
573
447
|
const headers = {
|
|
574
448
|
"content-type": "application/json",
|
|
575
449
|
};
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
450
|
+
b.bp("/workspaces/{workspaceId}/entity-properties/history");
|
|
451
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
579
452
|
let body;
|
|
580
453
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
581
454
|
componentName: [],
|
|
@@ -600,24 +473,17 @@ const se_GetPropertyValueHistoryCommand = async (input, context) => {
|
|
|
600
473
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
601
474
|
}
|
|
602
475
|
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
port,
|
|
607
|
-
method: "POST",
|
|
608
|
-
headers,
|
|
609
|
-
path: resolvedPath,
|
|
610
|
-
body,
|
|
611
|
-
});
|
|
476
|
+
b.hn(resolvedHostname);
|
|
477
|
+
b.m("POST").h(headers).b(body);
|
|
478
|
+
return b.build();
|
|
612
479
|
};
|
|
613
480
|
exports.se_GetPropertyValueHistoryCommand = se_GetPropertyValueHistoryCommand;
|
|
614
481
|
const se_GetSceneCommand = async (input, context) => {
|
|
615
|
-
const
|
|
482
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
616
483
|
const headers = {};
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sceneId", () => input.sceneId, "{sceneId}", false);
|
|
484
|
+
b.bp("/workspaces/{workspaceId}/scenes/{sceneId}");
|
|
485
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
486
|
+
b.p("sceneId", () => input.sceneId, "{sceneId}", false);
|
|
621
487
|
let body;
|
|
622
488
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
623
489
|
if (context.disableHostPrefix !== true) {
|
|
@@ -626,24 +492,18 @@ const se_GetSceneCommand = async (input, context) => {
|
|
|
626
492
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
627
493
|
}
|
|
628
494
|
}
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
port,
|
|
633
|
-
method: "GET",
|
|
634
|
-
headers,
|
|
635
|
-
path: resolvedPath,
|
|
636
|
-
body,
|
|
637
|
-
});
|
|
495
|
+
b.hn(resolvedHostname);
|
|
496
|
+
b.m("GET").h(headers).b(body);
|
|
497
|
+
return b.build();
|
|
638
498
|
};
|
|
639
499
|
exports.se_GetSceneCommand = se_GetSceneCommand;
|
|
640
500
|
const se_GetSyncJobCommand = async (input, context) => {
|
|
641
|
-
const
|
|
501
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
642
502
|
const headers = {};
|
|
643
|
-
|
|
644
|
-
|
|
503
|
+
b.bp("/sync-jobs/{syncSource}");
|
|
504
|
+
b.p("syncSource", () => input.syncSource, "{syncSource}", false);
|
|
645
505
|
const query = (0, smithy_client_1.map)({
|
|
646
|
-
|
|
506
|
+
[_w]: [, input[_wI]],
|
|
647
507
|
});
|
|
648
508
|
let body;
|
|
649
509
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -653,23 +513,16 @@ const se_GetSyncJobCommand = async (input, context) => {
|
|
|
653
513
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
654
514
|
}
|
|
655
515
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
port,
|
|
660
|
-
method: "GET",
|
|
661
|
-
headers,
|
|
662
|
-
path: resolvedPath,
|
|
663
|
-
query,
|
|
664
|
-
body,
|
|
665
|
-
});
|
|
516
|
+
b.hn(resolvedHostname);
|
|
517
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
518
|
+
return b.build();
|
|
666
519
|
};
|
|
667
520
|
exports.se_GetSyncJobCommand = se_GetSyncJobCommand;
|
|
668
521
|
const se_GetWorkspaceCommand = async (input, context) => {
|
|
669
|
-
const
|
|
522
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
670
523
|
const headers = {};
|
|
671
|
-
|
|
672
|
-
|
|
524
|
+
b.bp("/workspaces/{workspaceId}");
|
|
525
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
673
526
|
let body;
|
|
674
527
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
675
528
|
if (context.disableHostPrefix !== true) {
|
|
@@ -678,26 +531,19 @@ const se_GetWorkspaceCommand = async (input, context) => {
|
|
|
678
531
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
679
532
|
}
|
|
680
533
|
}
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
port,
|
|
685
|
-
method: "GET",
|
|
686
|
-
headers,
|
|
687
|
-
path: resolvedPath,
|
|
688
|
-
body,
|
|
689
|
-
});
|
|
534
|
+
b.hn(resolvedHostname);
|
|
535
|
+
b.m("GET").h(headers).b(body);
|
|
536
|
+
return b.build();
|
|
690
537
|
};
|
|
691
538
|
exports.se_GetWorkspaceCommand = se_GetWorkspaceCommand;
|
|
692
539
|
const se_ListComponentsCommand = async (input, context) => {
|
|
693
|
-
const
|
|
540
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
694
541
|
const headers = {
|
|
695
542
|
"content-type": "application/json",
|
|
696
543
|
};
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "entityId", () => input.entityId, "{entityId}", false);
|
|
544
|
+
b.bp("/workspaces/{workspaceId}/entities/{entityId}/components-list");
|
|
545
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
546
|
+
b.p("entityId", () => input.entityId, "{entityId}", false);
|
|
701
547
|
let body;
|
|
702
548
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
703
549
|
componentPath: [],
|
|
@@ -711,25 +557,18 @@ const se_ListComponentsCommand = async (input, context) => {
|
|
|
711
557
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
712
558
|
}
|
|
713
559
|
}
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
port,
|
|
718
|
-
method: "POST",
|
|
719
|
-
headers,
|
|
720
|
-
path: resolvedPath,
|
|
721
|
-
body,
|
|
722
|
-
});
|
|
560
|
+
b.hn(resolvedHostname);
|
|
561
|
+
b.m("POST").h(headers).b(body);
|
|
562
|
+
return b.build();
|
|
723
563
|
};
|
|
724
564
|
exports.se_ListComponentsCommand = se_ListComponentsCommand;
|
|
725
565
|
const se_ListComponentTypesCommand = async (input, context) => {
|
|
726
|
-
const
|
|
566
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
727
567
|
const headers = {
|
|
728
568
|
"content-type": "application/json",
|
|
729
569
|
};
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
570
|
+
b.bp("/workspaces/{workspaceId}/component-types-list");
|
|
571
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
733
572
|
let body;
|
|
734
573
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
735
574
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -743,24 +582,18 @@ const se_ListComponentTypesCommand = async (input, context) => {
|
|
|
743
582
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
744
583
|
}
|
|
745
584
|
}
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
port,
|
|
750
|
-
method: "POST",
|
|
751
|
-
headers,
|
|
752
|
-
path: resolvedPath,
|
|
753
|
-
body,
|
|
754
|
-
});
|
|
585
|
+
b.hn(resolvedHostname);
|
|
586
|
+
b.m("POST").h(headers).b(body);
|
|
587
|
+
return b.build();
|
|
755
588
|
};
|
|
756
589
|
exports.se_ListComponentTypesCommand = se_ListComponentTypesCommand;
|
|
757
590
|
const se_ListEntitiesCommand = async (input, context) => {
|
|
758
|
-
const
|
|
591
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
759
592
|
const headers = {
|
|
760
593
|
"content-type": "application/json",
|
|
761
594
|
};
|
|
762
|
-
|
|
763
|
-
|
|
595
|
+
b.bp("/workspaces/{workspaceId}/entities-list");
|
|
596
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
764
597
|
let body;
|
|
765
598
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
766
599
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -774,23 +607,17 @@ const se_ListEntitiesCommand = async (input, context) => {
|
|
|
774
607
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
775
608
|
}
|
|
776
609
|
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
port,
|
|
781
|
-
method: "POST",
|
|
782
|
-
headers,
|
|
783
|
-
path: resolvedPath,
|
|
784
|
-
body,
|
|
785
|
-
});
|
|
610
|
+
b.hn(resolvedHostname);
|
|
611
|
+
b.m("POST").h(headers).b(body);
|
|
612
|
+
return b.build();
|
|
786
613
|
};
|
|
787
614
|
exports.se_ListEntitiesCommand = se_ListEntitiesCommand;
|
|
788
615
|
const se_ListMetadataTransferJobsCommand = async (input, context) => {
|
|
789
|
-
const
|
|
616
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
790
617
|
const headers = {
|
|
791
618
|
"content-type": "application/json",
|
|
792
619
|
};
|
|
793
|
-
|
|
620
|
+
b.bp("/metadata-transfer-jobs-list");
|
|
794
621
|
let body;
|
|
795
622
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
796
623
|
destinationType: [],
|
|
@@ -806,24 +633,18 @@ const se_ListMetadataTransferJobsCommand = async (input, context) => {
|
|
|
806
633
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
807
634
|
}
|
|
808
635
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
port,
|
|
813
|
-
method: "POST",
|
|
814
|
-
headers,
|
|
815
|
-
path: resolvedPath,
|
|
816
|
-
body,
|
|
817
|
-
});
|
|
636
|
+
b.hn(resolvedHostname);
|
|
637
|
+
b.m("POST").h(headers).b(body);
|
|
638
|
+
return b.build();
|
|
818
639
|
};
|
|
819
640
|
exports.se_ListMetadataTransferJobsCommand = se_ListMetadataTransferJobsCommand;
|
|
820
641
|
const se_ListPropertiesCommand = async (input, context) => {
|
|
821
|
-
const
|
|
642
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
822
643
|
const headers = {
|
|
823
644
|
"content-type": "application/json",
|
|
824
645
|
};
|
|
825
|
-
|
|
826
|
-
|
|
646
|
+
b.bp("/workspaces/{workspaceId}/properties-list");
|
|
647
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
827
648
|
let body;
|
|
828
649
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
829
650
|
componentName: [],
|
|
@@ -839,24 +660,18 @@ const se_ListPropertiesCommand = async (input, context) => {
|
|
|
839
660
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
840
661
|
}
|
|
841
662
|
}
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
port,
|
|
846
|
-
method: "POST",
|
|
847
|
-
headers,
|
|
848
|
-
path: resolvedPath,
|
|
849
|
-
body,
|
|
850
|
-
});
|
|
663
|
+
b.hn(resolvedHostname);
|
|
664
|
+
b.m("POST").h(headers).b(body);
|
|
665
|
+
return b.build();
|
|
851
666
|
};
|
|
852
667
|
exports.se_ListPropertiesCommand = se_ListPropertiesCommand;
|
|
853
668
|
const se_ListScenesCommand = async (input, context) => {
|
|
854
|
-
const
|
|
669
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
855
670
|
const headers = {
|
|
856
671
|
"content-type": "application/json",
|
|
857
672
|
};
|
|
858
|
-
|
|
859
|
-
|
|
673
|
+
b.bp("/workspaces/{workspaceId}/scenes-list");
|
|
674
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
860
675
|
let body;
|
|
861
676
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
862
677
|
maxResults: [],
|
|
@@ -869,24 +684,18 @@ const se_ListScenesCommand = async (input, context) => {
|
|
|
869
684
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
870
685
|
}
|
|
871
686
|
}
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
port,
|
|
876
|
-
method: "POST",
|
|
877
|
-
headers,
|
|
878
|
-
path: resolvedPath,
|
|
879
|
-
body,
|
|
880
|
-
});
|
|
687
|
+
b.hn(resolvedHostname);
|
|
688
|
+
b.m("POST").h(headers).b(body);
|
|
689
|
+
return b.build();
|
|
881
690
|
};
|
|
882
691
|
exports.se_ListScenesCommand = se_ListScenesCommand;
|
|
883
692
|
const se_ListSyncJobsCommand = async (input, context) => {
|
|
884
|
-
const
|
|
693
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
885
694
|
const headers = {
|
|
886
695
|
"content-type": "application/json",
|
|
887
696
|
};
|
|
888
|
-
|
|
889
|
-
|
|
697
|
+
b.bp("/workspaces/{workspaceId}/sync-jobs-list");
|
|
698
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
890
699
|
let body;
|
|
891
700
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
892
701
|
maxResults: [],
|
|
@@ -899,26 +708,19 @@ const se_ListSyncJobsCommand = async (input, context) => {
|
|
|
899
708
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
900
709
|
}
|
|
901
710
|
}
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
port,
|
|
906
|
-
method: "POST",
|
|
907
|
-
headers,
|
|
908
|
-
path: resolvedPath,
|
|
909
|
-
body,
|
|
910
|
-
});
|
|
711
|
+
b.hn(resolvedHostname);
|
|
712
|
+
b.m("POST").h(headers).b(body);
|
|
713
|
+
return b.build();
|
|
911
714
|
};
|
|
912
715
|
exports.se_ListSyncJobsCommand = se_ListSyncJobsCommand;
|
|
913
716
|
const se_ListSyncResourcesCommand = async (input, context) => {
|
|
914
|
-
const
|
|
717
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
915
718
|
const headers = {
|
|
916
719
|
"content-type": "application/json",
|
|
917
720
|
};
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
|
|
721
|
+
b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}/resources-list");
|
|
722
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
723
|
+
b.p("syncSource", () => input.syncSource, "{syncSource}", false);
|
|
922
724
|
let body;
|
|
923
725
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
924
726
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -932,23 +734,17 @@ const se_ListSyncResourcesCommand = async (input, context) => {
|
|
|
932
734
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
933
735
|
}
|
|
934
736
|
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
port,
|
|
939
|
-
method: "POST",
|
|
940
|
-
headers,
|
|
941
|
-
path: resolvedPath,
|
|
942
|
-
body,
|
|
943
|
-
});
|
|
737
|
+
b.hn(resolvedHostname);
|
|
738
|
+
b.m("POST").h(headers).b(body);
|
|
739
|
+
return b.build();
|
|
944
740
|
};
|
|
945
741
|
exports.se_ListSyncResourcesCommand = se_ListSyncResourcesCommand;
|
|
946
742
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
947
|
-
const
|
|
743
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
948
744
|
const headers = {
|
|
949
745
|
"content-type": "application/json",
|
|
950
746
|
};
|
|
951
|
-
|
|
747
|
+
b.bp("/tags-list");
|
|
952
748
|
let body;
|
|
953
749
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
954
750
|
maxResults: [],
|
|
@@ -962,23 +758,17 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
962
758
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
963
759
|
}
|
|
964
760
|
}
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
port,
|
|
969
|
-
method: "POST",
|
|
970
|
-
headers,
|
|
971
|
-
path: resolvedPath,
|
|
972
|
-
body,
|
|
973
|
-
});
|
|
761
|
+
b.hn(resolvedHostname);
|
|
762
|
+
b.m("POST").h(headers).b(body);
|
|
763
|
+
return b.build();
|
|
974
764
|
};
|
|
975
765
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
976
766
|
const se_ListWorkspacesCommand = async (input, context) => {
|
|
977
|
-
const
|
|
767
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
978
768
|
const headers = {
|
|
979
769
|
"content-type": "application/json",
|
|
980
770
|
};
|
|
981
|
-
|
|
771
|
+
b.bp("/workspaces-list");
|
|
982
772
|
let body;
|
|
983
773
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
984
774
|
maxResults: [],
|
|
@@ -991,23 +781,17 @@ const se_ListWorkspacesCommand = async (input, context) => {
|
|
|
991
781
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
992
782
|
}
|
|
993
783
|
}
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
port,
|
|
998
|
-
method: "POST",
|
|
999
|
-
headers,
|
|
1000
|
-
path: resolvedPath,
|
|
1001
|
-
body,
|
|
1002
|
-
});
|
|
784
|
+
b.hn(resolvedHostname);
|
|
785
|
+
b.m("POST").h(headers).b(body);
|
|
786
|
+
return b.build();
|
|
1003
787
|
};
|
|
1004
788
|
exports.se_ListWorkspacesCommand = se_ListWorkspacesCommand;
|
|
1005
789
|
const se_TagResourceCommand = async (input, context) => {
|
|
1006
|
-
const
|
|
790
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1007
791
|
const headers = {
|
|
1008
792
|
"content-type": "application/json",
|
|
1009
793
|
};
|
|
1010
|
-
|
|
794
|
+
b.bp("/tags");
|
|
1011
795
|
let body;
|
|
1012
796
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1013
797
|
resourceARN: [],
|
|
@@ -1020,26 +804,20 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
1020
804
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1021
805
|
}
|
|
1022
806
|
}
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
port,
|
|
1027
|
-
method: "POST",
|
|
1028
|
-
headers,
|
|
1029
|
-
path: resolvedPath,
|
|
1030
|
-
body,
|
|
1031
|
-
});
|
|
807
|
+
b.hn(resolvedHostname);
|
|
808
|
+
b.m("POST").h(headers).b(body);
|
|
809
|
+
return b.build();
|
|
1032
810
|
};
|
|
1033
811
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
1034
812
|
const se_UntagResourceCommand = async (input, context) => {
|
|
1035
|
-
const
|
|
813
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1036
814
|
const headers = {};
|
|
1037
|
-
|
|
815
|
+
b.bp("/tags");
|
|
1038
816
|
const query = (0, smithy_client_1.map)({
|
|
1039
|
-
|
|
1040
|
-
|
|
817
|
+
[_rARN]: [, (0, smithy_client_1.expectNonNull)(input[_rARN], `resourceARN`)],
|
|
818
|
+
[_tK]: [
|
|
1041
819
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
1042
|
-
() => (input
|
|
820
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
1043
821
|
],
|
|
1044
822
|
});
|
|
1045
823
|
let body;
|
|
@@ -1050,27 +828,19 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
1050
828
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1051
829
|
}
|
|
1052
830
|
}
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
port,
|
|
1057
|
-
method: "DELETE",
|
|
1058
|
-
headers,
|
|
1059
|
-
path: resolvedPath,
|
|
1060
|
-
query,
|
|
1061
|
-
body,
|
|
1062
|
-
});
|
|
831
|
+
b.hn(resolvedHostname);
|
|
832
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
833
|
+
return b.build();
|
|
1063
834
|
};
|
|
1064
835
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
1065
836
|
const se_UpdateComponentTypeCommand = async (input, context) => {
|
|
1066
|
-
const
|
|
837
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1067
838
|
const headers = {
|
|
1068
839
|
"content-type": "application/json",
|
|
1069
840
|
};
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
841
|
+
b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}");
|
|
842
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
843
|
+
b.p("componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
1074
844
|
let body;
|
|
1075
845
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1076
846
|
componentTypeName: [],
|
|
@@ -1089,26 +859,19 @@ const se_UpdateComponentTypeCommand = async (input, context) => {
|
|
|
1089
859
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1090
860
|
}
|
|
1091
861
|
}
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
port,
|
|
1096
|
-
method: "PUT",
|
|
1097
|
-
headers,
|
|
1098
|
-
path: resolvedPath,
|
|
1099
|
-
body,
|
|
1100
|
-
});
|
|
862
|
+
b.hn(resolvedHostname);
|
|
863
|
+
b.m("PUT").h(headers).b(body);
|
|
864
|
+
return b.build();
|
|
1101
865
|
};
|
|
1102
866
|
exports.se_UpdateComponentTypeCommand = se_UpdateComponentTypeCommand;
|
|
1103
867
|
const se_UpdateEntityCommand = async (input, context) => {
|
|
1104
|
-
const
|
|
868
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1105
869
|
const headers = {
|
|
1106
870
|
"content-type": "application/json",
|
|
1107
871
|
};
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "entityId", () => input.entityId, "{entityId}", false);
|
|
872
|
+
b.bp("/workspaces/{workspaceId}/entities/{entityId}");
|
|
873
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
874
|
+
b.p("entityId", () => input.entityId, "{entityId}", false);
|
|
1112
875
|
let body;
|
|
1113
876
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1114
877
|
componentUpdates: (_) => se_ComponentUpdatesMapRequest(_, context),
|
|
@@ -1124,23 +887,17 @@ const se_UpdateEntityCommand = async (input, context) => {
|
|
|
1124
887
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1125
888
|
}
|
|
1126
889
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
port,
|
|
1131
|
-
method: "PUT",
|
|
1132
|
-
headers,
|
|
1133
|
-
path: resolvedPath,
|
|
1134
|
-
body,
|
|
1135
|
-
});
|
|
890
|
+
b.hn(resolvedHostname);
|
|
891
|
+
b.m("PUT").h(headers).b(body);
|
|
892
|
+
return b.build();
|
|
1136
893
|
};
|
|
1137
894
|
exports.se_UpdateEntityCommand = se_UpdateEntityCommand;
|
|
1138
895
|
const se_UpdatePricingPlanCommand = async (input, context) => {
|
|
1139
|
-
const
|
|
896
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1140
897
|
const headers = {
|
|
1141
898
|
"content-type": "application/json",
|
|
1142
899
|
};
|
|
1143
|
-
|
|
900
|
+
b.bp("/pricingplan");
|
|
1144
901
|
let body;
|
|
1145
902
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1146
903
|
bundleNames: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1153,26 +910,19 @@ const se_UpdatePricingPlanCommand = async (input, context) => {
|
|
|
1153
910
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1154
911
|
}
|
|
1155
912
|
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
port,
|
|
1160
|
-
method: "POST",
|
|
1161
|
-
headers,
|
|
1162
|
-
path: resolvedPath,
|
|
1163
|
-
body,
|
|
1164
|
-
});
|
|
913
|
+
b.hn(resolvedHostname);
|
|
914
|
+
b.m("POST").h(headers).b(body);
|
|
915
|
+
return b.build();
|
|
1165
916
|
};
|
|
1166
917
|
exports.se_UpdatePricingPlanCommand = se_UpdatePricingPlanCommand;
|
|
1167
918
|
const se_UpdateSceneCommand = async (input, context) => {
|
|
1168
|
-
const
|
|
919
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1169
920
|
const headers = {
|
|
1170
921
|
"content-type": "application/json",
|
|
1171
922
|
};
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sceneId", () => input.sceneId, "{sceneId}", false);
|
|
923
|
+
b.bp("/workspaces/{workspaceId}/scenes/{sceneId}");
|
|
924
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
925
|
+
b.p("sceneId", () => input.sceneId, "{sceneId}", false);
|
|
1176
926
|
let body;
|
|
1177
927
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1178
928
|
capabilities: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -1187,24 +937,18 @@ const se_UpdateSceneCommand = async (input, context) => {
|
|
|
1187
937
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1188
938
|
}
|
|
1189
939
|
}
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
port,
|
|
1194
|
-
method: "PUT",
|
|
1195
|
-
headers,
|
|
1196
|
-
path: resolvedPath,
|
|
1197
|
-
body,
|
|
1198
|
-
});
|
|
940
|
+
b.hn(resolvedHostname);
|
|
941
|
+
b.m("PUT").h(headers).b(body);
|
|
942
|
+
return b.build();
|
|
1199
943
|
};
|
|
1200
944
|
exports.se_UpdateSceneCommand = se_UpdateSceneCommand;
|
|
1201
945
|
const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
1202
|
-
const
|
|
946
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
1203
947
|
const headers = {
|
|
1204
948
|
"content-type": "application/json",
|
|
1205
949
|
};
|
|
1206
|
-
|
|
1207
|
-
|
|
950
|
+
b.bp("/workspaces/{workspaceId}");
|
|
951
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1208
952
|
let body;
|
|
1209
953
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1210
954
|
description: [],
|
|
@@ -1218,15 +962,9 @@ const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
|
1218
962
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1219
963
|
}
|
|
1220
964
|
}
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
port,
|
|
1225
|
-
method: "PUT",
|
|
1226
|
-
headers,
|
|
1227
|
-
path: resolvedPath,
|
|
1228
|
-
body,
|
|
1229
|
-
});
|
|
965
|
+
b.hn(resolvedHostname);
|
|
966
|
+
b.m("PUT").h(headers).b(body);
|
|
967
|
+
return b.build();
|
|
1230
968
|
};
|
|
1231
969
|
exports.se_UpdateWorkspaceCommand = se_UpdateWorkspaceCommand;
|
|
1232
970
|
const de_BatchPutPropertyValuesCommand = async (output, context) => {
|
|
@@ -3905,6 +3643,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
3905
3643
|
value !== "" &&
|
|
3906
3644
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3907
3645
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
3646
|
+
const _iR = "isRecursive";
|
|
3647
|
+
const _rARN = "resourceARN";
|
|
3648
|
+
const _tK = "tagKeys";
|
|
3649
|
+
const _w = "workspace";
|
|
3650
|
+
const _wI = "workspaceId";
|
|
3908
3651
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3909
3652
|
if (encoded.length) {
|
|
3910
3653
|
return JSON.parse(encoded);
|