@mittwald/api-client 0.0.0-development-1b2dfd0-20260714 → 0.0.0-development-f927bdb-20260730
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 +2 -2
- package/dist/esm/generated/v2/client.js +16 -36
- package/dist/esm/generated/v2/descriptors.js +45 -105
- package/dist/esm/generated/v3-next/client-react.js +2 -2
- package/dist/esm/generated/v3-next/client.js +16 -36
- package/dist/esm/generated/v3-next/descriptors.js +45 -105
- package/dist/esm/version.js +1 -1
- package/dist/types/generated/v2/client-react.d.ts +40 -17
- package/dist/types/generated/v2/client.d.ts +528 -1051
- package/dist/types/generated/v2/descriptors.d.ts +18 -38
- package/dist/types/generated/v2/types.d.ts +518 -950
- package/dist/types/generated/v3-next/client-react.d.ts +40 -17
- package/dist/types/generated/v3-next/client.d.ts +532 -1055
- package/dist/types/generated/v3-next/descriptors.d.ts +18 -38
- package/dist/types/generated/v3-next/types.d.ts +568 -1000
- package/dist/types/version.d.ts +1 -1
- package/package.json +4 -4
|
@@ -96,8 +96,8 @@ const buildContainerApi = (baseClient) => ({
|
|
|
96
96
|
getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
|
|
97
97
|
/** Get a Service belonging to a Stack. */
|
|
98
98
|
getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
|
|
99
|
-
/** Get a Container Template
|
|
100
|
-
|
|
99
|
+
/** Get a Container Template asset. */
|
|
100
|
+
getTemplateAsset: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplateAsset, baseClient.container.getTemplateAsset).getApiResource,
|
|
101
101
|
/** Get a Container Template by ID. */
|
|
102
102
|
getTemplate: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplate, baseClient.container.getTemplate).getApiResource,
|
|
103
103
|
/** List Stacks belonging to the executing user. */
|
|
@@ -67,8 +67,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
67
67
|
getSystemsoftware: this.requestFunctionFactory(descriptors.appGetSystemsoftware),
|
|
68
68
|
/** Get a SystemSoftwareVersion. */
|
|
69
69
|
getSystemsoftwareversion: this.requestFunctionFactory(descriptors.appGetSystemsoftwareversion),
|
|
70
|
-
/** Create linkage between an AppInstallation and a MySQLDatabase. */
|
|
71
|
-
linkDatabase: this.requestFunctionFactory(descriptors.appLinkDatabase),
|
|
72
70
|
/** List AppInstallations that a user has access to. */
|
|
73
71
|
listAppinstallationsForUser: this.requestFunctionFactory(descriptors.appListAppinstallationsForUser),
|
|
74
72
|
/** List AppInstallations belonging to a Project. */
|
|
@@ -85,14 +83,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
85
83
|
listSystemsoftwareversions: this.requestFunctionFactory(descriptors.appListSystemsoftwareversions),
|
|
86
84
|
/** List update candidates belonging to an AppVersion. */
|
|
87
85
|
listUpdateCandidatesForAppversion: this.requestFunctionFactory(descriptors.appListUpdateCandidatesForAppversion),
|
|
88
|
-
/** Replace a MySQL Database with another MySQL Database. */
|
|
89
|
-
replaceDatabase: this.requestFunctionFactory(descriptors.appReplaceDatabase),
|
|
90
86
|
/** Request a copy of an AppInstallation. */
|
|
91
87
|
requestAppinstallationCopy: this.requestFunctionFactory(descriptors.appRequestAppinstallationCopy),
|
|
92
88
|
/** Get runtime status belonging to an AppInstallation. */
|
|
93
89
|
retrieveStatus: this.requestFunctionFactory(descriptors.appRetrieveStatus),
|
|
94
|
-
/** Create linkage between an AppInstallation and DatabaseUsers. */
|
|
95
|
-
setDatabaseUsers: this.requestFunctionFactory(descriptors.appSetDatabaseUsers),
|
|
96
90
|
/** Remove linkage between an AppInstallation and a Database. */
|
|
97
91
|
unlinkDatabase: this.requestFunctionFactory(descriptors.appUnlinkDatabase),
|
|
98
92
|
};
|
|
@@ -127,19 +121,19 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
127
121
|
getProjectBackup: this.requestFunctionFactory(descriptors.backupGetProjectBackup),
|
|
128
122
|
/** Delete a ProjectBackup. */
|
|
129
123
|
deleteProjectBackup: this.requestFunctionFactory(descriptors.backupDeleteProjectBackup),
|
|
124
|
+
/** Update a ProjectBackup. */
|
|
125
|
+
updateProjectBackup: this.requestFunctionFactory(descriptors.backupUpdateProjectBackup),
|
|
130
126
|
/** List database dump's for a ProjectBackup. */
|
|
131
127
|
getProjectBackupDatabaseDumps: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumps),
|
|
132
128
|
/** List paths for a ProjectBackup. */
|
|
133
129
|
getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
|
|
134
|
-
/** Update a Backup's expiration time. */
|
|
135
|
-
replaceProjectBackupExpirationTime: this.requestFunctionFactory(descriptors.backupReplaceProjectBackupExpirationTime),
|
|
136
130
|
/** Restore a ProjectBackup. */
|
|
137
131
|
requestProjectBackupRestore: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestore),
|
|
138
|
-
/** Change the description of a ProjectBackup. */
|
|
139
|
-
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
140
132
|
};
|
|
141
133
|
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
142
134
|
container = {
|
|
135
|
+
/** Add a template component to a Stack. */
|
|
136
|
+
addTemplateComponent: this.requestFunctionFactory(descriptors.containerAddTemplateComponent),
|
|
143
137
|
/** Call pull-image webhook */
|
|
144
138
|
callPullImageWebhookForService: this.requestFunctionFactory(descriptors.containerCallPullImageWebhookForService),
|
|
145
139
|
/** List Registries belonging to a Project. */
|
|
@@ -174,8 +168,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
174
168
|
getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
|
|
175
169
|
/** Get a Service belonging to a Stack. */
|
|
176
170
|
getService: this.requestFunctionFactory(descriptors.containerGetService),
|
|
177
|
-
/** Get a Container Template
|
|
178
|
-
|
|
171
|
+
/** Get a Container Template asset. */
|
|
172
|
+
getTemplateAsset: this.requestFunctionFactory(descriptors.containerGetTemplateAsset),
|
|
179
173
|
/** Get a Container Template by ID. */
|
|
180
174
|
getTemplate: this.requestFunctionFactory(descriptors.containerGetTemplate),
|
|
181
175
|
/** List Stacks belonging to the executing user. */
|
|
@@ -196,8 +190,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
196
190
|
restartService: this.requestFunctionFactory(descriptors.containerRestartService),
|
|
197
191
|
/** Create or rotate pull-image webhook token */
|
|
198
192
|
rotatePullImageWebhookForService: this.requestFunctionFactory(descriptors.containerRotatePullImageWebhookForService),
|
|
199
|
-
/** Set an update schedule for a Stack. */
|
|
200
|
-
setStackUpdateSchedule: this.requestFunctionFactory(descriptors.containerSetStackUpdateSchedule),
|
|
201
193
|
/** Start a stopped Service. */
|
|
202
194
|
startService: this.requestFunctionFactory(descriptors.containerStartService),
|
|
203
195
|
/** Stop a started Service. */
|
|
@@ -450,8 +442,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
450
442
|
getExecutionAnalysis: this.requestFunctionFactory(descriptors.cronjobGetExecutionAnalysis),
|
|
451
443
|
/** Get a CronjobExecution. */
|
|
452
444
|
getExecution: this.requestFunctionFactory(descriptors.cronjobGetExecution),
|
|
453
|
-
/** Update a Cronjob's app installation id. */
|
|
454
|
-
replaceCronjobAppInstallationId: this.requestFunctionFactory(descriptors.cronjobReplaceCronjobAppInstallationId),
|
|
455
445
|
};
|
|
456
446
|
/** The customer API allows you to manage your own organizations and users. */
|
|
457
447
|
customer = {
|
|
@@ -530,10 +520,10 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
530
520
|
patchMysqlDatabase: this.requestFunctionFactory(descriptors.databasePatchMysqlDatabase),
|
|
531
521
|
/** Get a MySQLUser. */
|
|
532
522
|
getMysqlUser: this.requestFunctionFactory(descriptors.databaseGetMysqlUser),
|
|
533
|
-
/** Update a MySQLUser. */
|
|
534
|
-
updateMysqlUser: this.requestFunctionFactory(descriptors.databaseUpdateMysqlUser),
|
|
535
523
|
/** Delete a MySQLUser. */
|
|
536
524
|
deleteMysqlUser: this.requestFunctionFactory(descriptors.databaseDeleteMysqlUser),
|
|
525
|
+
/** Update a MySQLUser. */
|
|
526
|
+
updateMysqlUser: this.requestFunctionFactory(descriptors.databaseUpdateMysqlUser),
|
|
537
527
|
/** Get a RedisDatabase. */
|
|
538
528
|
getRedisDatabase: this.requestFunctionFactory(descriptors.databaseGetRedisDatabase),
|
|
539
529
|
/** Delete a RedisDatabase. */
|
|
@@ -552,16 +542,6 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
552
542
|
listMysqlVersions: this.requestFunctionFactory(descriptors.databaseListMysqlVersions),
|
|
553
543
|
/** List RedisVersions. */
|
|
554
544
|
listRedisVersions: this.requestFunctionFactory(descriptors.databaseListRedisVersions),
|
|
555
|
-
/** Update a MySQLDatabase's default character settings. */
|
|
556
|
-
updateMysqlDatabaseDefaultCharset: this.requestFunctionFactory(descriptors.databaseUpdateMysqlDatabaseDefaultCharset),
|
|
557
|
-
/** Update a MySQLDatabase's description. */
|
|
558
|
-
updateMysqlDatabaseDescription: this.requestFunctionFactory(descriptors.databaseUpdateMysqlDatabaseDescription),
|
|
559
|
-
/** Update a MySQLUser's password. */
|
|
560
|
-
updateMysqlUserPassword: this.requestFunctionFactory(descriptors.databaseUpdateMysqlUserPassword),
|
|
561
|
-
/** Update a RedisDatabase's configuration. */
|
|
562
|
-
updateRedisDatabaseConfiguration: this.requestFunctionFactory(descriptors.databaseUpdateRedisDatabaseConfiguration),
|
|
563
|
-
/** Update a RedisDatabase's description. */
|
|
564
|
-
updateRedisDatabaseDescription: this.requestFunctionFactory(descriptors.databaseUpdateRedisDatabaseDescription),
|
|
565
545
|
};
|
|
566
546
|
/** The domain API allows you to manage your domains, DNS records, SSL certificates and ingress resources. */
|
|
567
547
|
domain = {
|
|
@@ -968,6 +948,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
968
948
|
getProject: this.requestFunctionFactory(descriptors.projectGetProject),
|
|
969
949
|
/** Delete a Project. */
|
|
970
950
|
deleteProject: this.requestFunctionFactory(descriptors.projectDeleteProject),
|
|
951
|
+
/** Update a Project. */
|
|
952
|
+
updateProject: this.requestFunctionFactory(descriptors.projectUpdateProject),
|
|
971
953
|
/** Request a Server avatar upload. */
|
|
972
954
|
requestServerAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestServerAvatarUpload),
|
|
973
955
|
/** Delete a Server's avatar. */
|
|
@@ -978,6 +960,8 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
978
960
|
getSelfMembershipForProject: this.requestFunctionFactory(descriptors.projectGetSelfMembershipForProject),
|
|
979
961
|
/** Get a Server. */
|
|
980
962
|
getServer: this.requestFunctionFactory(descriptors.projectGetServer),
|
|
963
|
+
/** Update a Server. */
|
|
964
|
+
updateServer: this.requestFunctionFactory(descriptors.projectUpdateServer),
|
|
981
965
|
/** List Projects belonging to a Customer. */
|
|
982
966
|
listCustomerProjects: this.requestFunctionFactory(descriptors.projectListCustomerProjects),
|
|
983
967
|
/** List Memberships belonging to a Project. */
|
|
@@ -994,18 +978,14 @@ export class MittwaldAPIV2Client extends ApiClientBase {
|
|
|
994
978
|
listServers: this.requestFunctionFactory(descriptors.projectListServers),
|
|
995
979
|
/** Resend the mail for a ProjectInvite. */
|
|
996
980
|
resendProjectInviteMail: this.requestFunctionFactory(descriptors.projectResendProjectInviteMail),
|
|
997
|
-
/** Update a Project's description. */
|
|
998
|
-
updateProjectDescription: this.requestFunctionFactory(descriptors.projectUpdateProjectDescription),
|
|
999
|
-
/** Update a Servers's description. */
|
|
1000
|
-
updateServerDescription: this.requestFunctionFactory(descriptors.projectUpdateServerDescription),
|
|
1001
981
|
/** Get storage space Statistics belonging to a Project. */
|
|
1002
982
|
storagespaceGetProjectStatistics: this.requestFunctionFactory(descriptors.storagespaceGetProjectStatistics),
|
|
983
|
+
/** Update a Project's storage space statistics. */
|
|
984
|
+
storagespaceUpdateProjectStatistics: this.requestFunctionFactory(descriptors.storagespaceUpdateProjectStatistics),
|
|
1003
985
|
/** Get storage space Statistics belonging to a Server. */
|
|
1004
986
|
storagespaceGetServerStatistics: this.requestFunctionFactory(descriptors.storagespaceGetServerStatistics),
|
|
1005
|
-
/** Update a
|
|
1006
|
-
|
|
1007
|
-
/** Update a Server's storage space notification threshold. */
|
|
1008
|
-
storagespaceReplaceServerNotificationThreshold: this.requestFunctionFactory(descriptors.storagespaceReplaceServerNotificationThreshold),
|
|
987
|
+
/** Update a Server's storage space statistics. */
|
|
988
|
+
storagespaceUpdateServerStatistics: this.requestFunctionFactory(descriptors.storagespaceUpdateServerStatistics),
|
|
1009
989
|
};
|
|
1010
990
|
/** The filesystem API allows you to directly access the filesystem of your project. */
|
|
1011
991
|
projectFileSystem = {
|
|
@@ -172,12 +172,6 @@ export const appGetSystemsoftwareversion = {
|
|
|
172
172
|
method: "GET",
|
|
173
173
|
operationId: "app-get-systemsoftwareversion",
|
|
174
174
|
};
|
|
175
|
-
/** Create linkage between an AppInstallation and a MySQLDatabase. */
|
|
176
|
-
export const appLinkDatabase = {
|
|
177
|
-
path: "/v2/app-installations/{appInstallationId}/database",
|
|
178
|
-
method: "PATCH",
|
|
179
|
-
operationId: "app-link-database",
|
|
180
|
-
};
|
|
181
175
|
/** List AppInstallations that a user has access to. */
|
|
182
176
|
export const appListAppinstallationsForUser = {
|
|
183
177
|
path: "/v2/app-installations",
|
|
@@ -226,12 +220,6 @@ export const appListUpdateCandidatesForAppversion = {
|
|
|
226
220
|
method: "GET",
|
|
227
221
|
operationId: "app-list-update-candidates-for-appversion",
|
|
228
222
|
};
|
|
229
|
-
/** Replace a MySQL Database with another MySQL Database. */
|
|
230
|
-
export const appReplaceDatabase = {
|
|
231
|
-
path: "/v2/app-installations/{appInstallationId}/database/replace",
|
|
232
|
-
method: "PATCH",
|
|
233
|
-
operationId: "app-replace-database",
|
|
234
|
-
};
|
|
235
223
|
/** Request a copy of an AppInstallation. */
|
|
236
224
|
export const appRequestAppinstallationCopy = {
|
|
237
225
|
path: "/v2/app-installations/{appInstallationId}/actions/copy",
|
|
@@ -244,12 +232,6 @@ export const appRetrieveStatus = {
|
|
|
244
232
|
method: "GET",
|
|
245
233
|
operationId: "app-retrieve-status",
|
|
246
234
|
};
|
|
247
|
-
/** Create linkage between an AppInstallation and DatabaseUsers. */
|
|
248
|
-
export const appSetDatabaseUsers = {
|
|
249
|
-
path: "/v2/app-installations/{appInstallationId}/databases/{databaseId}/users",
|
|
250
|
-
method: "PUT",
|
|
251
|
-
operationId: "app-set-database-users",
|
|
252
|
-
};
|
|
253
235
|
/** Remove linkage between an AppInstallation and a Database. */
|
|
254
236
|
export const appUnlinkDatabase = {
|
|
255
237
|
path: "/v2/app-installations/{appInstallationId}/databases/{databaseId}",
|
|
@@ -334,6 +316,12 @@ export const backupDeleteProjectBackup = {
|
|
|
334
316
|
method: "DELETE",
|
|
335
317
|
operationId: "backup-delete-project-backup",
|
|
336
318
|
};
|
|
319
|
+
/** Update a ProjectBackup. */
|
|
320
|
+
export const backupUpdateProjectBackup = {
|
|
321
|
+
path: "/v2/project-backups/{projectBackupId}",
|
|
322
|
+
method: "PATCH",
|
|
323
|
+
operationId: "backup-update-project-backup",
|
|
324
|
+
};
|
|
337
325
|
/** List database dump's for a ProjectBackup. */
|
|
338
326
|
export const backupGetProjectBackupDatabaseDumps = {
|
|
339
327
|
path: "/v2/project-backups/{projectBackupId}/database-dumps",
|
|
@@ -346,23 +334,17 @@ export const backupGetProjectBackupDirectories = {
|
|
|
346
334
|
method: "GET",
|
|
347
335
|
operationId: "backup-get-project-backup-directories",
|
|
348
336
|
};
|
|
349
|
-
/** Update a Backup's expiration time. */
|
|
350
|
-
export const backupReplaceProjectBackupExpirationTime = {
|
|
351
|
-
path: "/v2/project-backups/{projectBackupId}/expiration-time",
|
|
352
|
-
method: "PUT",
|
|
353
|
-
operationId: "backup-replace-project-backup-expiration-time",
|
|
354
|
-
};
|
|
355
337
|
/** Restore a ProjectBackup. */
|
|
356
338
|
export const backupRequestProjectBackupRestore = {
|
|
357
339
|
path: "/v2/project-backups/{projectBackupId}/restore",
|
|
358
340
|
method: "POST",
|
|
359
341
|
operationId: "backup-request-project-backup-restore",
|
|
360
342
|
};
|
|
361
|
-
/**
|
|
362
|
-
export const
|
|
363
|
-
path: "/v2/
|
|
364
|
-
method: "
|
|
365
|
-
operationId: "
|
|
343
|
+
/** Add a template component to a Stack. */
|
|
344
|
+
export const containerAddTemplateComponent = {
|
|
345
|
+
path: "/v2/stacks/{stackId}/actions/add-template-component",
|
|
346
|
+
method: "POST",
|
|
347
|
+
operationId: "container-add-template-component",
|
|
366
348
|
};
|
|
367
349
|
/** Call pull-image webhook */
|
|
368
350
|
export const containerCallPullImageWebhookForService = {
|
|
@@ -466,11 +448,11 @@ export const containerGetService = {
|
|
|
466
448
|
method: "GET",
|
|
467
449
|
operationId: "container-get-service",
|
|
468
450
|
};
|
|
469
|
-
/** Get a Container Template
|
|
470
|
-
export const
|
|
471
|
-
path: "/v2/container-templates/{templateId}/
|
|
451
|
+
/** Get a Container Template asset. */
|
|
452
|
+
export const containerGetTemplateAsset = {
|
|
453
|
+
path: "/v2/container-templates/{templateId}/assets/{assetPath}",
|
|
472
454
|
method: "GET",
|
|
473
|
-
operationId: "container-get-template-
|
|
455
|
+
operationId: "container-get-template-asset",
|
|
474
456
|
};
|
|
475
457
|
/** Get a Container Template by ID. */
|
|
476
458
|
export const containerGetTemplate = {
|
|
@@ -532,12 +514,6 @@ export const containerRotatePullImageWebhookForService = {
|
|
|
532
514
|
method: "POST",
|
|
533
515
|
operationId: "container-rotate-pull-image-webhook-for-service",
|
|
534
516
|
};
|
|
535
|
-
/** Set an update schedule for a Stack. */
|
|
536
|
-
export const containerSetStackUpdateSchedule = {
|
|
537
|
-
path: "/v2/stacks/{stackId}/update-schedule",
|
|
538
|
-
method: "PUT",
|
|
539
|
-
operationId: "container-set-stack-update-schedule",
|
|
540
|
-
};
|
|
541
517
|
/** Start a stopped Service. */
|
|
542
518
|
export const containerStartService = {
|
|
543
519
|
path: "/v2/stacks/{stackId}/services/{serviceId}/actions/start",
|
|
@@ -588,7 +564,7 @@ export const contractGetBaseItemOfContract = {
|
|
|
588
564
|
};
|
|
589
565
|
/** Return the AI Hosting Contract for the given Customer. */
|
|
590
566
|
export const contractGetDetailOfContractByAiHosting = {
|
|
591
|
-
path: "/v2/customers/{customerId}/ai-
|
|
567
|
+
path: "/v2/customers/{customerId}/ai-hostings/{aiHostingId}/contract",
|
|
592
568
|
method: "GET",
|
|
593
569
|
operationId: "contract-get-detail-of-contract-by-ai-hosting",
|
|
594
570
|
};
|
|
@@ -892,12 +868,6 @@ export const cronjobGetExecution = {
|
|
|
892
868
|
method: "GET",
|
|
893
869
|
operationId: "cronjob-get-execution",
|
|
894
870
|
};
|
|
895
|
-
/** Update a Cronjob's app installation id. */
|
|
896
|
-
export const cronjobReplaceCronjobAppInstallationId = {
|
|
897
|
-
path: "/v2/cronjobs/{cronjobId}/app-installation-id",
|
|
898
|
-
method: "PUT",
|
|
899
|
-
operationId: "cronjob-replace-cronjob-app-installation-id",
|
|
900
|
-
};
|
|
901
871
|
/** Accept a CustomerInvite. */
|
|
902
872
|
export const customerAcceptCustomerInvite = {
|
|
903
873
|
path: "/v2/customer-invites/{customerInviteId}/actions/accept",
|
|
@@ -1114,18 +1084,18 @@ export const databaseGetMysqlUser = {
|
|
|
1114
1084
|
method: "GET",
|
|
1115
1085
|
operationId: "database-get-mysql-user",
|
|
1116
1086
|
};
|
|
1117
|
-
/** Update a MySQLUser. */
|
|
1118
|
-
export const databaseUpdateMysqlUser = {
|
|
1119
|
-
path: "/v2/mysql-users/{mysqlUserId}",
|
|
1120
|
-
method: "PUT",
|
|
1121
|
-
operationId: "database-update-mysql-user",
|
|
1122
|
-
};
|
|
1123
1087
|
/** Delete a MySQLUser. */
|
|
1124
1088
|
export const databaseDeleteMysqlUser = {
|
|
1125
1089
|
path: "/v2/mysql-users/{mysqlUserId}",
|
|
1126
1090
|
method: "DELETE",
|
|
1127
1091
|
operationId: "database-delete-mysql-user",
|
|
1128
1092
|
};
|
|
1093
|
+
/** Update a MySQLUser. */
|
|
1094
|
+
export const databaseUpdateMysqlUser = {
|
|
1095
|
+
path: "/v2/mysql-users/{mysqlUserId}",
|
|
1096
|
+
method: "PATCH",
|
|
1097
|
+
operationId: "database-update-mysql-user",
|
|
1098
|
+
};
|
|
1129
1099
|
/** Get a RedisDatabase. */
|
|
1130
1100
|
export const databaseGetRedisDatabase = {
|
|
1131
1101
|
path: "/v2/redis-databases/{redisDatabaseId}",
|
|
@@ -1180,36 +1150,6 @@ export const databaseListRedisVersions = {
|
|
|
1180
1150
|
method: "GET",
|
|
1181
1151
|
operationId: "database-list-redis-versions",
|
|
1182
1152
|
};
|
|
1183
|
-
/** Update a MySQLDatabase's default character settings. */
|
|
1184
|
-
export const databaseUpdateMysqlDatabaseDefaultCharset = {
|
|
1185
|
-
path: "/v2/mysql-databases/{mysqlDatabaseId}/default-charset",
|
|
1186
|
-
method: "PATCH",
|
|
1187
|
-
operationId: "database-update-mysql-database-default-charset",
|
|
1188
|
-
};
|
|
1189
|
-
/** Update a MySQLDatabase's description. */
|
|
1190
|
-
export const databaseUpdateMysqlDatabaseDescription = {
|
|
1191
|
-
path: "/v2/mysql-databases/{mysqlDatabaseId}/description",
|
|
1192
|
-
method: "PATCH",
|
|
1193
|
-
operationId: "database-update-mysql-database-description",
|
|
1194
|
-
};
|
|
1195
|
-
/** Update a MySQLUser's password. */
|
|
1196
|
-
export const databaseUpdateMysqlUserPassword = {
|
|
1197
|
-
path: "/v2/mysql-users/{mysqlUserId}/password",
|
|
1198
|
-
method: "PATCH",
|
|
1199
|
-
operationId: "database-update-mysql-user-password",
|
|
1200
|
-
};
|
|
1201
|
-
/** Update a RedisDatabase's configuration. */
|
|
1202
|
-
export const databaseUpdateRedisDatabaseConfiguration = {
|
|
1203
|
-
path: "/v2/redis-databases/{redisDatabaseId}/configuration",
|
|
1204
|
-
method: "PATCH",
|
|
1205
|
-
operationId: "database-update-redis-database-configuration",
|
|
1206
|
-
};
|
|
1207
|
-
/** Update a RedisDatabase's description. */
|
|
1208
|
-
export const databaseUpdateRedisDatabaseDescription = {
|
|
1209
|
-
path: "/v2/redis-databases/{redisDatabaseId}/description",
|
|
1210
|
-
method: "PATCH",
|
|
1211
|
-
operationId: "database-update-redis-database-description",
|
|
1212
|
-
};
|
|
1213
1153
|
/** List Domains */
|
|
1214
1154
|
export const domainListDomains = {
|
|
1215
1155
|
path: "/v2/domains",
|
|
@@ -2314,6 +2254,12 @@ export const projectDeleteProject = {
|
|
|
2314
2254
|
method: "DELETE",
|
|
2315
2255
|
operationId: "project-delete-project",
|
|
2316
2256
|
};
|
|
2257
|
+
/** Update a Project. */
|
|
2258
|
+
export const projectUpdateProject = {
|
|
2259
|
+
path: "/v2/projects/{projectId}",
|
|
2260
|
+
method: "PATCH",
|
|
2261
|
+
operationId: "project-update-project",
|
|
2262
|
+
};
|
|
2317
2263
|
/** Request a Server avatar upload. */
|
|
2318
2264
|
export const projectRequestServerAvatarUpload = {
|
|
2319
2265
|
path: "/v2/servers/{serverId}/avatar",
|
|
@@ -2374,6 +2320,12 @@ export const projectGetServer = {
|
|
|
2374
2320
|
method: "GET",
|
|
2375
2321
|
operationId: "project-get-server",
|
|
2376
2322
|
};
|
|
2323
|
+
/** Update a Server. */
|
|
2324
|
+
export const projectUpdateServer = {
|
|
2325
|
+
path: "/v2/servers/{serverId}",
|
|
2326
|
+
method: "PATCH",
|
|
2327
|
+
operationId: "project-update-server",
|
|
2328
|
+
};
|
|
2377
2329
|
/** List Projects belonging to a Customer. */
|
|
2378
2330
|
export const projectListCustomerProjects = {
|
|
2379
2331
|
path: "/v2/customers/{customerId}/projects",
|
|
@@ -2422,18 +2374,6 @@ export const projectResendProjectInviteMail = {
|
|
|
2422
2374
|
method: "POST",
|
|
2423
2375
|
operationId: "project-resend-project-invite-mail",
|
|
2424
2376
|
};
|
|
2425
|
-
/** Update a Project's description. */
|
|
2426
|
-
export const projectUpdateProjectDescription = {
|
|
2427
|
-
path: "/v2/projects/{projectId}/description",
|
|
2428
|
-
method: "PATCH",
|
|
2429
|
-
operationId: "project-update-project-description",
|
|
2430
|
-
};
|
|
2431
|
-
/** Update a Servers's description. */
|
|
2432
|
-
export const projectUpdateServerDescription = {
|
|
2433
|
-
path: "/v2/servers/{serverId}/description",
|
|
2434
|
-
method: "PATCH",
|
|
2435
|
-
operationId: "project-update-server-description",
|
|
2436
|
-
};
|
|
2437
2377
|
/** Register a tariff change for a legacy tariff. */
|
|
2438
2378
|
export const relocationCreateLegacyTariffChange = {
|
|
2439
2379
|
path: "/v2/legacy-tariff-change",
|
|
@@ -2572,23 +2512,23 @@ export const storagespaceGetProjectStatistics = {
|
|
|
2572
2512
|
method: "GET",
|
|
2573
2513
|
operationId: "storagespace-get-project-statistics",
|
|
2574
2514
|
};
|
|
2515
|
+
/** Update a Project's storage space statistics. */
|
|
2516
|
+
export const storagespaceUpdateProjectStatistics = {
|
|
2517
|
+
path: "/v2/projects/{projectId}/storage-space-statistics",
|
|
2518
|
+
method: "PATCH",
|
|
2519
|
+
operationId: "storagespace-update-project-statistics",
|
|
2520
|
+
};
|
|
2575
2521
|
/** Get storage space Statistics belonging to a Server. */
|
|
2576
2522
|
export const storagespaceGetServerStatistics = {
|
|
2577
2523
|
path: "/v2/servers/{serverId}/storage-space-statistics",
|
|
2578
2524
|
method: "GET",
|
|
2579
2525
|
operationId: "storagespace-get-server-statistics",
|
|
2580
2526
|
};
|
|
2581
|
-
/** Update a
|
|
2582
|
-
export const
|
|
2583
|
-
path: "/v2/
|
|
2584
|
-
method: "
|
|
2585
|
-
operationId: "storagespace-
|
|
2586
|
-
};
|
|
2587
|
-
/** Update a Server's storage space notification threshold. */
|
|
2588
|
-
export const storagespaceReplaceServerNotificationThreshold = {
|
|
2589
|
-
path: "/v2/servers/{serverId}/storage-space-notification-threshold",
|
|
2590
|
-
method: "PUT",
|
|
2591
|
-
operationId: "storagespace-replace-server-notification-threshold",
|
|
2527
|
+
/** Update a Server's storage space statistics. */
|
|
2528
|
+
export const storagespaceUpdateServerStatistics = {
|
|
2529
|
+
path: "/v2/servers/{serverId}/storage-space-statistics",
|
|
2530
|
+
method: "PATCH",
|
|
2531
|
+
operationId: "storagespace-update-server-statistics",
|
|
2592
2532
|
};
|
|
2593
2533
|
/** Add phone number and start verification process. */
|
|
2594
2534
|
export const userAddPhoneNumber = {
|
|
@@ -96,8 +96,8 @@ const buildContainerApi = (baseClient) => ({
|
|
|
96
96
|
getServiceLogs: new ApiCallAsyncResourceFactory(descriptors.containerGetServiceLogs, baseClient.container.getServiceLogs).getApiResource,
|
|
97
97
|
/** Get a Service belonging to a Stack. */
|
|
98
98
|
getService: new ApiCallAsyncResourceFactory(descriptors.containerGetService, baseClient.container.getService).getApiResource,
|
|
99
|
-
/** Get a Container Template
|
|
100
|
-
|
|
99
|
+
/** Get a Container Template asset. */
|
|
100
|
+
getTemplateAsset: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplateAsset, baseClient.container.getTemplateAsset).getApiResource,
|
|
101
101
|
/** Get a Container Template by ID. */
|
|
102
102
|
getTemplate: new ApiCallAsyncResourceFactory(descriptors.containerGetTemplate, baseClient.container.getTemplate).getApiResource,
|
|
103
103
|
/** List Stacks belonging to the executing user. */
|
|
@@ -67,8 +67,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
67
67
|
getSystemsoftware: this.requestFunctionFactory(descriptors.appGetSystemsoftware),
|
|
68
68
|
/** Get a SystemSoftwareVersion. */
|
|
69
69
|
getSystemsoftwareversion: this.requestFunctionFactory(descriptors.appGetSystemsoftwareversion),
|
|
70
|
-
/** Create linkage between an AppInstallation and a MySQLDatabase. */
|
|
71
|
-
linkDatabase: this.requestFunctionFactory(descriptors.appLinkDatabase),
|
|
72
70
|
/** List AppInstallations that a user has access to. */
|
|
73
71
|
listAppinstallationsForUser: this.requestFunctionFactory(descriptors.appListAppinstallationsForUser),
|
|
74
72
|
/** List AppInstallations belonging to a Project. */
|
|
@@ -85,14 +83,10 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
85
83
|
listSystemsoftwareversions: this.requestFunctionFactory(descriptors.appListSystemsoftwareversions),
|
|
86
84
|
/** List update candidates belonging to an AppVersion. */
|
|
87
85
|
listUpdateCandidatesForAppversion: this.requestFunctionFactory(descriptors.appListUpdateCandidatesForAppversion),
|
|
88
|
-
/** Replace a MySQL Database with another MySQL Database. */
|
|
89
|
-
replaceDatabase: this.requestFunctionFactory(descriptors.appReplaceDatabase),
|
|
90
86
|
/** Request a copy of an AppInstallation. */
|
|
91
87
|
requestAppinstallationCopy: this.requestFunctionFactory(descriptors.appRequestAppinstallationCopy),
|
|
92
88
|
/** Get runtime status belonging to an AppInstallation. */
|
|
93
89
|
retrieveStatus: this.requestFunctionFactory(descriptors.appRetrieveStatus),
|
|
94
|
-
/** Create linkage between an AppInstallation and DatabaseUsers. */
|
|
95
|
-
setDatabaseUsers: this.requestFunctionFactory(descriptors.appSetDatabaseUsers),
|
|
96
90
|
/** Remove linkage between an AppInstallation and a Database. */
|
|
97
91
|
unlinkDatabase: this.requestFunctionFactory(descriptors.appUnlinkDatabase),
|
|
98
92
|
};
|
|
@@ -127,19 +121,19 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
127
121
|
getProjectBackup: this.requestFunctionFactory(descriptors.backupGetProjectBackup),
|
|
128
122
|
/** Delete a ProjectBackup. */
|
|
129
123
|
deleteProjectBackup: this.requestFunctionFactory(descriptors.backupDeleteProjectBackup),
|
|
124
|
+
/** Update a ProjectBackup. */
|
|
125
|
+
updateProjectBackup: this.requestFunctionFactory(descriptors.backupUpdateProjectBackup),
|
|
130
126
|
/** List database dump's for a ProjectBackup. */
|
|
131
127
|
getProjectBackupDatabaseDumps: this.requestFunctionFactory(descriptors.backupGetProjectBackupDatabaseDumps),
|
|
132
128
|
/** List paths for a ProjectBackup. */
|
|
133
129
|
getProjectBackupDirectories: this.requestFunctionFactory(descriptors.backupGetProjectBackupDirectories),
|
|
134
|
-
/** Update a Backup's expiration time. */
|
|
135
|
-
replaceProjectBackupExpirationTime: this.requestFunctionFactory(descriptors.backupReplaceProjectBackupExpirationTime),
|
|
136
130
|
/** Restore a ProjectBackup. */
|
|
137
131
|
requestProjectBackupRestore: this.requestFunctionFactory(descriptors.backupRequestProjectBackupRestore),
|
|
138
|
-
/** Change the description of a ProjectBackup. */
|
|
139
|
-
updateProjectBackupDescription: this.requestFunctionFactory(descriptors.backupUpdateProjectBackupDescription),
|
|
140
132
|
};
|
|
141
133
|
/** The container API allows you to manage your stacks, containers, volumes and registries. */
|
|
142
134
|
container = {
|
|
135
|
+
/** Add a template component to a Stack. */
|
|
136
|
+
addTemplateComponent: this.requestFunctionFactory(descriptors.containerAddTemplateComponent),
|
|
143
137
|
/** Call pull-image webhook */
|
|
144
138
|
callPullImageWebhookForService: this.requestFunctionFactory(descriptors.containerCallPullImageWebhookForService),
|
|
145
139
|
/** List Registries belonging to a Project. */
|
|
@@ -174,8 +168,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
174
168
|
getServiceLogs: this.requestFunctionFactory(descriptors.containerGetServiceLogs),
|
|
175
169
|
/** Get a Service belonging to a Stack. */
|
|
176
170
|
getService: this.requestFunctionFactory(descriptors.containerGetService),
|
|
177
|
-
/** Get a Container Template
|
|
178
|
-
|
|
171
|
+
/** Get a Container Template asset. */
|
|
172
|
+
getTemplateAsset: this.requestFunctionFactory(descriptors.containerGetTemplateAsset),
|
|
179
173
|
/** Get a Container Template by ID. */
|
|
180
174
|
getTemplate: this.requestFunctionFactory(descriptors.containerGetTemplate),
|
|
181
175
|
/** List Stacks belonging to the executing user. */
|
|
@@ -196,8 +190,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
196
190
|
restartService: this.requestFunctionFactory(descriptors.containerRestartService),
|
|
197
191
|
/** Create or rotate pull-image webhook token */
|
|
198
192
|
rotatePullImageWebhookForService: this.requestFunctionFactory(descriptors.containerRotatePullImageWebhookForService),
|
|
199
|
-
/** Set an update schedule for a Stack. */
|
|
200
|
-
setStackUpdateSchedule: this.requestFunctionFactory(descriptors.containerSetStackUpdateSchedule),
|
|
201
193
|
/** Start a stopped Service. */
|
|
202
194
|
startService: this.requestFunctionFactory(descriptors.containerStartService),
|
|
203
195
|
/** Stop a started Service. */
|
|
@@ -450,8 +442,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
450
442
|
getExecutionAnalysis: this.requestFunctionFactory(descriptors.cronjobGetExecutionAnalysis),
|
|
451
443
|
/** Get a CronjobExecution. */
|
|
452
444
|
getExecution: this.requestFunctionFactory(descriptors.cronjobGetExecution),
|
|
453
|
-
/** Update a Cronjob's app installation id. */
|
|
454
|
-
replaceCronjobAppInstallationId: this.requestFunctionFactory(descriptors.cronjobReplaceCronjobAppInstallationId),
|
|
455
445
|
};
|
|
456
446
|
/** The customer API allows you to manage your own organizations and users. */
|
|
457
447
|
customer = {
|
|
@@ -530,10 +520,10 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
530
520
|
patchMysqlDatabase: this.requestFunctionFactory(descriptors.databasePatchMysqlDatabase),
|
|
531
521
|
/** Get a MySQLUser. */
|
|
532
522
|
getMysqlUser: this.requestFunctionFactory(descriptors.databaseGetMysqlUser),
|
|
533
|
-
/** Update a MySQLUser. */
|
|
534
|
-
updateMysqlUser: this.requestFunctionFactory(descriptors.databaseUpdateMysqlUser),
|
|
535
523
|
/** Delete a MySQLUser. */
|
|
536
524
|
deleteMysqlUser: this.requestFunctionFactory(descriptors.databaseDeleteMysqlUser),
|
|
525
|
+
/** Update a MySQLUser. */
|
|
526
|
+
updateMysqlUser: this.requestFunctionFactory(descriptors.databaseUpdateMysqlUser),
|
|
537
527
|
/** Get a RedisDatabase. */
|
|
538
528
|
getRedisDatabase: this.requestFunctionFactory(descriptors.databaseGetRedisDatabase),
|
|
539
529
|
/** Delete a RedisDatabase. */
|
|
@@ -552,16 +542,6 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
552
542
|
listMysqlVersions: this.requestFunctionFactory(descriptors.databaseListMysqlVersions),
|
|
553
543
|
/** List RedisVersions. */
|
|
554
544
|
listRedisVersions: this.requestFunctionFactory(descriptors.databaseListRedisVersions),
|
|
555
|
-
/** Update a MySQLDatabase's default character settings. */
|
|
556
|
-
updateMysqlDatabaseDefaultCharset: this.requestFunctionFactory(descriptors.databaseUpdateMysqlDatabaseDefaultCharset),
|
|
557
|
-
/** Update a MySQLDatabase's description. */
|
|
558
|
-
updateMysqlDatabaseDescription: this.requestFunctionFactory(descriptors.databaseUpdateMysqlDatabaseDescription),
|
|
559
|
-
/** Update a MySQLUser's password. */
|
|
560
|
-
updateMysqlUserPassword: this.requestFunctionFactory(descriptors.databaseUpdateMysqlUserPassword),
|
|
561
|
-
/** Update a RedisDatabase's configuration. */
|
|
562
|
-
updateRedisDatabaseConfiguration: this.requestFunctionFactory(descriptors.databaseUpdateRedisDatabaseConfiguration),
|
|
563
|
-
/** Update a RedisDatabase's description. */
|
|
564
|
-
updateRedisDatabaseDescription: this.requestFunctionFactory(descriptors.databaseUpdateRedisDatabaseDescription),
|
|
565
545
|
};
|
|
566
546
|
/** The domain API allows you to manage your domains, DNS records, SSL certificates and ingress resources. */
|
|
567
547
|
domain = {
|
|
@@ -968,6 +948,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
968
948
|
getProject: this.requestFunctionFactory(descriptors.projectGetProject),
|
|
969
949
|
/** Delete a Project. */
|
|
970
950
|
deleteProject: this.requestFunctionFactory(descriptors.projectDeleteProject),
|
|
951
|
+
/** Update a Project. */
|
|
952
|
+
updateProject: this.requestFunctionFactory(descriptors.projectUpdateProject),
|
|
971
953
|
/** Request a Server avatar upload. */
|
|
972
954
|
requestServerAvatarUpload: this.requestFunctionFactory(descriptors.projectRequestServerAvatarUpload),
|
|
973
955
|
/** Delete a Server's avatar. */
|
|
@@ -978,6 +960,8 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
978
960
|
getSelfMembershipForProject: this.requestFunctionFactory(descriptors.projectGetSelfMembershipForProject),
|
|
979
961
|
/** Get a Server. */
|
|
980
962
|
getServer: this.requestFunctionFactory(descriptors.projectGetServer),
|
|
963
|
+
/** Update a Server. */
|
|
964
|
+
updateServer: this.requestFunctionFactory(descriptors.projectUpdateServer),
|
|
981
965
|
/** List Projects belonging to a Customer. */
|
|
982
966
|
listCustomerProjects: this.requestFunctionFactory(descriptors.projectListCustomerProjects),
|
|
983
967
|
/** List Memberships belonging to a Project. */
|
|
@@ -994,18 +978,14 @@ export class MittwaldAPIV3NextClient extends ApiClientBase {
|
|
|
994
978
|
listServers: this.requestFunctionFactory(descriptors.projectListServers),
|
|
995
979
|
/** Resend the mail for a ProjectInvite. */
|
|
996
980
|
resendProjectInviteMail: this.requestFunctionFactory(descriptors.projectResendProjectInviteMail),
|
|
997
|
-
/** Update a Project's description. */
|
|
998
|
-
updateProjectDescription: this.requestFunctionFactory(descriptors.projectUpdateProjectDescription),
|
|
999
|
-
/** Update a Servers's description. */
|
|
1000
|
-
updateServerDescription: this.requestFunctionFactory(descriptors.projectUpdateServerDescription),
|
|
1001
981
|
/** Get storage space Statistics belonging to a Project. */
|
|
1002
982
|
storagespaceGetProjectStatistics: this.requestFunctionFactory(descriptors.storagespaceGetProjectStatistics),
|
|
983
|
+
/** Update a Project's storage space statistics. */
|
|
984
|
+
storagespaceUpdateProjectStatistics: this.requestFunctionFactory(descriptors.storagespaceUpdateProjectStatistics),
|
|
1003
985
|
/** Get storage space Statistics belonging to a Server. */
|
|
1004
986
|
storagespaceGetServerStatistics: this.requestFunctionFactory(descriptors.storagespaceGetServerStatistics),
|
|
1005
|
-
/** Update a
|
|
1006
|
-
|
|
1007
|
-
/** Update a Server's storage space notification threshold. */
|
|
1008
|
-
storagespaceReplaceServerNotificationThreshold: this.requestFunctionFactory(descriptors.storagespaceReplaceServerNotificationThreshold),
|
|
987
|
+
/** Update a Server's storage space statistics. */
|
|
988
|
+
storagespaceUpdateServerStatistics: this.requestFunctionFactory(descriptors.storagespaceUpdateServerStatistics),
|
|
1009
989
|
};
|
|
1010
990
|
/** The filesystem API allows you to directly access the filesystem of your project. */
|
|
1011
991
|
projectFileSystem = {
|