@aws-sdk/client-codecatalyst 3.476.0 → 3.478.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/pagination/ListAccessTokensPaginator.js +2 -24
- package/dist-cjs/pagination/ListDevEnvironmentSessionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDevEnvironmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEventLogsPaginator.js +2 -24
- package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSourceRepositoriesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSourceRepositoryBranchesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSpacesPaginator.js +2 -23
- package/dist-cjs/pagination/ListWorkflowRunsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +241 -527
- package/dist-es/pagination/ListAccessTokensPaginator.js +2 -23
- package/dist-es/pagination/ListDevEnvironmentSessionsPaginator.js +2 -23
- package/dist-es/pagination/ListDevEnvironmentsPaginator.js +2 -23
- package/dist-es/pagination/ListEventLogsPaginator.js +2 -23
- package/dist-es/pagination/ListProjectsPaginator.js +2 -23
- package/dist-es/pagination/ListSourceRepositoriesPaginator.js +2 -23
- package/dist-es/pagination/ListSourceRepositoryBranchesPaginator.js +2 -23
- package/dist-es/pagination/ListSpacesPaginator.js +2 -22
- package/dist-es/pagination/ListWorkflowRunsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +242 -528
- package/dist-types/pagination/ListAccessTokensPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDevEnvironmentSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDevEnvironmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventLogsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSourceRepositoriesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSourceRepositoryBranchesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSpacesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDevEnvironmentSessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDevEnvironmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEventLogsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSourceRepositoriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSourceRepositoryBranchesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
- package/package.json +6 -6
|
@@ -2,42 +2,34 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_GetProjectCommand = exports.de_GetDevEnvironmentCommand = exports.de_DeleteSpaceCommand = exports.de_DeleteSourceRepositoryCommand = exports.de_DeleteProjectCommand = exports.de_DeleteDevEnvironmentCommand = exports.de_DeleteAccessTokenCommand = exports.de_CreateSourceRepositoryBranchCommand = exports.de_CreateSourceRepositoryCommand = exports.de_CreateProjectCommand = exports.de_CreateDevEnvironmentCommand = exports.de_CreateAccessTokenCommand = exports.se_VerifySessionCommand = exports.se_UpdateSpaceCommand = exports.se_UpdateProjectCommand = exports.se_UpdateDevEnvironmentCommand = exports.se_StopDevEnvironmentSessionCommand = exports.se_StopDevEnvironmentCommand = exports.se_StartWorkflowRunCommand = exports.se_StartDevEnvironmentSessionCommand = exports.se_StartDevEnvironmentCommand = exports.se_ListWorkflowsCommand = exports.se_ListWorkflowRunsCommand = exports.se_ListSpacesCommand = exports.se_ListSourceRepositoryBranchesCommand = exports.se_ListSourceRepositoriesCommand = exports.se_ListProjectsCommand = exports.se_ListEventLogsCommand = exports.se_ListDevEnvironmentSessionsCommand = exports.se_ListDevEnvironmentsCommand = exports.se_ListAccessTokensCommand = exports.se_GetWorkflowRunCommand = exports.se_GetWorkflowCommand = exports.se_GetUserDetailsCommand = exports.se_GetSubscriptionCommand = exports.se_GetSpaceCommand = exports.se_GetSourceRepositoryCloneUrlsCommand = exports.se_GetSourceRepositoryCommand = exports.se_GetProjectCommand = exports.se_GetDevEnvironmentCommand = exports.se_DeleteSpaceCommand = exports.se_DeleteSourceRepositoryCommand = exports.se_DeleteProjectCommand = exports.se_DeleteDevEnvironmentCommand = exports.se_DeleteAccessTokenCommand = exports.se_CreateSourceRepositoryBranchCommand = exports.se_CreateSourceRepositoryCommand = exports.se_CreateProjectCommand = exports.se_CreateDevEnvironmentCommand = exports.se_CreateAccessTokenCommand = void 0;
|
|
4
4
|
exports.de_VerifySessionCommand = exports.de_UpdateSpaceCommand = exports.de_UpdateProjectCommand = exports.de_UpdateDevEnvironmentCommand = exports.de_StopDevEnvironmentSessionCommand = exports.de_StopDevEnvironmentCommand = exports.de_StartWorkflowRunCommand = exports.de_StartDevEnvironmentSessionCommand = exports.de_StartDevEnvironmentCommand = exports.de_ListWorkflowsCommand = exports.de_ListWorkflowRunsCommand = exports.de_ListSpacesCommand = exports.de_ListSourceRepositoryBranchesCommand = exports.de_ListSourceRepositoriesCommand = exports.de_ListProjectsCommand = exports.de_ListEventLogsCommand = exports.de_ListDevEnvironmentSessionsCommand = exports.de_ListDevEnvironmentsCommand = exports.de_ListAccessTokensCommand = exports.de_GetWorkflowRunCommand = exports.de_GetWorkflowCommand = exports.de_GetUserDetailsCommand = exports.de_GetSubscriptionCommand = exports.de_GetSpaceCommand = exports.de_GetSourceRepositoryCloneUrlsCommand = exports.de_GetSourceRepositoryCommand = 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 CodeCatalystServiceException_1 = require("../models/CodeCatalystServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_CreateAccessTokenCommand = 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
|
-
|
|
15
|
+
b.bp("/v1/accessTokens");
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
18
|
expiresTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
19
19
|
name: [],
|
|
20
20
|
}));
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
hostname,
|
|
24
|
-
port,
|
|
25
|
-
method: "PUT",
|
|
26
|
-
headers,
|
|
27
|
-
path: resolvedPath,
|
|
28
|
-
body,
|
|
29
|
-
});
|
|
21
|
+
b.m("PUT").h(headers).b(body);
|
|
22
|
+
return b.build();
|
|
30
23
|
};
|
|
31
24
|
exports.se_CreateAccessTokenCommand = se_CreateAccessTokenCommand;
|
|
32
25
|
const se_CreateDevEnvironmentCommand = async (input, context) => {
|
|
33
|
-
const
|
|
26
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
34
27
|
const headers = {
|
|
35
28
|
"content-type": "application/json",
|
|
36
29
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
30
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments");
|
|
31
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
32
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
41
33
|
let body;
|
|
42
34
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
35
|
alias: [],
|
|
@@ -49,385 +41,242 @@ const se_CreateDevEnvironmentCommand = async (input, context) => {
|
|
|
49
41
|
repositories: (_) => (0, smithy_client_1._json)(_),
|
|
50
42
|
vpcConnectionName: [],
|
|
51
43
|
}));
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
hostname,
|
|
55
|
-
port,
|
|
56
|
-
method: "PUT",
|
|
57
|
-
headers,
|
|
58
|
-
path: resolvedPath,
|
|
59
|
-
body,
|
|
60
|
-
});
|
|
44
|
+
b.m("PUT").h(headers).b(body);
|
|
45
|
+
return b.build();
|
|
61
46
|
};
|
|
62
47
|
exports.se_CreateDevEnvironmentCommand = se_CreateDevEnvironmentCommand;
|
|
63
48
|
const se_CreateProjectCommand = async (input, context) => {
|
|
64
|
-
const
|
|
49
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
65
50
|
const headers = {
|
|
66
51
|
"content-type": "application/json",
|
|
67
52
|
};
|
|
68
|
-
|
|
69
|
-
|
|
53
|
+
b.bp("/v1/spaces/{spaceName}/projects");
|
|
54
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
70
55
|
let body;
|
|
71
56
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
72
57
|
description: [],
|
|
73
58
|
displayName: [],
|
|
74
59
|
}));
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
hostname,
|
|
78
|
-
port,
|
|
79
|
-
method: "PUT",
|
|
80
|
-
headers,
|
|
81
|
-
path: resolvedPath,
|
|
82
|
-
body,
|
|
83
|
-
});
|
|
60
|
+
b.m("PUT").h(headers).b(body);
|
|
61
|
+
return b.build();
|
|
84
62
|
};
|
|
85
63
|
exports.se_CreateProjectCommand = se_CreateProjectCommand;
|
|
86
64
|
const se_CreateSourceRepositoryCommand = async (input, context) => {
|
|
87
|
-
const
|
|
65
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
88
66
|
const headers = {
|
|
89
67
|
"content-type": "application/json",
|
|
90
68
|
};
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
69
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
70
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
71
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
72
|
+
b.p("name", () => input.name, "{name}", false);
|
|
96
73
|
let body;
|
|
97
74
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
98
75
|
description: [],
|
|
99
76
|
}));
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
hostname,
|
|
103
|
-
port,
|
|
104
|
-
method: "PUT",
|
|
105
|
-
headers,
|
|
106
|
-
path: resolvedPath,
|
|
107
|
-
body,
|
|
108
|
-
});
|
|
77
|
+
b.m("PUT").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
109
79
|
};
|
|
110
80
|
exports.se_CreateSourceRepositoryCommand = se_CreateSourceRepositoryCommand;
|
|
111
81
|
const se_CreateSourceRepositoryBranchCommand = async (input, context) => {
|
|
112
|
-
const
|
|
82
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
113
83
|
const headers = {
|
|
114
84
|
"content-type": "application/json",
|
|
115
85
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
86
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches/{name}");
|
|
87
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
88
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
89
|
+
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
90
|
+
b.p("name", () => input.name, "{name}", false);
|
|
122
91
|
let body;
|
|
123
92
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
124
93
|
headCommitId: [],
|
|
125
94
|
}));
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
hostname,
|
|
129
|
-
port,
|
|
130
|
-
method: "PUT",
|
|
131
|
-
headers,
|
|
132
|
-
path: resolvedPath,
|
|
133
|
-
body,
|
|
134
|
-
});
|
|
95
|
+
b.m("PUT").h(headers).b(body);
|
|
96
|
+
return b.build();
|
|
135
97
|
};
|
|
136
98
|
exports.se_CreateSourceRepositoryBranchCommand = se_CreateSourceRepositoryBranchCommand;
|
|
137
99
|
const se_DeleteAccessTokenCommand = async (input, context) => {
|
|
138
|
-
const
|
|
100
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
139
101
|
const headers = {};
|
|
140
|
-
|
|
141
|
-
|
|
102
|
+
b.bp("/v1/accessTokens/{id}");
|
|
103
|
+
b.p("id", () => input.id, "{id}", false);
|
|
142
104
|
let body;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
hostname,
|
|
146
|
-
port,
|
|
147
|
-
method: "DELETE",
|
|
148
|
-
headers,
|
|
149
|
-
path: resolvedPath,
|
|
150
|
-
body,
|
|
151
|
-
});
|
|
105
|
+
b.m("DELETE").h(headers).b(body);
|
|
106
|
+
return b.build();
|
|
152
107
|
};
|
|
153
108
|
exports.se_DeleteAccessTokenCommand = se_DeleteAccessTokenCommand;
|
|
154
109
|
const se_DeleteDevEnvironmentCommand = async (input, context) => {
|
|
155
|
-
const
|
|
110
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
156
111
|
const headers = {};
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
112
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
113
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
114
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
115
|
+
b.p("id", () => input.id, "{id}", false);
|
|
162
116
|
let body;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
hostname,
|
|
166
|
-
port,
|
|
167
|
-
method: "DELETE",
|
|
168
|
-
headers,
|
|
169
|
-
path: resolvedPath,
|
|
170
|
-
body,
|
|
171
|
-
});
|
|
117
|
+
b.m("DELETE").h(headers).b(body);
|
|
118
|
+
return b.build();
|
|
172
119
|
};
|
|
173
120
|
exports.se_DeleteDevEnvironmentCommand = se_DeleteDevEnvironmentCommand;
|
|
174
121
|
const se_DeleteProjectCommand = async (input, context) => {
|
|
175
|
-
const
|
|
122
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
176
123
|
const headers = {};
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
124
|
+
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
125
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
126
|
+
b.p("name", () => input.name, "{name}", false);
|
|
180
127
|
let body;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
hostname,
|
|
184
|
-
port,
|
|
185
|
-
method: "DELETE",
|
|
186
|
-
headers,
|
|
187
|
-
path: resolvedPath,
|
|
188
|
-
body,
|
|
189
|
-
});
|
|
128
|
+
b.m("DELETE").h(headers).b(body);
|
|
129
|
+
return b.build();
|
|
190
130
|
};
|
|
191
131
|
exports.se_DeleteProjectCommand = se_DeleteProjectCommand;
|
|
192
132
|
const se_DeleteSourceRepositoryCommand = async (input, context) => {
|
|
193
|
-
const
|
|
133
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
194
134
|
const headers = {};
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
135
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
136
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
137
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
138
|
+
b.p("name", () => input.name, "{name}", false);
|
|
200
139
|
let body;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
hostname,
|
|
204
|
-
port,
|
|
205
|
-
method: "DELETE",
|
|
206
|
-
headers,
|
|
207
|
-
path: resolvedPath,
|
|
208
|
-
body,
|
|
209
|
-
});
|
|
140
|
+
b.m("DELETE").h(headers).b(body);
|
|
141
|
+
return b.build();
|
|
210
142
|
};
|
|
211
143
|
exports.se_DeleteSourceRepositoryCommand = se_DeleteSourceRepositoryCommand;
|
|
212
144
|
const se_DeleteSpaceCommand = async (input, context) => {
|
|
213
|
-
const
|
|
145
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
214
146
|
const headers = {};
|
|
215
|
-
|
|
216
|
-
|
|
147
|
+
b.bp("/v1/spaces/{name}");
|
|
148
|
+
b.p("name", () => input.name, "{name}", false);
|
|
217
149
|
let body;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
hostname,
|
|
221
|
-
port,
|
|
222
|
-
method: "DELETE",
|
|
223
|
-
headers,
|
|
224
|
-
path: resolvedPath,
|
|
225
|
-
body,
|
|
226
|
-
});
|
|
150
|
+
b.m("DELETE").h(headers).b(body);
|
|
151
|
+
return b.build();
|
|
227
152
|
};
|
|
228
153
|
exports.se_DeleteSpaceCommand = se_DeleteSpaceCommand;
|
|
229
154
|
const se_GetDevEnvironmentCommand = async (input, context) => {
|
|
230
|
-
const
|
|
155
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
231
156
|
const headers = {};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
157
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
158
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
159
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
160
|
+
b.p("id", () => input.id, "{id}", false);
|
|
237
161
|
let body;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
hostname,
|
|
241
|
-
port,
|
|
242
|
-
method: "GET",
|
|
243
|
-
headers,
|
|
244
|
-
path: resolvedPath,
|
|
245
|
-
body,
|
|
246
|
-
});
|
|
162
|
+
b.m("GET").h(headers).b(body);
|
|
163
|
+
return b.build();
|
|
247
164
|
};
|
|
248
165
|
exports.se_GetDevEnvironmentCommand = se_GetDevEnvironmentCommand;
|
|
249
166
|
const se_GetProjectCommand = async (input, context) => {
|
|
250
|
-
const
|
|
167
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
251
168
|
const headers = {};
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
169
|
+
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
170
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
171
|
+
b.p("name", () => input.name, "{name}", false);
|
|
255
172
|
let body;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
hostname,
|
|
259
|
-
port,
|
|
260
|
-
method: "GET",
|
|
261
|
-
headers,
|
|
262
|
-
path: resolvedPath,
|
|
263
|
-
body,
|
|
264
|
-
});
|
|
173
|
+
b.m("GET").h(headers).b(body);
|
|
174
|
+
return b.build();
|
|
265
175
|
};
|
|
266
176
|
exports.se_GetProjectCommand = se_GetProjectCommand;
|
|
267
177
|
const se_GetSourceRepositoryCommand = async (input, context) => {
|
|
268
|
-
const
|
|
178
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
269
179
|
const headers = {};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
|
|
180
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{name}");
|
|
181
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
182
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
183
|
+
b.p("name", () => input.name, "{name}", false);
|
|
275
184
|
let body;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
hostname,
|
|
279
|
-
port,
|
|
280
|
-
method: "GET",
|
|
281
|
-
headers,
|
|
282
|
-
path: resolvedPath,
|
|
283
|
-
body,
|
|
284
|
-
});
|
|
185
|
+
b.m("GET").h(headers).b(body);
|
|
186
|
+
return b.build();
|
|
285
187
|
};
|
|
286
188
|
exports.se_GetSourceRepositoryCommand = se_GetSourceRepositoryCommand;
|
|
287
189
|
const se_GetSourceRepositoryCloneUrlsCommand = async (input, context) => {
|
|
288
|
-
const
|
|
190
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
289
191
|
const headers = {};
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
192
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/cloneUrls");
|
|
193
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
194
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
195
|
+
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
295
196
|
let body;
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
hostname,
|
|
299
|
-
port,
|
|
300
|
-
method: "GET",
|
|
301
|
-
headers,
|
|
302
|
-
path: resolvedPath,
|
|
303
|
-
body,
|
|
304
|
-
});
|
|
197
|
+
b.m("GET").h(headers).b(body);
|
|
198
|
+
return b.build();
|
|
305
199
|
};
|
|
306
200
|
exports.se_GetSourceRepositoryCloneUrlsCommand = se_GetSourceRepositoryCloneUrlsCommand;
|
|
307
201
|
const se_GetSpaceCommand = async (input, context) => {
|
|
308
|
-
const
|
|
202
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
309
203
|
const headers = {};
|
|
310
|
-
|
|
311
|
-
|
|
204
|
+
b.bp("/v1/spaces/{name}");
|
|
205
|
+
b.p("name", () => input.name, "{name}", false);
|
|
312
206
|
let body;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
hostname,
|
|
316
|
-
port,
|
|
317
|
-
method: "GET",
|
|
318
|
-
headers,
|
|
319
|
-
path: resolvedPath,
|
|
320
|
-
body,
|
|
321
|
-
});
|
|
207
|
+
b.m("GET").h(headers).b(body);
|
|
208
|
+
return b.build();
|
|
322
209
|
};
|
|
323
210
|
exports.se_GetSpaceCommand = se_GetSpaceCommand;
|
|
324
211
|
const se_GetSubscriptionCommand = async (input, context) => {
|
|
325
|
-
const
|
|
212
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
326
213
|
const headers = {};
|
|
327
|
-
|
|
328
|
-
|
|
214
|
+
b.bp("/v1/spaces/{spaceName}/subscription");
|
|
215
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
329
216
|
let body;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
hostname,
|
|
333
|
-
port,
|
|
334
|
-
method: "GET",
|
|
335
|
-
headers,
|
|
336
|
-
path: resolvedPath,
|
|
337
|
-
body,
|
|
338
|
-
});
|
|
217
|
+
b.m("GET").h(headers).b(body);
|
|
218
|
+
return b.build();
|
|
339
219
|
};
|
|
340
220
|
exports.se_GetSubscriptionCommand = se_GetSubscriptionCommand;
|
|
341
221
|
const se_GetUserDetailsCommand = async (input, context) => {
|
|
342
|
-
const
|
|
222
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
343
223
|
const headers = {};
|
|
344
|
-
|
|
224
|
+
b.bp("/userDetails");
|
|
345
225
|
const query = (0, smithy_client_1.map)({
|
|
346
|
-
|
|
347
|
-
|
|
226
|
+
[_i]: [, input[_i]],
|
|
227
|
+
[_uN]: [, input[_uN]],
|
|
348
228
|
});
|
|
349
229
|
let body;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
hostname,
|
|
353
|
-
port,
|
|
354
|
-
method: "GET",
|
|
355
|
-
headers,
|
|
356
|
-
path: resolvedPath,
|
|
357
|
-
query,
|
|
358
|
-
body,
|
|
359
|
-
});
|
|
230
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
231
|
+
return b.build();
|
|
360
232
|
};
|
|
361
233
|
exports.se_GetUserDetailsCommand = se_GetUserDetailsCommand;
|
|
362
234
|
const se_GetWorkflowCommand = async (input, context) => {
|
|
363
|
-
const
|
|
235
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
364
236
|
const headers = {};
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
237
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflows/{id}");
|
|
238
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
239
|
+
b.p("id", () => input.id, "{id}", false);
|
|
240
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
370
241
|
let body;
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
hostname,
|
|
374
|
-
port,
|
|
375
|
-
method: "GET",
|
|
376
|
-
headers,
|
|
377
|
-
path: resolvedPath,
|
|
378
|
-
body,
|
|
379
|
-
});
|
|
242
|
+
b.m("GET").h(headers).b(body);
|
|
243
|
+
return b.build();
|
|
380
244
|
};
|
|
381
245
|
exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
|
|
382
246
|
const se_GetWorkflowRunCommand = async (input, context) => {
|
|
383
|
-
const
|
|
247
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
384
248
|
const headers = {};
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
249
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns/{id}");
|
|
250
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
251
|
+
b.p("id", () => input.id, "{id}", false);
|
|
252
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
390
253
|
let body;
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
hostname,
|
|
394
|
-
port,
|
|
395
|
-
method: "GET",
|
|
396
|
-
headers,
|
|
397
|
-
path: resolvedPath,
|
|
398
|
-
body,
|
|
399
|
-
});
|
|
254
|
+
b.m("GET").h(headers).b(body);
|
|
255
|
+
return b.build();
|
|
400
256
|
};
|
|
401
257
|
exports.se_GetWorkflowRunCommand = se_GetWorkflowRunCommand;
|
|
402
258
|
const se_ListAccessTokensCommand = async (input, context) => {
|
|
403
|
-
const
|
|
259
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
404
260
|
const headers = {
|
|
405
261
|
"content-type": "application/json",
|
|
406
262
|
};
|
|
407
|
-
|
|
263
|
+
b.bp("/v1/accessTokens");
|
|
408
264
|
let body;
|
|
409
265
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
410
266
|
maxResults: [],
|
|
411
267
|
nextToken: [],
|
|
412
268
|
}));
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
hostname,
|
|
416
|
-
port,
|
|
417
|
-
method: "POST",
|
|
418
|
-
headers,
|
|
419
|
-
path: resolvedPath,
|
|
420
|
-
body,
|
|
421
|
-
});
|
|
269
|
+
b.m("POST").h(headers).b(body);
|
|
270
|
+
return b.build();
|
|
422
271
|
};
|
|
423
272
|
exports.se_ListAccessTokensCommand = se_ListAccessTokensCommand;
|
|
424
273
|
const se_ListDevEnvironmentsCommand = async (input, context) => {
|
|
425
|
-
const
|
|
274
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
426
275
|
const headers = {
|
|
427
276
|
"content-type": "application/json",
|
|
428
277
|
};
|
|
429
|
-
|
|
430
|
-
|
|
278
|
+
b.bp("/v1/spaces/{spaceName}/devEnvironments");
|
|
279
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
431
280
|
let body;
|
|
432
281
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
433
282
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
@@ -435,50 +284,35 @@ const se_ListDevEnvironmentsCommand = async (input, context) => {
|
|
|
435
284
|
nextToken: [],
|
|
436
285
|
projectName: [],
|
|
437
286
|
}));
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
hostname,
|
|
441
|
-
port,
|
|
442
|
-
method: "POST",
|
|
443
|
-
headers,
|
|
444
|
-
path: resolvedPath,
|
|
445
|
-
body,
|
|
446
|
-
});
|
|
287
|
+
b.m("POST").h(headers).b(body);
|
|
288
|
+
return b.build();
|
|
447
289
|
};
|
|
448
290
|
exports.se_ListDevEnvironmentsCommand = se_ListDevEnvironmentsCommand;
|
|
449
291
|
const se_ListDevEnvironmentSessionsCommand = async (input, context) => {
|
|
450
|
-
const
|
|
292
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
451
293
|
const headers = {
|
|
452
294
|
"content-type": "application/json",
|
|
453
295
|
};
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "devEnvironmentId", () => input.devEnvironmentId, "{devEnvironmentId}", false);
|
|
296
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{devEnvironmentId}/sessions");
|
|
297
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
298
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
299
|
+
b.p("devEnvironmentId", () => input.devEnvironmentId, "{devEnvironmentId}", false);
|
|
459
300
|
let body;
|
|
460
301
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
461
302
|
maxResults: [],
|
|
462
303
|
nextToken: [],
|
|
463
304
|
}));
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
hostname,
|
|
467
|
-
port,
|
|
468
|
-
method: "POST",
|
|
469
|
-
headers,
|
|
470
|
-
path: resolvedPath,
|
|
471
|
-
body,
|
|
472
|
-
});
|
|
305
|
+
b.m("POST").h(headers).b(body);
|
|
306
|
+
return b.build();
|
|
473
307
|
};
|
|
474
308
|
exports.se_ListDevEnvironmentSessionsCommand = se_ListDevEnvironmentSessionsCommand;
|
|
475
309
|
const se_ListEventLogsCommand = async (input, context) => {
|
|
476
|
-
const
|
|
310
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
477
311
|
const headers = {
|
|
478
312
|
"content-type": "application/json",
|
|
479
313
|
};
|
|
480
|
-
|
|
481
|
-
|
|
314
|
+
b.bp("/v1/spaces/{spaceName}/eventLogs");
|
|
315
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
482
316
|
let body;
|
|
483
317
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
484
318
|
endTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
@@ -487,303 +321,206 @@ const se_ListEventLogsCommand = async (input, context) => {
|
|
|
487
321
|
nextToken: [],
|
|
488
322
|
startTime: (_) => _.toISOString().split(".")[0] + "Z",
|
|
489
323
|
}));
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
hostname,
|
|
493
|
-
port,
|
|
494
|
-
method: "POST",
|
|
495
|
-
headers,
|
|
496
|
-
path: resolvedPath,
|
|
497
|
-
body,
|
|
498
|
-
});
|
|
324
|
+
b.m("POST").h(headers).b(body);
|
|
325
|
+
return b.build();
|
|
499
326
|
};
|
|
500
327
|
exports.se_ListEventLogsCommand = se_ListEventLogsCommand;
|
|
501
328
|
const se_ListProjectsCommand = async (input, context) => {
|
|
502
|
-
const
|
|
329
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
503
330
|
const headers = {
|
|
504
331
|
"content-type": "application/json",
|
|
505
332
|
};
|
|
506
|
-
|
|
507
|
-
|
|
333
|
+
b.bp("/v1/spaces/{spaceName}/projects");
|
|
334
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
508
335
|
let body;
|
|
509
336
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
510
337
|
filters: (_) => (0, smithy_client_1._json)(_),
|
|
511
338
|
maxResults: [],
|
|
512
339
|
nextToken: [],
|
|
513
340
|
}));
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
hostname,
|
|
517
|
-
port,
|
|
518
|
-
method: "POST",
|
|
519
|
-
headers,
|
|
520
|
-
path: resolvedPath,
|
|
521
|
-
body,
|
|
522
|
-
});
|
|
341
|
+
b.m("POST").h(headers).b(body);
|
|
342
|
+
return b.build();
|
|
523
343
|
};
|
|
524
344
|
exports.se_ListProjectsCommand = se_ListProjectsCommand;
|
|
525
345
|
const se_ListSourceRepositoriesCommand = async (input, context) => {
|
|
526
|
-
const
|
|
346
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
527
347
|
const headers = {
|
|
528
348
|
"content-type": "application/json",
|
|
529
349
|
};
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
350
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories");
|
|
351
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
352
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
534
353
|
let body;
|
|
535
354
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
536
355
|
maxResults: [],
|
|
537
356
|
nextToken: [],
|
|
538
357
|
}));
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
hostname,
|
|
542
|
-
port,
|
|
543
|
-
method: "POST",
|
|
544
|
-
headers,
|
|
545
|
-
path: resolvedPath,
|
|
546
|
-
body,
|
|
547
|
-
});
|
|
358
|
+
b.m("POST").h(headers).b(body);
|
|
359
|
+
return b.build();
|
|
548
360
|
};
|
|
549
361
|
exports.se_ListSourceRepositoriesCommand = se_ListSourceRepositoriesCommand;
|
|
550
362
|
const se_ListSourceRepositoryBranchesCommand = async (input, context) => {
|
|
551
|
-
const
|
|
363
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
552
364
|
const headers = {
|
|
553
365
|
"content-type": "application/json",
|
|
554
366
|
};
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
367
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/sourceRepositories/{sourceRepositoryName}/branches");
|
|
368
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
369
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
370
|
+
b.p("sourceRepositoryName", () => input.sourceRepositoryName, "{sourceRepositoryName}", false);
|
|
560
371
|
let body;
|
|
561
372
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
562
373
|
maxResults: [],
|
|
563
374
|
nextToken: [],
|
|
564
375
|
}));
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
hostname,
|
|
568
|
-
port,
|
|
569
|
-
method: "POST",
|
|
570
|
-
headers,
|
|
571
|
-
path: resolvedPath,
|
|
572
|
-
body,
|
|
573
|
-
});
|
|
376
|
+
b.m("POST").h(headers).b(body);
|
|
377
|
+
return b.build();
|
|
574
378
|
};
|
|
575
379
|
exports.se_ListSourceRepositoryBranchesCommand = se_ListSourceRepositoryBranchesCommand;
|
|
576
380
|
const se_ListSpacesCommand = async (input, context) => {
|
|
577
|
-
const
|
|
381
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
578
382
|
const headers = {
|
|
579
383
|
"content-type": "application/json",
|
|
580
384
|
};
|
|
581
|
-
|
|
385
|
+
b.bp("/v1/spaces");
|
|
582
386
|
let body;
|
|
583
387
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
584
388
|
nextToken: [],
|
|
585
389
|
}));
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
hostname,
|
|
589
|
-
port,
|
|
590
|
-
method: "POST",
|
|
591
|
-
headers,
|
|
592
|
-
path: resolvedPath,
|
|
593
|
-
body,
|
|
594
|
-
});
|
|
390
|
+
b.m("POST").h(headers).b(body);
|
|
391
|
+
return b.build();
|
|
595
392
|
};
|
|
596
393
|
exports.se_ListSpacesCommand = se_ListSpacesCommand;
|
|
597
394
|
const se_ListWorkflowRunsCommand = async (input, context) => {
|
|
598
|
-
const
|
|
395
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
599
396
|
const headers = {
|
|
600
397
|
"content-type": "application/json",
|
|
601
398
|
};
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
399
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns");
|
|
400
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
401
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
606
402
|
const query = (0, smithy_client_1.map)({
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
403
|
+
[_wI]: [, input[_wI]],
|
|
404
|
+
[_nT]: [, input[_nT]],
|
|
405
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
610
406
|
});
|
|
611
407
|
let body;
|
|
612
408
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
613
409
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
614
410
|
}));
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
hostname,
|
|
618
|
-
port,
|
|
619
|
-
method: "POST",
|
|
620
|
-
headers,
|
|
621
|
-
path: resolvedPath,
|
|
622
|
-
query,
|
|
623
|
-
body,
|
|
624
|
-
});
|
|
411
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
412
|
+
return b.build();
|
|
625
413
|
};
|
|
626
414
|
exports.se_ListWorkflowRunsCommand = se_ListWorkflowRunsCommand;
|
|
627
415
|
const se_ListWorkflowsCommand = async (input, context) => {
|
|
628
|
-
const
|
|
416
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
629
417
|
const headers = {
|
|
630
418
|
"content-type": "application/json",
|
|
631
419
|
};
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
420
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflows");
|
|
421
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
422
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
636
423
|
const query = (0, smithy_client_1.map)({
|
|
637
|
-
|
|
638
|
-
|
|
424
|
+
[_nT]: [, input[_nT]],
|
|
425
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
639
426
|
});
|
|
640
427
|
let body;
|
|
641
428
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
642
429
|
sortBy: (_) => (0, smithy_client_1._json)(_),
|
|
643
430
|
}));
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
hostname,
|
|
647
|
-
port,
|
|
648
|
-
method: "POST",
|
|
649
|
-
headers,
|
|
650
|
-
path: resolvedPath,
|
|
651
|
-
query,
|
|
652
|
-
body,
|
|
653
|
-
});
|
|
431
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
432
|
+
return b.build();
|
|
654
433
|
};
|
|
655
434
|
exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
|
|
656
435
|
const se_StartDevEnvironmentCommand = async (input, context) => {
|
|
657
|
-
const
|
|
436
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
658
437
|
const headers = {
|
|
659
438
|
"content-type": "application/json",
|
|
660
439
|
};
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
440
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/start");
|
|
441
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
442
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
443
|
+
b.p("id", () => input.id, "{id}", false);
|
|
666
444
|
let body;
|
|
667
445
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
668
446
|
ides: (_) => (0, smithy_client_1._json)(_),
|
|
669
447
|
inactivityTimeoutMinutes: [],
|
|
670
448
|
instanceType: [],
|
|
671
449
|
}));
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
hostname,
|
|
675
|
-
port,
|
|
676
|
-
method: "PUT",
|
|
677
|
-
headers,
|
|
678
|
-
path: resolvedPath,
|
|
679
|
-
body,
|
|
680
|
-
});
|
|
450
|
+
b.m("PUT").h(headers).b(body);
|
|
451
|
+
return b.build();
|
|
681
452
|
};
|
|
682
453
|
exports.se_StartDevEnvironmentCommand = se_StartDevEnvironmentCommand;
|
|
683
454
|
const se_StartDevEnvironmentSessionCommand = async (input, context) => {
|
|
684
|
-
const
|
|
455
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
685
456
|
const headers = {
|
|
686
457
|
"content-type": "application/json",
|
|
687
458
|
};
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
459
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session");
|
|
460
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
461
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
462
|
+
b.p("id", () => input.id, "{id}", false);
|
|
693
463
|
let body;
|
|
694
464
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
695
465
|
sessionConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
696
466
|
}));
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
hostname,
|
|
700
|
-
port,
|
|
701
|
-
method: "PUT",
|
|
702
|
-
headers,
|
|
703
|
-
path: resolvedPath,
|
|
704
|
-
body,
|
|
705
|
-
});
|
|
467
|
+
b.m("PUT").h(headers).b(body);
|
|
468
|
+
return b.build();
|
|
706
469
|
};
|
|
707
470
|
exports.se_StartDevEnvironmentSessionCommand = se_StartDevEnvironmentSessionCommand;
|
|
708
471
|
const se_StartWorkflowRunCommand = async (input, context) => {
|
|
709
|
-
const
|
|
472
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
710
473
|
const headers = {
|
|
711
474
|
"content-type": "application/json",
|
|
712
475
|
};
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "projectName", () => input.projectName, "{projectName}", false);
|
|
476
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/workflowRuns");
|
|
477
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
478
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
717
479
|
const query = (0, smithy_client_1.map)({
|
|
718
|
-
|
|
480
|
+
[_wI]: [, (0, smithy_client_1.expectNonNull)(input[_wI], `workflowId`)],
|
|
719
481
|
});
|
|
720
482
|
let body;
|
|
721
483
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
722
484
|
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
723
485
|
}));
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
hostname,
|
|
727
|
-
port,
|
|
728
|
-
method: "PUT",
|
|
729
|
-
headers,
|
|
730
|
-
path: resolvedPath,
|
|
731
|
-
query,
|
|
732
|
-
body,
|
|
733
|
-
});
|
|
486
|
+
b.m("PUT").h(headers).q(query).b(body);
|
|
487
|
+
return b.build();
|
|
734
488
|
};
|
|
735
489
|
exports.se_StartWorkflowRunCommand = se_StartWorkflowRunCommand;
|
|
736
490
|
const se_StopDevEnvironmentCommand = async (input, context) => {
|
|
737
|
-
const
|
|
491
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
738
492
|
const headers = {};
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
493
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/stop");
|
|
494
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
495
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
496
|
+
b.p("id", () => input.id, "{id}", false);
|
|
744
497
|
let body;
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
hostname,
|
|
748
|
-
port,
|
|
749
|
-
method: "PUT",
|
|
750
|
-
headers,
|
|
751
|
-
path: resolvedPath,
|
|
752
|
-
body,
|
|
753
|
-
});
|
|
498
|
+
b.m("PUT").h(headers).b(body);
|
|
499
|
+
return b.build();
|
|
754
500
|
};
|
|
755
501
|
exports.se_StopDevEnvironmentCommand = se_StopDevEnvironmentCommand;
|
|
756
502
|
const se_StopDevEnvironmentSessionCommand = async (input, context) => {
|
|
757
|
-
const
|
|
503
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
758
504
|
const headers = {};
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sessionId", () => input.sessionId, "{sessionId}", false);
|
|
505
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}/session/{sessionId}");
|
|
506
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
507
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
508
|
+
b.p("id", () => input.id, "{id}", false);
|
|
509
|
+
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
765
510
|
let body;
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
hostname,
|
|
769
|
-
port,
|
|
770
|
-
method: "DELETE",
|
|
771
|
-
headers,
|
|
772
|
-
path: resolvedPath,
|
|
773
|
-
body,
|
|
774
|
-
});
|
|
511
|
+
b.m("DELETE").h(headers).b(body);
|
|
512
|
+
return b.build();
|
|
775
513
|
};
|
|
776
514
|
exports.se_StopDevEnvironmentSessionCommand = se_StopDevEnvironmentSessionCommand;
|
|
777
515
|
const se_UpdateDevEnvironmentCommand = async (input, context) => {
|
|
778
|
-
const
|
|
516
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
779
517
|
const headers = {
|
|
780
518
|
"content-type": "application/json",
|
|
781
519
|
};
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
520
|
+
b.bp("/v1/spaces/{spaceName}/projects/{projectName}/devEnvironments/{id}");
|
|
521
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
522
|
+
b.p("projectName", () => input.projectName, "{projectName}", false);
|
|
523
|
+
b.p("id", () => input.id, "{id}", false);
|
|
787
524
|
let body;
|
|
788
525
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
789
526
|
alias: [],
|
|
@@ -792,79 +529,51 @@ const se_UpdateDevEnvironmentCommand = async (input, context) => {
|
|
|
792
529
|
inactivityTimeoutMinutes: [],
|
|
793
530
|
instanceType: [],
|
|
794
531
|
}));
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
hostname,
|
|
798
|
-
port,
|
|
799
|
-
method: "PATCH",
|
|
800
|
-
headers,
|
|
801
|
-
path: resolvedPath,
|
|
802
|
-
body,
|
|
803
|
-
});
|
|
532
|
+
b.m("PATCH").h(headers).b(body);
|
|
533
|
+
return b.build();
|
|
804
534
|
};
|
|
805
535
|
exports.se_UpdateDevEnvironmentCommand = se_UpdateDevEnvironmentCommand;
|
|
806
536
|
const se_UpdateProjectCommand = async (input, context) => {
|
|
807
|
-
const
|
|
537
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
808
538
|
const headers = {
|
|
809
539
|
"content-type": "application/json",
|
|
810
540
|
};
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
541
|
+
b.bp("/v1/spaces/{spaceName}/projects/{name}");
|
|
542
|
+
b.p("spaceName", () => input.spaceName, "{spaceName}", false);
|
|
543
|
+
b.p("name", () => input.name, "{name}", false);
|
|
814
544
|
let body;
|
|
815
545
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
816
546
|
description: [],
|
|
817
547
|
}));
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
hostname,
|
|
821
|
-
port,
|
|
822
|
-
method: "PATCH",
|
|
823
|
-
headers,
|
|
824
|
-
path: resolvedPath,
|
|
825
|
-
body,
|
|
826
|
-
});
|
|
548
|
+
b.m("PATCH").h(headers).b(body);
|
|
549
|
+
return b.build();
|
|
827
550
|
};
|
|
828
551
|
exports.se_UpdateProjectCommand = se_UpdateProjectCommand;
|
|
829
552
|
const se_UpdateSpaceCommand = async (input, context) => {
|
|
830
|
-
const
|
|
553
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
831
554
|
const headers = {
|
|
832
555
|
"content-type": "application/json",
|
|
833
556
|
};
|
|
834
|
-
|
|
835
|
-
|
|
557
|
+
b.bp("/v1/spaces/{name}");
|
|
558
|
+
b.p("name", () => input.name, "{name}", false);
|
|
836
559
|
let body;
|
|
837
560
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
838
561
|
description: [],
|
|
839
562
|
}));
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
hostname,
|
|
843
|
-
port,
|
|
844
|
-
method: "PATCH",
|
|
845
|
-
headers,
|
|
846
|
-
path: resolvedPath,
|
|
847
|
-
body,
|
|
848
|
-
});
|
|
563
|
+
b.m("PATCH").h(headers).b(body);
|
|
564
|
+
return b.build();
|
|
849
565
|
};
|
|
850
566
|
exports.se_UpdateSpaceCommand = se_UpdateSpaceCommand;
|
|
851
567
|
const se_VerifySessionCommand = async (input, context) => {
|
|
852
|
-
const
|
|
568
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
853
569
|
const headers = {
|
|
854
570
|
"content-type": "application/json",
|
|
855
571
|
};
|
|
856
|
-
|
|
572
|
+
b.bp("/session");
|
|
857
573
|
let body;
|
|
858
574
|
body = "";
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
hostname,
|
|
862
|
-
port,
|
|
863
|
-
method: "GET",
|
|
864
|
-
headers,
|
|
865
|
-
path: resolvedPath,
|
|
866
|
-
body,
|
|
867
|
-
});
|
|
575
|
+
b.m("GET").h(headers).b(body);
|
|
576
|
+
return b.build();
|
|
868
577
|
};
|
|
869
578
|
exports.se_VerifySessionCommand = se_VerifySessionCommand;
|
|
870
579
|
const de_CreateAccessTokenCommand = async (output, context) => {
|
|
@@ -3082,6 +2791,11 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
3082
2791
|
value !== "" &&
|
|
3083
2792
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
3084
2793
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
2794
|
+
const _i = "id";
|
|
2795
|
+
const _mR = "maxResults";
|
|
2796
|
+
const _nT = "nextToken";
|
|
2797
|
+
const _uN = "userName";
|
|
2798
|
+
const _wI = "workflowId";
|
|
3085
2799
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3086
2800
|
if (encoded.length) {
|
|
3087
2801
|
return JSON.parse(encoded);
|