Skip to content

Commit 1009a31

Browse files
OAS Update
1 parent e06a2c4 commit 1009a31

File tree

1 file changed

+143
-85
lines changed

1 file changed

+143
-85
lines changed

services/sqlserverflex/v1/sqlserverflex.json

Lines changed: 143 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"properties": {
66
"items": {
77
"example": [
8-
"0.0.0.0/0"
8+
"193.148.160.0/19",
9+
"45.129.40.0/21"
910
],
1011
"items": {
1112
"type": "string"
@@ -57,13 +58,13 @@
5758
"type": "string"
5859
},
5960
"options": {
60-
"additionalProperties": {
61-
"type": "string"
62-
},
63-
"description": "Database specific options",
64-
"type": "object"
61+
"$ref": "#/components/schemas/database.DocumentationCreateDatabaseRequestOptions"
6562
}
6663
},
64+
"required": [
65+
"name",
66+
"options"
67+
],
6768
"type": "object"
6869
},
6970
"CreateDatabaseResponse": {
@@ -86,7 +87,7 @@
8687
"type": "object"
8788
},
8889
"backupSchedule": {
89-
"description": "Cronjob for the daily full backup if not provided a job will generated between 0000 and 0459",
90+
"description": "Cronjob for the daily full backup if not provided a job will generated between 00:00 and 04:59",
9091
"example": "6 6 * * *",
9192
"type": "string"
9293
},
@@ -151,12 +152,12 @@
151152
},
152153
"CreateUserPayload": {
153154
"properties": {
154-
"database": {
155+
"default_database": {
155156
"type": "string"
156157
},
157158
"roles": {
158159
"items": {
159-
"$ref": "#/components/schemas/Role"
160+
"type": "string"
160161
},
161162
"type": "array"
162163
},
@@ -165,15 +166,15 @@
165166
}
166167
},
167168
"required": [
168-
"database",
169+
"default_database",
169170
"roles"
170171
],
171172
"type": "object"
172173
},
173174
"CreateUserResponse": {
174175
"properties": {
175176
"item": {
176-
"$ref": "#/components/schemas/User"
177+
"$ref": "#/components/schemas/SingleUser"
177178
}
178179
},
179180
"type": "object"
@@ -207,7 +208,7 @@
207208
"example": false,
208209
"type": "boolean"
209210
},
210-
"ownerName": {
211+
"owner": {
211212
"description": "Name of the owner of the database.",
212213
"example": "Peter",
213214
"type": "string"
@@ -256,30 +257,8 @@
256257
},
257258
"GetDatabaseResponse": {
258259
"properties": {
259-
"collation": {
260-
"example": "SQL_Latin1_General_CP1_CI_AS",
261-
"type": "string"
262-
},
263-
"createDate": {
264-
"example": "2003-04-08T09:13:36.39Z",
265-
"type": "string"
266-
},
267-
"id": {
268-
"example": "1",
269-
"type": "string"
270-
},
271-
"name": {
272-
"example": "Peter_pan",
273-
"type": "string"
274-
},
275-
"options": {
276-
"allOf": [
277-
{
278-
"$ref": "#/components/schemas/DatabaseOptions"
279-
}
280-
],
281-
"description": "Database specific options",
282-
"type": "object"
260+
"database": {
261+
"$ref": "#/components/schemas/SingleDatabase"
283262
}
284263
},
285264
"type": "object"
@@ -295,7 +274,7 @@
295274
"GetUserResponse": {
296275
"properties": {
297276
"item": {
298-
"$ref": "#/components/schemas/instance.ResponseUser"
277+
"$ref": "#/components/schemas/user.ResponseUser"
299278
}
300279
},
301280
"type": "object"
@@ -491,7 +470,7 @@
491470
"type": "object"
492471
},
493472
"backupSchedule": {
494-
"description": "Cronjob for the daily full backup if not provided a job will generated between 0000 and 0459",
473+
"description": "Cronjob for the daily full backup if not provided a job will generated between 00:00 and 04:59",
495474
"example": "6 6 * * *",
496475
"type": "string"
497476
},
@@ -531,24 +510,67 @@
531510
},
532511
"type": "object"
533512
},
534-
"Role": {
535-
"enum": [
536-
"SELECT",
537-
"INSERT",
538-
"UPDATE",
539-
"DELETE",
540-
"TRUNCATE",
541-
"TRIGGER",
542-
"CREATE",
543-
"CONNECT",
544-
"TEMPORARY",
545-
"EXECUTE",
546-
"USAGE",
547-
"read",
548-
"readWrite",
549-
"readWriteAnyDatabase"
550-
],
551-
"type": "string"
513+
"SingleDatabase": {
514+
"properties": {
515+
"collation": {
516+
"example": "SQL_Latin1_General_CP1_CI_AS",
517+
"type": "string"
518+
},
519+
"createDate": {
520+
"example": "2003-04-08T09:13:36.39Z",
521+
"type": "string"
522+
},
523+
"id": {
524+
"example": "1",
525+
"type": "string"
526+
},
527+
"name": {
528+
"example": "Peter_pan",
529+
"type": "string"
530+
},
531+
"options": {
532+
"allOf": [
533+
{
534+
"$ref": "#/components/schemas/DatabaseOptions"
535+
}
536+
],
537+
"description": "Database specific options",
538+
"type": "object"
539+
}
540+
},
541+
"type": "object"
542+
},
543+
"SingleUser": {
544+
"properties": {
545+
"default_database": {
546+
"type": "string"
547+
},
548+
"host": {
549+
"type": "string"
550+
},
551+
"id": {
552+
"type": "string"
553+
},
554+
"password": {
555+
"type": "string"
556+
},
557+
"port": {
558+
"type": "integer"
559+
},
560+
"roles": {
561+
"items": {
562+
"type": "string"
563+
},
564+
"type": "array"
565+
},
566+
"uri": {
567+
"type": "string"
568+
},
569+
"username": {
570+
"type": "string"
571+
}
572+
},
573+
"type": "object"
552574
},
553575
"Storage": {
554576
"properties": {
@@ -588,6 +610,10 @@
588610
"type": "string"
589611
}
590612
},
613+
"required": [
614+
"name",
615+
"restoreDateTime"
616+
],
591617
"type": "object"
592618
},
593619
"Type": {
@@ -613,7 +639,7 @@
613639
"type": "object"
614640
},
615641
"backupSchedule": {
616-
"description": "Cronjob for the daily full backup if not provided a job will generated between 0000 and 0459",
642+
"description": "Cronjob for the daily full backup if not provided a job will generated between 00:00 and 04:59",
617643
"example": "6 6 * * *",
618644
"type": "string"
619645
},
@@ -643,6 +669,14 @@
643669
"type": "string"
644670
}
645671
},
672+
"required": [
673+
"acl",
674+
"backupSchedule",
675+
"flavorId",
676+
"labels",
677+
"name",
678+
"version"
679+
],
646680
"type": "object"
647681
},
648682
"UpdateInstanceResponse": {
@@ -685,12 +719,36 @@
685719
},
686720
"type": "object"
687721
},
722+
"database.DocumentationCreateDatabaseRequestOptions": {
723+
"properties": {
724+
"collation": {
725+
"description": "Collation of the database",
726+
"example": "Latin1_General_100_CI_AS_KS_WS",
727+
"type": "string"
728+
},
729+
"compatibilityLevel": {
730+
"description": "CompatibilityLevel of the Database.",
731+
"example": "160",
732+
"type": "string"
733+
},
734+
"owner": {
735+
"description": "Name of the owner of the database.",
736+
"example": "Herbert",
737+
"type": "string"
738+
}
739+
},
740+
"required": [
741+
"owner"
742+
],
743+
"type": "object"
744+
},
688745
"instance.DocumentationACL": {
689746
"properties": {
690747
"items": {
691748
"description": "a simple list with IP addresses with CIDR.",
692749
"example": [
693-
"0.0.0.0/0"
750+
"193.148.160.0/19",
751+
"45.129.40.0/21"
694752
],
695753
"items": {
696754
"type": "string"
@@ -813,32 +871,6 @@
813871
},
814872
"type": "object"
815873
},
816-
"instance.ResponseUser": {
817-
"properties": {
818-
"database": {
819-
"type": "string"
820-
},
821-
"host": {
822-
"type": "string"
823-
},
824-
"id": {
825-
"type": "string"
826-
},
827-
"port": {
828-
"type": "integer"
829-
},
830-
"roles": {
831-
"items": {
832-
"type": "string"
833-
},
834-
"type": "array"
835-
},
836-
"username": {
837-
"type": "string"
838-
}
839-
},
840-
"type": "object"
841-
},
842874
"mssql.DatabaseCollation": {
843875
"properties": {
844876
"collation_name": {
@@ -889,6 +921,32 @@
889921
}
890922
},
891923
"type": "object"
924+
},
925+
"user.ResponseUser": {
926+
"properties": {
927+
"default_database": {
928+
"type": "string"
929+
},
930+
"host": {
931+
"type": "string"
932+
},
933+
"id": {
934+
"type": "string"
935+
},
936+
"port": {
937+
"type": "integer"
938+
},
939+
"roles": {
940+
"items": {
941+
"type": "string"
942+
},
943+
"type": "array"
944+
},
945+
"username": {
946+
"type": "string"
947+
}
948+
},
949+
"type": "object"
892950
}
893951
}
894952
},
@@ -2361,7 +2419,7 @@
23612419
}
23622420
}
23632421
},
2364-
"description": "body",
2422+
"description": "The request body contains a username, a list of roles and database. The possible roles can be fetched from the ListRoles endpoint.",
23652423
"required": true
23662424
},
23672425
"responses": {

0 commit comments

Comments
 (0)