@mittwald/api-client 4.127.0 → 4.128.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/generated/v2/client-react.js +25 -0
- package/dist/esm/generated/v2/client.js +49 -0
- package/dist/esm/generated/v2/descriptors.js +138 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +151 -0
- package/dist/types/generated/v2/client.d.ts +1670 -0
- package/dist/types/generated/v2/descriptors.d.ts +46 -0
- package/dist/types/generated/v2/types.d.ts +1775 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +2 -2
|
@@ -49,6 +49,28 @@ const buildBackupApi = (baseClient) => ({
|
|
|
49
49
|
/** Get a ProjectBackup. */
|
|
50
50
|
getProjectBackup: new ApiCallAsyncResourceFactory(descriptors.backupGetProjectBackup, baseClient.backup.getProjectBackup).getApiResource,
|
|
51
51
|
});
|
|
52
|
+
const buildContainerApi = (baseClient) => ({
|
|
53
|
+
/** List Registries belonging to a Project. */
|
|
54
|
+
listRegistries: new ApiCallAsyncResourceFactory(descriptors.containerListRegistries, baseClient.container.listRegistries).getApiResource,
|
|
55
|
+
/** Get a Stack. */
|
|
56
|
+
getStack: new ApiCallAsyncResourceFactory(descriptors.containerGetStack, baseClient.container.getStack).getApiResource,
|
|
57
|
+
/** Get a Registry. */
|
|
58
|
+
getRegistry: new ApiCallAsyncResourceFactory(descriptors.containerGetRegistry, baseClient.container.getRegistry).getApiResource,
|
|
59
|
+
/** Get a Volume belonging to a Stack. */
|
|
60
|
+
getVolume: new ApiCallAsyncResourceFactory(descriptors.containerGetVolume, baseClient.container.getVolume).getApiResource,
|
|
61
|
+
/** Get a ContainerImageConfig. */
|
|
62
|
+
getContainerImageConfig: new ApiCallAsyncResourceFactory(descriptors.containerGetContainerImageConfig, baseClient.container.getContainerImageConfig).getApiResource,
|
|
63
|
+
/** Get logs belonging to a Service. */
|
|
64
|
+
getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
|
|
65
|
+
/** Get a Service belonging to a Stack. */
|
|
66
|
+
getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
|
|
67
|
+
/** List Services belonging to a Project. */
|
|
68
|
+
listServices: new ApiCallAsyncResourceFactory(descriptors.containerListServices, baseClient.container.listServices).getApiResource,
|
|
69
|
+
/** List Stacks belonging to a Project. */
|
|
70
|
+
listStacks: new ApiCallAsyncResourceFactory(descriptors.containerListStacks, baseClient.container.listStacks).getApiResource,
|
|
71
|
+
/** List Volumes belonging to a Project. */
|
|
72
|
+
listVolumes: new ApiCallAsyncResourceFactory(descriptors.containerListVolumes, baseClient.container.listVolumes).getApiResource,
|
|
73
|
+
});
|
|
52
74
|
const buildContractApi = (baseClient) => ({
|
|
53
75
|
/** Return the BaseItem of the Contract with the given ID. */
|
|
54
76
|
getBaseItemOfContract: new ApiCallAsyncResourceFactory(descriptors.contractGetBaseItemOfContract, baseClient.contract.getBaseItemOfContract).getApiResource,
|
|
@@ -346,6 +368,8 @@ export class MittwaldAPIV2ClientReact {
|
|
|
346
368
|
article;
|
|
347
369
|
/** The backup API allows you to manage your project backups. */
|
|
348
370
|
backup;
|
|
371
|
+
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
372
|
+
container;
|
|
349
373
|
/** The contract API allows you to manage your contracts and orders */
|
|
350
374
|
contract;
|
|
351
375
|
/** The conversation API allows you to manage your support conversations. */
|
|
@@ -380,6 +404,7 @@ export class MittwaldAPIV2ClientReact {
|
|
|
380
404
|
this.app = buildAppApi(baseClient);
|
|
381
405
|
this.article = buildArticleApi(baseClient);
|
|
382
406
|
this.backup = buildBackupApi(baseClient);
|
|
407
|
+
this.container = buildContainerApi(baseClient);
|
|
383
408
|
this.contract = buildContractApi(baseClient);
|
|
384
409
|
this.conversation = buildConversationApi(baseClient);
|
|
385
410
|
this.cronjob = buildCronjobApi(baseClient);
|
|
@@ -89,6 +89,55 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
89
89
|
/** Change the description of a ProjectBackup. */
|
|
90
90
|
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
91
91
|
};
|
|
92
|
+
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
93
|
+
container = {
|
|
94
|
+
/** List Registries belonging to a Project. */
|
|
95
|
+
listRegistries: this.requestFunctionFactory(descriptors.containerListRegistries),
|
|
96
|
+
/** Create a Registry. */
|
|
97
|
+
createRegistry: this.requestFunctionFactory(descriptors.containerCreateRegistry),
|
|
98
|
+
/** Get a Stack. */
|
|
99
|
+
getStack: this.requestFunctionFactory(descriptors.containerGetStack),
|
|
100
|
+
/** Declaratively create, update or delete Services or Volumes belonging to a Stack. */
|
|
101
|
+
declareStack: this.requestFunctionFactory(descriptors.containerDeclareStack),
|
|
102
|
+
/** Create, update or delete Services or Volumes belonging to a Stack. */
|
|
103
|
+
updateStack: this.requestFunctionFactory(descriptors.containerUpdateStack),
|
|
104
|
+
/** Get a Registry. */
|
|
105
|
+
getRegistry: this.requestFunctionFactory(descriptors.containerGetRegistry),
|
|
106
|
+
/** Delete a Registry. */
|
|
107
|
+
deleteRegistry: this.requestFunctionFactory(descriptors.containerDeleteRegistry),
|
|
108
|
+
/** Update a Registry. */
|
|
109
|
+
updateRegistry: this.requestFunctionFactory(descriptors.containerUpdateRegistry),
|
|
110
|
+
/** Get a Volume belonging to a Stack. */
|
|
111
|
+
getVolume: this.requestFunctionFactory(descriptors.containerGetVolume),
|
|
112
|
+
/** Delete a Volume belonging to a Stack. */
|
|
113
|
+
deleteVolume: this.requestFunctionFactory(descriptors.containerDeleteVolume),
|
|
114
|
+
/** Get a ContainerImageConfig. */
|
|
115
|
+
getContainerImageConfig: this.requestFunctionFactory(descriptors.containerGetContainerImageConfig),
|
|
116
|
+
/** Get logs belonging to a Service. */
|
|
117
|
+
getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
|
|
118
|
+
/** Get a Service belonging to a Stack. */
|
|
119
|
+
getService: this.requestFunctionFactory(descriptors.containerGetService),
|
|
120
|
+
/** List Services belonging to a Project. */
|
|
121
|
+
listServices: this.requestFunctionFactory(descriptors.containerListServices),
|
|
122
|
+
/** List Stacks belonging to a Project. */
|
|
123
|
+
listStacks: this.requestFunctionFactory(descriptors.containerListStacks),
|
|
124
|
+
/** List Volumes belonging to a Project. */
|
|
125
|
+
listVolumes: this.requestFunctionFactory(descriptors.containerListVolumes),
|
|
126
|
+
/** Pulls the latest version of the Service's image and recreates the Service. */
|
|
127
|
+
pullImageForService: this.requestFunctionFactory(descriptors.containerPullImageForService),
|
|
128
|
+
/** Recreate a Service. */
|
|
129
|
+
recreateService: this.requestFunctionFactory(descriptors.containerRecreateService),
|
|
130
|
+
/** Restart a started Service. */
|
|
131
|
+
restartService: this.requestFunctionFactory(descriptors.containerRestartService),
|
|
132
|
+
/** Start a stopped Service. */
|
|
133
|
+
startService: this.requestFunctionFactory(descriptors.containerStartService),
|
|
134
|
+
/** Stop a started Service. */
|
|
135
|
+
stopService: this.requestFunctionFactory(descriptors.containerStopService),
|
|
136
|
+
/** Validate a Registries' URI. */
|
|
137
|
+
validateContainerRegistryUri: this.requestFunctionFactory(descriptors.containerValidateContainerRegistryUri),
|
|
138
|
+
/** Validate a Registries' credentials. */
|
|
139
|
+
validateRegistryCredentials: this.requestFunctionFactory(descriptors.containerValidateRegistryCredentials),
|
|
140
|
+
};
|
|
92
141
|
/** The contract API allows you to manage your contracts and orders */
|
|
93
142
|
contract = {
|
|
94
143
|
/** Schedule the Termination of a ContractItem. */
|
|
@@ -226,6 +226,144 @@ export const backupUpdateProjectBackupDescription = {
|
|
|
226
226
|
method: "PATCH",
|
|
227
227
|
operationId: "backup-update-project-backup-description",
|
|
228
228
|
};
|
|
229
|
+
/** List Registries belonging to a Project. */
|
|
230
|
+
export const containerListRegistries = {
|
|
231
|
+
path: "/v2/projects/{projectId}/registries",
|
|
232
|
+
method: "GET",
|
|
233
|
+
operationId: "container-list-registries",
|
|
234
|
+
};
|
|
235
|
+
/** Create a Registry. */
|
|
236
|
+
export const containerCreateRegistry = {
|
|
237
|
+
path: "/v2/projects/{projectId}/registries",
|
|
238
|
+
method: "POST",
|
|
239
|
+
operationId: "container-create-registry",
|
|
240
|
+
};
|
|
241
|
+
/** Get a Stack. */
|
|
242
|
+
export const containerGetStack = {
|
|
243
|
+
path: "/v2/stacks/{stackId}",
|
|
244
|
+
method: "GET",
|
|
245
|
+
operationId: "container-get-stack",
|
|
246
|
+
};
|
|
247
|
+
/** Declaratively create, update or delete Services or Volumes belonging to a Stack. */
|
|
248
|
+
export const containerDeclareStack = {
|
|
249
|
+
path: "/v2/stacks/{stackId}",
|
|
250
|
+
method: "PUT",
|
|
251
|
+
operationId: "container-declare-stack",
|
|
252
|
+
};
|
|
253
|
+
/** Create, update or delete Services or Volumes belonging to a Stack. */
|
|
254
|
+
export const containerUpdateStack = {
|
|
255
|
+
path: "/v2/stacks/{stackId}",
|
|
256
|
+
method: "PATCH",
|
|
257
|
+
operationId: "container-update-stack",
|
|
258
|
+
};
|
|
259
|
+
/** Get a Registry. */
|
|
260
|
+
export const containerGetRegistry = {
|
|
261
|
+
path: "/v2/registries/{registryId}",
|
|
262
|
+
method: "GET",
|
|
263
|
+
operationId: "container-get-registry",
|
|
264
|
+
};
|
|
265
|
+
/** Delete a Registry. */
|
|
266
|
+
export const containerDeleteRegistry = {
|
|
267
|
+
path: "/v2/registries/{registryId}",
|
|
268
|
+
method: "DELETE",
|
|
269
|
+
operationId: "container-delete-registry",
|
|
270
|
+
};
|
|
271
|
+
/** Update a Registry. */
|
|
272
|
+
export const containerUpdateRegistry = {
|
|
273
|
+
path: "/v2/registries/{registryId}",
|
|
274
|
+
method: "PATCH",
|
|
275
|
+
operationId: "container-update-registry",
|
|
276
|
+
};
|
|
277
|
+
/** Get a Volume belonging to a Stack. */
|
|
278
|
+
export const containerGetVolume = {
|
|
279
|
+
path: "/v2/stacks/{stackId}/volumes/{volumeId}",
|
|
280
|
+
method: "GET",
|
|
281
|
+
operationId: "container-get-volume",
|
|
282
|
+
};
|
|
283
|
+
/** Delete a Volume belonging to a Stack. */
|
|
284
|
+
export const containerDeleteVolume = {
|
|
285
|
+
path: "/v2/stacks/{stackId}/volumes/{volumeId}",
|
|
286
|
+
method: "DELETE",
|
|
287
|
+
operationId: "container-delete-volume",
|
|
288
|
+
};
|
|
289
|
+
/** Get a ContainerImageConfig. */
|
|
290
|
+
export const containerGetContainerImageConfig = {
|
|
291
|
+
path: "/v2/container-image-config",
|
|
292
|
+
method: "GET",
|
|
293
|
+
operationId: "container-get-container-image-config",
|
|
294
|
+
};
|
|
295
|
+
/** Get logs belonging to a Service. */
|
|
296
|
+
export const containerGetServiceLogs = {
|
|
297
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/logs",
|
|
298
|
+
method: "GET",
|
|
299
|
+
operationId: "container-get-service-logs",
|
|
300
|
+
};
|
|
301
|
+
/** Get a Service belonging to a Stack. */
|
|
302
|
+
export const containerGetService = {
|
|
303
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}",
|
|
304
|
+
method: "GET",
|
|
305
|
+
operationId: "container-get-service",
|
|
306
|
+
};
|
|
307
|
+
/** List Services belonging to a Project. */
|
|
308
|
+
export const containerListServices = {
|
|
309
|
+
path: "/v2/projects/{projectId}/services",
|
|
310
|
+
method: "GET",
|
|
311
|
+
operationId: "container-list-services",
|
|
312
|
+
};
|
|
313
|
+
/** List Stacks belonging to a Project. */
|
|
314
|
+
export const containerListStacks = {
|
|
315
|
+
path: "/v2/projects/{projectId}/stacks",
|
|
316
|
+
method: "GET",
|
|
317
|
+
operationId: "container-list-stacks",
|
|
318
|
+
};
|
|
319
|
+
/** List Volumes belonging to a Project. */
|
|
320
|
+
export const containerListVolumes = {
|
|
321
|
+
path: "/v2/projects/{projectId}/volumes",
|
|
322
|
+
method: "GET",
|
|
323
|
+
operationId: "container-list-volumes",
|
|
324
|
+
};
|
|
325
|
+
/** Pulls the latest version of the Service's image and recreates the Service. */
|
|
326
|
+
export const containerPullImageForService = {
|
|
327
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/pull",
|
|
328
|
+
method: "POST",
|
|
329
|
+
operationId: "container-pull-image-for-service",
|
|
330
|
+
};
|
|
331
|
+
/** Recreate a Service. */
|
|
332
|
+
export const containerRecreateService = {
|
|
333
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/recreate",
|
|
334
|
+
method: "POST",
|
|
335
|
+
operationId: "container-recreate-service",
|
|
336
|
+
};
|
|
337
|
+
/** Restart a started Service. */
|
|
338
|
+
export const containerRestartService = {
|
|
339
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/restart",
|
|
340
|
+
method: "POST",
|
|
341
|
+
operationId: "container-restart-service",
|
|
342
|
+
};
|
|
343
|
+
/** Start a stopped Service. */
|
|
344
|
+
export const containerStartService = {
|
|
345
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/start",
|
|
346
|
+
method: "POST",
|
|
347
|
+
operationId: "container-start-service",
|
|
348
|
+
};
|
|
349
|
+
/** Stop a started Service. */
|
|
350
|
+
export const containerStopService = {
|
|
351
|
+
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/stop",
|
|
352
|
+
method: "POST",
|
|
353
|
+
operationId: "container-stop-service",
|
|
354
|
+
};
|
|
355
|
+
/** Validate a Registries' URI. */
|
|
356
|
+
export const containerValidateContainerRegistryUri = {
|
|
357
|
+
path: "/v2/actions/validate-container-registry-uri",
|
|
358
|
+
method: "POST",
|
|
359
|
+
operationId: "container-validate-container-registry-uri",
|
|
360
|
+
};
|
|
361
|
+
/** Validate a Registries' credentials. */
|
|
362
|
+
export const containerValidateRegistryCredentials = {
|
|
363
|
+
path: "/v2/registries/{registryId}/actions/validate-credentials",
|
|
364
|
+
method: "POST",
|
|
365
|
+
operationId: "container-validate-registry-credentials",
|
|
366
|
+
};
|
|
229
367
|
/** Schedule the Termination of a ContractItem. */
|
|
230
368
|
export const contractTerminateContractItem = {
|
|
231
369
|
path: "/v2/contracts/{contractId}/items/{contractItemId}/termination",
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const MittwaldAPIClientVersion = '4.
|
|
1
|
+
export const MittwaldAPIClientVersion = '4.127.0';
|
|
@@ -340,6 +340,155 @@ declare const buildBackupApi: (baseClient: MittwaldAPIV2Client) => {
|
|
|
340
340
|
status: string;
|
|
341
341
|
}>;
|
|
342
342
|
};
|
|
343
|
+
declare const buildContainerApi: (baseClient: MittwaldAPIV2Client) => {
|
|
344
|
+
/** List Registries belonging to a Project. */
|
|
345
|
+
listRegistries: (conf: {
|
|
346
|
+
projectId: string;
|
|
347
|
+
headers?: {
|
|
348
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
349
|
+
"x-access-token"?: string | undefined;
|
|
350
|
+
} | undefined;
|
|
351
|
+
queryParameters?: {
|
|
352
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
353
|
+
hasCredentials?: boolean | undefined;
|
|
354
|
+
limit?: number | undefined;
|
|
355
|
+
skip?: number | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerRegistry[]>;
|
|
358
|
+
/** Get a Stack. */
|
|
359
|
+
getStack: (conf: {
|
|
360
|
+
stackId: string;
|
|
361
|
+
headers?: {
|
|
362
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
363
|
+
"x-access-token"?: string | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
366
|
+
description: string;
|
|
367
|
+
disabled: boolean;
|
|
368
|
+
id: string;
|
|
369
|
+
prefix: string;
|
|
370
|
+
projectId: string;
|
|
371
|
+
services?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceResponse[] | undefined;
|
|
372
|
+
volumes?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[] | undefined;
|
|
373
|
+
}>;
|
|
374
|
+
/** Get a Registry. */
|
|
375
|
+
getRegistry: (conf: {
|
|
376
|
+
registryId: string;
|
|
377
|
+
headers?: {
|
|
378
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
379
|
+
"x-access-token"?: string | undefined;
|
|
380
|
+
} | undefined;
|
|
381
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
382
|
+
credentials?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerRegistryCredentials | undefined;
|
|
383
|
+
description: string;
|
|
384
|
+
id: string;
|
|
385
|
+
projectId: string;
|
|
386
|
+
uri: string;
|
|
387
|
+
}>;
|
|
388
|
+
/** Get a Volume belonging to a Stack. */
|
|
389
|
+
getVolume: (conf: {
|
|
390
|
+
stackId: string;
|
|
391
|
+
volumeId: string;
|
|
392
|
+
headers?: {
|
|
393
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
394
|
+
"x-access-token"?: string | undefined;
|
|
395
|
+
} | undefined;
|
|
396
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
397
|
+
id: string;
|
|
398
|
+
name: string;
|
|
399
|
+
orphaned: boolean;
|
|
400
|
+
stackId: string;
|
|
401
|
+
storageUsageInBytes: number;
|
|
402
|
+
storageUsageInBytesSetAt: string;
|
|
403
|
+
}>;
|
|
404
|
+
/** Get a ContainerImageConfig. */
|
|
405
|
+
getContainerImageConfig: (conf: {
|
|
406
|
+
queryParameters: {
|
|
407
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
408
|
+
imageReference: string;
|
|
409
|
+
useCredentialsForProjectId?: string | undefined;
|
|
410
|
+
useCredentialsForRegistryId?: string | undefined;
|
|
411
|
+
generateAiData?: boolean | undefined;
|
|
412
|
+
};
|
|
413
|
+
headers?: {
|
|
414
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
415
|
+
"x-access-token"?: string | undefined;
|
|
416
|
+
} | undefined;
|
|
417
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
418
|
+
command?: string[] | undefined;
|
|
419
|
+
entrypoint?: string[] | undefined;
|
|
420
|
+
env?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerContainerImageConfigEnv[] | undefined;
|
|
421
|
+
exposedPorts?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerContainerImageConfigExposedPort[] | undefined;
|
|
422
|
+
hasAiGeneratedData: boolean;
|
|
423
|
+
isAiAvailable: boolean;
|
|
424
|
+
isUserRoot: boolean;
|
|
425
|
+
overwritingUser?: number | undefined;
|
|
426
|
+
user: string;
|
|
427
|
+
userId: number;
|
|
428
|
+
volumes?: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerContainerImageConfigVolume[] | undefined;
|
|
429
|
+
}>;
|
|
430
|
+
/** Get logs belonging to a Service. */
|
|
431
|
+
getServiceLogs: (conf: {
|
|
432
|
+
stackId: string;
|
|
433
|
+
serviceId: string;
|
|
434
|
+
headers?: {
|
|
435
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
436
|
+
"x-access-token"?: string | undefined;
|
|
437
|
+
} | undefined;
|
|
438
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<string>;
|
|
439
|
+
/** Get a Service belonging to a Stack. */
|
|
440
|
+
getService: (conf: {
|
|
441
|
+
stackId: string;
|
|
442
|
+
serviceId: string;
|
|
443
|
+
headers?: {
|
|
444
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
445
|
+
"x-access-token"?: string | undefined;
|
|
446
|
+
} | undefined;
|
|
447
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<{
|
|
448
|
+
deployedState: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceState;
|
|
449
|
+
description: string;
|
|
450
|
+
id: string;
|
|
451
|
+
message?: string | undefined;
|
|
452
|
+
pendingState: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceState;
|
|
453
|
+
projectId: string;
|
|
454
|
+
serviceName: string;
|
|
455
|
+
shortId: string;
|
|
456
|
+
stackId: string;
|
|
457
|
+
status: import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceStatus;
|
|
458
|
+
}>;
|
|
459
|
+
/** List Services belonging to a Project. */
|
|
460
|
+
listServices: (conf: {
|
|
461
|
+
projectId: string;
|
|
462
|
+
headers?: {
|
|
463
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
464
|
+
"x-access-token"?: string | undefined;
|
|
465
|
+
} | undefined;
|
|
466
|
+
queryParameters?: {
|
|
467
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
468
|
+
stackId?: string | undefined;
|
|
469
|
+
} | undefined;
|
|
470
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerServiceResponse[]>;
|
|
471
|
+
/** List Stacks belonging to a Project. */
|
|
472
|
+
listStacks: (conf: {
|
|
473
|
+
projectId: string;
|
|
474
|
+
headers?: {
|
|
475
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
476
|
+
"x-access-token"?: string | undefined;
|
|
477
|
+
} | undefined;
|
|
478
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerStackResponse[]>;
|
|
479
|
+
/** List Volumes belonging to a Project. */
|
|
480
|
+
listVolumes: (conf: {
|
|
481
|
+
projectId: string;
|
|
482
|
+
headers?: {
|
|
483
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
484
|
+
"x-access-token"?: string | undefined;
|
|
485
|
+
} | undefined;
|
|
486
|
+
queryParameters?: {
|
|
487
|
+
[x: string]: (string | number | boolean) | (string | number | boolean)[] | undefined;
|
|
488
|
+
stackId?: string | undefined;
|
|
489
|
+
} | undefined;
|
|
490
|
+
}) => import("@mittwald/react-use-promise").AsyncResource<import("./types.js").MittwaldAPIV2.Components.Schemas.ContainerVolumeResponse[]>;
|
|
491
|
+
};
|
|
343
492
|
declare const buildContractApi: (baseClient: MittwaldAPIV2Client) => {
|
|
344
493
|
/** Return the BaseItem of the Contract with the given ID. */
|
|
345
494
|
getBaseItemOfContract: (conf: {
|
|
@@ -2572,6 +2721,8 @@ export declare class MittwaldAPIV2ClientReact {
|
|
|
2572
2721
|
readonly article: ReturnType<typeof buildArticleApi>;
|
|
2573
2722
|
/** The backup API allows you to manage your project backups. */
|
|
2574
2723
|
readonly backup: ReturnType<typeof buildBackupApi>;
|
|
2724
|
+
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
2725
|
+
readonly container: ReturnType<typeof buildContainerApi>;
|
|
2575
2726
|
/** The contract API allows you to manage your contracts and orders */
|
|
2576
2727
|
readonly contract: ReturnType<typeof buildContractApi>;
|
|
2577
2728
|
/** The conversation API allows you to manage your support conversations. */
|