@stack-spot/portal-network 0.28.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/api/workspace.d.ts +320 -216
- package/dist/api/workspace.d.ts.map +1 -1
- package/dist/api/workspace.js +255 -184
- package/dist/api/workspace.js.map +1 -1
- package/dist/client/content.d.ts +139 -16
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/content.js +151 -16
- package/dist/client/content.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +30 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +37 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace.d.ts +76 -24
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/client/workspace.js +136 -81
- package/dist/client/workspace.js.map +1 -1
- package/package.json +1 -1
- package/src/api/workspace.ts +497 -288
- package/src/client/content.ts +77 -29
- package/src/client/workspace-manager.ts +20 -1
- package/src/client/workspace.ts +187 -145
package/dist/api/workspace.js
CHANGED
|
@@ -15,54 +15,48 @@ export const servers = {
|
|
|
15
15
|
generatedServerUrl: "https://workspace-workspace-api.dev.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Get a workspace variable by name
|
|
19
19
|
*/
|
|
20
|
-
export function
|
|
21
|
-
return oazapfts.ok(oazapfts.fetchJson(`/
|
|
22
|
-
...opts
|
|
20
|
+
export function workspaceVariableV2ControllerfindByName({ accountId, workspaceId, name }, opts) {
|
|
21
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, {
|
|
22
|
+
...opts,
|
|
23
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
24
|
+
accountId
|
|
25
|
+
})
|
|
23
26
|
}));
|
|
24
27
|
}
|
|
25
28
|
/**
|
|
26
|
-
*
|
|
29
|
+
* Upsert workspace variable based on existing account variable
|
|
27
30
|
*/
|
|
28
|
-
export function
|
|
29
|
-
return oazapfts.ok(oazapfts.fetchJson(`/
|
|
31
|
+
export function workspaceVariableV2Controllerupsert({ workspaceId, name, upsertWorkspaceVariableRequest }, opts) {
|
|
32
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, oazapfts.json({
|
|
30
33
|
...opts,
|
|
31
34
|
method: "PUT",
|
|
32
|
-
body:
|
|
35
|
+
body: upsertWorkspaceVariableRequest
|
|
33
36
|
})));
|
|
34
37
|
}
|
|
35
38
|
/**
|
|
36
|
-
*
|
|
39
|
+
* List all configured context of an workflow by workspace and stack.
|
|
37
40
|
*/
|
|
38
|
-
export function
|
|
39
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/
|
|
41
|
+
export function workflowWorkspaceControllerlistContextByWorkspaceStack({ workspaceId, workflowId, stackId }, opts) {
|
|
42
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks/${encodeURIComponent(stackId)}/context`, {
|
|
40
43
|
...opts
|
|
41
44
|
}));
|
|
42
45
|
}
|
|
43
46
|
/**
|
|
44
|
-
*
|
|
47
|
+
* Save workspace workflow context
|
|
45
48
|
*/
|
|
46
|
-
export function
|
|
47
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/
|
|
49
|
+
export function workflowWorkspaceControllersaveWorkspaceWorkflowContext({ workspaceId, workflowId, stackId, workspaceWorkflowCreateRequest }, opts) {
|
|
50
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/workflows/${encodeURIComponent(workflowId)}/stacks/${encodeURIComponent(stackId)}/context`, oazapfts.json({
|
|
48
51
|
...opts,
|
|
49
52
|
method: "PUT",
|
|
50
|
-
body:
|
|
53
|
+
body: workspaceWorkflowCreateRequest
|
|
51
54
|
})));
|
|
52
55
|
}
|
|
53
|
-
/**
|
|
54
|
-
* Delete a workspace's variable
|
|
55
|
-
*/
|
|
56
|
-
export function delete1({ workspaceId, name }, opts) {
|
|
57
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables/${encodeURIComponent(name)}`, {
|
|
58
|
-
...opts,
|
|
59
|
-
method: "DELETE"
|
|
60
|
-
}));
|
|
61
|
-
}
|
|
62
56
|
/**
|
|
63
57
|
* Add context to a typed element in a workspace's stack.
|
|
64
58
|
*/
|
|
65
|
-
export function
|
|
59
|
+
export function contextControlleraddTypedContextInWorkspace({ workspaceId, stackVersionId, externalId, $type, addTypedContextRequest }, opts) {
|
|
66
60
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}s/${encodeURIComponent(externalId)}/input-context`, oazapfts.json({
|
|
67
61
|
...opts,
|
|
68
62
|
method: "PUT",
|
|
@@ -72,7 +66,7 @@ export function addTypedContextInWorkspace({ workspaceId, stackVersionId, extern
|
|
|
72
66
|
/**
|
|
73
67
|
* Get Workflow of a stack in a workspace.
|
|
74
68
|
*/
|
|
75
|
-
export function
|
|
69
|
+
export function workflowControllergetWorkspaceWorkflow({ workspaceId, stackVersionId, identifier }, opts) {
|
|
76
70
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows${QS.query(QS.explode({
|
|
77
71
|
identifier
|
|
78
72
|
}))}`, {
|
|
@@ -82,7 +76,7 @@ export function getWorkspaceWorkflow({ workspaceId, stackVersionId, identifier }
|
|
|
82
76
|
/**
|
|
83
77
|
* Add step to a workflow belonging to a workspace.
|
|
84
78
|
*/
|
|
85
|
-
export function
|
|
79
|
+
export function workflowControlleraddWorkflowStepInWorkspace({ workspaceId, stackVersionId, addWorkspaceWorkflowStepRequest }, opts) {
|
|
86
80
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/workflows`, oazapfts.json({
|
|
87
81
|
...opts,
|
|
88
82
|
method: "PUT",
|
|
@@ -92,7 +86,7 @@ export function addWorkflowStepInWorkspace({ workspaceId, stackVersionId, addWor
|
|
|
92
86
|
/**
|
|
93
87
|
* Import context in a workspace's stack.
|
|
94
88
|
*/
|
|
95
|
-
export function
|
|
89
|
+
export function contextControllerimportContextInWorkspace({ workspaceId, stackVersionId, body }, opts) {
|
|
96
90
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/input-context`, oazapfts.json({
|
|
97
91
|
...opts,
|
|
98
92
|
method: "PUT",
|
|
@@ -102,7 +96,7 @@ export function importContextInWorkspace({ workspaceId, stackVersionId, body },
|
|
|
102
96
|
/**
|
|
103
97
|
* Update shared infrastructure status.
|
|
104
98
|
*/
|
|
105
|
-
export function
|
|
99
|
+
export function sharedInfrastructureControllerupdateStatus({ workspaceId, sharedInfraId, updateSharedInfraStatusRequest }, opts) {
|
|
106
100
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/status`, oazapfts.json({
|
|
107
101
|
...opts,
|
|
108
102
|
method: "PUT",
|
|
@@ -112,7 +106,7 @@ export function updateStatus({ workspaceId, sharedInfraId, updateSharedInfraStat
|
|
|
112
106
|
/**
|
|
113
107
|
* Get shared infra links visibility
|
|
114
108
|
*/
|
|
115
|
-
export function
|
|
109
|
+
export function sharedInfraLinkControllergetVisibleLinks({ workspaceId, sharedInfraId }, opts) {
|
|
116
110
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/links/visibility-management`, {
|
|
117
111
|
...opts
|
|
118
112
|
}));
|
|
@@ -120,7 +114,7 @@ export function getVisibleLinks({ workspaceId, sharedInfraId }, opts) {
|
|
|
120
114
|
/**
|
|
121
115
|
* Update application links visibility
|
|
122
116
|
*/
|
|
123
|
-
export function
|
|
117
|
+
export function sharedInfraLinkControllerupdateLinksVisibility({ workspaceId, sharedInfraId, body }, opts) {
|
|
124
118
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/links/visibility-management`, oazapfts.json({
|
|
125
119
|
...opts,
|
|
126
120
|
method: "PUT",
|
|
@@ -130,7 +124,7 @@ export function updateLinksVisibility({ workspaceId, sharedInfraId, body }, opts
|
|
|
130
124
|
/**
|
|
131
125
|
* Update activity status by workspace.
|
|
132
126
|
*/
|
|
133
|
-
export function
|
|
127
|
+
export function managerRunControllerupdateRun({ accountId, workspaceId, runId, updateRunRequest }, opts) {
|
|
134
128
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/run/${encodeURIComponent(runId)}`, oazapfts.json({
|
|
135
129
|
...opts,
|
|
136
130
|
method: "PUT",
|
|
@@ -143,7 +137,7 @@ export function updateRun({ accountId, workspaceId, runId, updateRunRequest }, o
|
|
|
143
137
|
/**
|
|
144
138
|
* Update plugin status by workspace.
|
|
145
139
|
*/
|
|
146
|
-
export function
|
|
140
|
+
export function managerRunControllerrunTask({ accountId, workspaceId, runId, runTaskRequest }, opts) {
|
|
147
141
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/run/${encodeURIComponent(runId)}/plugin`, oazapfts.json({
|
|
148
142
|
...opts,
|
|
149
143
|
method: "PUT",
|
|
@@ -156,7 +150,7 @@ export function runTask({ accountId, workspaceId, runId, runTaskRequest }, opts)
|
|
|
156
150
|
/**
|
|
157
151
|
* Deployment tag register.
|
|
158
152
|
*/
|
|
159
|
-
export function
|
|
153
|
+
export function managerRunControllerdeploymentTag({ accountId, workspaceId, runId, deploymentTagRequest }, opts) {
|
|
160
154
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/run/${encodeURIComponent(runId)}/deploy-tag`, oazapfts.json({
|
|
161
155
|
...opts,
|
|
162
156
|
method: "PUT",
|
|
@@ -169,7 +163,7 @@ export function deploymentTag({ accountId, workspaceId, runId, deploymentTagRequ
|
|
|
169
163
|
/**
|
|
170
164
|
* Request to upsert connection interfaces attributes.
|
|
171
165
|
*/
|
|
172
|
-
export function
|
|
166
|
+
export function connectionInterfaceControllerupdateConnectionInterfaceAttributes({ workspaceId, connectionInterfaceId, updateConnectionInterfaceAttributesRequest }, opts) {
|
|
173
167
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(connectionInterfaceId)}/attributes`, oazapfts.json({
|
|
174
168
|
...opts,
|
|
175
169
|
method: "PUT",
|
|
@@ -179,7 +173,7 @@ export function updateConnectionInterfaceAttributes({ workspaceId, connectionInt
|
|
|
179
173
|
/**
|
|
180
174
|
* Request to upsert connection interfaces.
|
|
181
175
|
*/
|
|
182
|
-
export function
|
|
176
|
+
export function connectionInterfaceControllerupsertBatch({ workspaceId, body }, opts) {
|
|
183
177
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/batch`, oazapfts.json({
|
|
184
178
|
...opts,
|
|
185
179
|
method: "PUT",
|
|
@@ -189,7 +183,7 @@ export function upsertBatch({ workspaceId, body }, opts) {
|
|
|
189
183
|
/**
|
|
190
184
|
* Update application status.
|
|
191
185
|
*/
|
|
192
|
-
export function
|
|
186
|
+
export function applicationControllerupdateStatus({ workspaceId, applicationId, accountId, updateApplicationStatusRequest }, opts) {
|
|
193
187
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/status`, oazapfts.json({
|
|
194
188
|
...opts,
|
|
195
189
|
method: "PUT",
|
|
@@ -202,7 +196,7 @@ export function updateStatus1({ workspaceId, applicationId, accountId, updateApp
|
|
|
202
196
|
/**
|
|
203
197
|
* Get application links visibility
|
|
204
198
|
*/
|
|
205
|
-
export function
|
|
199
|
+
export function applicationLinkControllergetVisibleLinks({ workspaceId, applicationId }, opts) {
|
|
206
200
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/links/visibility-management`, {
|
|
207
201
|
...opts
|
|
208
202
|
}));
|
|
@@ -210,7 +204,7 @@ export function getVisibleLinks1({ workspaceId, applicationId }, opts) {
|
|
|
210
204
|
/**
|
|
211
205
|
* Update application links visibility
|
|
212
206
|
*/
|
|
213
|
-
export function
|
|
207
|
+
export function applicationLinkControllerupdateLinksVisibility({ workspaceId, applicationId, body }, opts) {
|
|
214
208
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/links/visibility-management`, oazapfts.json({
|
|
215
209
|
...opts,
|
|
216
210
|
method: "PUT",
|
|
@@ -220,7 +214,7 @@ export function updateLinksVisibility1({ workspaceId, applicationId, body }, opt
|
|
|
220
214
|
/**
|
|
221
215
|
* Get workflow settings with associated stacks.
|
|
222
216
|
*/
|
|
223
|
-
export function
|
|
217
|
+
export function workflowAccountControllerlistSettingsByAccountWorkflow({ workflowId }, opts) {
|
|
224
218
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/settings`, {
|
|
225
219
|
...opts
|
|
226
220
|
}));
|
|
@@ -228,7 +222,7 @@ export function listSettingsByAccountWorkflow({ workflowId }, opts) {
|
|
|
228
222
|
/**
|
|
229
223
|
* Update settings information of a workflow account.
|
|
230
224
|
*/
|
|
231
|
-
export function
|
|
225
|
+
export function workflowAccountControllerupdateSettingsByAccountWorkflow({ workflowId, settingsWorkflowSaveRequest }, opts) {
|
|
232
226
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/settings`, oazapfts.json({
|
|
233
227
|
...opts,
|
|
234
228
|
method: "PUT",
|
|
@@ -238,7 +232,7 @@ export function updateSettingsByAccountWorkflow({ workflowId, settingsWorkflowSa
|
|
|
238
232
|
/**
|
|
239
233
|
* List all configured context of an workflow account.
|
|
240
234
|
*/
|
|
241
|
-
export function
|
|
235
|
+
export function workflowAccountControllerlistContextByAccountWorkflow({ workflowId }, opts) {
|
|
242
236
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/context`, {
|
|
243
237
|
...opts
|
|
244
238
|
}));
|
|
@@ -246,7 +240,7 @@ export function listContextByAccountWorkflow({ workflowId }, opts) {
|
|
|
246
240
|
/**
|
|
247
241
|
* Update all context configurations of a workflow account.
|
|
248
242
|
*/
|
|
249
|
-
export function
|
|
243
|
+
export function workflowAccountControllerupdateContextsByAccountWorkflow({ workflowId, contextsWorkflowSaveRequest }, opts) {
|
|
250
244
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
|
|
251
245
|
...opts,
|
|
252
246
|
method: "PUT",
|
|
@@ -256,7 +250,7 @@ export function updateContextsByAccountWorkflow({ workflowId, contextsWorkflowSa
|
|
|
256
250
|
/**
|
|
257
251
|
* List all actions of an workflow account.
|
|
258
252
|
*/
|
|
259
|
-
export function
|
|
253
|
+
export function workflowAccountControllerlistActionsByAccountWorkflow({ workflowId }, opts) {
|
|
260
254
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/actions`, {
|
|
261
255
|
...opts
|
|
262
256
|
}));
|
|
@@ -264,17 +258,47 @@ export function listActionsByAccountWorkflow({ workflowId }, opts) {
|
|
|
264
258
|
/**
|
|
265
259
|
* Update all actions associations with a workflow account.
|
|
266
260
|
*/
|
|
267
|
-
export function
|
|
261
|
+
export function workflowAccountControllerupdateActionsByAccountWorkflow({ workflowId, actionsWorkflowSaveRequest }, opts) {
|
|
268
262
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}/actions`, oazapfts.json({
|
|
269
263
|
...opts,
|
|
270
264
|
method: "PUT",
|
|
271
265
|
body: actionsWorkflowSaveRequest
|
|
272
266
|
})));
|
|
273
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Get an account variable by name
|
|
270
|
+
*/
|
|
271
|
+
export function accountVariableControllerfindByName({ accountId, name }, opts) {
|
|
272
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/variables/${encodeURIComponent(name)}`, {
|
|
273
|
+
...opts,
|
|
274
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
275
|
+
accountId
|
|
276
|
+
})
|
|
277
|
+
}));
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Update account variable
|
|
281
|
+
*/
|
|
282
|
+
export function accountVariableControllerupdate({ name, updateAccountVariableRequest }, opts) {
|
|
283
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/variables/${encodeURIComponent(name)}`, oazapfts.json({
|
|
284
|
+
...opts,
|
|
285
|
+
method: "PUT",
|
|
286
|
+
body: updateAccountVariableRequest
|
|
287
|
+
})));
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Delete account variable
|
|
291
|
+
*/
|
|
292
|
+
export function accountVariableControllerdelete({ name }, opts) {
|
|
293
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/variables/${encodeURIComponent(name)}`, {
|
|
294
|
+
...opts,
|
|
295
|
+
method: "DELETE"
|
|
296
|
+
}));
|
|
297
|
+
}
|
|
274
298
|
/**
|
|
275
299
|
* Add context to a typed element in an account's stack.
|
|
276
300
|
*/
|
|
277
|
-
export function
|
|
301
|
+
export function contextControlleraddTypedContextInAccount({ stackVersionId, externalId, $type, addTypedContextRequest }, opts) {
|
|
278
302
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}s/${encodeURIComponent(externalId)}/input-context`, oazapfts.json({
|
|
279
303
|
...opts,
|
|
280
304
|
method: "PUT",
|
|
@@ -284,7 +308,7 @@ export function addTypedContextInAccount({ stackVersionId, externalId, $type, ad
|
|
|
284
308
|
/**
|
|
285
309
|
* Get Workflow of a stack in an account.
|
|
286
310
|
*/
|
|
287
|
-
export function
|
|
311
|
+
export function workflowControllergetAccountWorkflow({ stackVersionId, identifier }, opts) {
|
|
288
312
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackVersionId)}/workflows${QS.query(QS.explode({
|
|
289
313
|
identifier
|
|
290
314
|
}))}`, {
|
|
@@ -294,7 +318,7 @@ export function getAccountWorkflow({ stackVersionId, identifier }, opts) {
|
|
|
294
318
|
/**
|
|
295
319
|
* Add step to a workflow belonging to an account.
|
|
296
320
|
*/
|
|
297
|
-
export function
|
|
321
|
+
export function workflowControlleraddWorkflowStepInAccount({ stackVersionId, addAccountWorkflowStepRequest }, opts) {
|
|
298
322
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackVersionId)}/workflows`, oazapfts.json({
|
|
299
323
|
...opts,
|
|
300
324
|
method: "PUT",
|
|
@@ -304,7 +328,7 @@ export function addWorkflowStepInAccount({ stackVersionId, addAccountWorkflowSte
|
|
|
304
328
|
/**
|
|
305
329
|
* Import context in an account's stack.
|
|
306
330
|
*/
|
|
307
|
-
export function
|
|
331
|
+
export function contextControllerimportContextInAccount({ stackVersionId, body }, opts) {
|
|
308
332
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackVersionId)}/input-context`, oazapfts.json({
|
|
309
333
|
...opts,
|
|
310
334
|
method: "PUT",
|
|
@@ -314,7 +338,7 @@ export function importContextInAccount({ stackVersionId, body }, opts) {
|
|
|
314
338
|
/**
|
|
315
339
|
* Save stack workflow context
|
|
316
340
|
*/
|
|
317
|
-
export function
|
|
341
|
+
export function workflowStackControllersaveStackWorkflowContext({ stackId, workflowId, stackWorkflowCreateRequest }, opts) {
|
|
318
342
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowId)}/context`, oazapfts.json({
|
|
319
343
|
...opts,
|
|
320
344
|
method: "PUT",
|
|
@@ -324,7 +348,7 @@ export function saveStackWorkflowContext({ stackId, workflowId, stackWorkflowCre
|
|
|
324
348
|
/**
|
|
325
349
|
* List specific shared infra or application usage by plugin list.
|
|
326
350
|
*/
|
|
327
|
-
export function
|
|
351
|
+
export function usageInsightsControllerlistPluginUsageByTargetId({ accountId, targetType, targetId, body }, opts) {
|
|
328
352
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/${encodeURIComponent(targetType)}/${encodeURIComponent(targetId)}/plugins/usage`, oazapfts.json({
|
|
329
353
|
...opts,
|
|
330
354
|
method: "POST",
|
|
@@ -337,7 +361,7 @@ export function listPluginUsageByTargetId({ accountId, targetType, targetId, bod
|
|
|
337
361
|
/**
|
|
338
362
|
* List all shared infras or applications usage by plugin list.
|
|
339
363
|
*/
|
|
340
|
-
export function
|
|
364
|
+
export function usageInsightsControllerlistAllPluginUsage({ accountId, targetType, body }, opts) {
|
|
341
365
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/${encodeURIComponent(targetType)}/plugins/usage`, oazapfts.json({
|
|
342
366
|
...opts,
|
|
343
367
|
method: "POST",
|
|
@@ -350,7 +374,7 @@ export function listAllPluginUsage({ accountId, targetType, body }, opts) {
|
|
|
350
374
|
/**
|
|
351
375
|
* Get all workspaces
|
|
352
376
|
*/
|
|
353
|
-
export function
|
|
377
|
+
export function workspaceControllergetWorkspaces({ name, aclOnly, accountId }, opts) {
|
|
354
378
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces${QS.query(QS.explode({
|
|
355
379
|
name,
|
|
356
380
|
aclOnly
|
|
@@ -364,37 +388,17 @@ export function getWorkspaces({ name, aclOnly, accountId }, opts) {
|
|
|
364
388
|
/**
|
|
365
389
|
* Create workspace
|
|
366
390
|
*/
|
|
367
|
-
export function
|
|
391
|
+
export function workspaceControllersave({ newWorkspaceRequest }, opts) {
|
|
368
392
|
return oazapfts.ok(oazapfts.fetchJson("/v1/workspaces", oazapfts.json({
|
|
369
393
|
...opts,
|
|
370
394
|
method: "POST",
|
|
371
395
|
body: newWorkspaceRequest
|
|
372
396
|
})));
|
|
373
397
|
}
|
|
374
|
-
/**
|
|
375
|
-
* Get all workspace's variables
|
|
376
|
-
*/
|
|
377
|
-
export function findAll({ workspaceId, filter }, opts) {
|
|
378
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables${QS.query(QS.explode({
|
|
379
|
-
filter
|
|
380
|
-
}))}`, {
|
|
381
|
-
...opts
|
|
382
|
-
}));
|
|
383
|
-
}
|
|
384
|
-
/**
|
|
385
|
-
* Create a workspace's variable
|
|
386
|
-
*/
|
|
387
|
-
export function save1({ workspaceId, newWorkspaceVariableRequest }, opts) {
|
|
388
|
-
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables`, oazapfts.json({
|
|
389
|
-
...opts,
|
|
390
|
-
method: "POST",
|
|
391
|
-
body: newWorkspaceVariableRequest
|
|
392
|
-
})));
|
|
393
|
-
}
|
|
394
398
|
/**
|
|
395
399
|
* Get all stacks in a workspace.
|
|
396
400
|
*/
|
|
397
|
-
export function
|
|
401
|
+
export function workspaceStackControllergetStacks({ workspaceId }, opts) {
|
|
398
402
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks`, {
|
|
399
403
|
...opts
|
|
400
404
|
}));
|
|
@@ -402,7 +406,7 @@ export function getStacks({ workspaceId }, opts) {
|
|
|
402
406
|
/**
|
|
403
407
|
* Add a stack in a workspace.
|
|
404
408
|
*/
|
|
405
|
-
export function
|
|
409
|
+
export function workspaceStackControlleraddStack({ workspaceId, addStackInWorkspaceRequest }, opts) {
|
|
406
410
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks`, oazapfts.json({
|
|
407
411
|
...opts,
|
|
408
412
|
method: "POST",
|
|
@@ -412,7 +416,7 @@ export function addStack({ workspaceId, addStackInWorkspaceRequest }, opts) {
|
|
|
412
416
|
/**
|
|
413
417
|
* Get all stacks with context in a workspace.
|
|
414
418
|
*/
|
|
415
|
-
export function
|
|
419
|
+
export function workspaceStackControllergetStacksWithContext({ workspaceId, body }, opts) {
|
|
416
420
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/with-context`, oazapfts.json({
|
|
417
421
|
...opts,
|
|
418
422
|
method: "POST",
|
|
@@ -422,7 +426,7 @@ export function getStacksWithContext({ workspaceId, body }, opts) {
|
|
|
422
426
|
/**
|
|
423
427
|
* Get all shared infrastructure of a workspace.
|
|
424
428
|
*/
|
|
425
|
-
export function
|
|
429
|
+
export function sharedInfrastructureControllergetAllSharedInfrastructure({ workspaceId, name, stackVersionId }, opts) {
|
|
426
430
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra${QS.query(QS.explode({
|
|
427
431
|
name,
|
|
428
432
|
stackVersionId
|
|
@@ -433,7 +437,7 @@ export function getAllSharedInfrastructure({ workspaceId, name, stackVersionId }
|
|
|
433
437
|
/**
|
|
434
438
|
* Create shared infrastructure in a workspace.
|
|
435
439
|
*/
|
|
436
|
-
export function
|
|
440
|
+
export function sharedInfrastructureControllersave({ workspaceId, fromPortal, createSharedInfraRequest }, opts) {
|
|
437
441
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra${QS.query(QS.explode({
|
|
438
442
|
fromPortal
|
|
439
443
|
}))}`, oazapfts.json({
|
|
@@ -445,7 +449,7 @@ export function save2({ workspaceId, fromPortal, createSharedInfraRequest }, opt
|
|
|
445
449
|
/**
|
|
446
450
|
* Get shared infrastructure of a workspace.
|
|
447
451
|
*/
|
|
448
|
-
export function
|
|
452
|
+
export function sharedInfrastructureControllergetSharedInfrastructure({ workspaceId, sharedInfraId }, opts) {
|
|
449
453
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}`, {
|
|
450
454
|
...opts
|
|
451
455
|
}));
|
|
@@ -453,7 +457,7 @@ export function getSharedInfrastructure({ workspaceId, sharedInfraId }, opts) {
|
|
|
453
457
|
/**
|
|
454
458
|
* Recreate a shared infrastructure in a workspace.
|
|
455
459
|
*/
|
|
456
|
-
export function
|
|
460
|
+
export function sharedInfrastructureControllerrecreate({ workspaceId, sharedInfraId, recreateSharedInfraRequest }, opts) {
|
|
457
461
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}`, oazapfts.json({
|
|
458
462
|
...opts,
|
|
459
463
|
method: "POST",
|
|
@@ -463,7 +467,7 @@ export function recreate({ workspaceId, sharedInfraId, recreateSharedInfraReques
|
|
|
463
467
|
/**
|
|
464
468
|
* Delete infrastructure in a workspace.
|
|
465
469
|
*/
|
|
466
|
-
export function
|
|
470
|
+
export function sharedInfrastructureControllerdeleteSharedInfra({ workspaceId, sharedInfraId }, opts) {
|
|
467
471
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}`, {
|
|
468
472
|
...opts,
|
|
469
473
|
method: "DELETE"
|
|
@@ -472,7 +476,7 @@ export function deleteSharedInfra({ workspaceId, sharedInfraId }, opts) {
|
|
|
472
476
|
/**
|
|
473
477
|
* Update shared infrastructure in a workspace.
|
|
474
478
|
*/
|
|
475
|
-
export function
|
|
479
|
+
export function sharedInfrastructureControllerupdate({ workspaceId, sharedInfraId, updateSharedInfraRequest }, opts) {
|
|
476
480
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}`, oazapfts.json({
|
|
477
481
|
...opts,
|
|
478
482
|
method: "PATCH",
|
|
@@ -482,7 +486,7 @@ export function update2({ workspaceId, sharedInfraId, updateSharedInfraRequest }
|
|
|
482
486
|
/**
|
|
483
487
|
* Get all shared infra links
|
|
484
488
|
*/
|
|
485
|
-
export function
|
|
489
|
+
export function sharedInfraLinkControllergetSharedInfraLinks({ workspaceId, sharedInfraId, name }, opts) {
|
|
486
490
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/links${QS.query(QS.explode({
|
|
487
491
|
name
|
|
488
492
|
}))}`, {
|
|
@@ -492,7 +496,7 @@ export function getSharedInfraLinks({ workspaceId, sharedInfraId, name }, opts)
|
|
|
492
496
|
/**
|
|
493
497
|
* Create shared infra link
|
|
494
498
|
*/
|
|
495
|
-
export function
|
|
499
|
+
export function sharedInfraLinkControllersave({ workspaceId, sharedInfraId, createSharedInfraLinkRequest }, opts) {
|
|
496
500
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/links`, oazapfts.json({
|
|
497
501
|
...opts,
|
|
498
502
|
method: "POST",
|
|
@@ -502,7 +506,7 @@ export function save3({ workspaceId, sharedInfraId, createSharedInfraLinkRequest
|
|
|
502
506
|
/**
|
|
503
507
|
* Has active deploy with type self hosted?
|
|
504
508
|
*/
|
|
505
|
-
export function
|
|
509
|
+
export function sharedInfrastructureControllerhasActiveDeployWithTypeSelfHosted({ workspaceId, sharedInfraId }, opts) {
|
|
506
510
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/has-self-hosted-deploy`, {
|
|
507
511
|
...opts,
|
|
508
512
|
method: "POST"
|
|
@@ -511,7 +515,7 @@ export function hasActiveDeployWithTypeSelfHosted({ workspaceId, sharedInfraId }
|
|
|
511
515
|
/**
|
|
512
516
|
* Can the shared infra be destroyed?
|
|
513
517
|
*/
|
|
514
|
-
export function
|
|
518
|
+
export function sharedInfrastructureControllercanBeDestroyed({ workspaceId, sharedInfraId, environmentId, accountId }, opts) {
|
|
515
519
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(environmentId)}/can-be-destroyed`, {
|
|
516
520
|
...opts,
|
|
517
521
|
method: "POST",
|
|
@@ -523,7 +527,7 @@ export function canBeDestroyed({ workspaceId, sharedInfraId, environmentId, acco
|
|
|
523
527
|
/**
|
|
524
528
|
* Register the snapshot of a shared infrastructure's deploy.
|
|
525
529
|
*/
|
|
526
|
-
export function
|
|
530
|
+
export function sharedInfrastructureControllerprocessDeploySnapshot({ workspaceId, sharedInfraId, sharedInfraDeploySnapshotRequest }, opts) {
|
|
527
531
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/deploy`, oazapfts.json({
|
|
528
532
|
...opts,
|
|
529
533
|
method: "POST",
|
|
@@ -533,7 +537,7 @@ export function processDeploySnapshot({ workspaceId, sharedInfraId, sharedInfraD
|
|
|
533
537
|
/**
|
|
534
538
|
* Runs an orchestration in a workspace.
|
|
535
539
|
*/
|
|
536
|
-
export function
|
|
540
|
+
export function managerRunControllerstartRun({ accountId, workspaceId, startRunRequest }, opts) {
|
|
537
541
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/run`, oazapfts.json({
|
|
538
542
|
...opts,
|
|
539
543
|
method: "POST",
|
|
@@ -546,7 +550,7 @@ export function startRun({ accountId, workspaceId, startRunRequest }, opts) {
|
|
|
546
550
|
/**
|
|
547
551
|
* Get all workspace links
|
|
548
552
|
*/
|
|
549
|
-
export function
|
|
553
|
+
export function workspaceLinkControllergetWorkspaceLinks({ workspaceId, name }, opts) {
|
|
550
554
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/links${QS.query(QS.explode({
|
|
551
555
|
name
|
|
552
556
|
}))}`, {
|
|
@@ -556,7 +560,7 @@ export function getWorkspaceLinks({ workspaceId, name }, opts) {
|
|
|
556
560
|
/**
|
|
557
561
|
* Create workspace
|
|
558
562
|
*/
|
|
559
|
-
export function
|
|
563
|
+
export function workspaceLinkControllersave({ workspaceId, createWorkspaceLinkRequest }, opts) {
|
|
560
564
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/links`, oazapfts.json({
|
|
561
565
|
...opts,
|
|
562
566
|
method: "POST",
|
|
@@ -566,7 +570,7 @@ export function save4({ workspaceId, createWorkspaceLinkRequest }, opts) {
|
|
|
566
570
|
/**
|
|
567
571
|
* Get all workspace embedded links
|
|
568
572
|
*/
|
|
569
|
-
export function
|
|
573
|
+
export function workspaceEmbeddedLinkControllergetEmbeddedLinks({ workspaceId, name }, opts) {
|
|
570
574
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/embedded-links${QS.query(QS.explode({
|
|
571
575
|
name
|
|
572
576
|
}))}`, {
|
|
@@ -576,7 +580,7 @@ export function getEmbeddedLinks({ workspaceId, name }, opts) {
|
|
|
576
580
|
/**
|
|
577
581
|
* Create workspace embedded link
|
|
578
582
|
*/
|
|
579
|
-
export function
|
|
583
|
+
export function workspaceEmbeddedLinkControllersave({ workspaceId, createWorkspaceEmbeddedLinkRequest }, opts) {
|
|
580
584
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/embedded-links`, oazapfts.json({
|
|
581
585
|
...opts,
|
|
582
586
|
method: "POST",
|
|
@@ -586,7 +590,7 @@ export function save5({ workspaceId, createWorkspaceEmbeddedLinkRequest }, opts)
|
|
|
586
590
|
/**
|
|
587
591
|
* List all connection interfaces of a workspace.
|
|
588
592
|
*/
|
|
589
|
-
export function
|
|
593
|
+
export function connectionInterfaceControllergetConnectionInterfaces({ workspaceId, typeId }, opts) {
|
|
590
594
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces${QS.query(QS.explode({
|
|
591
595
|
typeId
|
|
592
596
|
}))}`, {
|
|
@@ -596,7 +600,7 @@ export function getConnectionInterfaces({ workspaceId, typeId }, opts) {
|
|
|
596
600
|
/**
|
|
597
601
|
* Create a connection interface in a workspace.
|
|
598
602
|
*/
|
|
599
|
-
export function
|
|
603
|
+
export function connectionInterfaceControlleradd({ workspaceId, createConnectionInterfaceRequest }, opts) {
|
|
600
604
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces`, oazapfts.json({
|
|
601
605
|
...opts,
|
|
602
606
|
method: "POST",
|
|
@@ -606,7 +610,7 @@ export function add({ workspaceId, createConnectionInterfaceRequest }, opts) {
|
|
|
606
610
|
/**
|
|
607
611
|
* Update the visibility of a connection interface.
|
|
608
612
|
*/
|
|
609
|
-
export function
|
|
613
|
+
export function connectionInterfaceControllerupdateConnectionInterfaceVisibility({ workspaceId, connectionInterfaceId, updateConnectionInterfaceVisibilityRequest }, opts) {
|
|
610
614
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(connectionInterfaceId)}/visibility/batch`, oazapfts.json({
|
|
611
615
|
...opts,
|
|
612
616
|
method: "POST",
|
|
@@ -616,7 +620,7 @@ export function updateConnectionInterfaceVisibility({ workspaceId, connectionInt
|
|
|
616
620
|
/**
|
|
617
621
|
* Get all application of a workspace.
|
|
618
622
|
*/
|
|
619
|
-
export function
|
|
623
|
+
export function applicationControllergetApplications({ workspaceId, name, stackVersionId }, opts) {
|
|
620
624
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications${QS.query(QS.explode({
|
|
621
625
|
name,
|
|
622
626
|
stackVersionId
|
|
@@ -627,7 +631,7 @@ export function getApplications({ workspaceId, name, stackVersionId }, opts) {
|
|
|
627
631
|
/**
|
|
628
632
|
* Create application on workspace.
|
|
629
633
|
*/
|
|
630
|
-
export function
|
|
634
|
+
export function applicationControllersave({ workspaceId, fromPortal, createApplicationRequest }, opts) {
|
|
631
635
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications${QS.query(QS.explode({
|
|
632
636
|
fromPortal
|
|
633
637
|
}))}`, oazapfts.json({
|
|
@@ -639,7 +643,7 @@ export function save6({ workspaceId, fromPortal, createApplicationRequest }, opt
|
|
|
639
643
|
/**
|
|
640
644
|
* Get application of a workspace.
|
|
641
645
|
*/
|
|
642
|
-
export function
|
|
646
|
+
export function applicationControllergetApplication({ workspaceId, applicationId }, opts) {
|
|
643
647
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}`, {
|
|
644
648
|
...opts
|
|
645
649
|
}));
|
|
@@ -647,7 +651,7 @@ export function getApplication({ workspaceId, applicationId }, opts) {
|
|
|
647
651
|
/**
|
|
648
652
|
* Recreate an application in a workspace.
|
|
649
653
|
*/
|
|
650
|
-
export function
|
|
654
|
+
export function applicationControllerrecreate({ workspaceId, applicationId, recreateApplicationRequest }, opts) {
|
|
651
655
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}`, oazapfts.json({
|
|
652
656
|
...opts,
|
|
653
657
|
method: "POST",
|
|
@@ -657,7 +661,7 @@ export function recreate1({ workspaceId, applicationId, recreateApplicationReque
|
|
|
657
661
|
/**
|
|
658
662
|
* Delete application of a workspace.
|
|
659
663
|
*/
|
|
660
|
-
export function
|
|
664
|
+
export function applicationControllerdeleteApplication({ workspaceId, applicationId, accountId }, opts) {
|
|
661
665
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}`, {
|
|
662
666
|
...opts,
|
|
663
667
|
method: "DELETE",
|
|
@@ -669,7 +673,7 @@ export function deleteApplication({ workspaceId, applicationId, accountId }, opt
|
|
|
669
673
|
/**
|
|
670
674
|
* Update an application of a workspace.
|
|
671
675
|
*/
|
|
672
|
-
export function
|
|
676
|
+
export function applicationControllerupdate({ workspaceId, applicationId, updateApplicationRequest }, opts) {
|
|
673
677
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}`, oazapfts.json({
|
|
674
678
|
...opts,
|
|
675
679
|
method: "PATCH",
|
|
@@ -679,7 +683,7 @@ export function update6({ workspaceId, applicationId, updateApplicationRequest }
|
|
|
679
683
|
/**
|
|
680
684
|
* Get all application links
|
|
681
685
|
*/
|
|
682
|
-
export function
|
|
686
|
+
export function applicationLinkControllergetApplicationLinks({ workspaceId, applicationId, name }, opts) {
|
|
683
687
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/links${QS.query(QS.explode({
|
|
684
688
|
name
|
|
685
689
|
}))}`, {
|
|
@@ -689,7 +693,7 @@ export function getApplicationLinks({ workspaceId, applicationId, name }, opts)
|
|
|
689
693
|
/**
|
|
690
694
|
* Create application link
|
|
691
695
|
*/
|
|
692
|
-
export function
|
|
696
|
+
export function applicationLinkControllersave({ workspaceId, applicationId, createApplicationLinkRequest }, opts) {
|
|
693
697
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/links`, oazapfts.json({
|
|
694
698
|
...opts,
|
|
695
699
|
method: "POST",
|
|
@@ -699,7 +703,7 @@ export function save7({ workspaceId, applicationId, createApplicationLinkRequest
|
|
|
699
703
|
/**
|
|
700
704
|
* Has active deploy with type self hosted?
|
|
701
705
|
*/
|
|
702
|
-
export function
|
|
706
|
+
export function applicationControllerhasActiveDeployWithTypeSelfHosted({ workspaceId, applicationId }, opts) {
|
|
703
707
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/has-self-hosted-deploy`, {
|
|
704
708
|
...opts,
|
|
705
709
|
method: "POST"
|
|
@@ -708,7 +712,7 @@ export function hasActiveDeployWithTypeSelfHosted1({ workspaceId, applicationId
|
|
|
708
712
|
/**
|
|
709
713
|
* Can the application be destroyed?
|
|
710
714
|
*/
|
|
711
|
-
export function
|
|
715
|
+
export function applicationControllercanBeDestroyed({ workspaceId, applicationId, environmentId, accountId }, opts) {
|
|
712
716
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(environmentId)}/can-be-destroyed`, {
|
|
713
717
|
...opts,
|
|
714
718
|
method: "POST",
|
|
@@ -717,14 +721,14 @@ export function canBeDestroyed1({ workspaceId, applicationId, environmentId, acc
|
|
|
717
721
|
})
|
|
718
722
|
}));
|
|
719
723
|
}
|
|
720
|
-
export function
|
|
724
|
+
export function applicationControllerregistryAppDestroy({ workspaceId, applicationId, environmentId, applicationDestroyRequest }, opts) {
|
|
721
725
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(environmentId)}/app-destroy`, oazapfts.json({
|
|
722
726
|
...opts,
|
|
723
727
|
method: "POST",
|
|
724
728
|
body: applicationDestroyRequest
|
|
725
729
|
})));
|
|
726
730
|
}
|
|
727
|
-
export function
|
|
731
|
+
export function applicationControllerregistryAppDeploy({ workspaceId, applicationId, environmentId, applicationDeployRequest }, opts) {
|
|
728
732
|
return oazapfts.ok(oazapfts.fetchText(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(environmentId)}/app-deploy`, oazapfts.json({
|
|
729
733
|
...opts,
|
|
730
734
|
method: "POST",
|
|
@@ -734,7 +738,7 @@ export function registryAppDeploy({ workspaceId, applicationId, environmentId, a
|
|
|
734
738
|
/**
|
|
735
739
|
* Get all application embedded links
|
|
736
740
|
*/
|
|
737
|
-
export function
|
|
741
|
+
export function applicationEmbeddedLinkControllergetEmbeddedLinks({ workspaceId, applicationId, name }, opts) {
|
|
738
742
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/embedded-links${QS.query(QS.explode({
|
|
739
743
|
name
|
|
740
744
|
}))}`, {
|
|
@@ -744,7 +748,7 @@ export function getEmbeddedLinks1({ workspaceId, applicationId, name }, opts) {
|
|
|
744
748
|
/**
|
|
745
749
|
* Create application embedded link
|
|
746
750
|
*/
|
|
747
|
-
export function
|
|
751
|
+
export function applicationEmbeddedLinkControllersave({ workspaceId, applicationId, createApplicationEmbeddedLinkRequest }, opts) {
|
|
748
752
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/embedded-links`, oazapfts.json({
|
|
749
753
|
...opts,
|
|
750
754
|
method: "POST",
|
|
@@ -754,7 +758,7 @@ export function save8({ workspaceId, applicationId, createApplicationEmbeddedLin
|
|
|
754
758
|
/**
|
|
755
759
|
* Register the snapshot of an application's deploy.
|
|
756
760
|
*/
|
|
757
|
-
export function
|
|
761
|
+
export function applicationControllerprocessDeploySnapshot({ workspaceId, applicationId, applicationDeploySnapshotRequest }, opts) {
|
|
758
762
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/deploy`, oazapfts.json({
|
|
759
763
|
...opts,
|
|
760
764
|
method: "POST",
|
|
@@ -764,7 +768,7 @@ export function processDeploySnapshot1({ workspaceId, applicationId, application
|
|
|
764
768
|
/**
|
|
765
769
|
* List all workspaces usage by stack version list.
|
|
766
770
|
*/
|
|
767
|
-
export function
|
|
771
|
+
export function usageInsightsControllerlistAllStackUsage({ accountId, body }, opts) {
|
|
768
772
|
return oazapfts.ok(oazapfts.fetchJson("/v1/workspaces/stacks/usage", oazapfts.json({
|
|
769
773
|
...opts,
|
|
770
774
|
method: "POST",
|
|
@@ -777,7 +781,7 @@ export function listAllStackUsage({ accountId, body }, opts) {
|
|
|
777
781
|
/**
|
|
778
782
|
* Retrieve the amount of apps and shared infras that use the given plugin version id list
|
|
779
783
|
*/
|
|
780
|
-
export function
|
|
784
|
+
export function usageInsightsControllerfindPluginUsageAmount({ accountId, body }, opts) {
|
|
781
785
|
return oazapfts.ok(oazapfts.fetchJson("/v1/plugin-usage", oazapfts.json({
|
|
782
786
|
...opts,
|
|
783
787
|
method: "POST",
|
|
@@ -790,7 +794,7 @@ export function findPluginUsageAmount({ accountId, body }, opts) {
|
|
|
790
794
|
/**
|
|
791
795
|
* Get environments
|
|
792
796
|
*/
|
|
793
|
-
export function
|
|
797
|
+
export function environmentControllergetEnvironments({ accountId }, opts) {
|
|
794
798
|
return oazapfts.ok(oazapfts.fetchJson("/v1/environments", {
|
|
795
799
|
...opts,
|
|
796
800
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -801,7 +805,7 @@ export function getEnvironments({ accountId }, opts) {
|
|
|
801
805
|
/**
|
|
802
806
|
* Save environment
|
|
803
807
|
*/
|
|
804
|
-
export function
|
|
808
|
+
export function environmentControllersave({ environmentSaveRequest }, opts) {
|
|
805
809
|
return oazapfts.ok(oazapfts.fetchJson("/v1/environments", oazapfts.json({
|
|
806
810
|
...opts,
|
|
807
811
|
method: "POST",
|
|
@@ -811,7 +815,7 @@ export function save9({ environmentSaveRequest }, opts) {
|
|
|
811
815
|
/**
|
|
812
816
|
* Batch save environment
|
|
813
817
|
*/
|
|
814
|
-
export function
|
|
818
|
+
export function environmentControllersaveBatch({ accountId, body }, opts) {
|
|
815
819
|
return oazapfts.ok(oazapfts.fetchJson("/v1/environments/batch", oazapfts.json({
|
|
816
820
|
...opts,
|
|
817
821
|
method: "POST",
|
|
@@ -824,7 +828,7 @@ export function saveBatch({ accountId, body }, opts) {
|
|
|
824
828
|
/**
|
|
825
829
|
* List all workflows of an account.
|
|
826
830
|
*/
|
|
827
|
-
export function
|
|
831
|
+
export function workflowAccountControllerlistAccountWorkflows({ $type, name }, opts) {
|
|
828
832
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows${QS.query(QS.explode({
|
|
829
833
|
"type": $type,
|
|
830
834
|
name
|
|
@@ -835,17 +839,44 @@ export function listAccountWorkflows({ $type, name }, opts) {
|
|
|
835
839
|
/**
|
|
836
840
|
* Create an account workflow
|
|
837
841
|
*/
|
|
838
|
-
export function
|
|
842
|
+
export function workflowAccountControllersaveAccountWorkflow({ accountWorkflowCreateRequest }, opts) {
|
|
839
843
|
return oazapfts.ok(oazapfts.fetchJson("/v1/account/workflows", oazapfts.json({
|
|
840
844
|
...opts,
|
|
841
845
|
method: "POST",
|
|
842
846
|
body: accountWorkflowCreateRequest
|
|
843
847
|
})));
|
|
844
848
|
}
|
|
849
|
+
/**
|
|
850
|
+
* Find all account variables
|
|
851
|
+
*/
|
|
852
|
+
export function accountVariableControllerfindAll({ accountId, name, page, size, sortBy, sortDir }, opts) {
|
|
853
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/variables${QS.query(QS.explode({
|
|
854
|
+
name,
|
|
855
|
+
page,
|
|
856
|
+
size,
|
|
857
|
+
sortBy,
|
|
858
|
+
sortDir
|
|
859
|
+
}))}`, {
|
|
860
|
+
...opts,
|
|
861
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
862
|
+
accountId
|
|
863
|
+
})
|
|
864
|
+
}));
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Create account variable
|
|
868
|
+
*/
|
|
869
|
+
export function accountVariableControllercreate({ createAccountVariableRequest }, opts) {
|
|
870
|
+
return oazapfts.ok(oazapfts.fetchJson("/v1/account/variables", oazapfts.json({
|
|
871
|
+
...opts,
|
|
872
|
+
method: "POST",
|
|
873
|
+
body: createAccountVariableRequest
|
|
874
|
+
})));
|
|
875
|
+
}
|
|
845
876
|
/**
|
|
846
877
|
* List all stacks with context for given account and given stackVersionId list.
|
|
847
878
|
*/
|
|
848
|
-
export function
|
|
879
|
+
export function contextControllerlistStackVersionsWithAccountContext({ body }, opts) {
|
|
849
880
|
return oazapfts.ok(oazapfts.fetchJson("/v1/account/stacks-with-context", oazapfts.json({
|
|
850
881
|
...opts,
|
|
851
882
|
method: "POST",
|
|
@@ -855,7 +886,7 @@ export function listStackVersionsWithAccountContext({ body }, opts) {
|
|
|
855
886
|
/**
|
|
856
887
|
* Get workspace by id
|
|
857
888
|
*/
|
|
858
|
-
export function
|
|
889
|
+
export function workspaceControllergetWorkspaceForId({ workspaceId }, opts) {
|
|
859
890
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
860
891
|
...opts
|
|
861
892
|
}));
|
|
@@ -863,7 +894,7 @@ export function getWorkspaceForId({ workspaceId }, opts) {
|
|
|
863
894
|
/**
|
|
864
895
|
* Delete workspace.
|
|
865
896
|
*/
|
|
866
|
-
export function
|
|
897
|
+
export function workspaceControllerdelete({ workspaceId }, opts) {
|
|
867
898
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, {
|
|
868
899
|
...opts,
|
|
869
900
|
method: "DELETE"
|
|
@@ -872,7 +903,7 @@ export function deleteV1WorkspacesByWorkspaceId({ workspaceId }, opts) {
|
|
|
872
903
|
/**
|
|
873
904
|
* Update workspace
|
|
874
905
|
*/
|
|
875
|
-
export function
|
|
906
|
+
export function workspaceControllerupdate({ workspaceId, updateWorkspaceRequest }, opts) {
|
|
876
907
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}`, oazapfts.json({
|
|
877
908
|
...opts,
|
|
878
909
|
method: "PATCH",
|
|
@@ -882,7 +913,7 @@ export function update1({ workspaceId, updateWorkspaceRequest }, opts) {
|
|
|
882
913
|
/**
|
|
883
914
|
* Get shared infra links by id
|
|
884
915
|
*/
|
|
885
|
-
export function
|
|
916
|
+
export function sharedInfraLinkControllergetSharedInfraLink({ workspaceId, sharedInfraId, linkId }, opts) {
|
|
886
917
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/links/${encodeURIComponent(linkId)}`, {
|
|
887
918
|
...opts
|
|
888
919
|
}));
|
|
@@ -890,7 +921,7 @@ export function getSharedInfraLink({ workspaceId, sharedInfraId, linkId }, opts)
|
|
|
890
921
|
/**
|
|
891
922
|
* Delete shared infra links
|
|
892
923
|
*/
|
|
893
|
-
export function
|
|
924
|
+
export function sharedInfraLinkControllerdelete({ workspaceId, sharedInfraId, linkId }, opts) {
|
|
894
925
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/links/${encodeURIComponent(linkId)}`, {
|
|
895
926
|
...opts,
|
|
896
927
|
method: "DELETE"
|
|
@@ -899,7 +930,7 @@ export function delete2({ workspaceId, sharedInfraId, linkId }, opts) {
|
|
|
899
930
|
/**
|
|
900
931
|
* Update shared infra links
|
|
901
932
|
*/
|
|
902
|
-
export function
|
|
933
|
+
export function sharedInfraLinkControllerupdate({ workspaceId, sharedInfraId, linkId, updateSharedInfraLinkRequest }, opts) {
|
|
903
934
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/links/${encodeURIComponent(linkId)}`, oazapfts.json({
|
|
904
935
|
...opts,
|
|
905
936
|
method: "PATCH",
|
|
@@ -909,7 +940,7 @@ export function update3({ workspaceId, sharedInfraId, linkId, updateSharedInfraL
|
|
|
909
940
|
/**
|
|
910
941
|
* Get workspace link by id
|
|
911
942
|
*/
|
|
912
|
-
export function
|
|
943
|
+
export function workspaceLinkControllergetWorkspaceLink({ workspaceId, linkId }, opts) {
|
|
913
944
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/links/${encodeURIComponent(linkId)}`, {
|
|
914
945
|
...opts
|
|
915
946
|
}));
|
|
@@ -917,7 +948,7 @@ export function getWorkspaceLink({ workspaceId, linkId }, opts) {
|
|
|
917
948
|
/**
|
|
918
949
|
* Delete workspace links
|
|
919
950
|
*/
|
|
920
|
-
export function
|
|
951
|
+
export function workspaceLinkControllerdelete({ workspaceId, linkId }, opts) {
|
|
921
952
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/links/${encodeURIComponent(linkId)}`, {
|
|
922
953
|
...opts,
|
|
923
954
|
method: "DELETE"
|
|
@@ -926,7 +957,7 @@ export function delete3({ workspaceId, linkId }, opts) {
|
|
|
926
957
|
/**
|
|
927
958
|
* Update workspace links
|
|
928
959
|
*/
|
|
929
|
-
export function
|
|
960
|
+
export function workspaceLinkControllerupdate({ workspaceId, linkId, updateWorkspaceLinkRequest }, opts) {
|
|
930
961
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/links/${encodeURIComponent(linkId)}`, oazapfts.json({
|
|
931
962
|
...opts,
|
|
932
963
|
method: "PATCH",
|
|
@@ -936,7 +967,7 @@ export function update4({ workspaceId, linkId, updateWorkspaceLinkRequest }, opt
|
|
|
936
967
|
/**
|
|
937
968
|
* Get workspace embedded link by id
|
|
938
969
|
*/
|
|
939
|
-
export function
|
|
970
|
+
export function workspaceEmbeddedLinkControllergetEmbeddedLink({ workspaceId, embeddedLinkId }, opts) {
|
|
940
971
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/embedded-links/${encodeURIComponent(embeddedLinkId)}`, {
|
|
941
972
|
...opts
|
|
942
973
|
}));
|
|
@@ -944,7 +975,7 @@ export function getEmbeddedLink({ workspaceId, embeddedLinkId }, opts) {
|
|
|
944
975
|
/**
|
|
945
976
|
* Delete workspace embedded link
|
|
946
977
|
*/
|
|
947
|
-
export function
|
|
978
|
+
export function workspaceEmbeddedLinkControllerdelete({ workspaceId, embeddedLinkId }, opts) {
|
|
948
979
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/embedded-links/${encodeURIComponent(embeddedLinkId)}`, {
|
|
949
980
|
...opts,
|
|
950
981
|
method: "DELETE"
|
|
@@ -953,7 +984,7 @@ export function delete4({ workspaceId, embeddedLinkId }, opts) {
|
|
|
953
984
|
/**
|
|
954
985
|
* Update workspace embedded link
|
|
955
986
|
*/
|
|
956
|
-
export function
|
|
987
|
+
export function workspaceEmbeddedLinkControllerupdate({ workspaceId, embeddedLinkId, updateWorkspaceEmbeddedLinkRequest }, opts) {
|
|
957
988
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/embedded-links/${encodeURIComponent(embeddedLinkId)}`, oazapfts.json({
|
|
958
989
|
...opts,
|
|
959
990
|
method: "PATCH",
|
|
@@ -963,7 +994,7 @@ export function update5({ workspaceId, embeddedLinkId, updateWorkspaceEmbeddedLi
|
|
|
963
994
|
/**
|
|
964
995
|
* Upsert workspace embedded link
|
|
965
996
|
*/
|
|
966
|
-
export function
|
|
997
|
+
export function workspaceEmbeddedLinkControllerupsertBatch({ workspaceId, body }, opts) {
|
|
967
998
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/embedded-links/batch`, oazapfts.json({
|
|
968
999
|
...opts,
|
|
969
1000
|
method: "PATCH",
|
|
@@ -973,7 +1004,7 @@ export function upsertBatch1({ workspaceId, body }, opts) {
|
|
|
973
1004
|
/**
|
|
974
1005
|
* Get application link by id
|
|
975
1006
|
*/
|
|
976
|
-
export function
|
|
1007
|
+
export function applicationLinkControllergetApplicationLink({ workspaceId, applicationId, linkId }, opts) {
|
|
977
1008
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/links/${encodeURIComponent(linkId)}`, {
|
|
978
1009
|
...opts
|
|
979
1010
|
}));
|
|
@@ -981,7 +1012,7 @@ export function getApplicationLink({ workspaceId, applicationId, linkId }, opts)
|
|
|
981
1012
|
/**
|
|
982
1013
|
* Delete workspace links
|
|
983
1014
|
*/
|
|
984
|
-
export function
|
|
1015
|
+
export function applicationLinkControllerdelete({ workspaceId, applicationId, linkId }, opts) {
|
|
985
1016
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/links/${encodeURIComponent(linkId)}`, {
|
|
986
1017
|
...opts,
|
|
987
1018
|
method: "DELETE"
|
|
@@ -990,7 +1021,7 @@ export function delete5({ workspaceId, applicationId, linkId }, opts) {
|
|
|
990
1021
|
/**
|
|
991
1022
|
* Update application links
|
|
992
1023
|
*/
|
|
993
|
-
export function
|
|
1024
|
+
export function applicationLinkControllerupdate({ workspaceId, applicationId, linkId, updateApplicationLinkRequest }, opts) {
|
|
994
1025
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/links/${encodeURIComponent(linkId)}`, oazapfts.json({
|
|
995
1026
|
...opts,
|
|
996
1027
|
method: "PATCH",
|
|
@@ -1000,7 +1031,7 @@ export function update7({ workspaceId, applicationId, linkId, updateApplicationL
|
|
|
1000
1031
|
/**
|
|
1001
1032
|
* Get application embedded link by id
|
|
1002
1033
|
*/
|
|
1003
|
-
export function
|
|
1034
|
+
export function applicationEmbeddedLinkControllergetEmbeddedLink({ workspaceId, applicationId, embeddedLinkId }, opts) {
|
|
1004
1035
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/embedded-links/${encodeURIComponent(embeddedLinkId)}`, {
|
|
1005
1036
|
...opts
|
|
1006
1037
|
}));
|
|
@@ -1008,7 +1039,7 @@ export function getEmbeddedLink1({ workspaceId, applicationId, embeddedLinkId },
|
|
|
1008
1039
|
/**
|
|
1009
1040
|
* Delete application embedded link
|
|
1010
1041
|
*/
|
|
1011
|
-
export function
|
|
1042
|
+
export function applicationEmbeddedLinkControllerdelete({ workspaceId, applicationId, embeddedLinkId }, opts) {
|
|
1012
1043
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/embedded-links/${encodeURIComponent(embeddedLinkId)}`, {
|
|
1013
1044
|
...opts,
|
|
1014
1045
|
method: "DELETE"
|
|
@@ -1017,7 +1048,7 @@ export function delete6({ workspaceId, applicationId, embeddedLinkId }, opts) {
|
|
|
1017
1048
|
/**
|
|
1018
1049
|
* Update application embedded link
|
|
1019
1050
|
*/
|
|
1020
|
-
export function
|
|
1051
|
+
export function applicationEmbeddedLinkControllerupdate({ workspaceId, applicationId, embeddedLinkId, updateApplicationEmbeddedLinkRequest }, opts) {
|
|
1021
1052
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/embedded-links/${encodeURIComponent(embeddedLinkId)}`, oazapfts.json({
|
|
1022
1053
|
...opts,
|
|
1023
1054
|
method: "PATCH",
|
|
@@ -1027,7 +1058,7 @@ export function update8({ workspaceId, applicationId, embeddedLinkId, updateAppl
|
|
|
1027
1058
|
/**
|
|
1028
1059
|
* Upsert application embedded link
|
|
1029
1060
|
*/
|
|
1030
|
-
export function
|
|
1061
|
+
export function applicationEmbeddedLinkControllerupsertBatch({ workspaceId, applicationId, body }, opts) {
|
|
1031
1062
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/embedded-links/batch`, oazapfts.json({
|
|
1032
1063
|
...opts,
|
|
1033
1064
|
method: "PATCH",
|
|
@@ -1037,7 +1068,7 @@ export function upsertBatch2({ workspaceId, applicationId, body }, opts) {
|
|
|
1037
1068
|
/**
|
|
1038
1069
|
* Archive application from a workspace.
|
|
1039
1070
|
*/
|
|
1040
|
-
export function
|
|
1071
|
+
export function applicationControllerarchiveApplication({ workspaceId, applicationId }, opts) {
|
|
1041
1072
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/archive`, {
|
|
1042
1073
|
...opts,
|
|
1043
1074
|
method: "PATCH"
|
|
@@ -1046,7 +1077,7 @@ export function archiveApplication({ workspaceId, applicationId }, opts) {
|
|
|
1046
1077
|
/**
|
|
1047
1078
|
* Get environment by id
|
|
1048
1079
|
*/
|
|
1049
|
-
export function
|
|
1080
|
+
export function environmentControllergetEnvironment({ id }, opts) {
|
|
1050
1081
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/environments/${encodeURIComponent(id)}`, {
|
|
1051
1082
|
...opts
|
|
1052
1083
|
}));
|
|
@@ -1054,17 +1085,36 @@ export function getEnvironment({ id }, opts) {
|
|
|
1054
1085
|
/**
|
|
1055
1086
|
* Update environment
|
|
1056
1087
|
*/
|
|
1057
|
-
export function
|
|
1088
|
+
export function environmentControllerupdate({ id, environmentUpdateRequest }, opts) {
|
|
1058
1089
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/environments/${encodeURIComponent(id)}`, oazapfts.json({
|
|
1059
1090
|
...opts,
|
|
1060
1091
|
method: "PATCH",
|
|
1061
1092
|
body: environmentUpdateRequest
|
|
1062
1093
|
})));
|
|
1063
1094
|
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Find all workspace variables
|
|
1097
|
+
*/
|
|
1098
|
+
export function workspaceVariableV2ControllerfindAll({ workspaceId, accountId, page, size, sortBy, sortDir, mandate, name, showEmptyValues }, opts) {
|
|
1099
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/variables${QS.query(QS.explode({
|
|
1100
|
+
page,
|
|
1101
|
+
size,
|
|
1102
|
+
sortBy,
|
|
1103
|
+
sortDir,
|
|
1104
|
+
mandate,
|
|
1105
|
+
name,
|
|
1106
|
+
showEmptyValues
|
|
1107
|
+
}))}`, {
|
|
1108
|
+
...opts,
|
|
1109
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1110
|
+
accountId
|
|
1111
|
+
})
|
|
1112
|
+
}));
|
|
1113
|
+
}
|
|
1064
1114
|
/**
|
|
1065
1115
|
* Get plugins applied to a workspace's shared infrastructure.
|
|
1066
1116
|
*/
|
|
1067
|
-
export function
|
|
1117
|
+
export function sharedInfrastructureV2ControllergetAppliedPlugins({ workspaceId, sharedInfraId, environmentId }, opts) {
|
|
1068
1118
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(environmentId)}/plugins`, {
|
|
1069
1119
|
...opts
|
|
1070
1120
|
}));
|
|
@@ -1072,7 +1122,7 @@ export function getAppliedPlugins({ workspaceId, sharedInfraId, environmentId },
|
|
|
1072
1122
|
/**
|
|
1073
1123
|
* List all available connection interfaces for a workspace.
|
|
1074
1124
|
*/
|
|
1075
|
-
export function
|
|
1125
|
+
export function availableConnectionInterfaceV2ControllergetAvailableConnectionInterfacesForAWorkspace({ workspaceId, typeId, automaticallyGenerated }, opts) {
|
|
1076
1126
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/available-connection-interfaces${QS.query(QS.explode({
|
|
1077
1127
|
typeId,
|
|
1078
1128
|
automaticallyGenerated
|
|
@@ -1083,7 +1133,7 @@ export function getAvailableConnectionInterfacesForAWorkspace({ workspaceId, typ
|
|
|
1083
1133
|
/**
|
|
1084
1134
|
* Get available connection interface for a workspace by its slug.
|
|
1085
1135
|
*/
|
|
1086
|
-
export function
|
|
1136
|
+
export function availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAWorkspace({ workspaceId, slug, environmentId, accountId }, opts) {
|
|
1087
1137
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/available-connection-interfaces/${encodeURIComponent(slug)}${QS.query(QS.explode({
|
|
1088
1138
|
environmentId
|
|
1089
1139
|
}))}`, {
|
|
@@ -1096,7 +1146,7 @@ export function getAvailableConnectionInterfaceForAWorkspace({ workspaceId, slug
|
|
|
1096
1146
|
/**
|
|
1097
1147
|
* Get plugins applied to a workspace's application.
|
|
1098
1148
|
*/
|
|
1099
|
-
export function
|
|
1149
|
+
export function applicationV2ControllergetAppliedPlugins({ workspaceId, applicationId, environmentId }, opts) {
|
|
1100
1150
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(environmentId)}/plugins`, {
|
|
1101
1151
|
...opts
|
|
1102
1152
|
}));
|
|
@@ -1104,7 +1154,7 @@ export function getAppliedPlugins1({ workspaceId, applicationId, environmentId }
|
|
|
1104
1154
|
/**
|
|
1105
1155
|
* List all available connection interfaces for an application.
|
|
1106
1156
|
*/
|
|
1107
|
-
export function
|
|
1157
|
+
export function availableConnectionInterfaceV2ControllergetAvailableConnectionInterfacesForAnApplication({ applicationId, typeId, automaticallyGenerated }, opts) {
|
|
1108
1158
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/applications/${encodeURIComponent(applicationId)}/available-connection-interfaces${QS.query(QS.explode({
|
|
1109
1159
|
typeId,
|
|
1110
1160
|
automaticallyGenerated
|
|
@@ -1115,7 +1165,7 @@ export function getAvailableConnectionInterfacesForAnApplication({ applicationId
|
|
|
1115
1165
|
/**
|
|
1116
1166
|
* Get available connection interface for an application by its slug.
|
|
1117
1167
|
*/
|
|
1118
|
-
export function
|
|
1168
|
+
export function availableConnectionInterfaceV2ControllergetAvailableConnectionInterfaceForAnApplication({ applicationId, slug, environmentId }, opts) {
|
|
1119
1169
|
return oazapfts.ok(oazapfts.fetchJson(`/v2/applications/${encodeURIComponent(applicationId)}/available-connection-interfaces/${encodeURIComponent(slug)}${QS.query(QS.explode({
|
|
1120
1170
|
environmentId
|
|
1121
1171
|
}))}`, {
|
|
@@ -1125,7 +1175,7 @@ export function getAvailableConnectionInterfaceForAnApplication({ applicationId,
|
|
|
1125
1175
|
/**
|
|
1126
1176
|
* Get connection interface in use by applicationId or sharedInfraId.
|
|
1127
1177
|
*/
|
|
1128
|
-
export function
|
|
1178
|
+
export function connectionInterfaceInUseControllergetConnectionInterfaceInUseTargetId({ workspaceId, targetId, targetType, slug, accountId, environmentId }, opts) {
|
|
1129
1179
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/${encodeURIComponent(targetType)}/${encodeURIComponent(targetId)}/connection-interfaces-in-use/${encodeURIComponent(slug)}/plugins${QS.query(QS.explode({
|
|
1130
1180
|
environmentId
|
|
1131
1181
|
}))}`, {
|
|
@@ -1135,10 +1185,20 @@ export function getConnectionInterfaceInUseTargetId({ workspaceId, targetId, tar
|
|
|
1135
1185
|
})
|
|
1136
1186
|
}));
|
|
1137
1187
|
}
|
|
1188
|
+
/**
|
|
1189
|
+
* Get all workspace's variables v1
|
|
1190
|
+
*/
|
|
1191
|
+
export function workspaceVariableV1ControllerfindAll({ workspaceId, filter }, opts) {
|
|
1192
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/variables${QS.query(QS.explode({
|
|
1193
|
+
filter
|
|
1194
|
+
}))}`, {
|
|
1195
|
+
...opts
|
|
1196
|
+
}));
|
|
1197
|
+
}
|
|
1138
1198
|
/**
|
|
1139
1199
|
* Get stack in a workspace by stack version id.
|
|
1140
1200
|
*/
|
|
1141
|
-
export function
|
|
1201
|
+
export function workspaceStackControllergetStackById({ workspaceId, stackVersionId }, opts) {
|
|
1142
1202
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}`, {
|
|
1143
1203
|
...opts
|
|
1144
1204
|
}));
|
|
@@ -1146,7 +1206,7 @@ export function getStackById({ workspaceId, stackVersionId }, opts) {
|
|
|
1146
1206
|
/**
|
|
1147
1207
|
* Delete a stack from a workspace.
|
|
1148
1208
|
*/
|
|
1149
|
-
export function
|
|
1209
|
+
export function workspaceStackControllerdeleteStack({ workspaceId, stackVersionId }, opts) {
|
|
1150
1210
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}`, {
|
|
1151
1211
|
...opts,
|
|
1152
1212
|
method: "DELETE"
|
|
@@ -1155,7 +1215,7 @@ export function deleteStack({ workspaceId, stackVersionId }, opts) {
|
|
|
1155
1215
|
/**
|
|
1156
1216
|
* List the consolidated input context of all stack elements for given type in a workspace.
|
|
1157
1217
|
*/
|
|
1158
|
-
export function
|
|
1218
|
+
export function contextControllerlistConsolidatedContext({ workspaceId, stackVersionId, $type, environmentId, externalId }, opts) {
|
|
1159
1219
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}-context${QS.query(QS.explode({
|
|
1160
1220
|
environmentId,
|
|
1161
1221
|
externalId
|
|
@@ -1166,7 +1226,7 @@ export function listConsolidatedContext({ workspaceId, stackVersionId, $type, en
|
|
|
1166
1226
|
/**
|
|
1167
1227
|
* Get workflow settings with context by stack and workflowType
|
|
1168
1228
|
*/
|
|
1169
|
-
export function
|
|
1229
|
+
export function workflowWorkspaceControllerlistWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, workflowType }, opts) {
|
|
1170
1230
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowType)}`, {
|
|
1171
1231
|
...opts
|
|
1172
1232
|
}));
|
|
@@ -1174,7 +1234,7 @@ export function listWorkflowByStackIdAndWorkflowType({ workspaceId, stackId, wor
|
|
|
1174
1234
|
/**
|
|
1175
1235
|
* Get plugins applied to a workspace's shared infrastructure.
|
|
1176
1236
|
*/
|
|
1177
|
-
export function
|
|
1237
|
+
export function sharedInfrastructureControllergetAppliedPlugins({ workspaceId, sharedInfraId, environmentId, $type }, opts) {
|
|
1178
1238
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(environmentId)}/plugins${QS.query(QS.explode({
|
|
1179
1239
|
"type": $type
|
|
1180
1240
|
}))}`, {
|
|
@@ -1184,7 +1244,7 @@ export function getAppliedPlugins2({ workspaceId, sharedInfraId, environmentId,
|
|
|
1184
1244
|
/**
|
|
1185
1245
|
* List shared infrastructure's activities.
|
|
1186
1246
|
*/
|
|
1187
|
-
export function
|
|
1247
|
+
export function sharedInfrastructureControllerlistActivities({ workspaceId, sharedInfraId, environmentId, $type, page, size }, opts) {
|
|
1188
1248
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/environments/${encodeURIComponent(environmentId)}/activities${QS.query(QS.explode({
|
|
1189
1249
|
"type": $type,
|
|
1190
1250
|
page,
|
|
@@ -1196,7 +1256,7 @@ export function listActivities({ workspaceId, sharedInfraId, environmentId, $typ
|
|
|
1196
1256
|
/**
|
|
1197
1257
|
* Get all in use connection interface dependencies from the shared infra.
|
|
1198
1258
|
*/
|
|
1199
|
-
export function
|
|
1259
|
+
export function sharedInfrastructureControllergetDependencyTree({ workspaceId, sharedInfraId }, opts) {
|
|
1200
1260
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/shared-infra/${encodeURIComponent(sharedInfraId)}/dependencies`, {
|
|
1201
1261
|
...opts
|
|
1202
1262
|
}));
|
|
@@ -1204,7 +1264,7 @@ export function getDependencyTree({ workspaceId, sharedInfraId }, opts) {
|
|
|
1204
1264
|
/**
|
|
1205
1265
|
* Get a connection interface by connection interface id.
|
|
1206
1266
|
*/
|
|
1207
|
-
export function
|
|
1267
|
+
export function connectionInterfaceControllergetConnectionInterface({ workspaceId, connectionInterfaceId, environmentId }, opts) {
|
|
1208
1268
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(connectionInterfaceId)}${QS.query(QS.explode({
|
|
1209
1269
|
environmentId
|
|
1210
1270
|
}))}`, {
|
|
@@ -1214,7 +1274,7 @@ export function getConnectionInterface({ workspaceId, connectionInterfaceId, env
|
|
|
1214
1274
|
/**
|
|
1215
1275
|
* Get all connection interface in use.
|
|
1216
1276
|
*/
|
|
1217
|
-
export function
|
|
1277
|
+
export function connectionInterfaceInUseControllergetAllConnectionInterfaceInUse({ workspaceId, accountId }, opts) {
|
|
1218
1278
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces-in-use`, {
|
|
1219
1279
|
...opts,
|
|
1220
1280
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1225,7 +1285,7 @@ export function getAllConnectionInterfaceInUse({ workspaceId, accountId }, opts)
|
|
|
1225
1285
|
/**
|
|
1226
1286
|
* Get connection interface in use by slug.
|
|
1227
1287
|
*/
|
|
1228
|
-
export function
|
|
1288
|
+
export function connectionInterfaceInUseControllergetConnectionInterfaceInUseBySlug({ workspaceId, slug, accountId }, opts) {
|
|
1229
1289
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces-in-use/${encodeURIComponent(slug)}`, {
|
|
1230
1290
|
...opts,
|
|
1231
1291
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1236,7 +1296,7 @@ export function getConnectionInterfaceInUseBySlug({ workspaceId, slug, accountId
|
|
|
1236
1296
|
/**
|
|
1237
1297
|
* List all available connection interfaces for a workspace.
|
|
1238
1298
|
*/
|
|
1239
|
-
export function
|
|
1299
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfacesForAWorkspace({ workspaceId, typeId }, opts) {
|
|
1240
1300
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/available-connection-interfaces${QS.query(QS.explode({
|
|
1241
1301
|
typeId
|
|
1242
1302
|
}))}`, {
|
|
@@ -1246,7 +1306,7 @@ export function getAvailableConnectionInterfacesForAWorkspace1({ workspaceId, ty
|
|
|
1246
1306
|
/**
|
|
1247
1307
|
* Get available connection interface for a workspace by its id.
|
|
1248
1308
|
*/
|
|
1249
|
-
export function
|
|
1309
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfaceForAWorkspace({ workspaceId, connectionInterfaceId, environmentId }, opts) {
|
|
1250
1310
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/available-connection-interfaces/${encodeURIComponent(connectionInterfaceId)}${QS.query(QS.explode({
|
|
1251
1311
|
environmentId
|
|
1252
1312
|
}))}`, {
|
|
@@ -1256,14 +1316,14 @@ export function getAvailableConnectionInterfaceForAWorkspace1({ workspaceId, con
|
|
|
1256
1316
|
/**
|
|
1257
1317
|
* Get plugins applied to a workspace's application.
|
|
1258
1318
|
*/
|
|
1259
|
-
export function
|
|
1319
|
+
export function applicationControllergetAppliedPlugins({ workspaceId, applicationId, environmentId, $type }, opts) {
|
|
1260
1320
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(environmentId)}/plugins${QS.query(QS.explode({
|
|
1261
1321
|
"type": $type
|
|
1262
1322
|
}))}`, {
|
|
1263
1323
|
...opts
|
|
1264
1324
|
}));
|
|
1265
1325
|
}
|
|
1266
|
-
export function
|
|
1326
|
+
export function applicationControllergetAppDeployInfo({ workspaceId, applicationId, environmentId, accountId, tenant }, opts) {
|
|
1267
1327
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(environmentId)}/deploy-info`, {
|
|
1268
1328
|
...opts,
|
|
1269
1329
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1275,7 +1335,7 @@ export function getAppDeployInfo({ workspaceId, applicationId, environmentId, ac
|
|
|
1275
1335
|
/**
|
|
1276
1336
|
* List application's activities.
|
|
1277
1337
|
*/
|
|
1278
|
-
export function
|
|
1338
|
+
export function applicationControllerlistActivities({ workspaceId, applicationId, environmentId, $type, page, size }, opts) {
|
|
1279
1339
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/environments/${encodeURIComponent(environmentId)}/activities${QS.query(QS.explode({
|
|
1280
1340
|
"type": $type,
|
|
1281
1341
|
page,
|
|
@@ -1287,7 +1347,7 @@ export function listActivities1({ workspaceId, applicationId, environmentId, $ty
|
|
|
1287
1347
|
/**
|
|
1288
1348
|
* Get all in use connection interface dependencies from the application.
|
|
1289
1349
|
*/
|
|
1290
|
-
export function
|
|
1350
|
+
export function applicationControllergetDependencyTree({ workspaceId, applicationId }, opts) {
|
|
1291
1351
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/dependencies`, {
|
|
1292
1352
|
...opts
|
|
1293
1353
|
}));
|
|
@@ -1295,7 +1355,7 @@ export function getDependencyTree1({ workspaceId, applicationId }, opts) {
|
|
|
1295
1355
|
/**
|
|
1296
1356
|
* Can the application be destroyed?
|
|
1297
1357
|
*/
|
|
1298
|
-
export function
|
|
1358
|
+
export function applicationControllercanBeDeleted({ workspaceId, applicationId, accountId, tenant }, opts) {
|
|
1299
1359
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/applications/${encodeURIComponent(applicationId)}/can-be-deleted`, {
|
|
1300
1360
|
...opts,
|
|
1301
1361
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1307,7 +1367,7 @@ export function canBeDeleted({ workspaceId, applicationId, accountId, tenant },
|
|
|
1307
1367
|
/**
|
|
1308
1368
|
* Get all workspaces within user permission
|
|
1309
1369
|
*/
|
|
1310
|
-
export function
|
|
1370
|
+
export function workspaceControllergetWorkspacesFromUserPermission({ resource, action }, opts) {
|
|
1311
1371
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/from-user-permission/${encodeURIComponent(resource)}/${encodeURIComponent(action)}`, {
|
|
1312
1372
|
...opts
|
|
1313
1373
|
}));
|
|
@@ -1315,7 +1375,7 @@ export function getWorkspacesFromUserPermission({ resource, action }, opts) {
|
|
|
1315
1375
|
/**
|
|
1316
1376
|
* Get shared infrastructure information by id.
|
|
1317
1377
|
*/
|
|
1318
|
-
export function
|
|
1378
|
+
export function getSharedInfraControllergetSharedInfra({ id }, opts) {
|
|
1319
1379
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/shared-infra/${encodeURIComponent(id)}`, {
|
|
1320
1380
|
...opts
|
|
1321
1381
|
}));
|
|
@@ -1323,7 +1383,7 @@ export function getSharedInfra({ id }, opts) {
|
|
|
1323
1383
|
/**
|
|
1324
1384
|
* Check if there is/are any deployment active for the provided plugin
|
|
1325
1385
|
*/
|
|
1326
|
-
export function
|
|
1386
|
+
export function pluginInUseControllercheckPluginInUse({ pluginVersionId }, opts) {
|
|
1327
1387
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/plugin-in-use/${encodeURIComponent(pluginVersionId)}`, {
|
|
1328
1388
|
...opts
|
|
1329
1389
|
}));
|
|
@@ -1331,7 +1391,7 @@ export function checkPluginInUse({ pluginVersionId }, opts) {
|
|
|
1331
1391
|
/**
|
|
1332
1392
|
* Check availability of connection slug in account.
|
|
1333
1393
|
*/
|
|
1334
|
-
export function
|
|
1394
|
+
export function checkConnectionSlugAvailabilityControllercheckConnectionSlugAvailability({ slug }, opts) {
|
|
1335
1395
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/connection-interfaces/${encodeURIComponent(slug)}/availability`, {
|
|
1336
1396
|
...opts
|
|
1337
1397
|
}));
|
|
@@ -1339,7 +1399,7 @@ export function checkConnectionSlugAvailability({ slug }, opts) {
|
|
|
1339
1399
|
/**
|
|
1340
1400
|
* Get an application list by repo url.
|
|
1341
1401
|
*/
|
|
1342
|
-
export function
|
|
1402
|
+
export function getApplicationControllergetApplicationsByUrl({ accountId, repoUrl }, opts) {
|
|
1343
1403
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications${QS.query(QS.explode({
|
|
1344
1404
|
repoUrl
|
|
1345
1405
|
}))}`, {
|
|
@@ -1352,7 +1412,7 @@ export function getApplicationsByUrl({ accountId, repoUrl }, opts) {
|
|
|
1352
1412
|
/**
|
|
1353
1413
|
* Get application information by id.
|
|
1354
1414
|
*/
|
|
1355
|
-
export function
|
|
1415
|
+
export function getApplicationControllergetApplication({ id }, opts) {
|
|
1356
1416
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/${encodeURIComponent(id)}`, {
|
|
1357
1417
|
...opts
|
|
1358
1418
|
}));
|
|
@@ -1360,7 +1420,7 @@ export function getApplication1({ id }, opts) {
|
|
|
1360
1420
|
/**
|
|
1361
1421
|
* List all available connection interfaces for an application.
|
|
1362
1422
|
*/
|
|
1363
|
-
export function
|
|
1423
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfacesForAnApplication({ applicationId, typeId }, opts) {
|
|
1364
1424
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/${encodeURIComponent(applicationId)}/available-connection-interfaces${QS.query(QS.explode({
|
|
1365
1425
|
typeId
|
|
1366
1426
|
}))}`, {
|
|
@@ -1370,7 +1430,7 @@ export function getAvailableConnectionInterfacesForAnApplication1({ applicationI
|
|
|
1370
1430
|
/**
|
|
1371
1431
|
* Get available connection interface for an application by its id.
|
|
1372
1432
|
*/
|
|
1373
|
-
export function
|
|
1433
|
+
export function availableConnectionInterfaceControllergetAvailableConnectionInterfaceForAnApplication({ applicationId, connectionInterfaceId, environmentId }, opts) {
|
|
1374
1434
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/applications/${encodeURIComponent(applicationId)}/available-connection-interfaces/${encodeURIComponent(connectionInterfaceId)}${QS.query(QS.explode({
|
|
1375
1435
|
environmentId
|
|
1376
1436
|
}))}`, {
|
|
@@ -1380,7 +1440,7 @@ export function getAvailableConnectionInterfaceForAnApplication1({ applicationId
|
|
|
1380
1440
|
/**
|
|
1381
1441
|
* Get action version ranges used in workflows given an actionId.
|
|
1382
1442
|
*/
|
|
1383
|
-
export function
|
|
1443
|
+
export function workflowAccountControllerlistActionVersionRangesUsage({ accountId, actionId }, opts) {
|
|
1384
1444
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/actions/${encodeURIComponent(actionId)}/versions`, {
|
|
1385
1445
|
...opts,
|
|
1386
1446
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
@@ -1388,10 +1448,21 @@ export function listActionVersionRangesUsage({ accountId, actionId }, opts) {
|
|
|
1388
1448
|
})
|
|
1389
1449
|
}));
|
|
1390
1450
|
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Get account variable usage
|
|
1453
|
+
*/
|
|
1454
|
+
export function accountVariableControllerusage({ accountId, name }, opts) {
|
|
1455
|
+
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/variables/${encodeURIComponent(name)}/usage`, {
|
|
1456
|
+
...opts,
|
|
1457
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
1458
|
+
accountId
|
|
1459
|
+
})
|
|
1460
|
+
}));
|
|
1461
|
+
}
|
|
1391
1462
|
/**
|
|
1392
1463
|
* List the input context of all stack elements for given type in account.
|
|
1393
1464
|
*/
|
|
1394
|
-
export function
|
|
1465
|
+
export function contextControllerlistAccountContext({ stackVersionId, $type, environmentId, externalId }, opts) {
|
|
1395
1466
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackVersionId)}/${encodeURIComponent($type)}-context${QS.query(QS.explode({
|
|
1396
1467
|
environmentId,
|
|
1397
1468
|
externalId
|
|
@@ -1402,7 +1473,7 @@ export function listAccountContext({ stackVersionId, $type, environmentId, exter
|
|
|
1402
1473
|
/**
|
|
1403
1474
|
* Get workflow of a stackId by workflow type.
|
|
1404
1475
|
*/
|
|
1405
|
-
export function
|
|
1476
|
+
export function workflowStackControllerlistWorkflowByStackIdAndType({ stackId, workflowType }, opts) {
|
|
1406
1477
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackId)}/workflows/${encodeURIComponent(workflowType)}`, {
|
|
1407
1478
|
...opts
|
|
1408
1479
|
}));
|
|
@@ -1410,7 +1481,7 @@ export function listWorkflowByStackIdAndType({ stackId, workflowType }, opts) {
|
|
|
1410
1481
|
/**
|
|
1411
1482
|
* Get workflows by a stackId.
|
|
1412
1483
|
*/
|
|
1413
|
-
export function
|
|
1484
|
+
export function workflowStackControllerlistWorkflowsByStackId({ stackId }, opts) {
|
|
1414
1485
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/stacks/${encodeURIComponent(stackId)}/all-workflows`, {
|
|
1415
1486
|
...opts
|
|
1416
1487
|
}));
|
|
@@ -1418,7 +1489,7 @@ export function listWorkflowsByStackId({ stackId }, opts) {
|
|
|
1418
1489
|
/**
|
|
1419
1490
|
* List all stacks with workflow by account.
|
|
1420
1491
|
*/
|
|
1421
|
-
export function
|
|
1492
|
+
export function accountStackControllerlistStacksWithWorkflow(opts) {
|
|
1422
1493
|
return oazapfts.ok(oazapfts.fetchJson("/v1/account/stacks/with-workflow", {
|
|
1423
1494
|
...opts
|
|
1424
1495
|
}));
|
|
@@ -1426,7 +1497,7 @@ export function listStacksWithWorkflow(opts) {
|
|
|
1426
1497
|
/**
|
|
1427
1498
|
* List all default workflows of an account.
|
|
1428
1499
|
*/
|
|
1429
|
-
export function
|
|
1500
|
+
export function workflowAccountControllerlistDefaultAccountWorkflows(opts) {
|
|
1430
1501
|
return oazapfts.ok(oazapfts.fetchJson("/v1/account/default-workflows", {
|
|
1431
1502
|
...opts
|
|
1432
1503
|
}));
|
|
@@ -1434,7 +1505,7 @@ export function listDefaultAccountWorkflows(opts) {
|
|
|
1434
1505
|
/**
|
|
1435
1506
|
* Delete completely connection interfaces from all environments.
|
|
1436
1507
|
*/
|
|
1437
|
-
export function
|
|
1508
|
+
export function connectionInterfaceControllerdeleteConnectionInterfaceFromAllEnvironments({ workspaceId, slug }, opts) {
|
|
1438
1509
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(slug)}`, {
|
|
1439
1510
|
...opts,
|
|
1440
1511
|
method: "DELETE"
|
|
@@ -1443,7 +1514,7 @@ export function deleteConnectionInterfaceFromAllEnvironments({ workspaceId, slug
|
|
|
1443
1514
|
/**
|
|
1444
1515
|
* Delete connection interfaces.
|
|
1445
1516
|
*/
|
|
1446
|
-
export function
|
|
1517
|
+
export function connectionInterfaceControllerdeleteConnectionInterface({ workspaceId, slug, environmentId, accountId }, opts) {
|
|
1447
1518
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(slug)}/environment/${encodeURIComponent(environmentId)}`, {
|
|
1448
1519
|
...opts,
|
|
1449
1520
|
method: "DELETE",
|
|
@@ -1455,7 +1526,7 @@ export function deleteConnectionInterface({ workspaceId, slug, environmentId, ac
|
|
|
1455
1526
|
/**
|
|
1456
1527
|
* Delete connection interface attributes by environment.
|
|
1457
1528
|
*/
|
|
1458
|
-
export function
|
|
1529
|
+
export function connectionInterfaceControllerdeleteConnectionInterfaceAttributesFromEnvironment({ workspaceId, slug, environmentId }, opts) {
|
|
1459
1530
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/workspaces/${encodeURIComponent(workspaceId)}/connection-interfaces/${encodeURIComponent(slug)}/attributes${QS.query(QS.explode({
|
|
1460
1531
|
environmentId
|
|
1461
1532
|
}))}`, {
|
|
@@ -1466,7 +1537,7 @@ export function deleteConnectionInterfaceAttributesFromEnvironment({ workspaceId
|
|
|
1466
1537
|
/**
|
|
1467
1538
|
* Delete an account workflow.
|
|
1468
1539
|
*/
|
|
1469
|
-
export function
|
|
1540
|
+
export function workflowAccountControllerdeleteAccountWorkflow({ workflowId }, opts) {
|
|
1470
1541
|
return oazapfts.ok(oazapfts.fetchJson(`/v1/account/workflows/${encodeURIComponent(workflowId)}`, {
|
|
1471
1542
|
...opts,
|
|
1472
1543
|
method: "DELETE"
|