Skip to content

Commit d17a5f5

Browse files
OAS Update
1 parent 1100049 commit d17a5f5

File tree

1 file changed

+286
-14
lines changed

1 file changed

+286
-14
lines changed

services/postgres-flex/v1/postgres-flex.json

+286-14
Original file line numberDiff line numberDiff line change
@@ -161,20 +161,6 @@
161161
},
162162
"type": "object"
163163
},
164-
"instance.PartialUpdateUserRequest": {
165-
"properties": {
166-
"database": {
167-
"type": "string"
168-
},
169-
"roles": {
170-
"items": {
171-
"type": "string"
172-
},
173-
"type": "array"
174-
}
175-
},
176-
"type": "object"
177-
},
178164
"CreateInstancePayload": {
179165
"properties": {
180166
"acl": {
@@ -297,6 +283,34 @@
297283
},
298284
"type": "object"
299285
},
286+
"UpdateUserPayload": {
287+
"properties": {
288+
"database": {
289+
"type": "string"
290+
},
291+
"roles": {
292+
"items": {
293+
"type": "string"
294+
},
295+
"type": "array"
296+
}
297+
},
298+
"type": "object"
299+
},
300+
"PartialUpdateUserPayload": {
301+
"properties": {
302+
"database": {
303+
"type": "string"
304+
},
305+
"roles": {
306+
"items": {
307+
"type": "string"
308+
},
309+
"type": "array"
310+
}
311+
},
312+
"type": "object"
313+
},
300314
"ACL": {
301315
"properties": {
302316
"items": {
@@ -1537,6 +1551,264 @@
15371551
],
15381552
"summary": "Get User",
15391553
"operationId": "GetUser"
1554+
},
1555+
"patch": {
1556+
"description": "Update user for an instance. Only the roles are updatable.",
1557+
"parameters": [
1558+
{
1559+
"description": "The ID of the project",
1560+
"explode": false,
1561+
"in": "path",
1562+
"name": "projectId",
1563+
"required": true,
1564+
"schema": {
1565+
"type": "string"
1566+
},
1567+
"style": "simple"
1568+
},
1569+
{
1570+
"description": "The ID of the instance",
1571+
"explode": false,
1572+
"in": "path",
1573+
"name": "instanceId",
1574+
"required": true,
1575+
"schema": {
1576+
"type": "string"
1577+
},
1578+
"style": "simple"
1579+
},
1580+
{
1581+
"description": "The ID of the user in the database",
1582+
"explode": false,
1583+
"in": "path",
1584+
"name": "userId",
1585+
"required": true,
1586+
"schema": {
1587+
"type": "string"
1588+
},
1589+
"style": "simple"
1590+
}
1591+
],
1592+
"requestBody": {
1593+
"content": {
1594+
"application/json": {
1595+
"schema": {
1596+
"$ref": "#/components/schemas/PartialUpdateUserPayload"
1597+
}
1598+
}
1599+
},
1600+
"description": "The Request body only required in PUT endpoint. If empty request body is send via patch, then login and createdb roles are removed from user. The field "
1601+
},
1602+
"responses": {
1603+
"200": {
1604+
"description": "OK"
1605+
},
1606+
"400": {
1607+
"content": {
1608+
"application/json": {
1609+
"schema": {
1610+
"$ref": "#/components/schemas/Error"
1611+
}
1612+
}
1613+
},
1614+
"description": "Bad Request"
1615+
},
1616+
"405": {
1617+
"description": "Method Not Allowed"
1618+
},
1619+
"500": {
1620+
"content": {
1621+
"application/json": {
1622+
"schema": {
1623+
"$ref": "#/components/schemas/Error"
1624+
}
1625+
}
1626+
},
1627+
"description": "Internal Server Error"
1628+
}
1629+
},
1630+
"security": [
1631+
{
1632+
"BearerAuth": []
1633+
}
1634+
],
1635+
"summary": "Update User",
1636+
"operationId": "PartialUpdateUser"
1637+
},
1638+
"put": {
1639+
"description": "Update user for an instance. Only the roles are updatable.",
1640+
"parameters": [
1641+
{
1642+
"description": "The ID of the project",
1643+
"explode": false,
1644+
"in": "path",
1645+
"name": "projectId",
1646+
"required": true,
1647+
"schema": {
1648+
"type": "string"
1649+
},
1650+
"style": "simple"
1651+
},
1652+
{
1653+
"description": "The ID of the instance",
1654+
"explode": false,
1655+
"in": "path",
1656+
"name": "instanceId",
1657+
"required": true,
1658+
"schema": {
1659+
"type": "string"
1660+
},
1661+
"style": "simple"
1662+
},
1663+
{
1664+
"description": "The ID of the user in the database",
1665+
"explode": false,
1666+
"in": "path",
1667+
"name": "userId",
1668+
"required": true,
1669+
"schema": {
1670+
"type": "string"
1671+
},
1672+
"style": "simple"
1673+
}
1674+
],
1675+
"requestBody": {
1676+
"content": {
1677+
"application/json": {
1678+
"schema": {
1679+
"$ref": "#/components/schemas/UpdateUserPayload"
1680+
}
1681+
}
1682+
},
1683+
"description": "The Request body only required in PUT endpoint. If empty request body is send via patch, then login and createdb roles are removed from user. The field "
1684+
},
1685+
"responses": {
1686+
"200": {
1687+
"description": "OK"
1688+
},
1689+
"400": {
1690+
"content": {
1691+
"application/json": {
1692+
"schema": {
1693+
"$ref": "#/components/schemas/Error"
1694+
}
1695+
}
1696+
},
1697+
"description": "Bad Request"
1698+
},
1699+
"405": {
1700+
"description": "Method Not Allowed"
1701+
},
1702+
"500": {
1703+
"content": {
1704+
"application/json": {
1705+
"schema": {
1706+
"$ref": "#/components/schemas/Error"
1707+
}
1708+
}
1709+
},
1710+
"description": "Internal Server Error"
1711+
}
1712+
},
1713+
"security": [
1714+
{
1715+
"BearerAuth": []
1716+
}
1717+
],
1718+
"summary": "Update User",
1719+
"operationId": "UpdateUser"
1720+
}
1721+
},
1722+
"/v1/projects/{projectId}/instances/{instanceId}/users/{userId}/reset": {
1723+
"post": {
1724+
"description": "Reset user password for a postgres instance",
1725+
"parameters": [
1726+
{
1727+
"description": "Project ID",
1728+
"explode": false,
1729+
"in": "path",
1730+
"name": "projectId",
1731+
"required": true,
1732+
"schema": {
1733+
"type": "string"
1734+
},
1735+
"style": "simple"
1736+
},
1737+
{
1738+
"description": "Instance ID",
1739+
"explode": false,
1740+
"in": "path",
1741+
"name": "instanceId",
1742+
"required": true,
1743+
"schema": {
1744+
"type": "string"
1745+
},
1746+
"style": "simple"
1747+
},
1748+
{
1749+
"description": "user ID",
1750+
"explode": false,
1751+
"in": "path",
1752+
"name": "userId",
1753+
"required": true,
1754+
"schema": {
1755+
"type": "string"
1756+
},
1757+
"style": "simple"
1758+
}
1759+
],
1760+
"responses": {
1761+
"202": {
1762+
"content": {
1763+
"application/json": {
1764+
"schema": {
1765+
"$ref": "#/components/schemas/ResetUserResponse"
1766+
}
1767+
}
1768+
},
1769+
"description": "Accepted"
1770+
},
1771+
"400": {
1772+
"content": {
1773+
"application/json": {
1774+
"schema": {
1775+
"$ref": "#/components/schemas/Error"
1776+
}
1777+
}
1778+
},
1779+
"description": "Bad Request"
1780+
},
1781+
"404": {
1782+
"content": {
1783+
"application/json": {
1784+
"schema": {
1785+
"$ref": "#/components/schemas/Error"
1786+
}
1787+
}
1788+
},
1789+
"description": "Not Found"
1790+
},
1791+
"405": {
1792+
"description": "Method Not Allowed"
1793+
},
1794+
"500": {
1795+
"content": {
1796+
"application/json": {
1797+
"schema": {
1798+
"$ref": "#/components/schemas/Error"
1799+
}
1800+
}
1801+
},
1802+
"description": "Internal Server Error"
1803+
}
1804+
},
1805+
"security": [
1806+
{
1807+
"BearerAuth": []
1808+
}
1809+
],
1810+
"summary": "Reset User",
1811+
"operationId": "ResetUser"
15401812
}
15411813
},
15421814
"/v1/projects/{projectId}/storages/{flavorId}": {

0 commit comments

Comments
 (0)