@aws-sdk/client-finspace-data 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 +178 -408
- package/dist-es/protocols/Aws_restJson1.js +179 -409
- package/package.json +5 -4
|
@@ -2,42 +2,34 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_GetWorkingLocationCommand = exports.de_GetUserCommand = exports.de_GetProgrammaticAccessCredentialsCommand = exports.de_GetPermissionGroupCommand = exports.de_GetExternalDataViewAccessDetailsCommand = exports.de_GetDataViewCommand = exports.de_GetDatasetCommand = exports.de_GetChangesetCommand = exports.de_EnableUserCommand = exports.de_DisassociateUserFromPermissionGroupCommand = exports.de_DisableUserCommand = exports.de_DeletePermissionGroupCommand = exports.de_DeleteDatasetCommand = exports.de_CreateUserCommand = exports.de_CreatePermissionGroupCommand = exports.de_CreateDataViewCommand = exports.de_CreateDatasetCommand = exports.de_CreateChangesetCommand = exports.de_AssociateUserToPermissionGroupCommand = exports.se_UpdateUserCommand = exports.se_UpdatePermissionGroupCommand = exports.se_UpdateDatasetCommand = exports.se_UpdateChangesetCommand = exports.se_ResetUserPasswordCommand = exports.se_ListUsersByPermissionGroupCommand = exports.se_ListUsersCommand = exports.se_ListPermissionGroupsByUserCommand = exports.se_ListPermissionGroupsCommand = exports.se_ListDataViewsCommand = exports.se_ListDatasetsCommand = exports.se_ListChangesetsCommand = exports.se_GetWorkingLocationCommand = exports.se_GetUserCommand = exports.se_GetProgrammaticAccessCredentialsCommand = exports.se_GetPermissionGroupCommand = exports.se_GetExternalDataViewAccessDetailsCommand = exports.se_GetDataViewCommand = exports.se_GetDatasetCommand = exports.se_GetChangesetCommand = exports.se_EnableUserCommand = exports.se_DisassociateUserFromPermissionGroupCommand = exports.se_DisableUserCommand = exports.se_DeletePermissionGroupCommand = exports.se_DeleteDatasetCommand = exports.se_CreateUserCommand = exports.se_CreatePermissionGroupCommand = exports.se_CreateDataViewCommand = exports.se_CreateDatasetCommand = exports.se_CreateChangesetCommand = exports.se_AssociateUserToPermissionGroupCommand = void 0;
|
|
4
4
|
exports.de_UpdateUserCommand = exports.de_UpdatePermissionGroupCommand = exports.de_UpdateDatasetCommand = exports.de_UpdateChangesetCommand = exports.de_ResetUserPasswordCommand = exports.de_ListUsersByPermissionGroupCommand = exports.de_ListUsersCommand = exports.de_ListPermissionGroupsByUserCommand = exports.de_ListPermissionGroupsCommand = exports.de_ListDataViewsCommand = exports.de_ListDatasetsCommand = exports.de_ListChangesetsCommand = void 0;
|
|
5
|
-
const
|
|
5
|
+
const core_1 = require("@smithy/core");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
8
8
|
const FinspaceDataServiceException_1 = require("../models/FinspaceDataServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_AssociateUserToPermissionGroupCommand = async (input, context) => {
|
|
11
|
-
const
|
|
11
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
12
|
const headers = {
|
|
13
13
|
"content-type": "application/json",
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
15
|
+
b.bp("/permission-group/{permissionGroupId}/users/{userId}");
|
|
16
|
+
b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
17
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
19
18
|
let body;
|
|
20
19
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
21
20
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
22
21
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "POST",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
22
|
+
b.m("POST").h(headers).b(body);
|
|
23
|
+
return b.build();
|
|
32
24
|
};
|
|
33
25
|
exports.se_AssociateUserToPermissionGroupCommand = se_AssociateUserToPermissionGroupCommand;
|
|
34
26
|
const se_CreateChangesetCommand = async (input, context) => {
|
|
35
|
-
const
|
|
27
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
36
28
|
const headers = {
|
|
37
29
|
"content-type": "application/json",
|
|
38
30
|
};
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
b.bp("/datasets/{datasetId}/changesetsv2");
|
|
32
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
41
33
|
let body;
|
|
42
34
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
35
|
changeType: [],
|
|
@@ -45,23 +37,16 @@ const se_CreateChangesetCommand = async (input, context) => {
|
|
|
45
37
|
formatParams: (_) => (0, smithy_client_1._json)(_),
|
|
46
38
|
sourceParams: (_) => (0, smithy_client_1._json)(_),
|
|
47
39
|
}));
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
hostname,
|
|
51
|
-
port,
|
|
52
|
-
method: "POST",
|
|
53
|
-
headers,
|
|
54
|
-
path: resolvedPath,
|
|
55
|
-
body,
|
|
56
|
-
});
|
|
40
|
+
b.m("POST").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
57
42
|
};
|
|
58
43
|
exports.se_CreateChangesetCommand = se_CreateChangesetCommand;
|
|
59
44
|
const se_CreateDatasetCommand = async (input, context) => {
|
|
60
|
-
const
|
|
45
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
61
46
|
const headers = {
|
|
62
47
|
"content-type": "application/json",
|
|
63
48
|
};
|
|
64
|
-
|
|
49
|
+
b.bp("/datasetsv2");
|
|
65
50
|
let body;
|
|
66
51
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
67
52
|
alias: [],
|
|
@@ -73,24 +58,17 @@ const se_CreateDatasetCommand = async (input, context) => {
|
|
|
73
58
|
permissionGroupParams: (_) => (0, smithy_client_1._json)(_),
|
|
74
59
|
schemaDefinition: (_) => (0, smithy_client_1._json)(_),
|
|
75
60
|
}));
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
hostname,
|
|
79
|
-
port,
|
|
80
|
-
method: "POST",
|
|
81
|
-
headers,
|
|
82
|
-
path: resolvedPath,
|
|
83
|
-
body,
|
|
84
|
-
});
|
|
61
|
+
b.m("POST").h(headers).b(body);
|
|
62
|
+
return b.build();
|
|
85
63
|
};
|
|
86
64
|
exports.se_CreateDatasetCommand = se_CreateDatasetCommand;
|
|
87
65
|
const se_CreateDataViewCommand = async (input, context) => {
|
|
88
|
-
const
|
|
66
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
89
67
|
const headers = {
|
|
90
68
|
"content-type": "application/json",
|
|
91
69
|
};
|
|
92
|
-
|
|
93
|
-
|
|
70
|
+
b.bp("/datasets/{datasetId}/dataviewsv2");
|
|
71
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
94
72
|
let body;
|
|
95
73
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
96
74
|
asOfTimestamp: [],
|
|
@@ -100,23 +78,16 @@ const se_CreateDataViewCommand = async (input, context) => {
|
|
|
100
78
|
partitionColumns: (_) => (0, smithy_client_1._json)(_),
|
|
101
79
|
sortColumns: (_) => (0, smithy_client_1._json)(_),
|
|
102
80
|
}));
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
hostname,
|
|
106
|
-
port,
|
|
107
|
-
method: "POST",
|
|
108
|
-
headers,
|
|
109
|
-
path: resolvedPath,
|
|
110
|
-
body,
|
|
111
|
-
});
|
|
81
|
+
b.m("POST").h(headers).b(body);
|
|
82
|
+
return b.build();
|
|
112
83
|
};
|
|
113
84
|
exports.se_CreateDataViewCommand = se_CreateDataViewCommand;
|
|
114
85
|
const se_CreatePermissionGroupCommand = async (input, context) => {
|
|
115
|
-
const
|
|
86
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
116
87
|
const headers = {
|
|
117
88
|
"content-type": "application/json",
|
|
118
89
|
};
|
|
119
|
-
|
|
90
|
+
b.bp("/permission-group");
|
|
120
91
|
let body;
|
|
121
92
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
122
93
|
applicationPermissions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -124,23 +95,16 @@ const se_CreatePermissionGroupCommand = async (input, context) => {
|
|
|
124
95
|
description: [],
|
|
125
96
|
name: [],
|
|
126
97
|
}));
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
hostname,
|
|
130
|
-
port,
|
|
131
|
-
method: "POST",
|
|
132
|
-
headers,
|
|
133
|
-
path: resolvedPath,
|
|
134
|
-
body,
|
|
135
|
-
});
|
|
98
|
+
b.m("POST").h(headers).b(body);
|
|
99
|
+
return b.build();
|
|
136
100
|
};
|
|
137
101
|
exports.se_CreatePermissionGroupCommand = se_CreatePermissionGroupCommand;
|
|
138
102
|
const se_CreateUserCommand = async (input, context) => {
|
|
139
|
-
const
|
|
103
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
140
104
|
const headers = {
|
|
141
105
|
"content-type": "application/json",
|
|
142
106
|
};
|
|
143
|
-
|
|
107
|
+
b.bp("/user");
|
|
144
108
|
let body;
|
|
145
109
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
146
110
|
apiAccess: [],
|
|
@@ -151,483 +115,305 @@ const se_CreateUserCommand = async (input, context) => {
|
|
|
151
115
|
lastName: [],
|
|
152
116
|
type: [],
|
|
153
117
|
}));
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
hostname,
|
|
157
|
-
port,
|
|
158
|
-
method: "POST",
|
|
159
|
-
headers,
|
|
160
|
-
path: resolvedPath,
|
|
161
|
-
body,
|
|
162
|
-
});
|
|
118
|
+
b.m("POST").h(headers).b(body);
|
|
119
|
+
return b.build();
|
|
163
120
|
};
|
|
164
121
|
exports.se_CreateUserCommand = se_CreateUserCommand;
|
|
165
122
|
const se_DeleteDatasetCommand = async (input, context) => {
|
|
166
|
-
const
|
|
123
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
167
124
|
const headers = {};
|
|
168
|
-
|
|
169
|
-
|
|
125
|
+
b.bp("/datasetsv2/{datasetId}");
|
|
126
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
170
127
|
const query = (0, smithy_client_1.map)({
|
|
171
|
-
|
|
128
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
172
129
|
});
|
|
173
130
|
let body;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
hostname,
|
|
177
|
-
port,
|
|
178
|
-
method: "DELETE",
|
|
179
|
-
headers,
|
|
180
|
-
path: resolvedPath,
|
|
181
|
-
query,
|
|
182
|
-
body,
|
|
183
|
-
});
|
|
131
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
132
|
+
return b.build();
|
|
184
133
|
};
|
|
185
134
|
exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
|
|
186
135
|
const se_DeletePermissionGroupCommand = async (input, context) => {
|
|
187
|
-
const
|
|
136
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
188
137
|
const headers = {};
|
|
189
|
-
|
|
190
|
-
|
|
138
|
+
b.bp("/permission-group/{permissionGroupId}");
|
|
139
|
+
b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
191
140
|
const query = (0, smithy_client_1.map)({
|
|
192
|
-
|
|
141
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
193
142
|
});
|
|
194
143
|
let body;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
hostname,
|
|
198
|
-
port,
|
|
199
|
-
method: "DELETE",
|
|
200
|
-
headers,
|
|
201
|
-
path: resolvedPath,
|
|
202
|
-
query,
|
|
203
|
-
body,
|
|
204
|
-
});
|
|
144
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
145
|
+
return b.build();
|
|
205
146
|
};
|
|
206
147
|
exports.se_DeletePermissionGroupCommand = se_DeletePermissionGroupCommand;
|
|
207
148
|
const se_DisableUserCommand = async (input, context) => {
|
|
208
|
-
const
|
|
149
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
209
150
|
const headers = {
|
|
210
151
|
"content-type": "application/json",
|
|
211
152
|
};
|
|
212
|
-
|
|
213
|
-
|
|
153
|
+
b.bp("/user/{userId}/disable");
|
|
154
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
214
155
|
let body;
|
|
215
156
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
216
157
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
217
158
|
}));
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
hostname,
|
|
221
|
-
port,
|
|
222
|
-
method: "POST",
|
|
223
|
-
headers,
|
|
224
|
-
path: resolvedPath,
|
|
225
|
-
body,
|
|
226
|
-
});
|
|
159
|
+
b.m("POST").h(headers).b(body);
|
|
160
|
+
return b.build();
|
|
227
161
|
};
|
|
228
162
|
exports.se_DisableUserCommand = se_DisableUserCommand;
|
|
229
163
|
const se_DisassociateUserFromPermissionGroupCommand = async (input, context) => {
|
|
230
|
-
const
|
|
164
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
231
165
|
const headers = {};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "userId", () => input.userId, "{userId}", false);
|
|
166
|
+
b.bp("/permission-group/{permissionGroupId}/users/{userId}");
|
|
167
|
+
b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
168
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
236
169
|
const query = (0, smithy_client_1.map)({
|
|
237
|
-
|
|
170
|
+
[_cT]: [, input[_cT] ?? (0, uuid_1.v4)()],
|
|
238
171
|
});
|
|
239
172
|
let body;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
hostname,
|
|
243
|
-
port,
|
|
244
|
-
method: "DELETE",
|
|
245
|
-
headers,
|
|
246
|
-
path: resolvedPath,
|
|
247
|
-
query,
|
|
248
|
-
body,
|
|
249
|
-
});
|
|
173
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
174
|
+
return b.build();
|
|
250
175
|
};
|
|
251
176
|
exports.se_DisassociateUserFromPermissionGroupCommand = se_DisassociateUserFromPermissionGroupCommand;
|
|
252
177
|
const se_EnableUserCommand = async (input, context) => {
|
|
253
|
-
const
|
|
178
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
254
179
|
const headers = {
|
|
255
180
|
"content-type": "application/json",
|
|
256
181
|
};
|
|
257
|
-
|
|
258
|
-
|
|
182
|
+
b.bp("/user/{userId}/enable");
|
|
183
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
259
184
|
let body;
|
|
260
185
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
261
186
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
262
187
|
}));
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
hostname,
|
|
266
|
-
port,
|
|
267
|
-
method: "POST",
|
|
268
|
-
headers,
|
|
269
|
-
path: resolvedPath,
|
|
270
|
-
body,
|
|
271
|
-
});
|
|
188
|
+
b.m("POST").h(headers).b(body);
|
|
189
|
+
return b.build();
|
|
272
190
|
};
|
|
273
191
|
exports.se_EnableUserCommand = se_EnableUserCommand;
|
|
274
192
|
const se_GetChangesetCommand = async (input, context) => {
|
|
275
|
-
const
|
|
193
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
276
194
|
const headers = {};
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
|
|
195
|
+
b.bp("/datasets/{datasetId}/changesetsv2/{changesetId}");
|
|
196
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
197
|
+
b.p("changesetId", () => input.changesetId, "{changesetId}", false);
|
|
281
198
|
let body;
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hostname,
|
|
285
|
-
port,
|
|
286
|
-
method: "GET",
|
|
287
|
-
headers,
|
|
288
|
-
path: resolvedPath,
|
|
289
|
-
body,
|
|
290
|
-
});
|
|
199
|
+
b.m("GET").h(headers).b(body);
|
|
200
|
+
return b.build();
|
|
291
201
|
};
|
|
292
202
|
exports.se_GetChangesetCommand = se_GetChangesetCommand;
|
|
293
203
|
const se_GetDatasetCommand = async (input, context) => {
|
|
294
|
-
const
|
|
204
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
295
205
|
const headers = {};
|
|
296
|
-
|
|
297
|
-
|
|
206
|
+
b.bp("/datasetsv2/{datasetId}");
|
|
207
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
298
208
|
let body;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
hostname,
|
|
302
|
-
port,
|
|
303
|
-
method: "GET",
|
|
304
|
-
headers,
|
|
305
|
-
path: resolvedPath,
|
|
306
|
-
body,
|
|
307
|
-
});
|
|
209
|
+
b.m("GET").h(headers).b(body);
|
|
210
|
+
return b.build();
|
|
308
211
|
};
|
|
309
212
|
exports.se_GetDatasetCommand = se_GetDatasetCommand;
|
|
310
213
|
const se_GetDataViewCommand = async (input, context) => {
|
|
311
|
-
const
|
|
214
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
312
215
|
const headers = {};
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
216
|
+
b.bp("/datasets/{datasetId}/dataviewsv2/{dataViewId}");
|
|
217
|
+
b.p("dataViewId", () => input.dataViewId, "{dataViewId}", false);
|
|
218
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
317
219
|
let body;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
hostname,
|
|
321
|
-
port,
|
|
322
|
-
method: "GET",
|
|
323
|
-
headers,
|
|
324
|
-
path: resolvedPath,
|
|
325
|
-
body,
|
|
326
|
-
});
|
|
220
|
+
b.m("GET").h(headers).b(body);
|
|
221
|
+
return b.build();
|
|
327
222
|
};
|
|
328
223
|
exports.se_GetDataViewCommand = se_GetDataViewCommand;
|
|
329
224
|
const se_GetExternalDataViewAccessDetailsCommand = async (input, context) => {
|
|
330
|
-
const
|
|
225
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
331
226
|
const headers = {};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "datasetId", () => input.datasetId, "{datasetId}", false);
|
|
227
|
+
b.bp("/datasets/{datasetId}/dataviewsv2/{dataViewId}/external-access-details");
|
|
228
|
+
b.p("dataViewId", () => input.dataViewId, "{dataViewId}", false);
|
|
229
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
336
230
|
let body;
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
hostname,
|
|
340
|
-
port,
|
|
341
|
-
method: "POST",
|
|
342
|
-
headers,
|
|
343
|
-
path: resolvedPath,
|
|
344
|
-
body,
|
|
345
|
-
});
|
|
231
|
+
b.m("POST").h(headers).b(body);
|
|
232
|
+
return b.build();
|
|
346
233
|
};
|
|
347
234
|
exports.se_GetExternalDataViewAccessDetailsCommand = se_GetExternalDataViewAccessDetailsCommand;
|
|
348
235
|
const se_GetPermissionGroupCommand = async (input, context) => {
|
|
349
|
-
const
|
|
236
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
350
237
|
const headers = {};
|
|
351
|
-
|
|
352
|
-
|
|
238
|
+
b.bp("/permission-group/{permissionGroupId}");
|
|
239
|
+
b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
353
240
|
let body;
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
hostname,
|
|
357
|
-
port,
|
|
358
|
-
method: "GET",
|
|
359
|
-
headers,
|
|
360
|
-
path: resolvedPath,
|
|
361
|
-
body,
|
|
362
|
-
});
|
|
241
|
+
b.m("GET").h(headers).b(body);
|
|
242
|
+
return b.build();
|
|
363
243
|
};
|
|
364
244
|
exports.se_GetPermissionGroupCommand = se_GetPermissionGroupCommand;
|
|
365
245
|
const se_GetProgrammaticAccessCredentialsCommand = async (input, context) => {
|
|
366
|
-
const
|
|
246
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
367
247
|
const headers = {};
|
|
368
|
-
|
|
248
|
+
b.bp("/credentials/programmatic");
|
|
369
249
|
const query = (0, smithy_client_1.map)({
|
|
370
|
-
|
|
371
|
-
|
|
250
|
+
[_dIM]: [() => input.durationInMinutes !== void 0, () => input[_dIM].toString()],
|
|
251
|
+
[_eI]: [, (0, smithy_client_1.expectNonNull)(input[_eI], `environmentId`)],
|
|
372
252
|
});
|
|
373
253
|
let body;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
hostname,
|
|
377
|
-
port,
|
|
378
|
-
method: "GET",
|
|
379
|
-
headers,
|
|
380
|
-
path: resolvedPath,
|
|
381
|
-
query,
|
|
382
|
-
body,
|
|
383
|
-
});
|
|
254
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
255
|
+
return b.build();
|
|
384
256
|
};
|
|
385
257
|
exports.se_GetProgrammaticAccessCredentialsCommand = se_GetProgrammaticAccessCredentialsCommand;
|
|
386
258
|
const se_GetUserCommand = async (input, context) => {
|
|
387
|
-
const
|
|
259
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
388
260
|
const headers = {};
|
|
389
|
-
|
|
390
|
-
|
|
261
|
+
b.bp("/user/{userId}");
|
|
262
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
391
263
|
let body;
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
hostname,
|
|
395
|
-
port,
|
|
396
|
-
method: "GET",
|
|
397
|
-
headers,
|
|
398
|
-
path: resolvedPath,
|
|
399
|
-
body,
|
|
400
|
-
});
|
|
264
|
+
b.m("GET").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
401
266
|
};
|
|
402
267
|
exports.se_GetUserCommand = se_GetUserCommand;
|
|
403
268
|
const se_GetWorkingLocationCommand = async (input, context) => {
|
|
404
|
-
const
|
|
269
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
405
270
|
const headers = {
|
|
406
271
|
"content-type": "application/json",
|
|
407
272
|
};
|
|
408
|
-
|
|
273
|
+
b.bp("/workingLocationV1");
|
|
409
274
|
let body;
|
|
410
275
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
411
276
|
locationType: [],
|
|
412
277
|
}));
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
hostname,
|
|
416
|
-
port,
|
|
417
|
-
method: "POST",
|
|
418
|
-
headers,
|
|
419
|
-
path: resolvedPath,
|
|
420
|
-
body,
|
|
421
|
-
});
|
|
278
|
+
b.m("POST").h(headers).b(body);
|
|
279
|
+
return b.build();
|
|
422
280
|
};
|
|
423
281
|
exports.se_GetWorkingLocationCommand = se_GetWorkingLocationCommand;
|
|
424
282
|
const se_ListChangesetsCommand = async (input, context) => {
|
|
425
|
-
const
|
|
283
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
426
284
|
const headers = {};
|
|
427
|
-
|
|
428
|
-
|
|
285
|
+
b.bp("/datasets/{datasetId}/changesetsv2");
|
|
286
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
429
287
|
const query = (0, smithy_client_1.map)({
|
|
430
|
-
|
|
431
|
-
|
|
288
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
289
|
+
[_nT]: [, input[_nT]],
|
|
432
290
|
});
|
|
433
291
|
let body;
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
hostname,
|
|
437
|
-
port,
|
|
438
|
-
method: "GET",
|
|
439
|
-
headers,
|
|
440
|
-
path: resolvedPath,
|
|
441
|
-
query,
|
|
442
|
-
body,
|
|
443
|
-
});
|
|
292
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
293
|
+
return b.build();
|
|
444
294
|
};
|
|
445
295
|
exports.se_ListChangesetsCommand = se_ListChangesetsCommand;
|
|
446
296
|
const se_ListDatasetsCommand = async (input, context) => {
|
|
447
|
-
const
|
|
297
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
448
298
|
const headers = {};
|
|
449
|
-
|
|
299
|
+
b.bp("/datasetsv2");
|
|
450
300
|
const query = (0, smithy_client_1.map)({
|
|
451
|
-
|
|
452
|
-
|
|
301
|
+
[_nT]: [, input[_nT]],
|
|
302
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
453
303
|
});
|
|
454
304
|
let body;
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
hostname,
|
|
458
|
-
port,
|
|
459
|
-
method: "GET",
|
|
460
|
-
headers,
|
|
461
|
-
path: resolvedPath,
|
|
462
|
-
query,
|
|
463
|
-
body,
|
|
464
|
-
});
|
|
305
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
306
|
+
return b.build();
|
|
465
307
|
};
|
|
466
308
|
exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
|
|
467
309
|
const se_ListDataViewsCommand = async (input, context) => {
|
|
468
|
-
const
|
|
310
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
469
311
|
const headers = {};
|
|
470
|
-
|
|
471
|
-
|
|
312
|
+
b.bp("/datasets/{datasetId}/dataviewsv2");
|
|
313
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
472
314
|
const query = (0, smithy_client_1.map)({
|
|
473
|
-
|
|
474
|
-
|
|
315
|
+
[_nT]: [, input[_nT]],
|
|
316
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
475
317
|
});
|
|
476
318
|
let body;
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
hostname,
|
|
480
|
-
port,
|
|
481
|
-
method: "GET",
|
|
482
|
-
headers,
|
|
483
|
-
path: resolvedPath,
|
|
484
|
-
query,
|
|
485
|
-
body,
|
|
486
|
-
});
|
|
319
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
320
|
+
return b.build();
|
|
487
321
|
};
|
|
488
322
|
exports.se_ListDataViewsCommand = se_ListDataViewsCommand;
|
|
489
323
|
const se_ListPermissionGroupsCommand = async (input, context) => {
|
|
490
|
-
const
|
|
324
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
491
325
|
const headers = {};
|
|
492
|
-
|
|
326
|
+
b.bp("/permission-group");
|
|
493
327
|
const query = (0, smithy_client_1.map)({
|
|
494
|
-
|
|
495
|
-
|
|
328
|
+
[_nT]: [, input[_nT]],
|
|
329
|
+
[_mR]: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
|
|
496
330
|
});
|
|
497
331
|
let body;
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
hostname,
|
|
501
|
-
port,
|
|
502
|
-
method: "GET",
|
|
503
|
-
headers,
|
|
504
|
-
path: resolvedPath,
|
|
505
|
-
query,
|
|
506
|
-
body,
|
|
507
|
-
});
|
|
332
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
333
|
+
return b.build();
|
|
508
334
|
};
|
|
509
335
|
exports.se_ListPermissionGroupsCommand = se_ListPermissionGroupsCommand;
|
|
510
336
|
const se_ListPermissionGroupsByUserCommand = async (input, context) => {
|
|
511
|
-
const
|
|
337
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
512
338
|
const headers = {};
|
|
513
|
-
|
|
514
|
-
|
|
339
|
+
b.bp("/user/{userId}/permission-groups");
|
|
340
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
515
341
|
const query = (0, smithy_client_1.map)({
|
|
516
|
-
|
|
517
|
-
|
|
342
|
+
[_nT]: [, input[_nT]],
|
|
343
|
+
[_mR]: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
|
|
518
344
|
});
|
|
519
345
|
let body;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
hostname,
|
|
523
|
-
port,
|
|
524
|
-
method: "GET",
|
|
525
|
-
headers,
|
|
526
|
-
path: resolvedPath,
|
|
527
|
-
query,
|
|
528
|
-
body,
|
|
529
|
-
});
|
|
346
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
347
|
+
return b.build();
|
|
530
348
|
};
|
|
531
349
|
exports.se_ListPermissionGroupsByUserCommand = se_ListPermissionGroupsByUserCommand;
|
|
532
350
|
const se_ListUsersCommand = async (input, context) => {
|
|
533
|
-
const
|
|
351
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
534
352
|
const headers = {};
|
|
535
|
-
|
|
353
|
+
b.bp("/user");
|
|
536
354
|
const query = (0, smithy_client_1.map)({
|
|
537
|
-
|
|
538
|
-
|
|
355
|
+
[_nT]: [, input[_nT]],
|
|
356
|
+
[_mR]: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
|
|
539
357
|
});
|
|
540
358
|
let body;
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
hostname,
|
|
544
|
-
port,
|
|
545
|
-
method: "GET",
|
|
546
|
-
headers,
|
|
547
|
-
path: resolvedPath,
|
|
548
|
-
query,
|
|
549
|
-
body,
|
|
550
|
-
});
|
|
359
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
360
|
+
return b.build();
|
|
551
361
|
};
|
|
552
362
|
exports.se_ListUsersCommand = se_ListUsersCommand;
|
|
553
363
|
const se_ListUsersByPermissionGroupCommand = async (input, context) => {
|
|
554
|
-
const
|
|
364
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
555
365
|
const headers = {};
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
366
|
+
b.bp("/permission-group/{permissionGroupId}/users");
|
|
367
|
+
b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
559
368
|
const query = (0, smithy_client_1.map)({
|
|
560
|
-
|
|
561
|
-
|
|
369
|
+
[_nT]: [, input[_nT]],
|
|
370
|
+
[_mR]: [(0, smithy_client_1.expectNonNull)(input.maxResults, `maxResults`) != null, () => input[_mR].toString()],
|
|
562
371
|
});
|
|
563
372
|
let body;
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
hostname,
|
|
567
|
-
port,
|
|
568
|
-
method: "GET",
|
|
569
|
-
headers,
|
|
570
|
-
path: resolvedPath,
|
|
571
|
-
query,
|
|
572
|
-
body,
|
|
573
|
-
});
|
|
373
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
374
|
+
return b.build();
|
|
574
375
|
};
|
|
575
376
|
exports.se_ListUsersByPermissionGroupCommand = se_ListUsersByPermissionGroupCommand;
|
|
576
377
|
const se_ResetUserPasswordCommand = async (input, context) => {
|
|
577
|
-
const
|
|
378
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
578
379
|
const headers = {
|
|
579
380
|
"content-type": "application/json",
|
|
580
381
|
};
|
|
581
|
-
|
|
582
|
-
|
|
382
|
+
b.bp("/user/{userId}/password");
|
|
383
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
583
384
|
let body;
|
|
584
385
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
585
386
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
586
387
|
}));
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
hostname,
|
|
590
|
-
port,
|
|
591
|
-
method: "POST",
|
|
592
|
-
headers,
|
|
593
|
-
path: resolvedPath,
|
|
594
|
-
body,
|
|
595
|
-
});
|
|
388
|
+
b.m("POST").h(headers).b(body);
|
|
389
|
+
return b.build();
|
|
596
390
|
};
|
|
597
391
|
exports.se_ResetUserPasswordCommand = se_ResetUserPasswordCommand;
|
|
598
392
|
const se_UpdateChangesetCommand = async (input, context) => {
|
|
599
|
-
const
|
|
393
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
600
394
|
const headers = {
|
|
601
395
|
"content-type": "application/json",
|
|
602
396
|
};
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "changesetId", () => input.changesetId, "{changesetId}", false);
|
|
397
|
+
b.bp("/datasets/{datasetId}/changesetsv2/{changesetId}");
|
|
398
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
399
|
+
b.p("changesetId", () => input.changesetId, "{changesetId}", false);
|
|
607
400
|
let body;
|
|
608
401
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
609
402
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
610
403
|
formatParams: (_) => (0, smithy_client_1._json)(_),
|
|
611
404
|
sourceParams: (_) => (0, smithy_client_1._json)(_),
|
|
612
405
|
}));
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
hostname,
|
|
616
|
-
port,
|
|
617
|
-
method: "PUT",
|
|
618
|
-
headers,
|
|
619
|
-
path: resolvedPath,
|
|
620
|
-
body,
|
|
621
|
-
});
|
|
406
|
+
b.m("PUT").h(headers).b(body);
|
|
407
|
+
return b.build();
|
|
622
408
|
};
|
|
623
409
|
exports.se_UpdateChangesetCommand = se_UpdateChangesetCommand;
|
|
624
410
|
const se_UpdateDatasetCommand = async (input, context) => {
|
|
625
|
-
const
|
|
411
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
626
412
|
const headers = {
|
|
627
413
|
"content-type": "application/json",
|
|
628
414
|
};
|
|
629
|
-
|
|
630
|
-
|
|
415
|
+
b.bp("/datasetsv2/{datasetId}");
|
|
416
|
+
b.p("datasetId", () => input.datasetId, "{datasetId}", false);
|
|
631
417
|
let body;
|
|
632
418
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
633
419
|
alias: [],
|
|
@@ -637,24 +423,17 @@ const se_UpdateDatasetCommand = async (input, context) => {
|
|
|
637
423
|
kind: [],
|
|
638
424
|
schemaDefinition: (_) => (0, smithy_client_1._json)(_),
|
|
639
425
|
}));
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
hostname,
|
|
643
|
-
port,
|
|
644
|
-
method: "PUT",
|
|
645
|
-
headers,
|
|
646
|
-
path: resolvedPath,
|
|
647
|
-
body,
|
|
648
|
-
});
|
|
426
|
+
b.m("PUT").h(headers).b(body);
|
|
427
|
+
return b.build();
|
|
649
428
|
};
|
|
650
429
|
exports.se_UpdateDatasetCommand = se_UpdateDatasetCommand;
|
|
651
430
|
const se_UpdatePermissionGroupCommand = async (input, context) => {
|
|
652
|
-
const
|
|
431
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
653
432
|
const headers = {
|
|
654
433
|
"content-type": "application/json",
|
|
655
434
|
};
|
|
656
|
-
|
|
657
|
-
|
|
435
|
+
b.bp("/permission-group/{permissionGroupId}");
|
|
436
|
+
b.p("permissionGroupId", () => input.permissionGroupId, "{permissionGroupId}", false);
|
|
658
437
|
let body;
|
|
659
438
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
660
439
|
applicationPermissions: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -662,24 +441,17 @@ const se_UpdatePermissionGroupCommand = async (input, context) => {
|
|
|
662
441
|
description: [],
|
|
663
442
|
name: [],
|
|
664
443
|
}));
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
hostname,
|
|
668
|
-
port,
|
|
669
|
-
method: "PUT",
|
|
670
|
-
headers,
|
|
671
|
-
path: resolvedPath,
|
|
672
|
-
body,
|
|
673
|
-
});
|
|
444
|
+
b.m("PUT").h(headers).b(body);
|
|
445
|
+
return b.build();
|
|
674
446
|
};
|
|
675
447
|
exports.se_UpdatePermissionGroupCommand = se_UpdatePermissionGroupCommand;
|
|
676
448
|
const se_UpdateUserCommand = async (input, context) => {
|
|
677
|
-
const
|
|
449
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
678
450
|
const headers = {
|
|
679
451
|
"content-type": "application/json",
|
|
680
452
|
};
|
|
681
|
-
|
|
682
|
-
|
|
453
|
+
b.bp("/user/{userId}");
|
|
454
|
+
b.p("userId", () => input.userId, "{userId}", false);
|
|
683
455
|
let body;
|
|
684
456
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
685
457
|
apiAccess: [],
|
|
@@ -689,15 +461,8 @@ const se_UpdateUserCommand = async (input, context) => {
|
|
|
689
461
|
lastName: [],
|
|
690
462
|
type: [],
|
|
691
463
|
}));
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
hostname,
|
|
695
|
-
port,
|
|
696
|
-
method: "PUT",
|
|
697
|
-
headers,
|
|
698
|
-
path: resolvedPath,
|
|
699
|
-
body,
|
|
700
|
-
});
|
|
464
|
+
b.m("PUT").h(headers).b(body);
|
|
465
|
+
return b.build();
|
|
701
466
|
};
|
|
702
467
|
exports.se_UpdateUserCommand = se_UpdateUserCommand;
|
|
703
468
|
const de_AssociateUserToPermissionGroupCommand = async (output, context) => {
|
|
@@ -2348,6 +2113,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
2348
2113
|
value !== "" &&
|
|
2349
2114
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
2350
2115
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2116
|
+
const _cT = "clientToken";
|
|
2117
|
+
const _dIM = "durationInMinutes";
|
|
2118
|
+
const _eI = "environmentId";
|
|
2119
|
+
const _mR = "maxResults";
|
|
2120
|
+
const _nT = "nextToken";
|
|
2351
2121
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2352
2122
|
if (encoded.length) {
|
|
2353
2123
|
return JSON.parse(encoded);
|