Skip to content

Commit

Permalink
OAS Update
Browse files Browse the repository at this point in the history
  • Loading branch information
stackit-pipeline committed Nov 25, 2024
1 parent fcebdf3 commit e72d43c
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions services/server-update/v1/server-update.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@
},
"type": "object"
},
"GetUpdatePoliciesResponse": {
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/UpdatePolicy"
},
"type": "array"
}
},
"type": "object"
},
"GetUpdateSchedulesResponse": {
"properties": {
"items": {
Expand Down Expand Up @@ -172,6 +183,38 @@
],
"type": "object"
},
"UpdatePolicy": {
"properties": {
"default": {
"example": true,
"type": "boolean"
},
"description": {
"example": "Default Daily Backup Schedule",
"type": "string"
},
"enabled": {
"example": true,
"type": "boolean"
},
"id": {
"example": "a01c372f-5c15-418d-b2fb-b1f93ea2ffc8",
"type": "string"
},
"maintenanceWindow": {
"example": 3,
"type": "integer"
},
"name": {
"example": "Default Backup Schedule",
"type": "string"
},
"rrule": {
"example": "DTSTART;TZID=Europe/Sofia:20200803T023000 RRULE:FREQ=DAILY;INTERVAL=1",
"type": "string"
}
}
},
"UpdateSchedule": {
"properties": {
"enabled": {
Expand Down Expand Up @@ -950,6 +993,41 @@
},
"summary": "get update"
}
},
"/v1/projects/{projectId}/update-policies": {
"get": {
"operationId": "ListUpdatePolicies",
"parameters": [
{
"description": "project id",
"in": "path",
"name": "projectId",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/GetUpdatePoliciesResponse"
}
}
},
"description": "update policy list response"
},
"400": {
"description": "Bad Request"
},
"404": {
"description": "Project Not Found"
}
},
"summary": "get list of update policies"
}
}
},
"security": [
Expand Down

0 comments on commit e72d43c

Please sign in to comment.