Skip to content

Commit f5a2c1c

Browse files
OAS Update
1 parent 0c4c4c2 commit f5a2c1c

1 file changed

Lines changed: 89 additions & 33 deletions

File tree

services/git/v1beta/git.json

Lines changed: 89 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,11 @@
427427
},
428428
"type": "array"
429429
},
430+
"admin_login": {
431+
"default": false,
432+
"description": "Enable or disable Admin Idp",
433+
"type": "boolean"
434+
},
430435
"consumed_disk": {
431436
"description": "How many bytes of disk space is consumed. Read Only.",
432437
"type": "string"
@@ -454,6 +459,9 @@
454459
"maxLength": 36,
455460
"type": "string"
456461
},
462+
"labels": {
463+
"$ref": "#/components/schemas/labels"
464+
},
457465
"name": {
458466
"description": "A user chosen name to distinguish multiple STACKIT Git instances.",
459467
"maxLength": 32,
@@ -494,7 +502,8 @@
494502
"consumed_object_storage",
495503
"flavor",
496504
"acl",
497-
"feature_toggle"
505+
"feature_toggle",
506+
"admin_login"
498507
]
499508
},
500509
"InternalServerErrorResponse": {
@@ -541,18 +550,32 @@
541550
]
542551
},
543552
"ListUsers": {
544-
"description": "A list of STACKIT Git instance Users.",
553+
"description": "A paginated list of STACKIT Git instance Users.",
545554
"properties": {
555+
"itemsCount": {
556+
"description": "Number of users returned in this page.",
557+
"type": "integer"
558+
},
559+
"offset": {
560+
"description": "Zero-based index of the first item in this page.",
561+
"type": "integer"
562+
},
563+
"totalPages": {
564+
"description": "Total number of pages available based on the fixed page size of 50.",
565+
"type": "integer"
566+
},
546567
"users": {
547568
"items": {
548569
"$ref": "#/components/schemas/User"
549570
},
550-
"maxItems": 50,
551571
"type": "array"
552572
}
553573
},
554574
"required": [
555-
"users"
575+
"users",
576+
"itemsCount",
577+
"offset",
578+
"totalPages"
556579
]
557580
},
558581
"NotFoundErrorResponse": {
@@ -621,8 +644,15 @@
621644
],
622645
"nullable": true
623646
},
647+
"admin_login": {
648+
"description": "Enable Admin IdP",
649+
"type": "boolean"
650+
},
624651
"feature_toggle": {
625652
"$ref": "#/components/schemas/FeatureToggle"
653+
},
654+
"labels": {
655+
"$ref": "#/components/schemas/labels"
626656
}
627657
},
628658
"type": "object"
@@ -655,29 +685,6 @@
655685
],
656686
"type": "object"
657687
},
658-
"PatchUserPayload": {
659-
"description": "Properties to patch a Instance User. All fields are optional.",
660-
"properties": {
661-
"email": {
662-
"description": "A user chosen email to distinguish multiple STACKIT Git instance Users.",
663-
"format": "email",
664-
"maxLength": 254,
665-
"type": "string"
666-
},
667-
"name": {
668-
"description": "Name of the user.",
669-
"maxLength": 32,
670-
"type": "string"
671-
},
672-
"password": {
673-
"description": "A user password to allow user/pass instance login.",
674-
"format": "password",
675-
"maxLength": 64,
676-
"type": "string"
677-
}
678-
},
679-
"type": "object"
680-
},
681688
"Pipelines": {
682689
"description": "Feature toggles for instance pipelines",
683690
"properties": {
@@ -736,7 +743,7 @@
736743
"type": "string"
737744
},
738745
"description": {
739-
"description": "Human-friendly description of the runtime and it's capabilities.",
746+
"description": "Human-friendly description of the runtime and its capabilities.",
740747
"example": "A runner capable of building Docker images and runner Docker containers.",
741748
"type": "string"
742749
},
@@ -817,6 +824,29 @@
817824
],
818825
"type": "object"
819826
},
827+
"UpdateUserPayload": {
828+
"description": "Properties to update a Instance User. All fields are optional.",
829+
"properties": {
830+
"email": {
831+
"description": "A user chosen email to distinguish multiple STACKIT Git instance Users.",
832+
"format": "email",
833+
"maxLength": 254,
834+
"type": "string"
835+
},
836+
"name": {
837+
"description": "Name of the user.",
838+
"maxLength": 32,
839+
"type": "string"
840+
},
841+
"password": {
842+
"description": "A user password to allow user/pass instance login.",
843+
"format": "password",
844+
"maxLength": 64,
845+
"type": "string"
846+
}
847+
},
848+
"type": "object"
849+
},
820850
"User": {
821851
"description": "Describes a STACKIT Git instance User.",
822852
"properties": {
@@ -848,6 +878,20 @@
848878
"name"
849879
],
850880
"type": "object"
881+
},
882+
"labels": {
883+
"additionalProperties": {
884+
"maxLength": 63,
885+
"pattern": "^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$",
886+
"type": "string"
887+
},
888+
"description": "Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. The `stackit-` prefix is reserved and cannot be used for Keys.",
889+
"example": {
890+
"my-stage": "qa",
891+
"responsible": "team-red"
892+
},
893+
"maxProperties": 64,
894+
"type": "object"
851895
}
852896
}
853897
},
@@ -1805,8 +1849,20 @@
18051849
},
18061850
"/v1beta/projects/{projectId}/instances/{instanceId}/users": {
18071851
"get": {
1808-
"description": "Lists all STACKIT Git Users within an instances.\n",
1852+
"description": "Lists STACKIT Git Users within an instance. Supports pagination via the\noptional `page` query parameter. Each page returns up to 50 users.\n",
18091853
"operationId": "GetUsers",
1854+
"parameters": [
1855+
{
1856+
"description": "Page number for pagination (1-indexed). Each page contains up to 50 users.",
1857+
"in": "query",
1858+
"name": "page",
1859+
"schema": {
1860+
"default": 1,
1861+
"minimum": 1,
1862+
"type": "integer"
1863+
}
1864+
}
1865+
],
18101866
"responses": {
18111867
"200": {
18121868
"content": {
@@ -2041,8 +2097,8 @@
20412097
}
20422098
],
20432099
"patch": {
2044-
"description": "Patches the Instance User.\n",
2045-
"operationId": "PatchUser",
2100+
"description": "Updates the Instance User.\n",
2101+
"operationId": "UpdateUser",
20462102
"requestBody": {
20472103
"content": {
20482104
"application/json": {
@@ -2052,7 +2108,7 @@
20522108
"password": "my-new-password"
20532109
},
20542110
"schema": {
2055-
"$ref": "#/components/schemas/PatchUserPayload"
2111+
"$ref": "#/components/schemas/UpdateUserPayload"
20562112
}
20572113
}
20582114
},
@@ -2099,7 +2155,7 @@
20992155
"description": "Internal server error."
21002156
}
21012157
},
2102-
"summary": "Patch Instance User.",
2158+
"summary": "Update Instance User.",
21032159
"x-stackit-authorization": {
21042160
"actions": [
21052161
"git.instance.update"

0 commit comments

Comments
 (0)