@stack-spot/portal-network 0.183.0 → 0.184.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 +2412 -2405
- package/dist/api/account.js +1 -1
- package/dist/api/agent-tools.js +1 -1
- package/dist/api/agent.js +1 -1
- package/dist/api/ai.js +1 -1
- package/dist/api/apiManagement.js +1 -1
- package/dist/api/apiRuntime.js +1 -1
- package/dist/api/cloudAccount.js +1 -1
- package/dist/api/cloudPlatform.js +1 -1
- package/dist/api/cloudPlatformHorizon.js +1 -1
- package/dist/api/cloudRuntimes.js +1 -1
- package/dist/api/cloudServices.js +1 -1
- package/dist/api/codeShift.js +1 -1
- package/dist/api/content.js +1 -1
- package/dist/api/dataIntegration.js +1 -1
- package/dist/api/discover.js +1 -1
- package/dist/api/genAiInference.js +1 -1
- package/dist/api/insights.js +1 -1
- package/dist/api/notification.js +1 -1
- package/dist/api/secrets.js +1 -1
- package/dist/api/serviceCatalog.js +1 -1
- package/dist/api/workspace-ai.js +1 -1
- package/dist/api/workspace.js +1 -1
- package/dist/api/workspaceManager.d.ts +16 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +11 -1
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/api/workspaceSearchEngine.js +1 -1
- package/dist/client/workspace-manager.d.ts +6 -0
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +10 -1
- package/dist/client/workspace-manager.js.map +1 -1
- package/package.json +6 -6
- package/scripts/generate-apis.ts +134 -134
- package/src/api/account.ts +8367 -8367
- package/src/api/agent-tools.ts +2169 -2169
- package/src/api/agent.ts +1083 -1083
- package/src/api/ai.ts +3388 -3388
- package/src/api/apiManagement.ts +570 -570
- package/src/api/apiRuntime.ts +2103 -2103
- package/src/api/cloudAccount.ts +1239 -1239
- package/src/api/cloudPlatform.ts +927 -927
- package/src/api/cloudPlatformHorizon.ts +2655 -2655
- package/src/api/cloudRuntimes.ts +2043 -2043
- package/src/api/cloudServices.ts +1445 -1445
- package/src/api/codeShift.ts +3481 -3481
- package/src/api/content.ts +9785 -9785
- package/src/api/dataIntegration.ts +1657 -1657
- package/src/api/discover.ts +435 -435
- package/src/api/eventBus.ts +171 -171
- package/src/api/genAiInference.ts +603 -603
- package/src/api/insights.ts +310 -310
- package/src/api/notification.ts +334 -334
- package/src/api/secrets.ts +342 -342
- package/src/api/serviceCatalog.ts +2908 -2908
- package/src/api/workflows.ts +1669 -1669
- package/src/api/workspace-ai.ts +677 -677
- package/src/api/workspace.ts +5889 -5889
- package/src/api/workspaceManager.ts +2951 -2936
- package/src/api/workspaceSearchEngine.ts +153 -153
- package/src/api-addresses.ts +120 -120
- package/src/apis-itau.json +225 -225
- package/src/apis.json +225 -225
- package/src/client/account.ts +902 -902
- package/src/client/agent-tools.ts +210 -210
- package/src/client/agent.ts +81 -81
- package/src/client/ai.ts +395 -395
- package/src/client/api-management.ts +40 -40
- package/src/client/cloud-account.ts +70 -70
- package/src/client/cloud-platform-horizon.ts +113 -113
- package/src/client/cloud-platform.ts +163 -163
- package/src/client/cloud-runtimes.ts +129 -129
- package/src/client/cloud-services.ts +94 -94
- package/src/client/code-shift.ts +349 -349
- package/src/client/content.ts +538 -538
- package/src/client/data-integration.ts +191 -191
- package/src/client/discover.ts +89 -89
- package/src/client/event-bus.ts +84 -84
- package/src/client/gen-ai-inference.ts +65 -65
- package/src/client/insights.ts +28 -28
- package/src/client/notification.ts +32 -32
- package/src/client/runtime-manager.ts +76 -76
- package/src/client/secrets.ts +60 -60
- package/src/client/types.ts +377 -377
- package/src/client/workflow.ts +83 -83
- package/src/client/workspace-ai.ts +191 -191
- package/src/client/workspace-manager.ts +564 -560
- package/src/client/workspace-search.ts +39 -39
- package/src/client/workspace.ts +480 -480
- package/src/error/DefaultAPIError.ts +151 -151
- package/src/error/FileUploadError.ts +18 -18
- package/src/error/IgnoredErrorCodes.ts +3 -3
- package/src/error/StackspotAPIError.ts +101 -101
- package/src/error/StreamCanceledError.ts +10 -10
- package/src/error/StreamError.ts +7 -7
- package/src/error/StreamJsonError.ts +10 -10
- package/src/error/dictionary/account.ts +58 -58
- package/src/error/dictionary/action-details.ts +20 -20
- package/src/error/dictionary/action.ts +211 -211
- package/src/error/dictionary/agent-tools.ts +75 -75
- package/src/error/dictionary/ai-inference.ts +28 -28
- package/src/error/dictionary/base.ts +22 -22
- package/src/error/dictionary/cloud-platform.ts +82 -82
- package/src/error/dictionary/cnt-fields.ts +14 -14
- package/src/error/dictionary/cnt.ts +103 -103
- package/src/error/dictionary/code-shift.ts +12 -12
- package/src/error/dictionary/rte.ts +24 -24
- package/src/error/dictionary/rtm.ts +10 -10
- package/src/error/dictionary/secrets.ts +14 -14
- package/src/error/dictionary/workspace-ai.ts +10 -10
- package/src/error/dictionary/workspace-details.ts +15 -15
- package/src/error/dictionary/workspace-fields.ts +10 -10
- package/src/error/dictionary/workspace.ts +209 -209
- package/src/error/types.ts +21 -21
- package/src/index.ts +43 -43
- package/src/network/AutoInfiniteQuery.ts +115 -115
- package/src/network/AutoMutation.ts +27 -27
- package/src/network/AutoOperation.ts +73 -73
- package/src/network/AutoQuery.ts +75 -75
- package/src/network/ManualInfiniteQuery.ts +95 -95
- package/src/network/ManualMutation.ts +40 -40
- package/src/network/ManualOperation.ts +52 -52
- package/src/network/ManualQuery.ts +82 -82
- package/src/network/NetworkClient.ts +167 -167
- package/src/network/ReactQueryNetworkClient.ts +312 -312
- package/src/network/react-query-client.ts +14 -14
- package/src/network/types.ts +294 -294
- package/src/types.ts +1 -1
- package/src/utils/StreamedArray.tsx +146 -146
- package/src/utils/StreamedJson.tsx +166 -166
- package/src/utils/remove-authorization-param.ts +6 -6
- package/src/utils/string.ts +19 -19
- package/src/utils/use-extended-list.ts +80 -80
- package/src/utils/use-streamed-array.ts +17 -17
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +10 -10
package/src/api/cloudRuntimes.ts
CHANGED
|
@@ -1,2043 +1,2043 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OpenAPI definition
|
|
3
|
-
* v0
|
|
4
|
-
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
-
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
-
*/
|
|
7
|
-
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
-
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
-
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
-
headers: {},
|
|
11
|
-
baseUrl: "https://cloud-cloud-runtime-api.dev.stackspot.com",
|
|
12
|
-
};
|
|
13
|
-
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
-
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://cloud-cloud-runtime-api.dev.stackspot.com"
|
|
16
|
-
};
|
|
17
|
-
export type ScheduleRequest = {
|
|
18
|
-
applicationId: string;
|
|
19
|
-
runtimeId: string;
|
|
20
|
-
startDate: string;
|
|
21
|
-
endDate: string;
|
|
22
|
-
time: string;
|
|
23
|
-
repeats: "NEVER" | "DAILY" | "WEEKLY" | "MONTHLY";
|
|
24
|
-
action: "START" | "STOP" | "RESTART" | "DEPLOY";
|
|
25
|
-
};
|
|
26
|
-
export type ScheduleResponse = {
|
|
27
|
-
applicationId: string;
|
|
28
|
-
runtimeId: string;
|
|
29
|
-
startDate: string;
|
|
30
|
-
endDate: string;
|
|
31
|
-
time: string;
|
|
32
|
-
repeats: "NEVER" | "DAILY" | "WEEKLY" | "MONTHLY";
|
|
33
|
-
action: "START" | "STOP" | "RESTART" | "DEPLOY";
|
|
34
|
-
};
|
|
35
|
-
export type StatusType = number;
|
|
36
|
-
export type EnvVar = {
|
|
37
|
-
key: string;
|
|
38
|
-
value: string;
|
|
39
|
-
};
|
|
40
|
-
export type SecretVar = {
|
|
41
|
-
key: string;
|
|
42
|
-
value: string;
|
|
43
|
-
};
|
|
44
|
-
export type ReplicaNum = {
|
|
45
|
-
min?: number;
|
|
46
|
-
max?: number;
|
|
47
|
-
};
|
|
48
|
-
export type CreateDeploymentRequestV2 = {
|
|
49
|
-
runtimeId: string;
|
|
50
|
-
applicationId?: string;
|
|
51
|
-
applicationName?: string;
|
|
52
|
-
action: string;
|
|
53
|
-
containerPort?: number;
|
|
54
|
-
healthCheckPath?: string;
|
|
55
|
-
imageUrl: string;
|
|
56
|
-
tag: string;
|
|
57
|
-
mem?: number;
|
|
58
|
-
envVars?: EnvVar[];
|
|
59
|
-
secretVars?: SecretVar[];
|
|
60
|
-
cpu?: number;
|
|
61
|
-
replicaNum?: ReplicaNum;
|
|
62
|
-
awsAccount?: string;
|
|
63
|
-
idAwsAccount?: string;
|
|
64
|
-
health?: string;
|
|
65
|
-
applicationURL?: string;
|
|
66
|
-
};
|
|
67
|
-
export type SetAutoscalingRequest = {
|
|
68
|
-
deploymentId: string;
|
|
69
|
-
replicaNum: ReplicaNum;
|
|
70
|
-
applicationName: string;
|
|
71
|
-
};
|
|
72
|
-
export type CreateDeploymentResponseV2 = {
|
|
73
|
-
id?: string;
|
|
74
|
-
runtimeId: string;
|
|
75
|
-
applicationId?: string;
|
|
76
|
-
applicationName?: string;
|
|
77
|
-
action: string;
|
|
78
|
-
containerPort?: number;
|
|
79
|
-
healthCheckPath?: string;
|
|
80
|
-
imageUrl: string;
|
|
81
|
-
tag: string;
|
|
82
|
-
mem?: number;
|
|
83
|
-
envVars?: EnvVar[];
|
|
84
|
-
secretVars?: SecretVar[];
|
|
85
|
-
cpu?: number;
|
|
86
|
-
replicaNum?: ReplicaNum;
|
|
87
|
-
awsAccount: string;
|
|
88
|
-
idAwsAccount: string;
|
|
89
|
-
health?: string;
|
|
90
|
-
applicationURL?: string;
|
|
91
|
-
status?: string;
|
|
92
|
-
};
|
|
93
|
-
export type ApplicationDtov2 = {
|
|
94
|
-
id?: string;
|
|
95
|
-
name: string;
|
|
96
|
-
description?: string;
|
|
97
|
-
"type": string;
|
|
98
|
-
creator: string;
|
|
99
|
-
url?: string;
|
|
100
|
-
projectId?: string;
|
|
101
|
-
createdAt?: string;
|
|
102
|
-
updatedAt?: string;
|
|
103
|
-
};
|
|
104
|
-
export type RuntimeSpecDto = {
|
|
105
|
-
id: string;
|
|
106
|
-
};
|
|
107
|
-
export type ResourcesDto = {
|
|
108
|
-
memory: string;
|
|
109
|
-
cpu: number;
|
|
110
|
-
};
|
|
111
|
-
export type HpaDto = {
|
|
112
|
-
enabled: boolean;
|
|
113
|
-
max: number;
|
|
114
|
-
min: number;
|
|
115
|
-
cpu: number;
|
|
116
|
-
};
|
|
117
|
-
export type ContainerValuesDto = {
|
|
118
|
-
resources: ResourcesDto;
|
|
119
|
-
volume: string;
|
|
120
|
-
hpa: HpaDto;
|
|
121
|
-
};
|
|
122
|
-
export type ContainerSpecDto = {
|
|
123
|
-
port: string;
|
|
124
|
-
healthCheckPath: string;
|
|
125
|
-
envVars: {
|
|
126
|
-
[key: string]: string;
|
|
127
|
-
};
|
|
128
|
-
imageUrl: string;
|
|
129
|
-
versionTag: string;
|
|
130
|
-
values: ContainerValuesDto;
|
|
131
|
-
};
|
|
132
|
-
export type SpecDto = {
|
|
133
|
-
runtime: RuntimeSpecDto;
|
|
134
|
-
container: ContainerSpecDto;
|
|
135
|
-
};
|
|
136
|
-
export type CreateDeploymentRequest = {
|
|
137
|
-
ulid?: string;
|
|
138
|
-
kind: string;
|
|
139
|
-
apiVersion: string;
|
|
140
|
-
runtimeId: number;
|
|
141
|
-
sourceId: string;
|
|
142
|
-
imageUrl: string;
|
|
143
|
-
metadata?: {
|
|
144
|
-
[key: string]: object;
|
|
145
|
-
};
|
|
146
|
-
action: "START" | "STOP" | "RESTART" | "DEPLOY";
|
|
147
|
-
sourceType: string;
|
|
148
|
-
spec: SpecDto;
|
|
149
|
-
};
|
|
150
|
-
export type ApplicationDto = {
|
|
151
|
-
id?: number;
|
|
152
|
-
ulid?: string;
|
|
153
|
-
name: string;
|
|
154
|
-
description?: string;
|
|
155
|
-
"type": string;
|
|
156
|
-
creator: string;
|
|
157
|
-
projectId: number;
|
|
158
|
-
url?: string;
|
|
159
|
-
projectUlid?: string;
|
|
160
|
-
createdAt?: string;
|
|
161
|
-
updatedAt?: string;
|
|
162
|
-
};
|
|
163
|
-
export type CreateApplicationResponse = {
|
|
164
|
-
id?: number;
|
|
165
|
-
ulid?: string;
|
|
166
|
-
name: string;
|
|
167
|
-
description?: string;
|
|
168
|
-
"type": string;
|
|
169
|
-
creator: string;
|
|
170
|
-
projectId: number;
|
|
171
|
-
url?: string;
|
|
172
|
-
projectUlid?: string;
|
|
173
|
-
createdAt?: string;
|
|
174
|
-
updatedAt?: string;
|
|
175
|
-
};
|
|
176
|
-
export type ProjectDtov2 = {
|
|
177
|
-
id: string;
|
|
178
|
-
name: string;
|
|
179
|
-
description: string;
|
|
180
|
-
environment: string;
|
|
181
|
-
region?: string;
|
|
182
|
-
};
|
|
183
|
-
export type AddOnDto = {
|
|
184
|
-
name: string;
|
|
185
|
-
description: string;
|
|
186
|
-
};
|
|
187
|
-
export type RuntimeDtov2 = {
|
|
188
|
-
id: string;
|
|
189
|
-
name: string;
|
|
190
|
-
description: string;
|
|
191
|
-
"type": "CONTAINER" | "STATIC";
|
|
192
|
-
projects: ProjectDtov2[];
|
|
193
|
-
tags: string[];
|
|
194
|
-
env?: string;
|
|
195
|
-
addons: AddOnDto[];
|
|
196
|
-
};
|
|
197
|
-
export type RepositoryResponse = {
|
|
198
|
-
repositoryName: string;
|
|
199
|
-
repositoryUri: string;
|
|
200
|
-
};
|
|
201
|
-
export type ListRepositoryResponse = {
|
|
202
|
-
repositories: RepositoryResponse[];
|
|
203
|
-
totalCount: number;
|
|
204
|
-
limit: number;
|
|
205
|
-
offset: number;
|
|
206
|
-
};
|
|
207
|
-
export type ImageResponse = {
|
|
208
|
-
imageUri: string;
|
|
209
|
-
tags: string[];
|
|
210
|
-
};
|
|
211
|
-
export type GetRuntimesByProjectUlidV2 = {
|
|
212
|
-
runtimes: RuntimeDtov2[];
|
|
213
|
-
};
|
|
214
|
-
export type PaginatedResponseApplicationDto = {
|
|
215
|
-
content?: ApplicationDto[];
|
|
216
|
-
last?: boolean;
|
|
217
|
-
totalElements?: number;
|
|
218
|
-
totalPages?: number;
|
|
219
|
-
first?: boolean;
|
|
220
|
-
size?: number;
|
|
221
|
-
"number"?: number;
|
|
222
|
-
numberOfElements?: number;
|
|
223
|
-
empty?: boolean;
|
|
224
|
-
};
|
|
225
|
-
export type StatusResponse = {
|
|
226
|
-
status: "UP" | "DEPLOYING" | "STOPPED" | "UNKNOWN";
|
|
227
|
-
};
|
|
228
|
-
export type GetDeploymentLogsResponse = {
|
|
229
|
-
logs: string;
|
|
230
|
-
};
|
|
231
|
-
export type HealthResponse = {
|
|
232
|
-
health: "HEALTHY" | "UNHEALTHY";
|
|
233
|
-
};
|
|
234
|
-
export type GetApplicationByUlidResponseV2 = {
|
|
235
|
-
id?: string;
|
|
236
|
-
name: string;
|
|
237
|
-
description?: string;
|
|
238
|
-
"type": string;
|
|
239
|
-
creator: string;
|
|
240
|
-
url?: string;
|
|
241
|
-
projectId?: string;
|
|
242
|
-
createdAt?: string;
|
|
243
|
-
updatedAt?: string;
|
|
244
|
-
};
|
|
245
|
-
export type GetInstanceResponse = {
|
|
246
|
-
used: number;
|
|
247
|
-
available: number;
|
|
248
|
-
};
|
|
249
|
-
export type ApplicationHistoryResponse = {
|
|
250
|
-
applicationId?: string;
|
|
251
|
-
runtimeName?: string;
|
|
252
|
-
creator?: string;
|
|
253
|
-
action: string;
|
|
254
|
-
date: string;
|
|
255
|
-
};
|
|
256
|
-
export type ListApplicationHistoryResponse = {
|
|
257
|
-
applicationId: string;
|
|
258
|
-
applicationHistory: ApplicationHistoryResponse[];
|
|
259
|
-
};
|
|
260
|
-
export type BasicDeploymentResponse = {
|
|
261
|
-
deploymentId: string;
|
|
262
|
-
runtimeName: string;
|
|
263
|
-
deploymentStatus: string;
|
|
264
|
-
runtimeEnv: string;
|
|
265
|
-
};
|
|
266
|
-
export type GetApplicationByProjectResponse = {
|
|
267
|
-
name: string;
|
|
268
|
-
id: string;
|
|
269
|
-
description: string;
|
|
270
|
-
"type": string;
|
|
271
|
-
creator: string;
|
|
272
|
-
projectId: string;
|
|
273
|
-
url?: string;
|
|
274
|
-
};
|
|
275
|
-
export type PaginatedResponseGetApplicationByProjectResponse = {
|
|
276
|
-
content?: GetApplicationByProjectResponse[];
|
|
277
|
-
last?: boolean;
|
|
278
|
-
totalElements?: number;
|
|
279
|
-
totalPages?: number;
|
|
280
|
-
first?: boolean;
|
|
281
|
-
size?: number;
|
|
282
|
-
"number"?: number;
|
|
283
|
-
numberOfElements?: number;
|
|
284
|
-
empty?: boolean;
|
|
285
|
-
};
|
|
286
|
-
export type ProjectDto = {
|
|
287
|
-
ulid: string;
|
|
288
|
-
name: string;
|
|
289
|
-
description: string;
|
|
290
|
-
environment: string;
|
|
291
|
-
region?: string;
|
|
292
|
-
};
|
|
293
|
-
export type GetRuntimeByUlidResponse = {
|
|
294
|
-
ulid: string;
|
|
295
|
-
name: string;
|
|
296
|
-
description: string;
|
|
297
|
-
"type": "CONTAINER" | "STATIC";
|
|
298
|
-
projects: ProjectDto[];
|
|
299
|
-
tags: {
|
|
300
|
-
[key: string]: string;
|
|
301
|
-
};
|
|
302
|
-
};
|
|
303
|
-
export type RegistryDto = {
|
|
304
|
-
id: string;
|
|
305
|
-
name?: string;
|
|
306
|
-
projectId?: string;
|
|
307
|
-
"type": "ECR";
|
|
308
|
-
};
|
|
309
|
-
export type ListResponseRegistryDto = {
|
|
310
|
-
totalCount: number;
|
|
311
|
-
limit: number;
|
|
312
|
-
offset: number;
|
|
313
|
-
data: RegistryDto[];
|
|
314
|
-
};
|
|
315
|
-
export type RepositoryDto = {
|
|
316
|
-
id: string;
|
|
317
|
-
name: string;
|
|
318
|
-
registryId: string;
|
|
319
|
-
repositoryUri: string;
|
|
320
|
-
};
|
|
321
|
-
export type ImageDto = {
|
|
322
|
-
imageUri: string;
|
|
323
|
-
tags: string[];
|
|
324
|
-
digest?: string;
|
|
325
|
-
};
|
|
326
|
-
export type RuntimeDto = {
|
|
327
|
-
ulid: string;
|
|
328
|
-
name: string;
|
|
329
|
-
description: string;
|
|
330
|
-
"type": "CONTAINER" | "STATIC";
|
|
331
|
-
projects: ProjectDto[];
|
|
332
|
-
tags: {
|
|
333
|
-
[key: string]: string;
|
|
334
|
-
};
|
|
335
|
-
};
|
|
336
|
-
export type GetRuntimesByProjectUlid = {
|
|
337
|
-
runtimes: RuntimeDto[];
|
|
338
|
-
};
|
|
339
|
-
export type GetApplicationByUlidResponse = {
|
|
340
|
-
id?: number;
|
|
341
|
-
ulid?: string;
|
|
342
|
-
name: string;
|
|
343
|
-
description?: string;
|
|
344
|
-
"type": string;
|
|
345
|
-
creator: string;
|
|
346
|
-
projectId: number;
|
|
347
|
-
url?: string;
|
|
348
|
-
projectUlid?: string;
|
|
349
|
-
createdAt?: string;
|
|
350
|
-
updatedAt?: string;
|
|
351
|
-
};
|
|
352
|
-
export function createSchedule({ scheduleRequest }: {
|
|
353
|
-
scheduleRequest: ScheduleRequest;
|
|
354
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
355
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
356
|
-
status: 200;
|
|
357
|
-
data: ScheduleResponse;
|
|
358
|
-
} | {
|
|
359
|
-
status: 422;
|
|
360
|
-
data: {
|
|
361
|
-
instance?: string;
|
|
362
|
-
"type"?: string;
|
|
363
|
-
parameters?: {
|
|
364
|
-
[key: string]: object;
|
|
365
|
-
};
|
|
366
|
-
title?: string;
|
|
367
|
-
status?: StatusType;
|
|
368
|
-
detail?: string;
|
|
369
|
-
};
|
|
370
|
-
} | {
|
|
371
|
-
status: 500;
|
|
372
|
-
data: {
|
|
373
|
-
instance?: string;
|
|
374
|
-
"type"?: string;
|
|
375
|
-
parameters?: {
|
|
376
|
-
[key: string]: object;
|
|
377
|
-
};
|
|
378
|
-
title?: string;
|
|
379
|
-
status?: StatusType;
|
|
380
|
-
detail?: string;
|
|
381
|
-
};
|
|
382
|
-
}>("/v2/schedule", oazapfts.json({
|
|
383
|
-
...opts,
|
|
384
|
-
method: "POST",
|
|
385
|
-
body: scheduleRequest
|
|
386
|
-
})));
|
|
387
|
-
}
|
|
388
|
-
export function createDeployment({ authorization, createDeploymentRequestV2 }: {
|
|
389
|
-
authorization: string;
|
|
390
|
-
createDeploymentRequestV2: CreateDeploymentRequestV2;
|
|
391
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
392
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
393
|
-
status: 200;
|
|
394
|
-
data: object;
|
|
395
|
-
} | {
|
|
396
|
-
status: 422;
|
|
397
|
-
data: {
|
|
398
|
-
instance?: string;
|
|
399
|
-
"type"?: string;
|
|
400
|
-
parameters?: {
|
|
401
|
-
[key: string]: object;
|
|
402
|
-
};
|
|
403
|
-
title?: string;
|
|
404
|
-
status?: StatusType;
|
|
405
|
-
detail?: string;
|
|
406
|
-
};
|
|
407
|
-
} | {
|
|
408
|
-
status: 500;
|
|
409
|
-
data: {
|
|
410
|
-
instance?: string;
|
|
411
|
-
"type"?: string;
|
|
412
|
-
parameters?: {
|
|
413
|
-
[key: string]: object;
|
|
414
|
-
};
|
|
415
|
-
title?: string;
|
|
416
|
-
status?: StatusType;
|
|
417
|
-
detail?: string;
|
|
418
|
-
};
|
|
419
|
-
}>("/v2/deployments", oazapfts.json({
|
|
420
|
-
...opts,
|
|
421
|
-
method: "POST",
|
|
422
|
-
body: createDeploymentRequestV2,
|
|
423
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
424
|
-
Authorization: authorization
|
|
425
|
-
})
|
|
426
|
-
})));
|
|
427
|
-
}
|
|
428
|
-
export function setAutoscaling({ authorization, setAutoscalingRequest }: {
|
|
429
|
-
authorization: string;
|
|
430
|
-
setAutoscalingRequest: SetAutoscalingRequest;
|
|
431
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
432
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
433
|
-
status: 200;
|
|
434
|
-
data: CreateDeploymentResponseV2;
|
|
435
|
-
} | {
|
|
436
|
-
status: 422;
|
|
437
|
-
data: {
|
|
438
|
-
instance?: string;
|
|
439
|
-
"type"?: string;
|
|
440
|
-
parameters?: {
|
|
441
|
-
[key: string]: object;
|
|
442
|
-
};
|
|
443
|
-
title?: string;
|
|
444
|
-
status?: StatusType;
|
|
445
|
-
detail?: string;
|
|
446
|
-
};
|
|
447
|
-
} | {
|
|
448
|
-
status: 500;
|
|
449
|
-
data: {
|
|
450
|
-
instance?: string;
|
|
451
|
-
"type"?: string;
|
|
452
|
-
parameters?: {
|
|
453
|
-
[key: string]: object;
|
|
454
|
-
};
|
|
455
|
-
title?: string;
|
|
456
|
-
status?: StatusType;
|
|
457
|
-
detail?: string;
|
|
458
|
-
};
|
|
459
|
-
}>("/v2/deployments/autoscaling", oazapfts.json({
|
|
460
|
-
...opts,
|
|
461
|
-
method: "POST",
|
|
462
|
-
body: setAutoscalingRequest,
|
|
463
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
464
|
-
Authorization: authorization
|
|
465
|
-
})
|
|
466
|
-
})));
|
|
467
|
-
}
|
|
468
|
-
export function cleanDeployments({ authorization }: {
|
|
469
|
-
authorization: string;
|
|
470
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
471
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
472
|
-
status: 200;
|
|
473
|
-
} | {
|
|
474
|
-
status: 422;
|
|
475
|
-
data: {
|
|
476
|
-
instance?: string;
|
|
477
|
-
"type"?: string;
|
|
478
|
-
parameters?: {
|
|
479
|
-
[key: string]: object;
|
|
480
|
-
};
|
|
481
|
-
title?: string;
|
|
482
|
-
status?: StatusType;
|
|
483
|
-
detail?: string;
|
|
484
|
-
};
|
|
485
|
-
} | {
|
|
486
|
-
status: 500;
|
|
487
|
-
data: {
|
|
488
|
-
instance?: string;
|
|
489
|
-
"type"?: string;
|
|
490
|
-
parameters?: {
|
|
491
|
-
[key: string]: object;
|
|
492
|
-
};
|
|
493
|
-
title?: string;
|
|
494
|
-
status?: StatusType;
|
|
495
|
-
detail?: string;
|
|
496
|
-
};
|
|
497
|
-
}>("/v2/clean/deployments", {
|
|
498
|
-
...opts,
|
|
499
|
-
method: "POST",
|
|
500
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
501
|
-
Authorization: authorization
|
|
502
|
-
})
|
|
503
|
-
}));
|
|
504
|
-
}
|
|
505
|
-
export function cleanApplications({ authorization }: {
|
|
506
|
-
authorization: string;
|
|
507
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
508
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
509
|
-
status: 200;
|
|
510
|
-
} | {
|
|
511
|
-
status: 422;
|
|
512
|
-
data: {
|
|
513
|
-
instance?: string;
|
|
514
|
-
"type"?: string;
|
|
515
|
-
parameters?: {
|
|
516
|
-
[key: string]: object;
|
|
517
|
-
};
|
|
518
|
-
title?: string;
|
|
519
|
-
status?: StatusType;
|
|
520
|
-
detail?: string;
|
|
521
|
-
};
|
|
522
|
-
} | {
|
|
523
|
-
status: 500;
|
|
524
|
-
data: {
|
|
525
|
-
instance?: string;
|
|
526
|
-
"type"?: string;
|
|
527
|
-
parameters?: {
|
|
528
|
-
[key: string]: object;
|
|
529
|
-
};
|
|
530
|
-
title?: string;
|
|
531
|
-
status?: StatusType;
|
|
532
|
-
detail?: string;
|
|
533
|
-
};
|
|
534
|
-
}>("/v2/clean/applications", {
|
|
535
|
-
...opts,
|
|
536
|
-
method: "POST",
|
|
537
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
538
|
-
Authorization: authorization
|
|
539
|
-
})
|
|
540
|
-
}));
|
|
541
|
-
}
|
|
542
|
-
export function createApplication({ authorization, applicationDtov2 }: {
|
|
543
|
-
authorization: string;
|
|
544
|
-
applicationDtov2: ApplicationDtov2;
|
|
545
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
546
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
547
|
-
status: 200;
|
|
548
|
-
data: ApplicationDtov2;
|
|
549
|
-
} | {
|
|
550
|
-
status: 422;
|
|
551
|
-
data: {
|
|
552
|
-
instance?: string;
|
|
553
|
-
"type"?: string;
|
|
554
|
-
parameters?: {
|
|
555
|
-
[key: string]: object;
|
|
556
|
-
};
|
|
557
|
-
title?: string;
|
|
558
|
-
status?: StatusType;
|
|
559
|
-
detail?: string;
|
|
560
|
-
};
|
|
561
|
-
} | {
|
|
562
|
-
status: 500;
|
|
563
|
-
data: {
|
|
564
|
-
instance?: string;
|
|
565
|
-
"type"?: string;
|
|
566
|
-
parameters?: {
|
|
567
|
-
[key: string]: object;
|
|
568
|
-
};
|
|
569
|
-
title?: string;
|
|
570
|
-
status?: StatusType;
|
|
571
|
-
detail?: string;
|
|
572
|
-
};
|
|
573
|
-
}>("/v2/applications", oazapfts.json({
|
|
574
|
-
...opts,
|
|
575
|
-
method: "POST",
|
|
576
|
-
body: applicationDtov2,
|
|
577
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
578
|
-
Authorization: authorization
|
|
579
|
-
})
|
|
580
|
-
})));
|
|
581
|
-
}
|
|
582
|
-
export function stopApplication({ authorization, applicationId, runtimeId }: {
|
|
583
|
-
authorization: string;
|
|
584
|
-
applicationId: string;
|
|
585
|
-
runtimeId: string;
|
|
586
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
587
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
588
|
-
status: 200;
|
|
589
|
-
data: object;
|
|
590
|
-
} | {
|
|
591
|
-
status: 422;
|
|
592
|
-
data: {
|
|
593
|
-
instance?: string;
|
|
594
|
-
"type"?: string;
|
|
595
|
-
parameters?: {
|
|
596
|
-
[key: string]: object;
|
|
597
|
-
};
|
|
598
|
-
title?: string;
|
|
599
|
-
status?: StatusType;
|
|
600
|
-
detail?: string;
|
|
601
|
-
};
|
|
602
|
-
} | {
|
|
603
|
-
status: 500;
|
|
604
|
-
data: {
|
|
605
|
-
instance?: string;
|
|
606
|
-
"type"?: string;
|
|
607
|
-
parameters?: {
|
|
608
|
-
[key: string]: object;
|
|
609
|
-
};
|
|
610
|
-
title?: string;
|
|
611
|
-
status?: StatusType;
|
|
612
|
-
detail?: string;
|
|
613
|
-
};
|
|
614
|
-
}>(`/v2/applications/stop${QS.query(QS.explode({
|
|
615
|
-
applicationId,
|
|
616
|
-
runtimeId
|
|
617
|
-
}))}`, {
|
|
618
|
-
...opts,
|
|
619
|
-
method: "POST",
|
|
620
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
621
|
-
Authorization: authorization
|
|
622
|
-
})
|
|
623
|
-
}));
|
|
624
|
-
}
|
|
625
|
-
export function startApplication({ authorization, applicationId, runtimeId }: {
|
|
626
|
-
authorization: string;
|
|
627
|
-
applicationId: string;
|
|
628
|
-
runtimeId: string;
|
|
629
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
630
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
631
|
-
status: 200;
|
|
632
|
-
data: object;
|
|
633
|
-
} | {
|
|
634
|
-
status: 422;
|
|
635
|
-
data: {
|
|
636
|
-
instance?: string;
|
|
637
|
-
"type"?: string;
|
|
638
|
-
parameters?: {
|
|
639
|
-
[key: string]: object;
|
|
640
|
-
};
|
|
641
|
-
title?: string;
|
|
642
|
-
status?: StatusType;
|
|
643
|
-
detail?: string;
|
|
644
|
-
};
|
|
645
|
-
} | {
|
|
646
|
-
status: 500;
|
|
647
|
-
data: {
|
|
648
|
-
instance?: string;
|
|
649
|
-
"type"?: string;
|
|
650
|
-
parameters?: {
|
|
651
|
-
[key: string]: object;
|
|
652
|
-
};
|
|
653
|
-
title?: string;
|
|
654
|
-
status?: StatusType;
|
|
655
|
-
detail?: string;
|
|
656
|
-
};
|
|
657
|
-
}>(`/v2/applications/start${QS.query(QS.explode({
|
|
658
|
-
applicationId,
|
|
659
|
-
runtimeId
|
|
660
|
-
}))}`, {
|
|
661
|
-
...opts,
|
|
662
|
-
method: "POST",
|
|
663
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
664
|
-
Authorization: authorization
|
|
665
|
-
})
|
|
666
|
-
}));
|
|
667
|
-
}
|
|
668
|
-
export function restartApplication({ authorization, applicationId, runtimeId }: {
|
|
669
|
-
authorization: string;
|
|
670
|
-
applicationId: string;
|
|
671
|
-
runtimeId: string;
|
|
672
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
673
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
674
|
-
status: 200;
|
|
675
|
-
data: object;
|
|
676
|
-
} | {
|
|
677
|
-
status: 422;
|
|
678
|
-
data: {
|
|
679
|
-
instance?: string;
|
|
680
|
-
"type"?: string;
|
|
681
|
-
parameters?: {
|
|
682
|
-
[key: string]: object;
|
|
683
|
-
};
|
|
684
|
-
title?: string;
|
|
685
|
-
status?: StatusType;
|
|
686
|
-
detail?: string;
|
|
687
|
-
};
|
|
688
|
-
} | {
|
|
689
|
-
status: 500;
|
|
690
|
-
data: {
|
|
691
|
-
instance?: string;
|
|
692
|
-
"type"?: string;
|
|
693
|
-
parameters?: {
|
|
694
|
-
[key: string]: object;
|
|
695
|
-
};
|
|
696
|
-
title?: string;
|
|
697
|
-
status?: StatusType;
|
|
698
|
-
detail?: string;
|
|
699
|
-
};
|
|
700
|
-
}>(`/v2/applications/restart${QS.query(QS.explode({
|
|
701
|
-
applicationId,
|
|
702
|
-
runtimeId
|
|
703
|
-
}))}`, {
|
|
704
|
-
...opts,
|
|
705
|
-
method: "POST",
|
|
706
|
-
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
707
|
-
Authorization: authorization
|
|
708
|
-
})
|
|
709
|
-
}));
|
|
710
|
-
}
|
|
711
|
-
export function createRuntimeTag({ tagId, runtimeId }: {
|
|
712
|
-
tagId: string;
|
|
713
|
-
runtimeId: string;
|
|
714
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
715
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
716
|
-
status: 200;
|
|
717
|
-
data: object;
|
|
718
|
-
} | {
|
|
719
|
-
status: 422;
|
|
720
|
-
data: {
|
|
721
|
-
instance?: string;
|
|
722
|
-
"type"?: string;
|
|
723
|
-
parameters?: {
|
|
724
|
-
[key: string]: object;
|
|
725
|
-
};
|
|
726
|
-
title?: string;
|
|
727
|
-
status?: StatusType;
|
|
728
|
-
detail?: string;
|
|
729
|
-
};
|
|
730
|
-
} | {
|
|
731
|
-
status: 500;
|
|
732
|
-
data: {
|
|
733
|
-
instance?: string;
|
|
734
|
-
"type"?: string;
|
|
735
|
-
parameters?: {
|
|
736
|
-
[key: string]: object;
|
|
737
|
-
};
|
|
738
|
-
title?: string;
|
|
739
|
-
status?: StatusType;
|
|
740
|
-
detail?: string;
|
|
741
|
-
};
|
|
742
|
-
}>(`/v1/tags/${encodeURIComponent(tagId)}/${encodeURIComponent(runtimeId)}`, {
|
|
743
|
-
...opts,
|
|
744
|
-
method: "POST"
|
|
745
|
-
}));
|
|
746
|
-
}
|
|
747
|
-
export function createDeployment1({ createDeploymentRequest }: {
|
|
748
|
-
createDeploymentRequest: CreateDeploymentRequest;
|
|
749
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
750
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
751
|
-
status: 200;
|
|
752
|
-
data: object;
|
|
753
|
-
} | {
|
|
754
|
-
status: 422;
|
|
755
|
-
data: {
|
|
756
|
-
instance?: string;
|
|
757
|
-
"type"?: string;
|
|
758
|
-
parameters?: {
|
|
759
|
-
[key: string]: object;
|
|
760
|
-
};
|
|
761
|
-
title?: string;
|
|
762
|
-
status?: StatusType;
|
|
763
|
-
detail?: string;
|
|
764
|
-
};
|
|
765
|
-
} | {
|
|
766
|
-
status: 500;
|
|
767
|
-
data: {
|
|
768
|
-
instance?: string;
|
|
769
|
-
"type"?: string;
|
|
770
|
-
parameters?: {
|
|
771
|
-
[key: string]: object;
|
|
772
|
-
};
|
|
773
|
-
title?: string;
|
|
774
|
-
status?: StatusType;
|
|
775
|
-
detail?: string;
|
|
776
|
-
};
|
|
777
|
-
}>("/v1/deployments", oazapfts.json({
|
|
778
|
-
...opts,
|
|
779
|
-
method: "POST",
|
|
780
|
-
body: createDeploymentRequest
|
|
781
|
-
})));
|
|
782
|
-
}
|
|
783
|
-
export function getNamespace(opts?: Oazapfts.RequestOpts) {
|
|
784
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
785
|
-
status: 200;
|
|
786
|
-
data: string;
|
|
787
|
-
} | {
|
|
788
|
-
status: 422;
|
|
789
|
-
data: {
|
|
790
|
-
instance?: string;
|
|
791
|
-
"type"?: string;
|
|
792
|
-
parameters?: {
|
|
793
|
-
[key: string]: object;
|
|
794
|
-
};
|
|
795
|
-
title?: string;
|
|
796
|
-
status?: StatusType;
|
|
797
|
-
detail?: string;
|
|
798
|
-
};
|
|
799
|
-
} | {
|
|
800
|
-
status: 500;
|
|
801
|
-
data: {
|
|
802
|
-
instance?: string;
|
|
803
|
-
"type"?: string;
|
|
804
|
-
parameters?: {
|
|
805
|
-
[key: string]: object;
|
|
806
|
-
};
|
|
807
|
-
title?: string;
|
|
808
|
-
status?: StatusType;
|
|
809
|
-
detail?: string;
|
|
810
|
-
};
|
|
811
|
-
}>("/v1/deployments/namespace", {
|
|
812
|
-
...opts
|
|
813
|
-
}));
|
|
814
|
-
}
|
|
815
|
-
export function createNamespace(opts?: Oazapfts.RequestOpts) {
|
|
816
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
817
|
-
status: 200;
|
|
818
|
-
data: string;
|
|
819
|
-
} | {
|
|
820
|
-
status: 422;
|
|
821
|
-
data: {
|
|
822
|
-
instance?: string;
|
|
823
|
-
"type"?: string;
|
|
824
|
-
parameters?: {
|
|
825
|
-
[key: string]: object;
|
|
826
|
-
};
|
|
827
|
-
title?: string;
|
|
828
|
-
status?: StatusType;
|
|
829
|
-
detail?: string;
|
|
830
|
-
};
|
|
831
|
-
} | {
|
|
832
|
-
status: 500;
|
|
833
|
-
data: {
|
|
834
|
-
instance?: string;
|
|
835
|
-
"type"?: string;
|
|
836
|
-
parameters?: {
|
|
837
|
-
[key: string]: object;
|
|
838
|
-
};
|
|
839
|
-
title?: string;
|
|
840
|
-
status?: StatusType;
|
|
841
|
-
detail?: string;
|
|
842
|
-
};
|
|
843
|
-
}>("/v1/deployments/namespace", {
|
|
844
|
-
...opts,
|
|
845
|
-
method: "POST"
|
|
846
|
-
}));
|
|
847
|
-
}
|
|
848
|
-
export function createApplication1({ applicationDto }: {
|
|
849
|
-
applicationDto: ApplicationDto;
|
|
850
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
851
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
852
|
-
status: 200;
|
|
853
|
-
data: CreateApplicationResponse;
|
|
854
|
-
} | {
|
|
855
|
-
status: 422;
|
|
856
|
-
data: {
|
|
857
|
-
instance?: string;
|
|
858
|
-
"type"?: string;
|
|
859
|
-
parameters?: {
|
|
860
|
-
[key: string]: object;
|
|
861
|
-
};
|
|
862
|
-
title?: string;
|
|
863
|
-
status?: StatusType;
|
|
864
|
-
detail?: string;
|
|
865
|
-
};
|
|
866
|
-
} | {
|
|
867
|
-
status: 500;
|
|
868
|
-
data: {
|
|
869
|
-
instance?: string;
|
|
870
|
-
"type"?: string;
|
|
871
|
-
parameters?: {
|
|
872
|
-
[key: string]: object;
|
|
873
|
-
};
|
|
874
|
-
title?: string;
|
|
875
|
-
status?: StatusType;
|
|
876
|
-
detail?: string;
|
|
877
|
-
};
|
|
878
|
-
}>("/v1/applications", oazapfts.json({
|
|
879
|
-
...opts,
|
|
880
|
-
method: "POST",
|
|
881
|
-
body: applicationDto
|
|
882
|
-
})));
|
|
883
|
-
}
|
|
884
|
-
export function getScheduling({ applicationId, runtimeId }: {
|
|
885
|
-
applicationId: string;
|
|
886
|
-
runtimeId: string;
|
|
887
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
888
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
889
|
-
status: 200;
|
|
890
|
-
data: ScheduleResponse[];
|
|
891
|
-
} | {
|
|
892
|
-
status: 422;
|
|
893
|
-
data: {
|
|
894
|
-
instance?: string;
|
|
895
|
-
"type"?: string;
|
|
896
|
-
parameters?: {
|
|
897
|
-
[key: string]: object;
|
|
898
|
-
};
|
|
899
|
-
title?: string;
|
|
900
|
-
status?: StatusType;
|
|
901
|
-
detail?: string;
|
|
902
|
-
};
|
|
903
|
-
} | {
|
|
904
|
-
status: 500;
|
|
905
|
-
data: {
|
|
906
|
-
instance?: string;
|
|
907
|
-
"type"?: string;
|
|
908
|
-
parameters?: {
|
|
909
|
-
[key: string]: object;
|
|
910
|
-
};
|
|
911
|
-
title?: string;
|
|
912
|
-
status?: StatusType;
|
|
913
|
-
detail?: string;
|
|
914
|
-
};
|
|
915
|
-
}>(`/v2/schedule/${encodeURIComponent(applicationId)}/runtime/${encodeURIComponent(runtimeId)}`, {
|
|
916
|
-
...opts
|
|
917
|
-
}));
|
|
918
|
-
}
|
|
919
|
-
export function getRuntimeByUlid({ runtimeId }: {
|
|
920
|
-
runtimeId: string;
|
|
921
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
922
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
923
|
-
status: 200;
|
|
924
|
-
data: RuntimeDtov2;
|
|
925
|
-
} | {
|
|
926
|
-
status: 422;
|
|
927
|
-
data: {
|
|
928
|
-
instance?: string;
|
|
929
|
-
"type"?: string;
|
|
930
|
-
parameters?: {
|
|
931
|
-
[key: string]: object;
|
|
932
|
-
};
|
|
933
|
-
title?: string;
|
|
934
|
-
status?: StatusType;
|
|
935
|
-
detail?: string;
|
|
936
|
-
};
|
|
937
|
-
} | {
|
|
938
|
-
status: 500;
|
|
939
|
-
data: {
|
|
940
|
-
instance?: string;
|
|
941
|
-
"type"?: string;
|
|
942
|
-
parameters?: {
|
|
943
|
-
[key: string]: object;
|
|
944
|
-
};
|
|
945
|
-
title?: string;
|
|
946
|
-
status?: StatusType;
|
|
947
|
-
detail?: string;
|
|
948
|
-
};
|
|
949
|
-
}>(`/v2/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
950
|
-
...opts
|
|
951
|
-
}));
|
|
952
|
-
}
|
|
953
|
-
export function listRepositories({ limit, offset }: {
|
|
954
|
-
limit?: number;
|
|
955
|
-
offset?: number;
|
|
956
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
957
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
958
|
-
status: 200;
|
|
959
|
-
data: ListRepositoryResponse;
|
|
960
|
-
} | {
|
|
961
|
-
status: 422;
|
|
962
|
-
data: {
|
|
963
|
-
instance?: string;
|
|
964
|
-
"type"?: string;
|
|
965
|
-
parameters?: {
|
|
966
|
-
[key: string]: object;
|
|
967
|
-
};
|
|
968
|
-
title?: string;
|
|
969
|
-
status?: StatusType;
|
|
970
|
-
detail?: string;
|
|
971
|
-
};
|
|
972
|
-
} | {
|
|
973
|
-
status: 500;
|
|
974
|
-
data: {
|
|
975
|
-
instance?: string;
|
|
976
|
-
"type"?: string;
|
|
977
|
-
parameters?: {
|
|
978
|
-
[key: string]: object;
|
|
979
|
-
};
|
|
980
|
-
title?: string;
|
|
981
|
-
status?: StatusType;
|
|
982
|
-
detail?: string;
|
|
983
|
-
};
|
|
984
|
-
}>(`/v2/registries/repositories${QS.query(QS.explode({
|
|
985
|
-
limit,
|
|
986
|
-
offset
|
|
987
|
-
}))}`, {
|
|
988
|
-
...opts
|
|
989
|
-
}));
|
|
990
|
-
}
|
|
991
|
-
export function getRepositoryImages({ repositoryId }: {
|
|
992
|
-
repositoryId: string;
|
|
993
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
994
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
995
|
-
status: 200;
|
|
996
|
-
data: ImageResponse[];
|
|
997
|
-
} | {
|
|
998
|
-
status: 422;
|
|
999
|
-
data: {
|
|
1000
|
-
instance?: string;
|
|
1001
|
-
"type"?: string;
|
|
1002
|
-
parameters?: {
|
|
1003
|
-
[key: string]: object;
|
|
1004
|
-
};
|
|
1005
|
-
title?: string;
|
|
1006
|
-
status?: StatusType;
|
|
1007
|
-
detail?: string;
|
|
1008
|
-
};
|
|
1009
|
-
} | {
|
|
1010
|
-
status: 500;
|
|
1011
|
-
data: {
|
|
1012
|
-
instance?: string;
|
|
1013
|
-
"type"?: string;
|
|
1014
|
-
parameters?: {
|
|
1015
|
-
[key: string]: object;
|
|
1016
|
-
};
|
|
1017
|
-
title?: string;
|
|
1018
|
-
status?: StatusType;
|
|
1019
|
-
detail?: string;
|
|
1020
|
-
};
|
|
1021
|
-
}>(`/v2/registries/repositories/${encodeURIComponent(repositoryId)}/images`, {
|
|
1022
|
-
...opts
|
|
1023
|
-
}));
|
|
1024
|
-
}
|
|
1025
|
-
export function listRuntimes({ projectId }: {
|
|
1026
|
-
projectId: string;
|
|
1027
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1028
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1029
|
-
status: 200;
|
|
1030
|
-
data: GetRuntimesByProjectUlidV2;
|
|
1031
|
-
} | {
|
|
1032
|
-
status: 422;
|
|
1033
|
-
data: {
|
|
1034
|
-
instance?: string;
|
|
1035
|
-
"type"?: string;
|
|
1036
|
-
parameters?: {
|
|
1037
|
-
[key: string]: object;
|
|
1038
|
-
};
|
|
1039
|
-
title?: string;
|
|
1040
|
-
status?: StatusType;
|
|
1041
|
-
detail?: string;
|
|
1042
|
-
};
|
|
1043
|
-
} | {
|
|
1044
|
-
status: 500;
|
|
1045
|
-
data: {
|
|
1046
|
-
instance?: string;
|
|
1047
|
-
"type"?: string;
|
|
1048
|
-
parameters?: {
|
|
1049
|
-
[key: string]: object;
|
|
1050
|
-
};
|
|
1051
|
-
title?: string;
|
|
1052
|
-
status?: StatusType;
|
|
1053
|
-
detail?: string;
|
|
1054
|
-
};
|
|
1055
|
-
}>(`/v2/projects/${encodeURIComponent(projectId)}/runtimes`, {
|
|
1056
|
-
...opts
|
|
1057
|
-
}));
|
|
1058
|
-
}
|
|
1059
|
-
export function listApplications({ projectId, limit, offset }: {
|
|
1060
|
-
projectId: string;
|
|
1061
|
-
limit?: number;
|
|
1062
|
-
offset?: number;
|
|
1063
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1064
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1065
|
-
status: 200;
|
|
1066
|
-
data: PaginatedResponseApplicationDto;
|
|
1067
|
-
} | {
|
|
1068
|
-
status: 422;
|
|
1069
|
-
data: {
|
|
1070
|
-
instance?: string;
|
|
1071
|
-
"type"?: string;
|
|
1072
|
-
parameters?: {
|
|
1073
|
-
[key: string]: object;
|
|
1074
|
-
};
|
|
1075
|
-
title?: string;
|
|
1076
|
-
status?: StatusType;
|
|
1077
|
-
detail?: string;
|
|
1078
|
-
};
|
|
1079
|
-
} | {
|
|
1080
|
-
status: 500;
|
|
1081
|
-
data: {
|
|
1082
|
-
instance?: string;
|
|
1083
|
-
"type"?: string;
|
|
1084
|
-
parameters?: {
|
|
1085
|
-
[key: string]: object;
|
|
1086
|
-
};
|
|
1087
|
-
title?: string;
|
|
1088
|
-
status?: StatusType;
|
|
1089
|
-
detail?: string;
|
|
1090
|
-
};
|
|
1091
|
-
}>(`/v2/projects/${encodeURIComponent(projectId)}/applications${QS.query(QS.explode({
|
|
1092
|
-
limit,
|
|
1093
|
-
offset
|
|
1094
|
-
}))}`, {
|
|
1095
|
-
...opts
|
|
1096
|
-
}));
|
|
1097
|
-
}
|
|
1098
|
-
export function getDeployment({ deploymentId }: {
|
|
1099
|
-
deploymentId: string;
|
|
1100
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1101
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1102
|
-
status: 200;
|
|
1103
|
-
data: CreateDeploymentResponseV2;
|
|
1104
|
-
} | {
|
|
1105
|
-
status: 422;
|
|
1106
|
-
data: {
|
|
1107
|
-
instance?: string;
|
|
1108
|
-
"type"?: string;
|
|
1109
|
-
parameters?: {
|
|
1110
|
-
[key: string]: object;
|
|
1111
|
-
};
|
|
1112
|
-
title?: string;
|
|
1113
|
-
status?: StatusType;
|
|
1114
|
-
detail?: string;
|
|
1115
|
-
};
|
|
1116
|
-
} | {
|
|
1117
|
-
status: 500;
|
|
1118
|
-
data: {
|
|
1119
|
-
instance?: string;
|
|
1120
|
-
"type"?: string;
|
|
1121
|
-
parameters?: {
|
|
1122
|
-
[key: string]: object;
|
|
1123
|
-
};
|
|
1124
|
-
title?: string;
|
|
1125
|
-
status?: StatusType;
|
|
1126
|
-
detail?: string;
|
|
1127
|
-
};
|
|
1128
|
-
}>(`/v2/deployments/${encodeURIComponent(deploymentId)}`, {
|
|
1129
|
-
...opts
|
|
1130
|
-
}));
|
|
1131
|
-
}
|
|
1132
|
-
export function getDeploymentStatus({ deploymentId }: {
|
|
1133
|
-
deploymentId: string;
|
|
1134
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1135
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1136
|
-
status: 200;
|
|
1137
|
-
data: StatusResponse;
|
|
1138
|
-
} | {
|
|
1139
|
-
status: 422;
|
|
1140
|
-
data: {
|
|
1141
|
-
instance?: string;
|
|
1142
|
-
"type"?: string;
|
|
1143
|
-
parameters?: {
|
|
1144
|
-
[key: string]: object;
|
|
1145
|
-
};
|
|
1146
|
-
title?: string;
|
|
1147
|
-
status?: StatusType;
|
|
1148
|
-
detail?: string;
|
|
1149
|
-
};
|
|
1150
|
-
} | {
|
|
1151
|
-
status: 500;
|
|
1152
|
-
data: {
|
|
1153
|
-
instance?: string;
|
|
1154
|
-
"type"?: string;
|
|
1155
|
-
parameters?: {
|
|
1156
|
-
[key: string]: object;
|
|
1157
|
-
};
|
|
1158
|
-
title?: string;
|
|
1159
|
-
status?: StatusType;
|
|
1160
|
-
detail?: string;
|
|
1161
|
-
};
|
|
1162
|
-
}>(`/v2/deployments/${encodeURIComponent(deploymentId)}/status`, {
|
|
1163
|
-
...opts
|
|
1164
|
-
}));
|
|
1165
|
-
}
|
|
1166
|
-
export function getDeploymentLogs({ deploymentId }: {
|
|
1167
|
-
deploymentId: string;
|
|
1168
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1169
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1170
|
-
status: 200;
|
|
1171
|
-
data: GetDeploymentLogsResponse;
|
|
1172
|
-
} | {
|
|
1173
|
-
status: 422;
|
|
1174
|
-
data: {
|
|
1175
|
-
instance?: string;
|
|
1176
|
-
"type"?: string;
|
|
1177
|
-
parameters?: {
|
|
1178
|
-
[key: string]: object;
|
|
1179
|
-
};
|
|
1180
|
-
title?: string;
|
|
1181
|
-
status?: StatusType;
|
|
1182
|
-
detail?: string;
|
|
1183
|
-
};
|
|
1184
|
-
} | {
|
|
1185
|
-
status: 500;
|
|
1186
|
-
data: {
|
|
1187
|
-
instance?: string;
|
|
1188
|
-
"type"?: string;
|
|
1189
|
-
parameters?: {
|
|
1190
|
-
[key: string]: object;
|
|
1191
|
-
};
|
|
1192
|
-
title?: string;
|
|
1193
|
-
status?: StatusType;
|
|
1194
|
-
detail?: string;
|
|
1195
|
-
};
|
|
1196
|
-
}>(`/v2/deployments/${encodeURIComponent(deploymentId)}/logs`, {
|
|
1197
|
-
...opts
|
|
1198
|
-
}));
|
|
1199
|
-
}
|
|
1200
|
-
export function getDeploymentHealth({ deploymentId }: {
|
|
1201
|
-
deploymentId: string;
|
|
1202
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1203
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1204
|
-
status: 200;
|
|
1205
|
-
data: HealthResponse;
|
|
1206
|
-
} | {
|
|
1207
|
-
status: 422;
|
|
1208
|
-
data: {
|
|
1209
|
-
instance?: string;
|
|
1210
|
-
"type"?: string;
|
|
1211
|
-
parameters?: {
|
|
1212
|
-
[key: string]: object;
|
|
1213
|
-
};
|
|
1214
|
-
title?: string;
|
|
1215
|
-
status?: StatusType;
|
|
1216
|
-
detail?: string;
|
|
1217
|
-
};
|
|
1218
|
-
} | {
|
|
1219
|
-
status: 500;
|
|
1220
|
-
data: {
|
|
1221
|
-
instance?: string;
|
|
1222
|
-
"type"?: string;
|
|
1223
|
-
parameters?: {
|
|
1224
|
-
[key: string]: object;
|
|
1225
|
-
};
|
|
1226
|
-
title?: string;
|
|
1227
|
-
status?: StatusType;
|
|
1228
|
-
detail?: string;
|
|
1229
|
-
};
|
|
1230
|
-
}>(`/v2/deployments/${encodeURIComponent(deploymentId)}/health`, {
|
|
1231
|
-
...opts
|
|
1232
|
-
}));
|
|
1233
|
-
}
|
|
1234
|
-
export function getApplication({ applicationId }: {
|
|
1235
|
-
applicationId: string;
|
|
1236
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1237
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1238
|
-
status: 200;
|
|
1239
|
-
data: GetApplicationByUlidResponseV2;
|
|
1240
|
-
} | {
|
|
1241
|
-
status: 422;
|
|
1242
|
-
data: {
|
|
1243
|
-
instance?: string;
|
|
1244
|
-
"type"?: string;
|
|
1245
|
-
parameters?: {
|
|
1246
|
-
[key: string]: object;
|
|
1247
|
-
};
|
|
1248
|
-
title?: string;
|
|
1249
|
-
status?: StatusType;
|
|
1250
|
-
detail?: string;
|
|
1251
|
-
};
|
|
1252
|
-
} | {
|
|
1253
|
-
status: 500;
|
|
1254
|
-
data: {
|
|
1255
|
-
instance?: string;
|
|
1256
|
-
"type"?: string;
|
|
1257
|
-
parameters?: {
|
|
1258
|
-
[key: string]: object;
|
|
1259
|
-
};
|
|
1260
|
-
title?: string;
|
|
1261
|
-
status?: StatusType;
|
|
1262
|
-
detail?: string;
|
|
1263
|
-
};
|
|
1264
|
-
}>(`/v2/applications/${encodeURIComponent(applicationId)}`, {
|
|
1265
|
-
...opts
|
|
1266
|
-
}));
|
|
1267
|
-
}
|
|
1268
|
-
export function getSecrets({ applicationId, runtimeId }: {
|
|
1269
|
-
applicationId: string;
|
|
1270
|
-
runtimeId: string;
|
|
1271
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1272
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1273
|
-
status: 200;
|
|
1274
|
-
data: SecretVar[];
|
|
1275
|
-
} | {
|
|
1276
|
-
status: 422;
|
|
1277
|
-
data: {
|
|
1278
|
-
instance?: string;
|
|
1279
|
-
"type"?: string;
|
|
1280
|
-
parameters?: {
|
|
1281
|
-
[key: string]: object;
|
|
1282
|
-
};
|
|
1283
|
-
title?: string;
|
|
1284
|
-
status?: StatusType;
|
|
1285
|
-
detail?: string;
|
|
1286
|
-
};
|
|
1287
|
-
} | {
|
|
1288
|
-
status: 500;
|
|
1289
|
-
data: {
|
|
1290
|
-
instance?: string;
|
|
1291
|
-
"type"?: string;
|
|
1292
|
-
parameters?: {
|
|
1293
|
-
[key: string]: object;
|
|
1294
|
-
};
|
|
1295
|
-
title?: string;
|
|
1296
|
-
status?: StatusType;
|
|
1297
|
-
detail?: string;
|
|
1298
|
-
};
|
|
1299
|
-
}>(`/v2/applications/${encodeURIComponent(applicationId)}/${encodeURIComponent(runtimeId)}/secrets`, {
|
|
1300
|
-
...opts
|
|
1301
|
-
}));
|
|
1302
|
-
}
|
|
1303
|
-
export function getInstances({ applicationId, runtimeId }: {
|
|
1304
|
-
applicationId: string;
|
|
1305
|
-
runtimeId: string;
|
|
1306
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1307
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1308
|
-
status: 200;
|
|
1309
|
-
data: GetInstanceResponse;
|
|
1310
|
-
} | {
|
|
1311
|
-
status: 422;
|
|
1312
|
-
data: {
|
|
1313
|
-
instance?: string;
|
|
1314
|
-
"type"?: string;
|
|
1315
|
-
parameters?: {
|
|
1316
|
-
[key: string]: object;
|
|
1317
|
-
};
|
|
1318
|
-
title?: string;
|
|
1319
|
-
status?: StatusType;
|
|
1320
|
-
detail?: string;
|
|
1321
|
-
};
|
|
1322
|
-
} | {
|
|
1323
|
-
status: 500;
|
|
1324
|
-
data: {
|
|
1325
|
-
instance?: string;
|
|
1326
|
-
"type"?: string;
|
|
1327
|
-
parameters?: {
|
|
1328
|
-
[key: string]: object;
|
|
1329
|
-
};
|
|
1330
|
-
title?: string;
|
|
1331
|
-
status?: StatusType;
|
|
1332
|
-
detail?: string;
|
|
1333
|
-
};
|
|
1334
|
-
}>(`/v2/applications/${encodeURIComponent(applicationId)}/${encodeURIComponent(runtimeId)}/instances`, {
|
|
1335
|
-
...opts
|
|
1336
|
-
}));
|
|
1337
|
-
}
|
|
1338
|
-
export function getApplicationHistory({ applicationId }: {
|
|
1339
|
-
applicationId: string;
|
|
1340
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1341
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1342
|
-
status: 200;
|
|
1343
|
-
data: ListApplicationHistoryResponse;
|
|
1344
|
-
} | {
|
|
1345
|
-
status: 422;
|
|
1346
|
-
data: {
|
|
1347
|
-
instance?: string;
|
|
1348
|
-
"type"?: string;
|
|
1349
|
-
parameters?: {
|
|
1350
|
-
[key: string]: object;
|
|
1351
|
-
};
|
|
1352
|
-
title?: string;
|
|
1353
|
-
status?: StatusType;
|
|
1354
|
-
detail?: string;
|
|
1355
|
-
};
|
|
1356
|
-
} | {
|
|
1357
|
-
status: 500;
|
|
1358
|
-
data: {
|
|
1359
|
-
instance?: string;
|
|
1360
|
-
"type"?: string;
|
|
1361
|
-
parameters?: {
|
|
1362
|
-
[key: string]: object;
|
|
1363
|
-
};
|
|
1364
|
-
title?: string;
|
|
1365
|
-
status?: StatusType;
|
|
1366
|
-
detail?: string;
|
|
1367
|
-
};
|
|
1368
|
-
}>(`/v2/applications/${encodeURIComponent(applicationId)}/history`, {
|
|
1369
|
-
...opts
|
|
1370
|
-
}));
|
|
1371
|
-
}
|
|
1372
|
-
export function listDeployments({ applicationId }: {
|
|
1373
|
-
applicationId: string;
|
|
1374
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1375
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1376
|
-
status: 200;
|
|
1377
|
-
data: BasicDeploymentResponse[];
|
|
1378
|
-
} | {
|
|
1379
|
-
status: 422;
|
|
1380
|
-
data: {
|
|
1381
|
-
instance?: string;
|
|
1382
|
-
"type"?: string;
|
|
1383
|
-
parameters?: {
|
|
1384
|
-
[key: string]: object;
|
|
1385
|
-
};
|
|
1386
|
-
title?: string;
|
|
1387
|
-
status?: StatusType;
|
|
1388
|
-
detail?: string;
|
|
1389
|
-
};
|
|
1390
|
-
} | {
|
|
1391
|
-
status: 500;
|
|
1392
|
-
data: {
|
|
1393
|
-
instance?: string;
|
|
1394
|
-
"type"?: string;
|
|
1395
|
-
parameters?: {
|
|
1396
|
-
[key: string]: object;
|
|
1397
|
-
};
|
|
1398
|
-
title?: string;
|
|
1399
|
-
status?: StatusType;
|
|
1400
|
-
detail?: string;
|
|
1401
|
-
};
|
|
1402
|
-
}>(`/v2/applications/${encodeURIComponent(applicationId)}/deployments`, {
|
|
1403
|
-
...opts
|
|
1404
|
-
}));
|
|
1405
|
-
}
|
|
1406
|
-
export function getLastDeploymentByRuntime({ applicationId }: {
|
|
1407
|
-
applicationId: string;
|
|
1408
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1409
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1410
|
-
status: 200;
|
|
1411
|
-
data: BasicDeploymentResponse[];
|
|
1412
|
-
} | {
|
|
1413
|
-
status: 422;
|
|
1414
|
-
data: {
|
|
1415
|
-
instance?: string;
|
|
1416
|
-
"type"?: string;
|
|
1417
|
-
parameters?: {
|
|
1418
|
-
[key: string]: object;
|
|
1419
|
-
};
|
|
1420
|
-
title?: string;
|
|
1421
|
-
status?: StatusType;
|
|
1422
|
-
detail?: string;
|
|
1423
|
-
};
|
|
1424
|
-
} | {
|
|
1425
|
-
status: 500;
|
|
1426
|
-
data: {
|
|
1427
|
-
instance?: string;
|
|
1428
|
-
"type"?: string;
|
|
1429
|
-
parameters?: {
|
|
1430
|
-
[key: string]: object;
|
|
1431
|
-
};
|
|
1432
|
-
title?: string;
|
|
1433
|
-
status?: StatusType;
|
|
1434
|
-
detail?: string;
|
|
1435
|
-
};
|
|
1436
|
-
}>(`/v2/applications/${encodeURIComponent(applicationId)}/deployments/last/runtime`, {
|
|
1437
|
-
...opts
|
|
1438
|
-
}));
|
|
1439
|
-
}
|
|
1440
|
-
export function listApplications1({ projectId, limit, offset }: {
|
|
1441
|
-
projectId: string;
|
|
1442
|
-
limit?: number;
|
|
1443
|
-
offset?: number;
|
|
1444
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1445
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1446
|
-
status: 200;
|
|
1447
|
-
data: PaginatedResponseGetApplicationByProjectResponse;
|
|
1448
|
-
} | {
|
|
1449
|
-
status: 422;
|
|
1450
|
-
data: {
|
|
1451
|
-
instance?: string;
|
|
1452
|
-
"type"?: string;
|
|
1453
|
-
parameters?: {
|
|
1454
|
-
[key: string]: object;
|
|
1455
|
-
};
|
|
1456
|
-
title?: string;
|
|
1457
|
-
status?: StatusType;
|
|
1458
|
-
detail?: string;
|
|
1459
|
-
};
|
|
1460
|
-
} | {
|
|
1461
|
-
status: 500;
|
|
1462
|
-
data: {
|
|
1463
|
-
instance?: string;
|
|
1464
|
-
"type"?: string;
|
|
1465
|
-
parameters?: {
|
|
1466
|
-
[key: string]: object;
|
|
1467
|
-
};
|
|
1468
|
-
title?: string;
|
|
1469
|
-
status?: StatusType;
|
|
1470
|
-
detail?: string;
|
|
1471
|
-
};
|
|
1472
|
-
}>(`/v2/applications/project/${encodeURIComponent(projectId)}${QS.query(QS.explode({
|
|
1473
|
-
limit,
|
|
1474
|
-
offset
|
|
1475
|
-
}))}`, {
|
|
1476
|
-
...opts
|
|
1477
|
-
}));
|
|
1478
|
-
}
|
|
1479
|
-
export function getRuntimeByUlid1({ runtimeId }: {
|
|
1480
|
-
runtimeId: string;
|
|
1481
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1482
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1483
|
-
status: 200;
|
|
1484
|
-
data: GetRuntimeByUlidResponse;
|
|
1485
|
-
} | {
|
|
1486
|
-
status: 422;
|
|
1487
|
-
data: {
|
|
1488
|
-
instance?: string;
|
|
1489
|
-
"type"?: string;
|
|
1490
|
-
parameters?: {
|
|
1491
|
-
[key: string]: object;
|
|
1492
|
-
};
|
|
1493
|
-
title?: string;
|
|
1494
|
-
status?: StatusType;
|
|
1495
|
-
detail?: string;
|
|
1496
|
-
};
|
|
1497
|
-
} | {
|
|
1498
|
-
status: 500;
|
|
1499
|
-
data: {
|
|
1500
|
-
instance?: string;
|
|
1501
|
-
"type"?: string;
|
|
1502
|
-
parameters?: {
|
|
1503
|
-
[key: string]: object;
|
|
1504
|
-
};
|
|
1505
|
-
title?: string;
|
|
1506
|
-
status?: StatusType;
|
|
1507
|
-
detail?: string;
|
|
1508
|
-
};
|
|
1509
|
-
}>(`/v1/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
1510
|
-
...opts
|
|
1511
|
-
}));
|
|
1512
|
-
}
|
|
1513
|
-
export function getRevisions({ applicationId }: {
|
|
1514
|
-
applicationId: string;
|
|
1515
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1516
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1517
|
-
status: 200;
|
|
1518
|
-
data: object;
|
|
1519
|
-
} | {
|
|
1520
|
-
status: 422;
|
|
1521
|
-
data: {
|
|
1522
|
-
instance?: string;
|
|
1523
|
-
"type"?: string;
|
|
1524
|
-
parameters?: {
|
|
1525
|
-
[key: string]: object;
|
|
1526
|
-
};
|
|
1527
|
-
title?: string;
|
|
1528
|
-
status?: StatusType;
|
|
1529
|
-
detail?: string;
|
|
1530
|
-
};
|
|
1531
|
-
} | {
|
|
1532
|
-
status: 500;
|
|
1533
|
-
data: {
|
|
1534
|
-
instance?: string;
|
|
1535
|
-
"type"?: string;
|
|
1536
|
-
parameters?: {
|
|
1537
|
-
[key: string]: object;
|
|
1538
|
-
};
|
|
1539
|
-
title?: string;
|
|
1540
|
-
status?: StatusType;
|
|
1541
|
-
detail?: string;
|
|
1542
|
-
};
|
|
1543
|
-
}>(`/v1/revision/${encodeURIComponent(applicationId)}`, {
|
|
1544
|
-
...opts
|
|
1545
|
-
}));
|
|
1546
|
-
}
|
|
1547
|
-
export function list({ limit, offset }: {
|
|
1548
|
-
limit?: number;
|
|
1549
|
-
offset?: number;
|
|
1550
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1551
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1552
|
-
status: 200;
|
|
1553
|
-
data: ListResponseRegistryDto;
|
|
1554
|
-
} | {
|
|
1555
|
-
status: 422;
|
|
1556
|
-
data: {
|
|
1557
|
-
instance?: string;
|
|
1558
|
-
"type"?: string;
|
|
1559
|
-
parameters?: {
|
|
1560
|
-
[key: string]: object;
|
|
1561
|
-
};
|
|
1562
|
-
title?: string;
|
|
1563
|
-
status?: StatusType;
|
|
1564
|
-
detail?: string;
|
|
1565
|
-
};
|
|
1566
|
-
} | {
|
|
1567
|
-
status: 500;
|
|
1568
|
-
data: {
|
|
1569
|
-
instance?: string;
|
|
1570
|
-
"type"?: string;
|
|
1571
|
-
parameters?: {
|
|
1572
|
-
[key: string]: object;
|
|
1573
|
-
};
|
|
1574
|
-
title?: string;
|
|
1575
|
-
status?: StatusType;
|
|
1576
|
-
detail?: string;
|
|
1577
|
-
};
|
|
1578
|
-
}>(`/v1/registries${QS.query(QS.explode({
|
|
1579
|
-
limit,
|
|
1580
|
-
offset
|
|
1581
|
-
}))}`, {
|
|
1582
|
-
...opts
|
|
1583
|
-
}));
|
|
1584
|
-
}
|
|
1585
|
-
export function listRepositoriesByRegistryId({ limit, offset, id }: {
|
|
1586
|
-
limit?: number;
|
|
1587
|
-
offset?: number;
|
|
1588
|
-
id: string;
|
|
1589
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1590
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1591
|
-
status: 200;
|
|
1592
|
-
data: RepositoryDto[];
|
|
1593
|
-
} | {
|
|
1594
|
-
status: 422;
|
|
1595
|
-
data: {
|
|
1596
|
-
instance?: string;
|
|
1597
|
-
"type"?: string;
|
|
1598
|
-
parameters?: {
|
|
1599
|
-
[key: string]: object;
|
|
1600
|
-
};
|
|
1601
|
-
title?: string;
|
|
1602
|
-
status?: StatusType;
|
|
1603
|
-
detail?: string;
|
|
1604
|
-
};
|
|
1605
|
-
} | {
|
|
1606
|
-
status: 500;
|
|
1607
|
-
data: {
|
|
1608
|
-
instance?: string;
|
|
1609
|
-
"type"?: string;
|
|
1610
|
-
parameters?: {
|
|
1611
|
-
[key: string]: object;
|
|
1612
|
-
};
|
|
1613
|
-
title?: string;
|
|
1614
|
-
status?: StatusType;
|
|
1615
|
-
detail?: string;
|
|
1616
|
-
};
|
|
1617
|
-
}>(`/v1/registries/${encodeURIComponent(id)}/repositories${QS.query(QS.explode({
|
|
1618
|
-
limit,
|
|
1619
|
-
offset
|
|
1620
|
-
}))}`, {
|
|
1621
|
-
...opts
|
|
1622
|
-
}));
|
|
1623
|
-
}
|
|
1624
|
-
export function listRepositoriesByDefaultRegistryId({ limit, offset }: {
|
|
1625
|
-
limit?: number;
|
|
1626
|
-
offset?: number;
|
|
1627
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1628
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1629
|
-
status: 200;
|
|
1630
|
-
data: object;
|
|
1631
|
-
} | {
|
|
1632
|
-
status: 422;
|
|
1633
|
-
data: {
|
|
1634
|
-
instance?: string;
|
|
1635
|
-
"type"?: string;
|
|
1636
|
-
parameters?: {
|
|
1637
|
-
[key: string]: object;
|
|
1638
|
-
};
|
|
1639
|
-
title?: string;
|
|
1640
|
-
status?: StatusType;
|
|
1641
|
-
detail?: string;
|
|
1642
|
-
};
|
|
1643
|
-
} | {
|
|
1644
|
-
status: 500;
|
|
1645
|
-
data: {
|
|
1646
|
-
instance?: string;
|
|
1647
|
-
"type"?: string;
|
|
1648
|
-
parameters?: {
|
|
1649
|
-
[key: string]: object;
|
|
1650
|
-
};
|
|
1651
|
-
title?: string;
|
|
1652
|
-
status?: StatusType;
|
|
1653
|
-
detail?: string;
|
|
1654
|
-
};
|
|
1655
|
-
}>(`/v1/registries/repositories${QS.query(QS.explode({
|
|
1656
|
-
limit,
|
|
1657
|
-
offset
|
|
1658
|
-
}))}`, {
|
|
1659
|
-
...opts
|
|
1660
|
-
}));
|
|
1661
|
-
}
|
|
1662
|
-
export function getImages({ repositoryName }: {
|
|
1663
|
-
repositoryName: string;
|
|
1664
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1665
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1666
|
-
status: 200;
|
|
1667
|
-
data: ImageDto[];
|
|
1668
|
-
} | {
|
|
1669
|
-
status: 422;
|
|
1670
|
-
data: {
|
|
1671
|
-
instance?: string;
|
|
1672
|
-
"type"?: string;
|
|
1673
|
-
parameters?: {
|
|
1674
|
-
[key: string]: object;
|
|
1675
|
-
};
|
|
1676
|
-
title?: string;
|
|
1677
|
-
status?: StatusType;
|
|
1678
|
-
detail?: string;
|
|
1679
|
-
};
|
|
1680
|
-
} | {
|
|
1681
|
-
status: 500;
|
|
1682
|
-
data: {
|
|
1683
|
-
instance?: string;
|
|
1684
|
-
"type"?: string;
|
|
1685
|
-
parameters?: {
|
|
1686
|
-
[key: string]: object;
|
|
1687
|
-
};
|
|
1688
|
-
title?: string;
|
|
1689
|
-
status?: StatusType;
|
|
1690
|
-
detail?: string;
|
|
1691
|
-
};
|
|
1692
|
-
}>(`/v1/registries/repositories/${encodeURIComponent(repositoryName)}/images`, {
|
|
1693
|
-
...opts
|
|
1694
|
-
}));
|
|
1695
|
-
}
|
|
1696
|
-
export function getRepositoryById({ id, registryId }: {
|
|
1697
|
-
id: string;
|
|
1698
|
-
registryId?: string;
|
|
1699
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1700
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1701
|
-
status: 200;
|
|
1702
|
-
data: RepositoryDto;
|
|
1703
|
-
} | {
|
|
1704
|
-
status: 422;
|
|
1705
|
-
data: {
|
|
1706
|
-
instance?: string;
|
|
1707
|
-
"type"?: string;
|
|
1708
|
-
parameters?: {
|
|
1709
|
-
[key: string]: object;
|
|
1710
|
-
};
|
|
1711
|
-
title?: string;
|
|
1712
|
-
status?: StatusType;
|
|
1713
|
-
detail?: string;
|
|
1714
|
-
};
|
|
1715
|
-
} | {
|
|
1716
|
-
status: 500;
|
|
1717
|
-
data: {
|
|
1718
|
-
instance?: string;
|
|
1719
|
-
"type"?: string;
|
|
1720
|
-
parameters?: {
|
|
1721
|
-
[key: string]: object;
|
|
1722
|
-
};
|
|
1723
|
-
title?: string;
|
|
1724
|
-
status?: StatusType;
|
|
1725
|
-
detail?: string;
|
|
1726
|
-
};
|
|
1727
|
-
}>(`/v1/registries/repositories/${encodeURIComponent(id)}${QS.query(QS.explode({
|
|
1728
|
-
registryId
|
|
1729
|
-
}))}`, {
|
|
1730
|
-
...opts
|
|
1731
|
-
}));
|
|
1732
|
-
}
|
|
1733
|
-
export function listRuntimes1({ projectId }: {
|
|
1734
|
-
projectId: string;
|
|
1735
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1736
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1737
|
-
status: 200;
|
|
1738
|
-
data: GetRuntimesByProjectUlid;
|
|
1739
|
-
} | {
|
|
1740
|
-
status: 422;
|
|
1741
|
-
data: {
|
|
1742
|
-
instance?: string;
|
|
1743
|
-
"type"?: string;
|
|
1744
|
-
parameters?: {
|
|
1745
|
-
[key: string]: object;
|
|
1746
|
-
};
|
|
1747
|
-
title?: string;
|
|
1748
|
-
status?: StatusType;
|
|
1749
|
-
detail?: string;
|
|
1750
|
-
};
|
|
1751
|
-
} | {
|
|
1752
|
-
status: 500;
|
|
1753
|
-
data: {
|
|
1754
|
-
instance?: string;
|
|
1755
|
-
"type"?: string;
|
|
1756
|
-
parameters?: {
|
|
1757
|
-
[key: string]: object;
|
|
1758
|
-
};
|
|
1759
|
-
title?: string;
|
|
1760
|
-
status?: StatusType;
|
|
1761
|
-
detail?: string;
|
|
1762
|
-
};
|
|
1763
|
-
}>(`/v1/projects/${encodeURIComponent(projectId)}/runtimes`, {
|
|
1764
|
-
...opts
|
|
1765
|
-
}));
|
|
1766
|
-
}
|
|
1767
|
-
export function listApplications2({ projectId, limit, offset }: {
|
|
1768
|
-
projectId: string;
|
|
1769
|
-
limit?: number;
|
|
1770
|
-
offset?: number;
|
|
1771
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1772
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1773
|
-
status: 200;
|
|
1774
|
-
data: PaginatedResponseApplicationDto;
|
|
1775
|
-
} | {
|
|
1776
|
-
status: 422;
|
|
1777
|
-
data: {
|
|
1778
|
-
instance?: string;
|
|
1779
|
-
"type"?: string;
|
|
1780
|
-
parameters?: {
|
|
1781
|
-
[key: string]: object;
|
|
1782
|
-
};
|
|
1783
|
-
title?: string;
|
|
1784
|
-
status?: StatusType;
|
|
1785
|
-
detail?: string;
|
|
1786
|
-
};
|
|
1787
|
-
} | {
|
|
1788
|
-
status: 500;
|
|
1789
|
-
data: {
|
|
1790
|
-
instance?: string;
|
|
1791
|
-
"type"?: string;
|
|
1792
|
-
parameters?: {
|
|
1793
|
-
[key: string]: object;
|
|
1794
|
-
};
|
|
1795
|
-
title?: string;
|
|
1796
|
-
status?: StatusType;
|
|
1797
|
-
detail?: string;
|
|
1798
|
-
};
|
|
1799
|
-
}>(`/v1/projects/${encodeURIComponent(projectId)}/applications${QS.query(QS.explode({
|
|
1800
|
-
limit,
|
|
1801
|
-
offset
|
|
1802
|
-
}))}`, {
|
|
1803
|
-
...opts
|
|
1804
|
-
}));
|
|
1805
|
-
}
|
|
1806
|
-
export function getDeployment1({ deploymentId }: {
|
|
1807
|
-
deploymentId: string;
|
|
1808
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1809
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1810
|
-
status: 200;
|
|
1811
|
-
data: object;
|
|
1812
|
-
} | {
|
|
1813
|
-
status: 422;
|
|
1814
|
-
data: {
|
|
1815
|
-
instance?: string;
|
|
1816
|
-
"type"?: string;
|
|
1817
|
-
parameters?: {
|
|
1818
|
-
[key: string]: object;
|
|
1819
|
-
};
|
|
1820
|
-
title?: string;
|
|
1821
|
-
status?: StatusType;
|
|
1822
|
-
detail?: string;
|
|
1823
|
-
};
|
|
1824
|
-
} | {
|
|
1825
|
-
status: 500;
|
|
1826
|
-
data: {
|
|
1827
|
-
instance?: string;
|
|
1828
|
-
"type"?: string;
|
|
1829
|
-
parameters?: {
|
|
1830
|
-
[key: string]: object;
|
|
1831
|
-
};
|
|
1832
|
-
title?: string;
|
|
1833
|
-
status?: StatusType;
|
|
1834
|
-
detail?: string;
|
|
1835
|
-
};
|
|
1836
|
-
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}`, {
|
|
1837
|
-
...opts
|
|
1838
|
-
}));
|
|
1839
|
-
}
|
|
1840
|
-
export function getDeploymentStatus1({ deploymentId }: {
|
|
1841
|
-
deploymentId: string;
|
|
1842
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1843
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1844
|
-
status: 200;
|
|
1845
|
-
data: object;
|
|
1846
|
-
} | {
|
|
1847
|
-
status: 422;
|
|
1848
|
-
data: {
|
|
1849
|
-
instance?: string;
|
|
1850
|
-
"type"?: string;
|
|
1851
|
-
parameters?: {
|
|
1852
|
-
[key: string]: object;
|
|
1853
|
-
};
|
|
1854
|
-
title?: string;
|
|
1855
|
-
status?: StatusType;
|
|
1856
|
-
detail?: string;
|
|
1857
|
-
};
|
|
1858
|
-
} | {
|
|
1859
|
-
status: 500;
|
|
1860
|
-
data: {
|
|
1861
|
-
instance?: string;
|
|
1862
|
-
"type"?: string;
|
|
1863
|
-
parameters?: {
|
|
1864
|
-
[key: string]: object;
|
|
1865
|
-
};
|
|
1866
|
-
title?: string;
|
|
1867
|
-
status?: StatusType;
|
|
1868
|
-
detail?: string;
|
|
1869
|
-
};
|
|
1870
|
-
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/status`, {
|
|
1871
|
-
...opts
|
|
1872
|
-
}));
|
|
1873
|
-
}
|
|
1874
|
-
export function getDeploymentLogs1({ deploymentId }: {
|
|
1875
|
-
deploymentId: string;
|
|
1876
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1877
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1878
|
-
status: 200;
|
|
1879
|
-
data: GetDeploymentLogsResponse;
|
|
1880
|
-
} | {
|
|
1881
|
-
status: 422;
|
|
1882
|
-
data: {
|
|
1883
|
-
instance?: string;
|
|
1884
|
-
"type"?: string;
|
|
1885
|
-
parameters?: {
|
|
1886
|
-
[key: string]: object;
|
|
1887
|
-
};
|
|
1888
|
-
title?: string;
|
|
1889
|
-
status?: StatusType;
|
|
1890
|
-
detail?: string;
|
|
1891
|
-
};
|
|
1892
|
-
} | {
|
|
1893
|
-
status: 500;
|
|
1894
|
-
data: {
|
|
1895
|
-
instance?: string;
|
|
1896
|
-
"type"?: string;
|
|
1897
|
-
parameters?: {
|
|
1898
|
-
[key: string]: object;
|
|
1899
|
-
};
|
|
1900
|
-
title?: string;
|
|
1901
|
-
status?: StatusType;
|
|
1902
|
-
detail?: string;
|
|
1903
|
-
};
|
|
1904
|
-
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/logs`, {
|
|
1905
|
-
...opts
|
|
1906
|
-
}));
|
|
1907
|
-
}
|
|
1908
|
-
export function getDeploymentHealth1({ deploymentId }: {
|
|
1909
|
-
deploymentId: string;
|
|
1910
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1911
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1912
|
-
status: 200;
|
|
1913
|
-
data: object;
|
|
1914
|
-
} | {
|
|
1915
|
-
status: 422;
|
|
1916
|
-
data: {
|
|
1917
|
-
instance?: string;
|
|
1918
|
-
"type"?: string;
|
|
1919
|
-
parameters?: {
|
|
1920
|
-
[key: string]: object;
|
|
1921
|
-
};
|
|
1922
|
-
title?: string;
|
|
1923
|
-
status?: StatusType;
|
|
1924
|
-
detail?: string;
|
|
1925
|
-
};
|
|
1926
|
-
} | {
|
|
1927
|
-
status: 500;
|
|
1928
|
-
data: {
|
|
1929
|
-
instance?: string;
|
|
1930
|
-
"type"?: string;
|
|
1931
|
-
parameters?: {
|
|
1932
|
-
[key: string]: object;
|
|
1933
|
-
};
|
|
1934
|
-
title?: string;
|
|
1935
|
-
status?: StatusType;
|
|
1936
|
-
detail?: string;
|
|
1937
|
-
};
|
|
1938
|
-
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/health`, {
|
|
1939
|
-
...opts
|
|
1940
|
-
}));
|
|
1941
|
-
}
|
|
1942
|
-
export function getDeploymentsId({ applicationId }: {
|
|
1943
|
-
applicationId: string;
|
|
1944
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1945
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1946
|
-
status: 200;
|
|
1947
|
-
data: object;
|
|
1948
|
-
} | {
|
|
1949
|
-
status: 422;
|
|
1950
|
-
data: {
|
|
1951
|
-
instance?: string;
|
|
1952
|
-
"type"?: string;
|
|
1953
|
-
parameters?: {
|
|
1954
|
-
[key: string]: object;
|
|
1955
|
-
};
|
|
1956
|
-
title?: string;
|
|
1957
|
-
status?: StatusType;
|
|
1958
|
-
detail?: string;
|
|
1959
|
-
};
|
|
1960
|
-
} | {
|
|
1961
|
-
status: 500;
|
|
1962
|
-
data: {
|
|
1963
|
-
instance?: string;
|
|
1964
|
-
"type"?: string;
|
|
1965
|
-
parameters?: {
|
|
1966
|
-
[key: string]: object;
|
|
1967
|
-
};
|
|
1968
|
-
title?: string;
|
|
1969
|
-
status?: StatusType;
|
|
1970
|
-
detail?: string;
|
|
1971
|
-
};
|
|
1972
|
-
}>(`/v1/deployments/applications/${encodeURIComponent(applicationId)}`, {
|
|
1973
|
-
...opts
|
|
1974
|
-
}));
|
|
1975
|
-
}
|
|
1976
|
-
export function getApplication1({ applicationId }: {
|
|
1977
|
-
applicationId: string;
|
|
1978
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
1979
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1980
|
-
status: 200;
|
|
1981
|
-
data: GetApplicationByUlidResponse;
|
|
1982
|
-
} | {
|
|
1983
|
-
status: 422;
|
|
1984
|
-
data: {
|
|
1985
|
-
instance?: string;
|
|
1986
|
-
"type"?: string;
|
|
1987
|
-
parameters?: {
|
|
1988
|
-
[key: string]: object;
|
|
1989
|
-
};
|
|
1990
|
-
title?: string;
|
|
1991
|
-
status?: StatusType;
|
|
1992
|
-
detail?: string;
|
|
1993
|
-
};
|
|
1994
|
-
} | {
|
|
1995
|
-
status: 500;
|
|
1996
|
-
data: {
|
|
1997
|
-
instance?: string;
|
|
1998
|
-
"type"?: string;
|
|
1999
|
-
parameters?: {
|
|
2000
|
-
[key: string]: object;
|
|
2001
|
-
};
|
|
2002
|
-
title?: string;
|
|
2003
|
-
status?: StatusType;
|
|
2004
|
-
detail?: string;
|
|
2005
|
-
};
|
|
2006
|
-
}>(`/v1/applications/${encodeURIComponent(applicationId)}`, {
|
|
2007
|
-
...opts
|
|
2008
|
-
}));
|
|
2009
|
-
}
|
|
2010
|
-
export function deleteDeployment({ id }: {
|
|
2011
|
-
id: string;
|
|
2012
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
2013
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2014
|
-
status: 200;
|
|
2015
|
-
} | {
|
|
2016
|
-
status: 422;
|
|
2017
|
-
data: {
|
|
2018
|
-
instance?: string;
|
|
2019
|
-
"type"?: string;
|
|
2020
|
-
parameters?: {
|
|
2021
|
-
[key: string]: object;
|
|
2022
|
-
};
|
|
2023
|
-
title?: string;
|
|
2024
|
-
status?: StatusType;
|
|
2025
|
-
detail?: string;
|
|
2026
|
-
};
|
|
2027
|
-
} | {
|
|
2028
|
-
status: 500;
|
|
2029
|
-
data: {
|
|
2030
|
-
instance?: string;
|
|
2031
|
-
"type"?: string;
|
|
2032
|
-
parameters?: {
|
|
2033
|
-
[key: string]: object;
|
|
2034
|
-
};
|
|
2035
|
-
title?: string;
|
|
2036
|
-
status?: StatusType;
|
|
2037
|
-
detail?: string;
|
|
2038
|
-
};
|
|
2039
|
-
}>(`/v1/deployments/${encodeURIComponent(id)}`, {
|
|
2040
|
-
...opts,
|
|
2041
|
-
method: "DELETE"
|
|
2042
|
-
}));
|
|
2043
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* v0
|
|
4
|
+
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
+
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
+
*/
|
|
7
|
+
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
+
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
+
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "https://cloud-cloud-runtime-api.dev.stackspot.com",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {
|
|
15
|
+
generatedServerUrl: "https://cloud-cloud-runtime-api.dev.stackspot.com"
|
|
16
|
+
};
|
|
17
|
+
export type ScheduleRequest = {
|
|
18
|
+
applicationId: string;
|
|
19
|
+
runtimeId: string;
|
|
20
|
+
startDate: string;
|
|
21
|
+
endDate: string;
|
|
22
|
+
time: string;
|
|
23
|
+
repeats: "NEVER" | "DAILY" | "WEEKLY" | "MONTHLY";
|
|
24
|
+
action: "START" | "STOP" | "RESTART" | "DEPLOY";
|
|
25
|
+
};
|
|
26
|
+
export type ScheduleResponse = {
|
|
27
|
+
applicationId: string;
|
|
28
|
+
runtimeId: string;
|
|
29
|
+
startDate: string;
|
|
30
|
+
endDate: string;
|
|
31
|
+
time: string;
|
|
32
|
+
repeats: "NEVER" | "DAILY" | "WEEKLY" | "MONTHLY";
|
|
33
|
+
action: "START" | "STOP" | "RESTART" | "DEPLOY";
|
|
34
|
+
};
|
|
35
|
+
export type StatusType = number;
|
|
36
|
+
export type EnvVar = {
|
|
37
|
+
key: string;
|
|
38
|
+
value: string;
|
|
39
|
+
};
|
|
40
|
+
export type SecretVar = {
|
|
41
|
+
key: string;
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
export type ReplicaNum = {
|
|
45
|
+
min?: number;
|
|
46
|
+
max?: number;
|
|
47
|
+
};
|
|
48
|
+
export type CreateDeploymentRequestV2 = {
|
|
49
|
+
runtimeId: string;
|
|
50
|
+
applicationId?: string;
|
|
51
|
+
applicationName?: string;
|
|
52
|
+
action: string;
|
|
53
|
+
containerPort?: number;
|
|
54
|
+
healthCheckPath?: string;
|
|
55
|
+
imageUrl: string;
|
|
56
|
+
tag: string;
|
|
57
|
+
mem?: number;
|
|
58
|
+
envVars?: EnvVar[];
|
|
59
|
+
secretVars?: SecretVar[];
|
|
60
|
+
cpu?: number;
|
|
61
|
+
replicaNum?: ReplicaNum;
|
|
62
|
+
awsAccount?: string;
|
|
63
|
+
idAwsAccount?: string;
|
|
64
|
+
health?: string;
|
|
65
|
+
applicationURL?: string;
|
|
66
|
+
};
|
|
67
|
+
export type SetAutoscalingRequest = {
|
|
68
|
+
deploymentId: string;
|
|
69
|
+
replicaNum: ReplicaNum;
|
|
70
|
+
applicationName: string;
|
|
71
|
+
};
|
|
72
|
+
export type CreateDeploymentResponseV2 = {
|
|
73
|
+
id?: string;
|
|
74
|
+
runtimeId: string;
|
|
75
|
+
applicationId?: string;
|
|
76
|
+
applicationName?: string;
|
|
77
|
+
action: string;
|
|
78
|
+
containerPort?: number;
|
|
79
|
+
healthCheckPath?: string;
|
|
80
|
+
imageUrl: string;
|
|
81
|
+
tag: string;
|
|
82
|
+
mem?: number;
|
|
83
|
+
envVars?: EnvVar[];
|
|
84
|
+
secretVars?: SecretVar[];
|
|
85
|
+
cpu?: number;
|
|
86
|
+
replicaNum?: ReplicaNum;
|
|
87
|
+
awsAccount: string;
|
|
88
|
+
idAwsAccount: string;
|
|
89
|
+
health?: string;
|
|
90
|
+
applicationURL?: string;
|
|
91
|
+
status?: string;
|
|
92
|
+
};
|
|
93
|
+
export type ApplicationDtov2 = {
|
|
94
|
+
id?: string;
|
|
95
|
+
name: string;
|
|
96
|
+
description?: string;
|
|
97
|
+
"type": string;
|
|
98
|
+
creator: string;
|
|
99
|
+
url?: string;
|
|
100
|
+
projectId?: string;
|
|
101
|
+
createdAt?: string;
|
|
102
|
+
updatedAt?: string;
|
|
103
|
+
};
|
|
104
|
+
export type RuntimeSpecDto = {
|
|
105
|
+
id: string;
|
|
106
|
+
};
|
|
107
|
+
export type ResourcesDto = {
|
|
108
|
+
memory: string;
|
|
109
|
+
cpu: number;
|
|
110
|
+
};
|
|
111
|
+
export type HpaDto = {
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
max: number;
|
|
114
|
+
min: number;
|
|
115
|
+
cpu: number;
|
|
116
|
+
};
|
|
117
|
+
export type ContainerValuesDto = {
|
|
118
|
+
resources: ResourcesDto;
|
|
119
|
+
volume: string;
|
|
120
|
+
hpa: HpaDto;
|
|
121
|
+
};
|
|
122
|
+
export type ContainerSpecDto = {
|
|
123
|
+
port: string;
|
|
124
|
+
healthCheckPath: string;
|
|
125
|
+
envVars: {
|
|
126
|
+
[key: string]: string;
|
|
127
|
+
};
|
|
128
|
+
imageUrl: string;
|
|
129
|
+
versionTag: string;
|
|
130
|
+
values: ContainerValuesDto;
|
|
131
|
+
};
|
|
132
|
+
export type SpecDto = {
|
|
133
|
+
runtime: RuntimeSpecDto;
|
|
134
|
+
container: ContainerSpecDto;
|
|
135
|
+
};
|
|
136
|
+
export type CreateDeploymentRequest = {
|
|
137
|
+
ulid?: string;
|
|
138
|
+
kind: string;
|
|
139
|
+
apiVersion: string;
|
|
140
|
+
runtimeId: number;
|
|
141
|
+
sourceId: string;
|
|
142
|
+
imageUrl: string;
|
|
143
|
+
metadata?: {
|
|
144
|
+
[key: string]: object;
|
|
145
|
+
};
|
|
146
|
+
action: "START" | "STOP" | "RESTART" | "DEPLOY";
|
|
147
|
+
sourceType: string;
|
|
148
|
+
spec: SpecDto;
|
|
149
|
+
};
|
|
150
|
+
export type ApplicationDto = {
|
|
151
|
+
id?: number;
|
|
152
|
+
ulid?: string;
|
|
153
|
+
name: string;
|
|
154
|
+
description?: string;
|
|
155
|
+
"type": string;
|
|
156
|
+
creator: string;
|
|
157
|
+
projectId: number;
|
|
158
|
+
url?: string;
|
|
159
|
+
projectUlid?: string;
|
|
160
|
+
createdAt?: string;
|
|
161
|
+
updatedAt?: string;
|
|
162
|
+
};
|
|
163
|
+
export type CreateApplicationResponse = {
|
|
164
|
+
id?: number;
|
|
165
|
+
ulid?: string;
|
|
166
|
+
name: string;
|
|
167
|
+
description?: string;
|
|
168
|
+
"type": string;
|
|
169
|
+
creator: string;
|
|
170
|
+
projectId: number;
|
|
171
|
+
url?: string;
|
|
172
|
+
projectUlid?: string;
|
|
173
|
+
createdAt?: string;
|
|
174
|
+
updatedAt?: string;
|
|
175
|
+
};
|
|
176
|
+
export type ProjectDtov2 = {
|
|
177
|
+
id: string;
|
|
178
|
+
name: string;
|
|
179
|
+
description: string;
|
|
180
|
+
environment: string;
|
|
181
|
+
region?: string;
|
|
182
|
+
};
|
|
183
|
+
export type AddOnDto = {
|
|
184
|
+
name: string;
|
|
185
|
+
description: string;
|
|
186
|
+
};
|
|
187
|
+
export type RuntimeDtov2 = {
|
|
188
|
+
id: string;
|
|
189
|
+
name: string;
|
|
190
|
+
description: string;
|
|
191
|
+
"type": "CONTAINER" | "STATIC";
|
|
192
|
+
projects: ProjectDtov2[];
|
|
193
|
+
tags: string[];
|
|
194
|
+
env?: string;
|
|
195
|
+
addons: AddOnDto[];
|
|
196
|
+
};
|
|
197
|
+
export type RepositoryResponse = {
|
|
198
|
+
repositoryName: string;
|
|
199
|
+
repositoryUri: string;
|
|
200
|
+
};
|
|
201
|
+
export type ListRepositoryResponse = {
|
|
202
|
+
repositories: RepositoryResponse[];
|
|
203
|
+
totalCount: number;
|
|
204
|
+
limit: number;
|
|
205
|
+
offset: number;
|
|
206
|
+
};
|
|
207
|
+
export type ImageResponse = {
|
|
208
|
+
imageUri: string;
|
|
209
|
+
tags: string[];
|
|
210
|
+
};
|
|
211
|
+
export type GetRuntimesByProjectUlidV2 = {
|
|
212
|
+
runtimes: RuntimeDtov2[];
|
|
213
|
+
};
|
|
214
|
+
export type PaginatedResponseApplicationDto = {
|
|
215
|
+
content?: ApplicationDto[];
|
|
216
|
+
last?: boolean;
|
|
217
|
+
totalElements?: number;
|
|
218
|
+
totalPages?: number;
|
|
219
|
+
first?: boolean;
|
|
220
|
+
size?: number;
|
|
221
|
+
"number"?: number;
|
|
222
|
+
numberOfElements?: number;
|
|
223
|
+
empty?: boolean;
|
|
224
|
+
};
|
|
225
|
+
export type StatusResponse = {
|
|
226
|
+
status: "UP" | "DEPLOYING" | "STOPPED" | "UNKNOWN";
|
|
227
|
+
};
|
|
228
|
+
export type GetDeploymentLogsResponse = {
|
|
229
|
+
logs: string;
|
|
230
|
+
};
|
|
231
|
+
export type HealthResponse = {
|
|
232
|
+
health: "HEALTHY" | "UNHEALTHY";
|
|
233
|
+
};
|
|
234
|
+
export type GetApplicationByUlidResponseV2 = {
|
|
235
|
+
id?: string;
|
|
236
|
+
name: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
"type": string;
|
|
239
|
+
creator: string;
|
|
240
|
+
url?: string;
|
|
241
|
+
projectId?: string;
|
|
242
|
+
createdAt?: string;
|
|
243
|
+
updatedAt?: string;
|
|
244
|
+
};
|
|
245
|
+
export type GetInstanceResponse = {
|
|
246
|
+
used: number;
|
|
247
|
+
available: number;
|
|
248
|
+
};
|
|
249
|
+
export type ApplicationHistoryResponse = {
|
|
250
|
+
applicationId?: string;
|
|
251
|
+
runtimeName?: string;
|
|
252
|
+
creator?: string;
|
|
253
|
+
action: string;
|
|
254
|
+
date: string;
|
|
255
|
+
};
|
|
256
|
+
export type ListApplicationHistoryResponse = {
|
|
257
|
+
applicationId: string;
|
|
258
|
+
applicationHistory: ApplicationHistoryResponse[];
|
|
259
|
+
};
|
|
260
|
+
export type BasicDeploymentResponse = {
|
|
261
|
+
deploymentId: string;
|
|
262
|
+
runtimeName: string;
|
|
263
|
+
deploymentStatus: string;
|
|
264
|
+
runtimeEnv: string;
|
|
265
|
+
};
|
|
266
|
+
export type GetApplicationByProjectResponse = {
|
|
267
|
+
name: string;
|
|
268
|
+
id: string;
|
|
269
|
+
description: string;
|
|
270
|
+
"type": string;
|
|
271
|
+
creator: string;
|
|
272
|
+
projectId: string;
|
|
273
|
+
url?: string;
|
|
274
|
+
};
|
|
275
|
+
export type PaginatedResponseGetApplicationByProjectResponse = {
|
|
276
|
+
content?: GetApplicationByProjectResponse[];
|
|
277
|
+
last?: boolean;
|
|
278
|
+
totalElements?: number;
|
|
279
|
+
totalPages?: number;
|
|
280
|
+
first?: boolean;
|
|
281
|
+
size?: number;
|
|
282
|
+
"number"?: number;
|
|
283
|
+
numberOfElements?: number;
|
|
284
|
+
empty?: boolean;
|
|
285
|
+
};
|
|
286
|
+
export type ProjectDto = {
|
|
287
|
+
ulid: string;
|
|
288
|
+
name: string;
|
|
289
|
+
description: string;
|
|
290
|
+
environment: string;
|
|
291
|
+
region?: string;
|
|
292
|
+
};
|
|
293
|
+
export type GetRuntimeByUlidResponse = {
|
|
294
|
+
ulid: string;
|
|
295
|
+
name: string;
|
|
296
|
+
description: string;
|
|
297
|
+
"type": "CONTAINER" | "STATIC";
|
|
298
|
+
projects: ProjectDto[];
|
|
299
|
+
tags: {
|
|
300
|
+
[key: string]: string;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
export type RegistryDto = {
|
|
304
|
+
id: string;
|
|
305
|
+
name?: string;
|
|
306
|
+
projectId?: string;
|
|
307
|
+
"type": "ECR";
|
|
308
|
+
};
|
|
309
|
+
export type ListResponseRegistryDto = {
|
|
310
|
+
totalCount: number;
|
|
311
|
+
limit: number;
|
|
312
|
+
offset: number;
|
|
313
|
+
data: RegistryDto[];
|
|
314
|
+
};
|
|
315
|
+
export type RepositoryDto = {
|
|
316
|
+
id: string;
|
|
317
|
+
name: string;
|
|
318
|
+
registryId: string;
|
|
319
|
+
repositoryUri: string;
|
|
320
|
+
};
|
|
321
|
+
export type ImageDto = {
|
|
322
|
+
imageUri: string;
|
|
323
|
+
tags: string[];
|
|
324
|
+
digest?: string;
|
|
325
|
+
};
|
|
326
|
+
export type RuntimeDto = {
|
|
327
|
+
ulid: string;
|
|
328
|
+
name: string;
|
|
329
|
+
description: string;
|
|
330
|
+
"type": "CONTAINER" | "STATIC";
|
|
331
|
+
projects: ProjectDto[];
|
|
332
|
+
tags: {
|
|
333
|
+
[key: string]: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
export type GetRuntimesByProjectUlid = {
|
|
337
|
+
runtimes: RuntimeDto[];
|
|
338
|
+
};
|
|
339
|
+
export type GetApplicationByUlidResponse = {
|
|
340
|
+
id?: number;
|
|
341
|
+
ulid?: string;
|
|
342
|
+
name: string;
|
|
343
|
+
description?: string;
|
|
344
|
+
"type": string;
|
|
345
|
+
creator: string;
|
|
346
|
+
projectId: number;
|
|
347
|
+
url?: string;
|
|
348
|
+
projectUlid?: string;
|
|
349
|
+
createdAt?: string;
|
|
350
|
+
updatedAt?: string;
|
|
351
|
+
};
|
|
352
|
+
export function createSchedule({ scheduleRequest }: {
|
|
353
|
+
scheduleRequest: ScheduleRequest;
|
|
354
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
355
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
356
|
+
status: 200;
|
|
357
|
+
data: ScheduleResponse;
|
|
358
|
+
} | {
|
|
359
|
+
status: 422;
|
|
360
|
+
data: {
|
|
361
|
+
instance?: string;
|
|
362
|
+
"type"?: string;
|
|
363
|
+
parameters?: {
|
|
364
|
+
[key: string]: object;
|
|
365
|
+
};
|
|
366
|
+
title?: string;
|
|
367
|
+
status?: StatusType;
|
|
368
|
+
detail?: string;
|
|
369
|
+
};
|
|
370
|
+
} | {
|
|
371
|
+
status: 500;
|
|
372
|
+
data: {
|
|
373
|
+
instance?: string;
|
|
374
|
+
"type"?: string;
|
|
375
|
+
parameters?: {
|
|
376
|
+
[key: string]: object;
|
|
377
|
+
};
|
|
378
|
+
title?: string;
|
|
379
|
+
status?: StatusType;
|
|
380
|
+
detail?: string;
|
|
381
|
+
};
|
|
382
|
+
}>("/v2/schedule", oazapfts.json({
|
|
383
|
+
...opts,
|
|
384
|
+
method: "POST",
|
|
385
|
+
body: scheduleRequest
|
|
386
|
+
})));
|
|
387
|
+
}
|
|
388
|
+
export function createDeployment({ authorization, createDeploymentRequestV2 }: {
|
|
389
|
+
authorization: string;
|
|
390
|
+
createDeploymentRequestV2: CreateDeploymentRequestV2;
|
|
391
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
392
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
393
|
+
status: 200;
|
|
394
|
+
data: object;
|
|
395
|
+
} | {
|
|
396
|
+
status: 422;
|
|
397
|
+
data: {
|
|
398
|
+
instance?: string;
|
|
399
|
+
"type"?: string;
|
|
400
|
+
parameters?: {
|
|
401
|
+
[key: string]: object;
|
|
402
|
+
};
|
|
403
|
+
title?: string;
|
|
404
|
+
status?: StatusType;
|
|
405
|
+
detail?: string;
|
|
406
|
+
};
|
|
407
|
+
} | {
|
|
408
|
+
status: 500;
|
|
409
|
+
data: {
|
|
410
|
+
instance?: string;
|
|
411
|
+
"type"?: string;
|
|
412
|
+
parameters?: {
|
|
413
|
+
[key: string]: object;
|
|
414
|
+
};
|
|
415
|
+
title?: string;
|
|
416
|
+
status?: StatusType;
|
|
417
|
+
detail?: string;
|
|
418
|
+
};
|
|
419
|
+
}>("/v2/deployments", oazapfts.json({
|
|
420
|
+
...opts,
|
|
421
|
+
method: "POST",
|
|
422
|
+
body: createDeploymentRequestV2,
|
|
423
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
424
|
+
Authorization: authorization
|
|
425
|
+
})
|
|
426
|
+
})));
|
|
427
|
+
}
|
|
428
|
+
export function setAutoscaling({ authorization, setAutoscalingRequest }: {
|
|
429
|
+
authorization: string;
|
|
430
|
+
setAutoscalingRequest: SetAutoscalingRequest;
|
|
431
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
432
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
433
|
+
status: 200;
|
|
434
|
+
data: CreateDeploymentResponseV2;
|
|
435
|
+
} | {
|
|
436
|
+
status: 422;
|
|
437
|
+
data: {
|
|
438
|
+
instance?: string;
|
|
439
|
+
"type"?: string;
|
|
440
|
+
parameters?: {
|
|
441
|
+
[key: string]: object;
|
|
442
|
+
};
|
|
443
|
+
title?: string;
|
|
444
|
+
status?: StatusType;
|
|
445
|
+
detail?: string;
|
|
446
|
+
};
|
|
447
|
+
} | {
|
|
448
|
+
status: 500;
|
|
449
|
+
data: {
|
|
450
|
+
instance?: string;
|
|
451
|
+
"type"?: string;
|
|
452
|
+
parameters?: {
|
|
453
|
+
[key: string]: object;
|
|
454
|
+
};
|
|
455
|
+
title?: string;
|
|
456
|
+
status?: StatusType;
|
|
457
|
+
detail?: string;
|
|
458
|
+
};
|
|
459
|
+
}>("/v2/deployments/autoscaling", oazapfts.json({
|
|
460
|
+
...opts,
|
|
461
|
+
method: "POST",
|
|
462
|
+
body: setAutoscalingRequest,
|
|
463
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
464
|
+
Authorization: authorization
|
|
465
|
+
})
|
|
466
|
+
})));
|
|
467
|
+
}
|
|
468
|
+
export function cleanDeployments({ authorization }: {
|
|
469
|
+
authorization: string;
|
|
470
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
471
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
472
|
+
status: 200;
|
|
473
|
+
} | {
|
|
474
|
+
status: 422;
|
|
475
|
+
data: {
|
|
476
|
+
instance?: string;
|
|
477
|
+
"type"?: string;
|
|
478
|
+
parameters?: {
|
|
479
|
+
[key: string]: object;
|
|
480
|
+
};
|
|
481
|
+
title?: string;
|
|
482
|
+
status?: StatusType;
|
|
483
|
+
detail?: string;
|
|
484
|
+
};
|
|
485
|
+
} | {
|
|
486
|
+
status: 500;
|
|
487
|
+
data: {
|
|
488
|
+
instance?: string;
|
|
489
|
+
"type"?: string;
|
|
490
|
+
parameters?: {
|
|
491
|
+
[key: string]: object;
|
|
492
|
+
};
|
|
493
|
+
title?: string;
|
|
494
|
+
status?: StatusType;
|
|
495
|
+
detail?: string;
|
|
496
|
+
};
|
|
497
|
+
}>("/v2/clean/deployments", {
|
|
498
|
+
...opts,
|
|
499
|
+
method: "POST",
|
|
500
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
501
|
+
Authorization: authorization
|
|
502
|
+
})
|
|
503
|
+
}));
|
|
504
|
+
}
|
|
505
|
+
export function cleanApplications({ authorization }: {
|
|
506
|
+
authorization: string;
|
|
507
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
508
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
509
|
+
status: 200;
|
|
510
|
+
} | {
|
|
511
|
+
status: 422;
|
|
512
|
+
data: {
|
|
513
|
+
instance?: string;
|
|
514
|
+
"type"?: string;
|
|
515
|
+
parameters?: {
|
|
516
|
+
[key: string]: object;
|
|
517
|
+
};
|
|
518
|
+
title?: string;
|
|
519
|
+
status?: StatusType;
|
|
520
|
+
detail?: string;
|
|
521
|
+
};
|
|
522
|
+
} | {
|
|
523
|
+
status: 500;
|
|
524
|
+
data: {
|
|
525
|
+
instance?: string;
|
|
526
|
+
"type"?: string;
|
|
527
|
+
parameters?: {
|
|
528
|
+
[key: string]: object;
|
|
529
|
+
};
|
|
530
|
+
title?: string;
|
|
531
|
+
status?: StatusType;
|
|
532
|
+
detail?: string;
|
|
533
|
+
};
|
|
534
|
+
}>("/v2/clean/applications", {
|
|
535
|
+
...opts,
|
|
536
|
+
method: "POST",
|
|
537
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
538
|
+
Authorization: authorization
|
|
539
|
+
})
|
|
540
|
+
}));
|
|
541
|
+
}
|
|
542
|
+
export function createApplication({ authorization, applicationDtov2 }: {
|
|
543
|
+
authorization: string;
|
|
544
|
+
applicationDtov2: ApplicationDtov2;
|
|
545
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
546
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
547
|
+
status: 200;
|
|
548
|
+
data: ApplicationDtov2;
|
|
549
|
+
} | {
|
|
550
|
+
status: 422;
|
|
551
|
+
data: {
|
|
552
|
+
instance?: string;
|
|
553
|
+
"type"?: string;
|
|
554
|
+
parameters?: {
|
|
555
|
+
[key: string]: object;
|
|
556
|
+
};
|
|
557
|
+
title?: string;
|
|
558
|
+
status?: StatusType;
|
|
559
|
+
detail?: string;
|
|
560
|
+
};
|
|
561
|
+
} | {
|
|
562
|
+
status: 500;
|
|
563
|
+
data: {
|
|
564
|
+
instance?: string;
|
|
565
|
+
"type"?: string;
|
|
566
|
+
parameters?: {
|
|
567
|
+
[key: string]: object;
|
|
568
|
+
};
|
|
569
|
+
title?: string;
|
|
570
|
+
status?: StatusType;
|
|
571
|
+
detail?: string;
|
|
572
|
+
};
|
|
573
|
+
}>("/v2/applications", oazapfts.json({
|
|
574
|
+
...opts,
|
|
575
|
+
method: "POST",
|
|
576
|
+
body: applicationDtov2,
|
|
577
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
578
|
+
Authorization: authorization
|
|
579
|
+
})
|
|
580
|
+
})));
|
|
581
|
+
}
|
|
582
|
+
export function stopApplication({ authorization, applicationId, runtimeId }: {
|
|
583
|
+
authorization: string;
|
|
584
|
+
applicationId: string;
|
|
585
|
+
runtimeId: string;
|
|
586
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
587
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
588
|
+
status: 200;
|
|
589
|
+
data: object;
|
|
590
|
+
} | {
|
|
591
|
+
status: 422;
|
|
592
|
+
data: {
|
|
593
|
+
instance?: string;
|
|
594
|
+
"type"?: string;
|
|
595
|
+
parameters?: {
|
|
596
|
+
[key: string]: object;
|
|
597
|
+
};
|
|
598
|
+
title?: string;
|
|
599
|
+
status?: StatusType;
|
|
600
|
+
detail?: string;
|
|
601
|
+
};
|
|
602
|
+
} | {
|
|
603
|
+
status: 500;
|
|
604
|
+
data: {
|
|
605
|
+
instance?: string;
|
|
606
|
+
"type"?: string;
|
|
607
|
+
parameters?: {
|
|
608
|
+
[key: string]: object;
|
|
609
|
+
};
|
|
610
|
+
title?: string;
|
|
611
|
+
status?: StatusType;
|
|
612
|
+
detail?: string;
|
|
613
|
+
};
|
|
614
|
+
}>(`/v2/applications/stop${QS.query(QS.explode({
|
|
615
|
+
applicationId,
|
|
616
|
+
runtimeId
|
|
617
|
+
}))}`, {
|
|
618
|
+
...opts,
|
|
619
|
+
method: "POST",
|
|
620
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
621
|
+
Authorization: authorization
|
|
622
|
+
})
|
|
623
|
+
}));
|
|
624
|
+
}
|
|
625
|
+
export function startApplication({ authorization, applicationId, runtimeId }: {
|
|
626
|
+
authorization: string;
|
|
627
|
+
applicationId: string;
|
|
628
|
+
runtimeId: string;
|
|
629
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
630
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
631
|
+
status: 200;
|
|
632
|
+
data: object;
|
|
633
|
+
} | {
|
|
634
|
+
status: 422;
|
|
635
|
+
data: {
|
|
636
|
+
instance?: string;
|
|
637
|
+
"type"?: string;
|
|
638
|
+
parameters?: {
|
|
639
|
+
[key: string]: object;
|
|
640
|
+
};
|
|
641
|
+
title?: string;
|
|
642
|
+
status?: StatusType;
|
|
643
|
+
detail?: string;
|
|
644
|
+
};
|
|
645
|
+
} | {
|
|
646
|
+
status: 500;
|
|
647
|
+
data: {
|
|
648
|
+
instance?: string;
|
|
649
|
+
"type"?: string;
|
|
650
|
+
parameters?: {
|
|
651
|
+
[key: string]: object;
|
|
652
|
+
};
|
|
653
|
+
title?: string;
|
|
654
|
+
status?: StatusType;
|
|
655
|
+
detail?: string;
|
|
656
|
+
};
|
|
657
|
+
}>(`/v2/applications/start${QS.query(QS.explode({
|
|
658
|
+
applicationId,
|
|
659
|
+
runtimeId
|
|
660
|
+
}))}`, {
|
|
661
|
+
...opts,
|
|
662
|
+
method: "POST",
|
|
663
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
664
|
+
Authorization: authorization
|
|
665
|
+
})
|
|
666
|
+
}));
|
|
667
|
+
}
|
|
668
|
+
export function restartApplication({ authorization, applicationId, runtimeId }: {
|
|
669
|
+
authorization: string;
|
|
670
|
+
applicationId: string;
|
|
671
|
+
runtimeId: string;
|
|
672
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
673
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
674
|
+
status: 200;
|
|
675
|
+
data: object;
|
|
676
|
+
} | {
|
|
677
|
+
status: 422;
|
|
678
|
+
data: {
|
|
679
|
+
instance?: string;
|
|
680
|
+
"type"?: string;
|
|
681
|
+
parameters?: {
|
|
682
|
+
[key: string]: object;
|
|
683
|
+
};
|
|
684
|
+
title?: string;
|
|
685
|
+
status?: StatusType;
|
|
686
|
+
detail?: string;
|
|
687
|
+
};
|
|
688
|
+
} | {
|
|
689
|
+
status: 500;
|
|
690
|
+
data: {
|
|
691
|
+
instance?: string;
|
|
692
|
+
"type"?: string;
|
|
693
|
+
parameters?: {
|
|
694
|
+
[key: string]: object;
|
|
695
|
+
};
|
|
696
|
+
title?: string;
|
|
697
|
+
status?: StatusType;
|
|
698
|
+
detail?: string;
|
|
699
|
+
};
|
|
700
|
+
}>(`/v2/applications/restart${QS.query(QS.explode({
|
|
701
|
+
applicationId,
|
|
702
|
+
runtimeId
|
|
703
|
+
}))}`, {
|
|
704
|
+
...opts,
|
|
705
|
+
method: "POST",
|
|
706
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
707
|
+
Authorization: authorization
|
|
708
|
+
})
|
|
709
|
+
}));
|
|
710
|
+
}
|
|
711
|
+
export function createRuntimeTag({ tagId, runtimeId }: {
|
|
712
|
+
tagId: string;
|
|
713
|
+
runtimeId: string;
|
|
714
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
715
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
716
|
+
status: 200;
|
|
717
|
+
data: object;
|
|
718
|
+
} | {
|
|
719
|
+
status: 422;
|
|
720
|
+
data: {
|
|
721
|
+
instance?: string;
|
|
722
|
+
"type"?: string;
|
|
723
|
+
parameters?: {
|
|
724
|
+
[key: string]: object;
|
|
725
|
+
};
|
|
726
|
+
title?: string;
|
|
727
|
+
status?: StatusType;
|
|
728
|
+
detail?: string;
|
|
729
|
+
};
|
|
730
|
+
} | {
|
|
731
|
+
status: 500;
|
|
732
|
+
data: {
|
|
733
|
+
instance?: string;
|
|
734
|
+
"type"?: string;
|
|
735
|
+
parameters?: {
|
|
736
|
+
[key: string]: object;
|
|
737
|
+
};
|
|
738
|
+
title?: string;
|
|
739
|
+
status?: StatusType;
|
|
740
|
+
detail?: string;
|
|
741
|
+
};
|
|
742
|
+
}>(`/v1/tags/${encodeURIComponent(tagId)}/${encodeURIComponent(runtimeId)}`, {
|
|
743
|
+
...opts,
|
|
744
|
+
method: "POST"
|
|
745
|
+
}));
|
|
746
|
+
}
|
|
747
|
+
export function createDeployment1({ createDeploymentRequest }: {
|
|
748
|
+
createDeploymentRequest: CreateDeploymentRequest;
|
|
749
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
750
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
751
|
+
status: 200;
|
|
752
|
+
data: object;
|
|
753
|
+
} | {
|
|
754
|
+
status: 422;
|
|
755
|
+
data: {
|
|
756
|
+
instance?: string;
|
|
757
|
+
"type"?: string;
|
|
758
|
+
parameters?: {
|
|
759
|
+
[key: string]: object;
|
|
760
|
+
};
|
|
761
|
+
title?: string;
|
|
762
|
+
status?: StatusType;
|
|
763
|
+
detail?: string;
|
|
764
|
+
};
|
|
765
|
+
} | {
|
|
766
|
+
status: 500;
|
|
767
|
+
data: {
|
|
768
|
+
instance?: string;
|
|
769
|
+
"type"?: string;
|
|
770
|
+
parameters?: {
|
|
771
|
+
[key: string]: object;
|
|
772
|
+
};
|
|
773
|
+
title?: string;
|
|
774
|
+
status?: StatusType;
|
|
775
|
+
detail?: string;
|
|
776
|
+
};
|
|
777
|
+
}>("/v1/deployments", oazapfts.json({
|
|
778
|
+
...opts,
|
|
779
|
+
method: "POST",
|
|
780
|
+
body: createDeploymentRequest
|
|
781
|
+
})));
|
|
782
|
+
}
|
|
783
|
+
export function getNamespace(opts?: Oazapfts.RequestOpts) {
|
|
784
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
785
|
+
status: 200;
|
|
786
|
+
data: string;
|
|
787
|
+
} | {
|
|
788
|
+
status: 422;
|
|
789
|
+
data: {
|
|
790
|
+
instance?: string;
|
|
791
|
+
"type"?: string;
|
|
792
|
+
parameters?: {
|
|
793
|
+
[key: string]: object;
|
|
794
|
+
};
|
|
795
|
+
title?: string;
|
|
796
|
+
status?: StatusType;
|
|
797
|
+
detail?: string;
|
|
798
|
+
};
|
|
799
|
+
} | {
|
|
800
|
+
status: 500;
|
|
801
|
+
data: {
|
|
802
|
+
instance?: string;
|
|
803
|
+
"type"?: string;
|
|
804
|
+
parameters?: {
|
|
805
|
+
[key: string]: object;
|
|
806
|
+
};
|
|
807
|
+
title?: string;
|
|
808
|
+
status?: StatusType;
|
|
809
|
+
detail?: string;
|
|
810
|
+
};
|
|
811
|
+
}>("/v1/deployments/namespace", {
|
|
812
|
+
...opts
|
|
813
|
+
}));
|
|
814
|
+
}
|
|
815
|
+
export function createNamespace(opts?: Oazapfts.RequestOpts) {
|
|
816
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
817
|
+
status: 200;
|
|
818
|
+
data: string;
|
|
819
|
+
} | {
|
|
820
|
+
status: 422;
|
|
821
|
+
data: {
|
|
822
|
+
instance?: string;
|
|
823
|
+
"type"?: string;
|
|
824
|
+
parameters?: {
|
|
825
|
+
[key: string]: object;
|
|
826
|
+
};
|
|
827
|
+
title?: string;
|
|
828
|
+
status?: StatusType;
|
|
829
|
+
detail?: string;
|
|
830
|
+
};
|
|
831
|
+
} | {
|
|
832
|
+
status: 500;
|
|
833
|
+
data: {
|
|
834
|
+
instance?: string;
|
|
835
|
+
"type"?: string;
|
|
836
|
+
parameters?: {
|
|
837
|
+
[key: string]: object;
|
|
838
|
+
};
|
|
839
|
+
title?: string;
|
|
840
|
+
status?: StatusType;
|
|
841
|
+
detail?: string;
|
|
842
|
+
};
|
|
843
|
+
}>("/v1/deployments/namespace", {
|
|
844
|
+
...opts,
|
|
845
|
+
method: "POST"
|
|
846
|
+
}));
|
|
847
|
+
}
|
|
848
|
+
export function createApplication1({ applicationDto }: {
|
|
849
|
+
applicationDto: ApplicationDto;
|
|
850
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
851
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
852
|
+
status: 200;
|
|
853
|
+
data: CreateApplicationResponse;
|
|
854
|
+
} | {
|
|
855
|
+
status: 422;
|
|
856
|
+
data: {
|
|
857
|
+
instance?: string;
|
|
858
|
+
"type"?: string;
|
|
859
|
+
parameters?: {
|
|
860
|
+
[key: string]: object;
|
|
861
|
+
};
|
|
862
|
+
title?: string;
|
|
863
|
+
status?: StatusType;
|
|
864
|
+
detail?: string;
|
|
865
|
+
};
|
|
866
|
+
} | {
|
|
867
|
+
status: 500;
|
|
868
|
+
data: {
|
|
869
|
+
instance?: string;
|
|
870
|
+
"type"?: string;
|
|
871
|
+
parameters?: {
|
|
872
|
+
[key: string]: object;
|
|
873
|
+
};
|
|
874
|
+
title?: string;
|
|
875
|
+
status?: StatusType;
|
|
876
|
+
detail?: string;
|
|
877
|
+
};
|
|
878
|
+
}>("/v1/applications", oazapfts.json({
|
|
879
|
+
...opts,
|
|
880
|
+
method: "POST",
|
|
881
|
+
body: applicationDto
|
|
882
|
+
})));
|
|
883
|
+
}
|
|
884
|
+
export function getScheduling({ applicationId, runtimeId }: {
|
|
885
|
+
applicationId: string;
|
|
886
|
+
runtimeId: string;
|
|
887
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
888
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
889
|
+
status: 200;
|
|
890
|
+
data: ScheduleResponse[];
|
|
891
|
+
} | {
|
|
892
|
+
status: 422;
|
|
893
|
+
data: {
|
|
894
|
+
instance?: string;
|
|
895
|
+
"type"?: string;
|
|
896
|
+
parameters?: {
|
|
897
|
+
[key: string]: object;
|
|
898
|
+
};
|
|
899
|
+
title?: string;
|
|
900
|
+
status?: StatusType;
|
|
901
|
+
detail?: string;
|
|
902
|
+
};
|
|
903
|
+
} | {
|
|
904
|
+
status: 500;
|
|
905
|
+
data: {
|
|
906
|
+
instance?: string;
|
|
907
|
+
"type"?: string;
|
|
908
|
+
parameters?: {
|
|
909
|
+
[key: string]: object;
|
|
910
|
+
};
|
|
911
|
+
title?: string;
|
|
912
|
+
status?: StatusType;
|
|
913
|
+
detail?: string;
|
|
914
|
+
};
|
|
915
|
+
}>(`/v2/schedule/${encodeURIComponent(applicationId)}/runtime/${encodeURIComponent(runtimeId)}`, {
|
|
916
|
+
...opts
|
|
917
|
+
}));
|
|
918
|
+
}
|
|
919
|
+
export function getRuntimeByUlid({ runtimeId }: {
|
|
920
|
+
runtimeId: string;
|
|
921
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
922
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
923
|
+
status: 200;
|
|
924
|
+
data: RuntimeDtov2;
|
|
925
|
+
} | {
|
|
926
|
+
status: 422;
|
|
927
|
+
data: {
|
|
928
|
+
instance?: string;
|
|
929
|
+
"type"?: string;
|
|
930
|
+
parameters?: {
|
|
931
|
+
[key: string]: object;
|
|
932
|
+
};
|
|
933
|
+
title?: string;
|
|
934
|
+
status?: StatusType;
|
|
935
|
+
detail?: string;
|
|
936
|
+
};
|
|
937
|
+
} | {
|
|
938
|
+
status: 500;
|
|
939
|
+
data: {
|
|
940
|
+
instance?: string;
|
|
941
|
+
"type"?: string;
|
|
942
|
+
parameters?: {
|
|
943
|
+
[key: string]: object;
|
|
944
|
+
};
|
|
945
|
+
title?: string;
|
|
946
|
+
status?: StatusType;
|
|
947
|
+
detail?: string;
|
|
948
|
+
};
|
|
949
|
+
}>(`/v2/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
950
|
+
...opts
|
|
951
|
+
}));
|
|
952
|
+
}
|
|
953
|
+
export function listRepositories({ limit, offset }: {
|
|
954
|
+
limit?: number;
|
|
955
|
+
offset?: number;
|
|
956
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
957
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
958
|
+
status: 200;
|
|
959
|
+
data: ListRepositoryResponse;
|
|
960
|
+
} | {
|
|
961
|
+
status: 422;
|
|
962
|
+
data: {
|
|
963
|
+
instance?: string;
|
|
964
|
+
"type"?: string;
|
|
965
|
+
parameters?: {
|
|
966
|
+
[key: string]: object;
|
|
967
|
+
};
|
|
968
|
+
title?: string;
|
|
969
|
+
status?: StatusType;
|
|
970
|
+
detail?: string;
|
|
971
|
+
};
|
|
972
|
+
} | {
|
|
973
|
+
status: 500;
|
|
974
|
+
data: {
|
|
975
|
+
instance?: string;
|
|
976
|
+
"type"?: string;
|
|
977
|
+
parameters?: {
|
|
978
|
+
[key: string]: object;
|
|
979
|
+
};
|
|
980
|
+
title?: string;
|
|
981
|
+
status?: StatusType;
|
|
982
|
+
detail?: string;
|
|
983
|
+
};
|
|
984
|
+
}>(`/v2/registries/repositories${QS.query(QS.explode({
|
|
985
|
+
limit,
|
|
986
|
+
offset
|
|
987
|
+
}))}`, {
|
|
988
|
+
...opts
|
|
989
|
+
}));
|
|
990
|
+
}
|
|
991
|
+
export function getRepositoryImages({ repositoryId }: {
|
|
992
|
+
repositoryId: string;
|
|
993
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
994
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
995
|
+
status: 200;
|
|
996
|
+
data: ImageResponse[];
|
|
997
|
+
} | {
|
|
998
|
+
status: 422;
|
|
999
|
+
data: {
|
|
1000
|
+
instance?: string;
|
|
1001
|
+
"type"?: string;
|
|
1002
|
+
parameters?: {
|
|
1003
|
+
[key: string]: object;
|
|
1004
|
+
};
|
|
1005
|
+
title?: string;
|
|
1006
|
+
status?: StatusType;
|
|
1007
|
+
detail?: string;
|
|
1008
|
+
};
|
|
1009
|
+
} | {
|
|
1010
|
+
status: 500;
|
|
1011
|
+
data: {
|
|
1012
|
+
instance?: string;
|
|
1013
|
+
"type"?: string;
|
|
1014
|
+
parameters?: {
|
|
1015
|
+
[key: string]: object;
|
|
1016
|
+
};
|
|
1017
|
+
title?: string;
|
|
1018
|
+
status?: StatusType;
|
|
1019
|
+
detail?: string;
|
|
1020
|
+
};
|
|
1021
|
+
}>(`/v2/registries/repositories/${encodeURIComponent(repositoryId)}/images`, {
|
|
1022
|
+
...opts
|
|
1023
|
+
}));
|
|
1024
|
+
}
|
|
1025
|
+
export function listRuntimes({ projectId }: {
|
|
1026
|
+
projectId: string;
|
|
1027
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1028
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1029
|
+
status: 200;
|
|
1030
|
+
data: GetRuntimesByProjectUlidV2;
|
|
1031
|
+
} | {
|
|
1032
|
+
status: 422;
|
|
1033
|
+
data: {
|
|
1034
|
+
instance?: string;
|
|
1035
|
+
"type"?: string;
|
|
1036
|
+
parameters?: {
|
|
1037
|
+
[key: string]: object;
|
|
1038
|
+
};
|
|
1039
|
+
title?: string;
|
|
1040
|
+
status?: StatusType;
|
|
1041
|
+
detail?: string;
|
|
1042
|
+
};
|
|
1043
|
+
} | {
|
|
1044
|
+
status: 500;
|
|
1045
|
+
data: {
|
|
1046
|
+
instance?: string;
|
|
1047
|
+
"type"?: string;
|
|
1048
|
+
parameters?: {
|
|
1049
|
+
[key: string]: object;
|
|
1050
|
+
};
|
|
1051
|
+
title?: string;
|
|
1052
|
+
status?: StatusType;
|
|
1053
|
+
detail?: string;
|
|
1054
|
+
};
|
|
1055
|
+
}>(`/v2/projects/${encodeURIComponent(projectId)}/runtimes`, {
|
|
1056
|
+
...opts
|
|
1057
|
+
}));
|
|
1058
|
+
}
|
|
1059
|
+
export function listApplications({ projectId, limit, offset }: {
|
|
1060
|
+
projectId: string;
|
|
1061
|
+
limit?: number;
|
|
1062
|
+
offset?: number;
|
|
1063
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1064
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1065
|
+
status: 200;
|
|
1066
|
+
data: PaginatedResponseApplicationDto;
|
|
1067
|
+
} | {
|
|
1068
|
+
status: 422;
|
|
1069
|
+
data: {
|
|
1070
|
+
instance?: string;
|
|
1071
|
+
"type"?: string;
|
|
1072
|
+
parameters?: {
|
|
1073
|
+
[key: string]: object;
|
|
1074
|
+
};
|
|
1075
|
+
title?: string;
|
|
1076
|
+
status?: StatusType;
|
|
1077
|
+
detail?: string;
|
|
1078
|
+
};
|
|
1079
|
+
} | {
|
|
1080
|
+
status: 500;
|
|
1081
|
+
data: {
|
|
1082
|
+
instance?: string;
|
|
1083
|
+
"type"?: string;
|
|
1084
|
+
parameters?: {
|
|
1085
|
+
[key: string]: object;
|
|
1086
|
+
};
|
|
1087
|
+
title?: string;
|
|
1088
|
+
status?: StatusType;
|
|
1089
|
+
detail?: string;
|
|
1090
|
+
};
|
|
1091
|
+
}>(`/v2/projects/${encodeURIComponent(projectId)}/applications${QS.query(QS.explode({
|
|
1092
|
+
limit,
|
|
1093
|
+
offset
|
|
1094
|
+
}))}`, {
|
|
1095
|
+
...opts
|
|
1096
|
+
}));
|
|
1097
|
+
}
|
|
1098
|
+
export function getDeployment({ deploymentId }: {
|
|
1099
|
+
deploymentId: string;
|
|
1100
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1101
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1102
|
+
status: 200;
|
|
1103
|
+
data: CreateDeploymentResponseV2;
|
|
1104
|
+
} | {
|
|
1105
|
+
status: 422;
|
|
1106
|
+
data: {
|
|
1107
|
+
instance?: string;
|
|
1108
|
+
"type"?: string;
|
|
1109
|
+
parameters?: {
|
|
1110
|
+
[key: string]: object;
|
|
1111
|
+
};
|
|
1112
|
+
title?: string;
|
|
1113
|
+
status?: StatusType;
|
|
1114
|
+
detail?: string;
|
|
1115
|
+
};
|
|
1116
|
+
} | {
|
|
1117
|
+
status: 500;
|
|
1118
|
+
data: {
|
|
1119
|
+
instance?: string;
|
|
1120
|
+
"type"?: string;
|
|
1121
|
+
parameters?: {
|
|
1122
|
+
[key: string]: object;
|
|
1123
|
+
};
|
|
1124
|
+
title?: string;
|
|
1125
|
+
status?: StatusType;
|
|
1126
|
+
detail?: string;
|
|
1127
|
+
};
|
|
1128
|
+
}>(`/v2/deployments/${encodeURIComponent(deploymentId)}`, {
|
|
1129
|
+
...opts
|
|
1130
|
+
}));
|
|
1131
|
+
}
|
|
1132
|
+
export function getDeploymentStatus({ deploymentId }: {
|
|
1133
|
+
deploymentId: string;
|
|
1134
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1135
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1136
|
+
status: 200;
|
|
1137
|
+
data: StatusResponse;
|
|
1138
|
+
} | {
|
|
1139
|
+
status: 422;
|
|
1140
|
+
data: {
|
|
1141
|
+
instance?: string;
|
|
1142
|
+
"type"?: string;
|
|
1143
|
+
parameters?: {
|
|
1144
|
+
[key: string]: object;
|
|
1145
|
+
};
|
|
1146
|
+
title?: string;
|
|
1147
|
+
status?: StatusType;
|
|
1148
|
+
detail?: string;
|
|
1149
|
+
};
|
|
1150
|
+
} | {
|
|
1151
|
+
status: 500;
|
|
1152
|
+
data: {
|
|
1153
|
+
instance?: string;
|
|
1154
|
+
"type"?: string;
|
|
1155
|
+
parameters?: {
|
|
1156
|
+
[key: string]: object;
|
|
1157
|
+
};
|
|
1158
|
+
title?: string;
|
|
1159
|
+
status?: StatusType;
|
|
1160
|
+
detail?: string;
|
|
1161
|
+
};
|
|
1162
|
+
}>(`/v2/deployments/${encodeURIComponent(deploymentId)}/status`, {
|
|
1163
|
+
...opts
|
|
1164
|
+
}));
|
|
1165
|
+
}
|
|
1166
|
+
export function getDeploymentLogs({ deploymentId }: {
|
|
1167
|
+
deploymentId: string;
|
|
1168
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1169
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1170
|
+
status: 200;
|
|
1171
|
+
data: GetDeploymentLogsResponse;
|
|
1172
|
+
} | {
|
|
1173
|
+
status: 422;
|
|
1174
|
+
data: {
|
|
1175
|
+
instance?: string;
|
|
1176
|
+
"type"?: string;
|
|
1177
|
+
parameters?: {
|
|
1178
|
+
[key: string]: object;
|
|
1179
|
+
};
|
|
1180
|
+
title?: string;
|
|
1181
|
+
status?: StatusType;
|
|
1182
|
+
detail?: string;
|
|
1183
|
+
};
|
|
1184
|
+
} | {
|
|
1185
|
+
status: 500;
|
|
1186
|
+
data: {
|
|
1187
|
+
instance?: string;
|
|
1188
|
+
"type"?: string;
|
|
1189
|
+
parameters?: {
|
|
1190
|
+
[key: string]: object;
|
|
1191
|
+
};
|
|
1192
|
+
title?: string;
|
|
1193
|
+
status?: StatusType;
|
|
1194
|
+
detail?: string;
|
|
1195
|
+
};
|
|
1196
|
+
}>(`/v2/deployments/${encodeURIComponent(deploymentId)}/logs`, {
|
|
1197
|
+
...opts
|
|
1198
|
+
}));
|
|
1199
|
+
}
|
|
1200
|
+
export function getDeploymentHealth({ deploymentId }: {
|
|
1201
|
+
deploymentId: string;
|
|
1202
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1203
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1204
|
+
status: 200;
|
|
1205
|
+
data: HealthResponse;
|
|
1206
|
+
} | {
|
|
1207
|
+
status: 422;
|
|
1208
|
+
data: {
|
|
1209
|
+
instance?: string;
|
|
1210
|
+
"type"?: string;
|
|
1211
|
+
parameters?: {
|
|
1212
|
+
[key: string]: object;
|
|
1213
|
+
};
|
|
1214
|
+
title?: string;
|
|
1215
|
+
status?: StatusType;
|
|
1216
|
+
detail?: string;
|
|
1217
|
+
};
|
|
1218
|
+
} | {
|
|
1219
|
+
status: 500;
|
|
1220
|
+
data: {
|
|
1221
|
+
instance?: string;
|
|
1222
|
+
"type"?: string;
|
|
1223
|
+
parameters?: {
|
|
1224
|
+
[key: string]: object;
|
|
1225
|
+
};
|
|
1226
|
+
title?: string;
|
|
1227
|
+
status?: StatusType;
|
|
1228
|
+
detail?: string;
|
|
1229
|
+
};
|
|
1230
|
+
}>(`/v2/deployments/${encodeURIComponent(deploymentId)}/health`, {
|
|
1231
|
+
...opts
|
|
1232
|
+
}));
|
|
1233
|
+
}
|
|
1234
|
+
export function getApplication({ applicationId }: {
|
|
1235
|
+
applicationId: string;
|
|
1236
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1237
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1238
|
+
status: 200;
|
|
1239
|
+
data: GetApplicationByUlidResponseV2;
|
|
1240
|
+
} | {
|
|
1241
|
+
status: 422;
|
|
1242
|
+
data: {
|
|
1243
|
+
instance?: string;
|
|
1244
|
+
"type"?: string;
|
|
1245
|
+
parameters?: {
|
|
1246
|
+
[key: string]: object;
|
|
1247
|
+
};
|
|
1248
|
+
title?: string;
|
|
1249
|
+
status?: StatusType;
|
|
1250
|
+
detail?: string;
|
|
1251
|
+
};
|
|
1252
|
+
} | {
|
|
1253
|
+
status: 500;
|
|
1254
|
+
data: {
|
|
1255
|
+
instance?: string;
|
|
1256
|
+
"type"?: string;
|
|
1257
|
+
parameters?: {
|
|
1258
|
+
[key: string]: object;
|
|
1259
|
+
};
|
|
1260
|
+
title?: string;
|
|
1261
|
+
status?: StatusType;
|
|
1262
|
+
detail?: string;
|
|
1263
|
+
};
|
|
1264
|
+
}>(`/v2/applications/${encodeURIComponent(applicationId)}`, {
|
|
1265
|
+
...opts
|
|
1266
|
+
}));
|
|
1267
|
+
}
|
|
1268
|
+
export function getSecrets({ applicationId, runtimeId }: {
|
|
1269
|
+
applicationId: string;
|
|
1270
|
+
runtimeId: string;
|
|
1271
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1272
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1273
|
+
status: 200;
|
|
1274
|
+
data: SecretVar[];
|
|
1275
|
+
} | {
|
|
1276
|
+
status: 422;
|
|
1277
|
+
data: {
|
|
1278
|
+
instance?: string;
|
|
1279
|
+
"type"?: string;
|
|
1280
|
+
parameters?: {
|
|
1281
|
+
[key: string]: object;
|
|
1282
|
+
};
|
|
1283
|
+
title?: string;
|
|
1284
|
+
status?: StatusType;
|
|
1285
|
+
detail?: string;
|
|
1286
|
+
};
|
|
1287
|
+
} | {
|
|
1288
|
+
status: 500;
|
|
1289
|
+
data: {
|
|
1290
|
+
instance?: string;
|
|
1291
|
+
"type"?: string;
|
|
1292
|
+
parameters?: {
|
|
1293
|
+
[key: string]: object;
|
|
1294
|
+
};
|
|
1295
|
+
title?: string;
|
|
1296
|
+
status?: StatusType;
|
|
1297
|
+
detail?: string;
|
|
1298
|
+
};
|
|
1299
|
+
}>(`/v2/applications/${encodeURIComponent(applicationId)}/${encodeURIComponent(runtimeId)}/secrets`, {
|
|
1300
|
+
...opts
|
|
1301
|
+
}));
|
|
1302
|
+
}
|
|
1303
|
+
export function getInstances({ applicationId, runtimeId }: {
|
|
1304
|
+
applicationId: string;
|
|
1305
|
+
runtimeId: string;
|
|
1306
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1307
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1308
|
+
status: 200;
|
|
1309
|
+
data: GetInstanceResponse;
|
|
1310
|
+
} | {
|
|
1311
|
+
status: 422;
|
|
1312
|
+
data: {
|
|
1313
|
+
instance?: string;
|
|
1314
|
+
"type"?: string;
|
|
1315
|
+
parameters?: {
|
|
1316
|
+
[key: string]: object;
|
|
1317
|
+
};
|
|
1318
|
+
title?: string;
|
|
1319
|
+
status?: StatusType;
|
|
1320
|
+
detail?: string;
|
|
1321
|
+
};
|
|
1322
|
+
} | {
|
|
1323
|
+
status: 500;
|
|
1324
|
+
data: {
|
|
1325
|
+
instance?: string;
|
|
1326
|
+
"type"?: string;
|
|
1327
|
+
parameters?: {
|
|
1328
|
+
[key: string]: object;
|
|
1329
|
+
};
|
|
1330
|
+
title?: string;
|
|
1331
|
+
status?: StatusType;
|
|
1332
|
+
detail?: string;
|
|
1333
|
+
};
|
|
1334
|
+
}>(`/v2/applications/${encodeURIComponent(applicationId)}/${encodeURIComponent(runtimeId)}/instances`, {
|
|
1335
|
+
...opts
|
|
1336
|
+
}));
|
|
1337
|
+
}
|
|
1338
|
+
export function getApplicationHistory({ applicationId }: {
|
|
1339
|
+
applicationId: string;
|
|
1340
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1341
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1342
|
+
status: 200;
|
|
1343
|
+
data: ListApplicationHistoryResponse;
|
|
1344
|
+
} | {
|
|
1345
|
+
status: 422;
|
|
1346
|
+
data: {
|
|
1347
|
+
instance?: string;
|
|
1348
|
+
"type"?: string;
|
|
1349
|
+
parameters?: {
|
|
1350
|
+
[key: string]: object;
|
|
1351
|
+
};
|
|
1352
|
+
title?: string;
|
|
1353
|
+
status?: StatusType;
|
|
1354
|
+
detail?: string;
|
|
1355
|
+
};
|
|
1356
|
+
} | {
|
|
1357
|
+
status: 500;
|
|
1358
|
+
data: {
|
|
1359
|
+
instance?: string;
|
|
1360
|
+
"type"?: string;
|
|
1361
|
+
parameters?: {
|
|
1362
|
+
[key: string]: object;
|
|
1363
|
+
};
|
|
1364
|
+
title?: string;
|
|
1365
|
+
status?: StatusType;
|
|
1366
|
+
detail?: string;
|
|
1367
|
+
};
|
|
1368
|
+
}>(`/v2/applications/${encodeURIComponent(applicationId)}/history`, {
|
|
1369
|
+
...opts
|
|
1370
|
+
}));
|
|
1371
|
+
}
|
|
1372
|
+
export function listDeployments({ applicationId }: {
|
|
1373
|
+
applicationId: string;
|
|
1374
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1375
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1376
|
+
status: 200;
|
|
1377
|
+
data: BasicDeploymentResponse[];
|
|
1378
|
+
} | {
|
|
1379
|
+
status: 422;
|
|
1380
|
+
data: {
|
|
1381
|
+
instance?: string;
|
|
1382
|
+
"type"?: string;
|
|
1383
|
+
parameters?: {
|
|
1384
|
+
[key: string]: object;
|
|
1385
|
+
};
|
|
1386
|
+
title?: string;
|
|
1387
|
+
status?: StatusType;
|
|
1388
|
+
detail?: string;
|
|
1389
|
+
};
|
|
1390
|
+
} | {
|
|
1391
|
+
status: 500;
|
|
1392
|
+
data: {
|
|
1393
|
+
instance?: string;
|
|
1394
|
+
"type"?: string;
|
|
1395
|
+
parameters?: {
|
|
1396
|
+
[key: string]: object;
|
|
1397
|
+
};
|
|
1398
|
+
title?: string;
|
|
1399
|
+
status?: StatusType;
|
|
1400
|
+
detail?: string;
|
|
1401
|
+
};
|
|
1402
|
+
}>(`/v2/applications/${encodeURIComponent(applicationId)}/deployments`, {
|
|
1403
|
+
...opts
|
|
1404
|
+
}));
|
|
1405
|
+
}
|
|
1406
|
+
export function getLastDeploymentByRuntime({ applicationId }: {
|
|
1407
|
+
applicationId: string;
|
|
1408
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1409
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1410
|
+
status: 200;
|
|
1411
|
+
data: BasicDeploymentResponse[];
|
|
1412
|
+
} | {
|
|
1413
|
+
status: 422;
|
|
1414
|
+
data: {
|
|
1415
|
+
instance?: string;
|
|
1416
|
+
"type"?: string;
|
|
1417
|
+
parameters?: {
|
|
1418
|
+
[key: string]: object;
|
|
1419
|
+
};
|
|
1420
|
+
title?: string;
|
|
1421
|
+
status?: StatusType;
|
|
1422
|
+
detail?: string;
|
|
1423
|
+
};
|
|
1424
|
+
} | {
|
|
1425
|
+
status: 500;
|
|
1426
|
+
data: {
|
|
1427
|
+
instance?: string;
|
|
1428
|
+
"type"?: string;
|
|
1429
|
+
parameters?: {
|
|
1430
|
+
[key: string]: object;
|
|
1431
|
+
};
|
|
1432
|
+
title?: string;
|
|
1433
|
+
status?: StatusType;
|
|
1434
|
+
detail?: string;
|
|
1435
|
+
};
|
|
1436
|
+
}>(`/v2/applications/${encodeURIComponent(applicationId)}/deployments/last/runtime`, {
|
|
1437
|
+
...opts
|
|
1438
|
+
}));
|
|
1439
|
+
}
|
|
1440
|
+
export function listApplications1({ projectId, limit, offset }: {
|
|
1441
|
+
projectId: string;
|
|
1442
|
+
limit?: number;
|
|
1443
|
+
offset?: number;
|
|
1444
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1445
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1446
|
+
status: 200;
|
|
1447
|
+
data: PaginatedResponseGetApplicationByProjectResponse;
|
|
1448
|
+
} | {
|
|
1449
|
+
status: 422;
|
|
1450
|
+
data: {
|
|
1451
|
+
instance?: string;
|
|
1452
|
+
"type"?: string;
|
|
1453
|
+
parameters?: {
|
|
1454
|
+
[key: string]: object;
|
|
1455
|
+
};
|
|
1456
|
+
title?: string;
|
|
1457
|
+
status?: StatusType;
|
|
1458
|
+
detail?: string;
|
|
1459
|
+
};
|
|
1460
|
+
} | {
|
|
1461
|
+
status: 500;
|
|
1462
|
+
data: {
|
|
1463
|
+
instance?: string;
|
|
1464
|
+
"type"?: string;
|
|
1465
|
+
parameters?: {
|
|
1466
|
+
[key: string]: object;
|
|
1467
|
+
};
|
|
1468
|
+
title?: string;
|
|
1469
|
+
status?: StatusType;
|
|
1470
|
+
detail?: string;
|
|
1471
|
+
};
|
|
1472
|
+
}>(`/v2/applications/project/${encodeURIComponent(projectId)}${QS.query(QS.explode({
|
|
1473
|
+
limit,
|
|
1474
|
+
offset
|
|
1475
|
+
}))}`, {
|
|
1476
|
+
...opts
|
|
1477
|
+
}));
|
|
1478
|
+
}
|
|
1479
|
+
export function getRuntimeByUlid1({ runtimeId }: {
|
|
1480
|
+
runtimeId: string;
|
|
1481
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1482
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1483
|
+
status: 200;
|
|
1484
|
+
data: GetRuntimeByUlidResponse;
|
|
1485
|
+
} | {
|
|
1486
|
+
status: 422;
|
|
1487
|
+
data: {
|
|
1488
|
+
instance?: string;
|
|
1489
|
+
"type"?: string;
|
|
1490
|
+
parameters?: {
|
|
1491
|
+
[key: string]: object;
|
|
1492
|
+
};
|
|
1493
|
+
title?: string;
|
|
1494
|
+
status?: StatusType;
|
|
1495
|
+
detail?: string;
|
|
1496
|
+
};
|
|
1497
|
+
} | {
|
|
1498
|
+
status: 500;
|
|
1499
|
+
data: {
|
|
1500
|
+
instance?: string;
|
|
1501
|
+
"type"?: string;
|
|
1502
|
+
parameters?: {
|
|
1503
|
+
[key: string]: object;
|
|
1504
|
+
};
|
|
1505
|
+
title?: string;
|
|
1506
|
+
status?: StatusType;
|
|
1507
|
+
detail?: string;
|
|
1508
|
+
};
|
|
1509
|
+
}>(`/v1/runtimes/${encodeURIComponent(runtimeId)}`, {
|
|
1510
|
+
...opts
|
|
1511
|
+
}));
|
|
1512
|
+
}
|
|
1513
|
+
export function getRevisions({ applicationId }: {
|
|
1514
|
+
applicationId: string;
|
|
1515
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1516
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1517
|
+
status: 200;
|
|
1518
|
+
data: object;
|
|
1519
|
+
} | {
|
|
1520
|
+
status: 422;
|
|
1521
|
+
data: {
|
|
1522
|
+
instance?: string;
|
|
1523
|
+
"type"?: string;
|
|
1524
|
+
parameters?: {
|
|
1525
|
+
[key: string]: object;
|
|
1526
|
+
};
|
|
1527
|
+
title?: string;
|
|
1528
|
+
status?: StatusType;
|
|
1529
|
+
detail?: string;
|
|
1530
|
+
};
|
|
1531
|
+
} | {
|
|
1532
|
+
status: 500;
|
|
1533
|
+
data: {
|
|
1534
|
+
instance?: string;
|
|
1535
|
+
"type"?: string;
|
|
1536
|
+
parameters?: {
|
|
1537
|
+
[key: string]: object;
|
|
1538
|
+
};
|
|
1539
|
+
title?: string;
|
|
1540
|
+
status?: StatusType;
|
|
1541
|
+
detail?: string;
|
|
1542
|
+
};
|
|
1543
|
+
}>(`/v1/revision/${encodeURIComponent(applicationId)}`, {
|
|
1544
|
+
...opts
|
|
1545
|
+
}));
|
|
1546
|
+
}
|
|
1547
|
+
export function list({ limit, offset }: {
|
|
1548
|
+
limit?: number;
|
|
1549
|
+
offset?: number;
|
|
1550
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1551
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1552
|
+
status: 200;
|
|
1553
|
+
data: ListResponseRegistryDto;
|
|
1554
|
+
} | {
|
|
1555
|
+
status: 422;
|
|
1556
|
+
data: {
|
|
1557
|
+
instance?: string;
|
|
1558
|
+
"type"?: string;
|
|
1559
|
+
parameters?: {
|
|
1560
|
+
[key: string]: object;
|
|
1561
|
+
};
|
|
1562
|
+
title?: string;
|
|
1563
|
+
status?: StatusType;
|
|
1564
|
+
detail?: string;
|
|
1565
|
+
};
|
|
1566
|
+
} | {
|
|
1567
|
+
status: 500;
|
|
1568
|
+
data: {
|
|
1569
|
+
instance?: string;
|
|
1570
|
+
"type"?: string;
|
|
1571
|
+
parameters?: {
|
|
1572
|
+
[key: string]: object;
|
|
1573
|
+
};
|
|
1574
|
+
title?: string;
|
|
1575
|
+
status?: StatusType;
|
|
1576
|
+
detail?: string;
|
|
1577
|
+
};
|
|
1578
|
+
}>(`/v1/registries${QS.query(QS.explode({
|
|
1579
|
+
limit,
|
|
1580
|
+
offset
|
|
1581
|
+
}))}`, {
|
|
1582
|
+
...opts
|
|
1583
|
+
}));
|
|
1584
|
+
}
|
|
1585
|
+
export function listRepositoriesByRegistryId({ limit, offset, id }: {
|
|
1586
|
+
limit?: number;
|
|
1587
|
+
offset?: number;
|
|
1588
|
+
id: string;
|
|
1589
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1590
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1591
|
+
status: 200;
|
|
1592
|
+
data: RepositoryDto[];
|
|
1593
|
+
} | {
|
|
1594
|
+
status: 422;
|
|
1595
|
+
data: {
|
|
1596
|
+
instance?: string;
|
|
1597
|
+
"type"?: string;
|
|
1598
|
+
parameters?: {
|
|
1599
|
+
[key: string]: object;
|
|
1600
|
+
};
|
|
1601
|
+
title?: string;
|
|
1602
|
+
status?: StatusType;
|
|
1603
|
+
detail?: string;
|
|
1604
|
+
};
|
|
1605
|
+
} | {
|
|
1606
|
+
status: 500;
|
|
1607
|
+
data: {
|
|
1608
|
+
instance?: string;
|
|
1609
|
+
"type"?: string;
|
|
1610
|
+
parameters?: {
|
|
1611
|
+
[key: string]: object;
|
|
1612
|
+
};
|
|
1613
|
+
title?: string;
|
|
1614
|
+
status?: StatusType;
|
|
1615
|
+
detail?: string;
|
|
1616
|
+
};
|
|
1617
|
+
}>(`/v1/registries/${encodeURIComponent(id)}/repositories${QS.query(QS.explode({
|
|
1618
|
+
limit,
|
|
1619
|
+
offset
|
|
1620
|
+
}))}`, {
|
|
1621
|
+
...opts
|
|
1622
|
+
}));
|
|
1623
|
+
}
|
|
1624
|
+
export function listRepositoriesByDefaultRegistryId({ limit, offset }: {
|
|
1625
|
+
limit?: number;
|
|
1626
|
+
offset?: number;
|
|
1627
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1628
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1629
|
+
status: 200;
|
|
1630
|
+
data: object;
|
|
1631
|
+
} | {
|
|
1632
|
+
status: 422;
|
|
1633
|
+
data: {
|
|
1634
|
+
instance?: string;
|
|
1635
|
+
"type"?: string;
|
|
1636
|
+
parameters?: {
|
|
1637
|
+
[key: string]: object;
|
|
1638
|
+
};
|
|
1639
|
+
title?: string;
|
|
1640
|
+
status?: StatusType;
|
|
1641
|
+
detail?: string;
|
|
1642
|
+
};
|
|
1643
|
+
} | {
|
|
1644
|
+
status: 500;
|
|
1645
|
+
data: {
|
|
1646
|
+
instance?: string;
|
|
1647
|
+
"type"?: string;
|
|
1648
|
+
parameters?: {
|
|
1649
|
+
[key: string]: object;
|
|
1650
|
+
};
|
|
1651
|
+
title?: string;
|
|
1652
|
+
status?: StatusType;
|
|
1653
|
+
detail?: string;
|
|
1654
|
+
};
|
|
1655
|
+
}>(`/v1/registries/repositories${QS.query(QS.explode({
|
|
1656
|
+
limit,
|
|
1657
|
+
offset
|
|
1658
|
+
}))}`, {
|
|
1659
|
+
...opts
|
|
1660
|
+
}));
|
|
1661
|
+
}
|
|
1662
|
+
export function getImages({ repositoryName }: {
|
|
1663
|
+
repositoryName: string;
|
|
1664
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1665
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1666
|
+
status: 200;
|
|
1667
|
+
data: ImageDto[];
|
|
1668
|
+
} | {
|
|
1669
|
+
status: 422;
|
|
1670
|
+
data: {
|
|
1671
|
+
instance?: string;
|
|
1672
|
+
"type"?: string;
|
|
1673
|
+
parameters?: {
|
|
1674
|
+
[key: string]: object;
|
|
1675
|
+
};
|
|
1676
|
+
title?: string;
|
|
1677
|
+
status?: StatusType;
|
|
1678
|
+
detail?: string;
|
|
1679
|
+
};
|
|
1680
|
+
} | {
|
|
1681
|
+
status: 500;
|
|
1682
|
+
data: {
|
|
1683
|
+
instance?: string;
|
|
1684
|
+
"type"?: string;
|
|
1685
|
+
parameters?: {
|
|
1686
|
+
[key: string]: object;
|
|
1687
|
+
};
|
|
1688
|
+
title?: string;
|
|
1689
|
+
status?: StatusType;
|
|
1690
|
+
detail?: string;
|
|
1691
|
+
};
|
|
1692
|
+
}>(`/v1/registries/repositories/${encodeURIComponent(repositoryName)}/images`, {
|
|
1693
|
+
...opts
|
|
1694
|
+
}));
|
|
1695
|
+
}
|
|
1696
|
+
export function getRepositoryById({ id, registryId }: {
|
|
1697
|
+
id: string;
|
|
1698
|
+
registryId?: string;
|
|
1699
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1700
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1701
|
+
status: 200;
|
|
1702
|
+
data: RepositoryDto;
|
|
1703
|
+
} | {
|
|
1704
|
+
status: 422;
|
|
1705
|
+
data: {
|
|
1706
|
+
instance?: string;
|
|
1707
|
+
"type"?: string;
|
|
1708
|
+
parameters?: {
|
|
1709
|
+
[key: string]: object;
|
|
1710
|
+
};
|
|
1711
|
+
title?: string;
|
|
1712
|
+
status?: StatusType;
|
|
1713
|
+
detail?: string;
|
|
1714
|
+
};
|
|
1715
|
+
} | {
|
|
1716
|
+
status: 500;
|
|
1717
|
+
data: {
|
|
1718
|
+
instance?: string;
|
|
1719
|
+
"type"?: string;
|
|
1720
|
+
parameters?: {
|
|
1721
|
+
[key: string]: object;
|
|
1722
|
+
};
|
|
1723
|
+
title?: string;
|
|
1724
|
+
status?: StatusType;
|
|
1725
|
+
detail?: string;
|
|
1726
|
+
};
|
|
1727
|
+
}>(`/v1/registries/repositories/${encodeURIComponent(id)}${QS.query(QS.explode({
|
|
1728
|
+
registryId
|
|
1729
|
+
}))}`, {
|
|
1730
|
+
...opts
|
|
1731
|
+
}));
|
|
1732
|
+
}
|
|
1733
|
+
export function listRuntimes1({ projectId }: {
|
|
1734
|
+
projectId: string;
|
|
1735
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1736
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1737
|
+
status: 200;
|
|
1738
|
+
data: GetRuntimesByProjectUlid;
|
|
1739
|
+
} | {
|
|
1740
|
+
status: 422;
|
|
1741
|
+
data: {
|
|
1742
|
+
instance?: string;
|
|
1743
|
+
"type"?: string;
|
|
1744
|
+
parameters?: {
|
|
1745
|
+
[key: string]: object;
|
|
1746
|
+
};
|
|
1747
|
+
title?: string;
|
|
1748
|
+
status?: StatusType;
|
|
1749
|
+
detail?: string;
|
|
1750
|
+
};
|
|
1751
|
+
} | {
|
|
1752
|
+
status: 500;
|
|
1753
|
+
data: {
|
|
1754
|
+
instance?: string;
|
|
1755
|
+
"type"?: string;
|
|
1756
|
+
parameters?: {
|
|
1757
|
+
[key: string]: object;
|
|
1758
|
+
};
|
|
1759
|
+
title?: string;
|
|
1760
|
+
status?: StatusType;
|
|
1761
|
+
detail?: string;
|
|
1762
|
+
};
|
|
1763
|
+
}>(`/v1/projects/${encodeURIComponent(projectId)}/runtimes`, {
|
|
1764
|
+
...opts
|
|
1765
|
+
}));
|
|
1766
|
+
}
|
|
1767
|
+
export function listApplications2({ projectId, limit, offset }: {
|
|
1768
|
+
projectId: string;
|
|
1769
|
+
limit?: number;
|
|
1770
|
+
offset?: number;
|
|
1771
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1772
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1773
|
+
status: 200;
|
|
1774
|
+
data: PaginatedResponseApplicationDto;
|
|
1775
|
+
} | {
|
|
1776
|
+
status: 422;
|
|
1777
|
+
data: {
|
|
1778
|
+
instance?: string;
|
|
1779
|
+
"type"?: string;
|
|
1780
|
+
parameters?: {
|
|
1781
|
+
[key: string]: object;
|
|
1782
|
+
};
|
|
1783
|
+
title?: string;
|
|
1784
|
+
status?: StatusType;
|
|
1785
|
+
detail?: string;
|
|
1786
|
+
};
|
|
1787
|
+
} | {
|
|
1788
|
+
status: 500;
|
|
1789
|
+
data: {
|
|
1790
|
+
instance?: string;
|
|
1791
|
+
"type"?: string;
|
|
1792
|
+
parameters?: {
|
|
1793
|
+
[key: string]: object;
|
|
1794
|
+
};
|
|
1795
|
+
title?: string;
|
|
1796
|
+
status?: StatusType;
|
|
1797
|
+
detail?: string;
|
|
1798
|
+
};
|
|
1799
|
+
}>(`/v1/projects/${encodeURIComponent(projectId)}/applications${QS.query(QS.explode({
|
|
1800
|
+
limit,
|
|
1801
|
+
offset
|
|
1802
|
+
}))}`, {
|
|
1803
|
+
...opts
|
|
1804
|
+
}));
|
|
1805
|
+
}
|
|
1806
|
+
export function getDeployment1({ deploymentId }: {
|
|
1807
|
+
deploymentId: string;
|
|
1808
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1809
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1810
|
+
status: 200;
|
|
1811
|
+
data: object;
|
|
1812
|
+
} | {
|
|
1813
|
+
status: 422;
|
|
1814
|
+
data: {
|
|
1815
|
+
instance?: string;
|
|
1816
|
+
"type"?: string;
|
|
1817
|
+
parameters?: {
|
|
1818
|
+
[key: string]: object;
|
|
1819
|
+
};
|
|
1820
|
+
title?: string;
|
|
1821
|
+
status?: StatusType;
|
|
1822
|
+
detail?: string;
|
|
1823
|
+
};
|
|
1824
|
+
} | {
|
|
1825
|
+
status: 500;
|
|
1826
|
+
data: {
|
|
1827
|
+
instance?: string;
|
|
1828
|
+
"type"?: string;
|
|
1829
|
+
parameters?: {
|
|
1830
|
+
[key: string]: object;
|
|
1831
|
+
};
|
|
1832
|
+
title?: string;
|
|
1833
|
+
status?: StatusType;
|
|
1834
|
+
detail?: string;
|
|
1835
|
+
};
|
|
1836
|
+
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}`, {
|
|
1837
|
+
...opts
|
|
1838
|
+
}));
|
|
1839
|
+
}
|
|
1840
|
+
export function getDeploymentStatus1({ deploymentId }: {
|
|
1841
|
+
deploymentId: string;
|
|
1842
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1843
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1844
|
+
status: 200;
|
|
1845
|
+
data: object;
|
|
1846
|
+
} | {
|
|
1847
|
+
status: 422;
|
|
1848
|
+
data: {
|
|
1849
|
+
instance?: string;
|
|
1850
|
+
"type"?: string;
|
|
1851
|
+
parameters?: {
|
|
1852
|
+
[key: string]: object;
|
|
1853
|
+
};
|
|
1854
|
+
title?: string;
|
|
1855
|
+
status?: StatusType;
|
|
1856
|
+
detail?: string;
|
|
1857
|
+
};
|
|
1858
|
+
} | {
|
|
1859
|
+
status: 500;
|
|
1860
|
+
data: {
|
|
1861
|
+
instance?: string;
|
|
1862
|
+
"type"?: string;
|
|
1863
|
+
parameters?: {
|
|
1864
|
+
[key: string]: object;
|
|
1865
|
+
};
|
|
1866
|
+
title?: string;
|
|
1867
|
+
status?: StatusType;
|
|
1868
|
+
detail?: string;
|
|
1869
|
+
};
|
|
1870
|
+
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/status`, {
|
|
1871
|
+
...opts
|
|
1872
|
+
}));
|
|
1873
|
+
}
|
|
1874
|
+
export function getDeploymentLogs1({ deploymentId }: {
|
|
1875
|
+
deploymentId: string;
|
|
1876
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1877
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1878
|
+
status: 200;
|
|
1879
|
+
data: GetDeploymentLogsResponse;
|
|
1880
|
+
} | {
|
|
1881
|
+
status: 422;
|
|
1882
|
+
data: {
|
|
1883
|
+
instance?: string;
|
|
1884
|
+
"type"?: string;
|
|
1885
|
+
parameters?: {
|
|
1886
|
+
[key: string]: object;
|
|
1887
|
+
};
|
|
1888
|
+
title?: string;
|
|
1889
|
+
status?: StatusType;
|
|
1890
|
+
detail?: string;
|
|
1891
|
+
};
|
|
1892
|
+
} | {
|
|
1893
|
+
status: 500;
|
|
1894
|
+
data: {
|
|
1895
|
+
instance?: string;
|
|
1896
|
+
"type"?: string;
|
|
1897
|
+
parameters?: {
|
|
1898
|
+
[key: string]: object;
|
|
1899
|
+
};
|
|
1900
|
+
title?: string;
|
|
1901
|
+
status?: StatusType;
|
|
1902
|
+
detail?: string;
|
|
1903
|
+
};
|
|
1904
|
+
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/logs`, {
|
|
1905
|
+
...opts
|
|
1906
|
+
}));
|
|
1907
|
+
}
|
|
1908
|
+
export function getDeploymentHealth1({ deploymentId }: {
|
|
1909
|
+
deploymentId: string;
|
|
1910
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1911
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1912
|
+
status: 200;
|
|
1913
|
+
data: object;
|
|
1914
|
+
} | {
|
|
1915
|
+
status: 422;
|
|
1916
|
+
data: {
|
|
1917
|
+
instance?: string;
|
|
1918
|
+
"type"?: string;
|
|
1919
|
+
parameters?: {
|
|
1920
|
+
[key: string]: object;
|
|
1921
|
+
};
|
|
1922
|
+
title?: string;
|
|
1923
|
+
status?: StatusType;
|
|
1924
|
+
detail?: string;
|
|
1925
|
+
};
|
|
1926
|
+
} | {
|
|
1927
|
+
status: 500;
|
|
1928
|
+
data: {
|
|
1929
|
+
instance?: string;
|
|
1930
|
+
"type"?: string;
|
|
1931
|
+
parameters?: {
|
|
1932
|
+
[key: string]: object;
|
|
1933
|
+
};
|
|
1934
|
+
title?: string;
|
|
1935
|
+
status?: StatusType;
|
|
1936
|
+
detail?: string;
|
|
1937
|
+
};
|
|
1938
|
+
}>(`/v1/deployments/${encodeURIComponent(deploymentId)}/health`, {
|
|
1939
|
+
...opts
|
|
1940
|
+
}));
|
|
1941
|
+
}
|
|
1942
|
+
export function getDeploymentsId({ applicationId }: {
|
|
1943
|
+
applicationId: string;
|
|
1944
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1945
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1946
|
+
status: 200;
|
|
1947
|
+
data: object;
|
|
1948
|
+
} | {
|
|
1949
|
+
status: 422;
|
|
1950
|
+
data: {
|
|
1951
|
+
instance?: string;
|
|
1952
|
+
"type"?: string;
|
|
1953
|
+
parameters?: {
|
|
1954
|
+
[key: string]: object;
|
|
1955
|
+
};
|
|
1956
|
+
title?: string;
|
|
1957
|
+
status?: StatusType;
|
|
1958
|
+
detail?: string;
|
|
1959
|
+
};
|
|
1960
|
+
} | {
|
|
1961
|
+
status: 500;
|
|
1962
|
+
data: {
|
|
1963
|
+
instance?: string;
|
|
1964
|
+
"type"?: string;
|
|
1965
|
+
parameters?: {
|
|
1966
|
+
[key: string]: object;
|
|
1967
|
+
};
|
|
1968
|
+
title?: string;
|
|
1969
|
+
status?: StatusType;
|
|
1970
|
+
detail?: string;
|
|
1971
|
+
};
|
|
1972
|
+
}>(`/v1/deployments/applications/${encodeURIComponent(applicationId)}`, {
|
|
1973
|
+
...opts
|
|
1974
|
+
}));
|
|
1975
|
+
}
|
|
1976
|
+
export function getApplication1({ applicationId }: {
|
|
1977
|
+
applicationId: string;
|
|
1978
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1979
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1980
|
+
status: 200;
|
|
1981
|
+
data: GetApplicationByUlidResponse;
|
|
1982
|
+
} | {
|
|
1983
|
+
status: 422;
|
|
1984
|
+
data: {
|
|
1985
|
+
instance?: string;
|
|
1986
|
+
"type"?: string;
|
|
1987
|
+
parameters?: {
|
|
1988
|
+
[key: string]: object;
|
|
1989
|
+
};
|
|
1990
|
+
title?: string;
|
|
1991
|
+
status?: StatusType;
|
|
1992
|
+
detail?: string;
|
|
1993
|
+
};
|
|
1994
|
+
} | {
|
|
1995
|
+
status: 500;
|
|
1996
|
+
data: {
|
|
1997
|
+
instance?: string;
|
|
1998
|
+
"type"?: string;
|
|
1999
|
+
parameters?: {
|
|
2000
|
+
[key: string]: object;
|
|
2001
|
+
};
|
|
2002
|
+
title?: string;
|
|
2003
|
+
status?: StatusType;
|
|
2004
|
+
detail?: string;
|
|
2005
|
+
};
|
|
2006
|
+
}>(`/v1/applications/${encodeURIComponent(applicationId)}`, {
|
|
2007
|
+
...opts
|
|
2008
|
+
}));
|
|
2009
|
+
}
|
|
2010
|
+
export function deleteDeployment({ id }: {
|
|
2011
|
+
id: string;
|
|
2012
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2013
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2014
|
+
status: 200;
|
|
2015
|
+
} | {
|
|
2016
|
+
status: 422;
|
|
2017
|
+
data: {
|
|
2018
|
+
instance?: string;
|
|
2019
|
+
"type"?: string;
|
|
2020
|
+
parameters?: {
|
|
2021
|
+
[key: string]: object;
|
|
2022
|
+
};
|
|
2023
|
+
title?: string;
|
|
2024
|
+
status?: StatusType;
|
|
2025
|
+
detail?: string;
|
|
2026
|
+
};
|
|
2027
|
+
} | {
|
|
2028
|
+
status: 500;
|
|
2029
|
+
data: {
|
|
2030
|
+
instance?: string;
|
|
2031
|
+
"type"?: string;
|
|
2032
|
+
parameters?: {
|
|
2033
|
+
[key: string]: object;
|
|
2034
|
+
};
|
|
2035
|
+
title?: string;
|
|
2036
|
+
status?: StatusType;
|
|
2037
|
+
detail?: string;
|
|
2038
|
+
};
|
|
2039
|
+
}>(`/v1/deployments/${encodeURIComponent(id)}`, {
|
|
2040
|
+
...opts,
|
|
2041
|
+
method: "DELETE"
|
|
2042
|
+
}));
|
|
2043
|
+
}
|