Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: move servers API `delete_unused_*` properties

SierraJCbbd7d8b56790
diff --git a/app/Models/Server.php b/app/Models/Server.php
index 2a9e926ed0..cb9def6887 100644
--- a/app/Models/Server.php
+++ b/app/Models/Server.php
@@ -42,8 +42,6 @@ use Symfony\Component\Yaml\Yaml;
'validation_logs' => ['type' => 'string', 'description' => 'The validation logs.'],
'log_drain_notification_sent' => ['type' => 'boolean', 'description' => 'The flag to indicate if the log drain notification has been sent.'],
'swarm_cluster' => ['type' => 'string', 'description' => 'The swarm cluster configuration.'],
- 'delete_unused_volumes' => ['type' => 'boolean', 'description' => 'The flag to indicate if the unused volumes should be deleted.'],
- 'delete_unused_networks' => ['type' => 'boolean', 'description' => 'The flag to indicate if the unused networks should be deleted.'],
'settings' => ['$ref' => '#/components/schemas/ServerSetting'],
]
)]
diff --git a/app/Models/ServerSetting.php b/app/Models/ServerSetting.php
index fc2c5a0f4b..e078372e25 100644
--- a/app/Models/ServerSetting.php
+++ b/app/Models/ServerSetting.php
@@ -45,6 +45,8 @@ use OpenApi\Attributes as OA;
'wildcard_domain' => ['type' => 'string'],
'created_at' => ['type' => 'string'],
'updated_at' => ['type' => 'string'],
+ 'delete_unused_volumes' => ['type' => 'boolean', 'description' => 'The flag to indicate if the unused volumes should be deleted.'],
+ 'delete_unused_networks' => ['type' => 'boolean', 'description' => 'The flag to indicate if the unused networks should be deleted.'],
]
)]
class ServerSetting extends Model
diff --git a/openapi.json b/openapi.json
index 479b0b9d69..2ec218438d 100644
--- a/openapi.json
+++ b/openapi.json
@@ -7449,14 +7449,6 @@
"type": "string",
"description": "The swarm cluster configuration."
},
- "delete_unused_volumes": {
- "type": "boolean",
- "description": "The flag to indicate if the unused volumes should be deleted."
- },
- "delete_unused_networks": {
- "type": "boolean",
- "description": "The flag to indicate if the unused networks should be deleted."
- },
"settings": {
"$ref": "#\/components\/schemas\/ServerSetting"
}
@@ -7567,6 +7559,14 @@
},
"updated_at": {
"type": "string"
+ },
+ "delete_unused_volumes": {
+ "type": "boolean",
+ "description": "The flag to indicate if the unused volumes should be deleted."
+ },
+ "delete_unused_networks": {
+ "type": "boolean",
+ "description": "The flag to indicate if the unused networks should be deleted."
}
},
"type": "object"
diff --git a/openapi.yaml b/openapi.yaml
index 178da5ca01..2a22c730c5 100644
--- a/openapi.yaml
+++ b/openapi.yaml
@@ -4973,12 +4973,6 @@ components:
swarm_cluster:
type: string
description: 'The swarm cluster configuration.'
- delete_unused_volumes:
- type: boolean
- description: 'The flag to indicate if the unused volumes should be deleted.'
- delete_unused_networks:
- type: boolean
- description: 'The flag to indicate if the unused networks should be deleted.'
settings:
$ref: '#/components/schemas/ServerSetting'
type: object
@@ -5053,6 +5047,12 @@ components:
type: string
updated_at:
type: string
+ delete_unused_volumes:
+ type: boolean
+ description: 'The flag to indicate if the unused volumes should be deleted.'
+ delete_unused_networks:
+ type: boolean
+ description: 'The flag to indicate if the unused networks should be deleted.'
type: object
Service:
description: 'Service model'