Skip to content

Commit e812b54

Browse files
authored
Review request for Microsoft.DBforPostgreSQL Flexible server to add version stable/2022-12-01 (#21803)
* Adds base for updating Microsoft.DBforPostgreSQL from version preview/2022-03-08-preview to version 2022-12-01 * Updates readme * Updates API version in new specs and examples * Fix readme file for new api version change * Move common-types.json to types folder under postgresql/resource-manager * Fix path for common-types.json * Introduced new enum properties for authConfig object instead of previously used enums, based on ARM feedback on earlier 2022-03-08-preview api version PR * Add LroLocationHeaders for 202 calls * Updated readme files for go, python and typescript to include new ga api version 2022-12-01 * Multi api version for PG flexible server to inlude 2022-12-01 ga api version * remove 2022-1201- from multi api in readme.md file * Update readme files to keep 2022-12-01 ga api version as default version * Revert changes done to readme.go.md
1 parent 2181a44 commit e812b54

File tree

61 files changed

+16916
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+16916
-6
lines changed

specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/stable/2022-12-01/Administrators.json

Lines changed: 411 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "PostgreSQLServerManagementClient",
5+
"description": "The Microsoft Azure management API provides create, read, update, and delete functionality for Azure PostgreSQL resources including servers, databases, firewall rules, VNET rules, security alert policies, log files and configurations with new business model.",
6+
"version": "2022-12-01"
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"security": [
19+
{
20+
"azure_auth": [
21+
"user_impersonation"
22+
]
23+
}
24+
],
25+
"securityDefinitions": {
26+
"azure_auth": {
27+
"type": "oauth2",
28+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
29+
"flow": "implicit",
30+
"description": "Azure Active Directory OAuth2 Flow",
31+
"scopes": {
32+
"user_impersonation": "impersonate your user account"
33+
}
34+
}
35+
},
36+
"paths": {
37+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups/{backupName}": {
38+
"get": {
39+
"tags": [
40+
"Backups"
41+
],
42+
"operationId": "Backups_Get",
43+
"x-ms-examples": {
44+
"Get a backup for a server": {
45+
"$ref": "./examples/BackupGet.json"
46+
}
47+
},
48+
"description": "Get specific backup for a given server.",
49+
"parameters": [
50+
{
51+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
52+
},
53+
{
54+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
55+
},
56+
{
57+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
58+
},
59+
{
60+
"$ref": "../../../types/common-types.json#/parameters/ServerNameParameter"
61+
},
62+
{
63+
"$ref": "#/parameters/BackupNameParameter"
64+
}
65+
],
66+
"responses": {
67+
"200": {
68+
"description": "OK",
69+
"schema": {
70+
"$ref": "#/definitions/ServerBackup"
71+
}
72+
},
73+
"default": {
74+
"description": "Error response describing why the operation failed.",
75+
"schema": {
76+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
77+
}
78+
}
79+
}
80+
}
81+
},
82+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{serverName}/backups": {
83+
"get": {
84+
"tags": [
85+
"Backups"
86+
],
87+
"operationId": "Backups_ListByServer",
88+
"x-ms-examples": {
89+
"List backups for a server": {
90+
"$ref": "./examples/BackupListByServer.json"
91+
}
92+
},
93+
"description": "List all the backups for a given server.",
94+
"parameters": [
95+
{
96+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
97+
},
98+
{
99+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
100+
},
101+
{
102+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
103+
},
104+
{
105+
"$ref": "../../../types/common-types.json#/parameters/ServerNameParameter"
106+
}
107+
],
108+
"responses": {
109+
"200": {
110+
"description": "OK",
111+
"schema": {
112+
"$ref": "#/definitions/ServerBackupListResult"
113+
}
114+
},
115+
"default": {
116+
"description": "Error response describing why the operation failed.",
117+
"schema": {
118+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
119+
}
120+
}
121+
},
122+
"x-ms-pageable": {
123+
"nextLinkName": "nextLink"
124+
}
125+
}
126+
}
127+
},
128+
"definitions": {
129+
"ServerBackupProperties": {
130+
"type": "object",
131+
"properties": {
132+
"backupType": {
133+
"type": "string",
134+
"description": "Backup type.",
135+
"enum": [
136+
"Full"
137+
],
138+
"x-ms-enum": {
139+
"name": "Origin",
140+
"modelAsString": true
141+
}
142+
},
143+
"completedTime": {
144+
"type": "string",
145+
"format": "date-time",
146+
"description": "Backup completed time (ISO8601 format)."
147+
},
148+
"source": {
149+
"type": "string",
150+
"description": "Backup source"
151+
}
152+
},
153+
"description": "The properties of a server backup."
154+
},
155+
"ServerBackup": {
156+
"type": "object",
157+
"properties": {
158+
"properties": {
159+
"$ref": "#/definitions/ServerBackupProperties",
160+
"x-ms-client-flatten": true,
161+
"description": "The properties of a server backup."
162+
},
163+
"systemData": {
164+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/systemData",
165+
"readOnly": true,
166+
"description": "The system metadata relating to this resource."
167+
}
168+
},
169+
"allOf": [
170+
{
171+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
172+
}
173+
],
174+
"description": "Server backup properties"
175+
},
176+
"ServerBackupListResult": {
177+
"type": "object",
178+
"properties": {
179+
"value": {
180+
"type": "array",
181+
"items": {
182+
"$ref": "#/definitions/ServerBackup"
183+
},
184+
"description": "The list of backups of a server."
185+
},
186+
"nextLink": {
187+
"description": "The link used to get the next page of operations.",
188+
"type": "string"
189+
}
190+
},
191+
"description": "A list of server backups."
192+
}
193+
},
194+
"parameters": {
195+
"BackupNameParameter": {
196+
"name": "backupName",
197+
"in": "path",
198+
"required": true,
199+
"type": "string",
200+
"description": "The name of the backup.",
201+
"minLength": 1,
202+
"pattern": "^[-\\w\\._]+$",
203+
"x-ms-parameter-location": "method"
204+
}
205+
}
206+
}

0 commit comments

Comments
 (0)