Skip to content

Commit d946e46

Browse files
ambrahmatavarma
andauthored
[Hub Generated] Review request for Microsoft.DBforPostgreSQL to add version preview/2023-03-01-preview (#23402)
* Adds base for updating Microsoft.DBforPostgreSQL from version stable/2022-12-01 to version 2023-03-01-preview * Updates readme * Updates API version in new specs and examples * Update api and add examples to support CMK with geo-backup * Fix object missing required property error for userassignedidentity * Fix multiple default tags error in readme file * Update Typescript and Python readme files to include new api version 2023-03-01-preview * Add storage autoGrow support for api version 2023-12-01 * Add support for location capabilities and server capabilities api for api version 2023-03-01-preview * FIx some swagger linter errors * Fix linter issues and fix the response for Location capabilities * Fix linter and prettier errors for capabilities api * Fix linter error * Fix linter error for missing identifier id * Add support for IOPS scaling properties for PG flexible servers * Remove unsupported type "SystemAssigned" for User AssignedIdentities after syncing code with main branch * Fix review comment to have iopsTier as optional set, however both iopsTier and iops should be part of response. * FIx the object for capabilities api to be in sync with the RP * Update boolean properties to string instead for Enabled/Disabled * Fix examples for capabilities api * Add an entry for LogFiles controller to list server logs for PostgreSQL flexible server * Added an entry for ServerLogs in readme.md file * Add new supported property, onlineResizeSupported for capabilities api * Fix path for common types.json * Fix paths for common types.json to fix validation errors * DIrectly refer the common type ErrorResponse definition for default response for logFiles api * Add advancedThreatProtectionSettings api and corresponding samples to 2023-03-01-preview api version for PostgreSQL flexible servers * Add threat protection to name tag for api version 2023-03-01-preview * Add migrations api and migrationCheckNameAvailability api to 2023-03-01-preview version * Fix linter errors for ThreatProtection * Fix linter errors for Migrations * Fix linter errors for capabiities * Update boolean properties for Migrations to enum * Add long term retention APIs to 2023-03-01 preview * Fix the request and response based on controller actions for long term retention backup apis * Fix lintdiff warnings * Fix review comments * Fix issue related to tools like credscan, spellcheck, api swagger view * Fix linter errors * Revert changes for Update for Migrations api * Fix file path for Migrations * Fix pyton track errors * Fix typo for Migrations properties * Updated description for review comments * Fix typo * Fix SDK automation errors * Fixed review comment * Updated api name for post operation and updated descriptions * Add missing body parameters for threat protection api * Fix linDiff error to add update in PUT description for Migrations api * Remove unwanted parameters for long term retention apis * Add support for ReviveDropped createMode for 2023-03-01-preview api version * Fix file reference * Fix S360 issue for sourceServerResourceId in response and fix descriptions for other issues * Fix S360 for replicaCapacity returned only in response but not set in PUT * Remove newly added Server Threat Protection api from swagger for api version 2023-03-01-preview --------- Co-authored-by: Tanay Varma <tavarma@microsoft.com>
1 parent efd49b8 commit d946e46

File tree

77 files changed

+14732
-8
lines changed

Some content is hidden

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

77 files changed

+14732
-8
lines changed

specification/postgresql/resource-manager/Microsoft.DBforPostgreSQL/preview/2023-03-01-preview/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": "2023-03-01-preview"
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)