Skip to content

Commit e665d55

Browse files
ravigautam1896Ravi Gautam
andauthored
Adding folders and examples changes for Version 2024-05-01 preview version (#29200)
* Adds base for updating Microsoft.Sql from version preview/2023-08-01-preview to version 2024-05-01-preview * Updates API version in new specs and examples * Updates readme * addressing comments * resolving spell check errors * resolving LroLocationheader errors * supress errors from DatabaseAdvisiors.json * reverting the supression --------- Co-authored-by: Ravi Gautam <[email protected]>
1 parent 9583ed6 commit e665d55

File tree

817 files changed

+95468
-18
lines changed

Some content is hidden

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

817 files changed

+95468
-18
lines changed

cSpell.json

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -286,44 +286,32 @@
286286
]
287287
},
288288
{
289-
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/DistributedAvailabilityGroups.json",
289+
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/**/DistributedAvailabilityGroups.json",
290290
"words": [
291291
"freemium"
292292
]
293293
},
294294
{
295-
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-02-01-preview/ManagedInstances.json",
295+
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/**/ManagedInstances.json",
296296
"words": [
297297
"freemium"
298298
]
299299
},
300300
{
301-
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-05-01-preview/ManagedInstances.json",
301+
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/**/ServerTrustCertificates.json",
302302
"words": [
303303
"freemium"
304304
]
305305
},
306306
{
307-
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/ManagedInstances.json",
308-
"words": [
309-
"freemium"
310-
]
311-
},
312-
{
313-
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/ServerTrustCertificates.json",
314-
"words": [
315-
"freemium"
316-
]
317-
},
318-
{
319-
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/ManagedInstanceDtcs.json",
307+
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/**/ManagedInstanceDtcs.json",
320308
"words": [
321309
"msdtcdns",
322310
"msdtc's"
323311
]
324312
},
325313
{
326-
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/2023-08-01-preview/TimeZones.json",
314+
"filename": "**/specification/sql/resource-manager/Microsoft.Sql/preview/**/TimeZones.json",
327315
"words": [
328316
"freemium"
329317
]

specification/sql/resource-manager/Microsoft.Sql/preview/2024-05-01-preview/BackupShortTermRetentionPolicies.json

Lines changed: 357 additions & 0 deletions
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2024-05-01-preview/BlobAuditing.json

Lines changed: 1123 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 246 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,246 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2024-05-01-preview",
5+
"title": "SqlManagementClient",
6+
"description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities."
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/{dataMaskingPolicyName}": {
20+
"get": {
21+
"tags": [
22+
"DataMaskingPolicies"
23+
],
24+
"description": "Gets the database data masking policy.",
25+
"operationId": "DataMaskingPolicies_Get",
26+
"parameters": [
27+
{
28+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
29+
},
30+
{
31+
"$ref": "#/parameters/ServerNameParameter"
32+
},
33+
{
34+
"$ref": "#/parameters/DatabaseNameParameter"
35+
},
36+
{
37+
"name": "dataMaskingPolicyName",
38+
"in": "path",
39+
"description": "The name of the database for which the data masking policy applies.",
40+
"required": true,
41+
"type": "string",
42+
"enum": [
43+
"Default"
44+
],
45+
"x-ms-enum": {
46+
"name": "DataMaskingPolicyName",
47+
"modelAsString": true
48+
}
49+
},
50+
{
51+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
52+
},
53+
{
54+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
55+
}
56+
],
57+
"responses": {
58+
"200": {
59+
"description": "Successfully retrieved the database data masking policies.",
60+
"schema": {
61+
"$ref": "#/definitions/DataMaskingPolicy"
62+
}
63+
},
64+
"default": {
65+
"description": "*** Error Responses: ***",
66+
"schema": {
67+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
68+
}
69+
}
70+
},
71+
"x-ms-examples": {
72+
"Gets the database data masking policies.": {
73+
"$ref": "./examples/DataMaskingPolicyGet.json"
74+
}
75+
}
76+
},
77+
"put": {
78+
"tags": [
79+
"DataMaskingPolicies"
80+
],
81+
"description": "Creates or updates a database data masking policy.",
82+
"operationId": "DataMaskingPolicies_CreateOrUpdate",
83+
"parameters": [
84+
{
85+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
86+
},
87+
{
88+
"$ref": "#/parameters/ServerNameParameter"
89+
},
90+
{
91+
"$ref": "#/parameters/DatabaseNameParameter"
92+
},
93+
{
94+
"name": "dataMaskingPolicyName",
95+
"in": "path",
96+
"description": "The name of the database for which the data masking policy applies.",
97+
"required": true,
98+
"type": "string",
99+
"enum": [
100+
"Default"
101+
],
102+
"x-ms-enum": {
103+
"name": "DataMaskingPolicyName",
104+
"modelAsString": true
105+
}
106+
},
107+
{
108+
"name": "parameters",
109+
"in": "body",
110+
"description": "Parameters for creating or updating a data masking policy.",
111+
"required": true,
112+
"schema": {
113+
"$ref": "#/definitions/DataMaskingPolicy"
114+
}
115+
},
116+
{
117+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
118+
},
119+
{
120+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
121+
}
122+
],
123+
"responses": {
124+
"200": {
125+
"description": "Successfully created database data masking policy.",
126+
"schema": {
127+
"$ref": "#/definitions/DataMaskingPolicy"
128+
}
129+
},
130+
"default": {
131+
"description": "*** Error Responses: ***",
132+
"schema": {
133+
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
134+
}
135+
},
136+
"201": {
137+
"description": "Successfully created database data masking policy..",
138+
"schema": {
139+
"$ref": "#/definitions/DataMaskingPolicy"
140+
}
141+
}
142+
},
143+
"x-ms-examples": {
144+
"Create or update data masking policy max": {
145+
"$ref": "./examples/DataMaskingPolicyCreateOrUpdateMax.json"
146+
},
147+
"Create or update data masking policy min.": {
148+
"$ref": "./examples/DataMaskingPolicyCreateOrUpdateMin.json"
149+
}
150+
}
151+
}
152+
}
153+
},
154+
"definitions": {
155+
"DataMaskingPolicy": {
156+
"description": "A database data masking policy.",
157+
"type": "object",
158+
"allOf": [
159+
{
160+
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
161+
}
162+
],
163+
"properties": {
164+
"location": {
165+
"description": "The location of the data masking policy.",
166+
"type": "string",
167+
"readOnly": true
168+
},
169+
"kind": {
170+
"description": "The kind of Data Masking Policy. Metadata, used for Azure portal.",
171+
"type": "string",
172+
"readOnly": true
173+
},
174+
"properties": {
175+
"$ref": "#/definitions/DataMaskingPolicyProperties",
176+
"description": "Resource properties.",
177+
"x-ms-client-flatten": true
178+
}
179+
}
180+
},
181+
"DataMaskingPolicyProperties": {
182+
"description": "The properties of a database data masking policy.",
183+
"required": [
184+
"dataMaskingState"
185+
],
186+
"type": "object",
187+
"properties": {
188+
"dataMaskingState": {
189+
"description": "The state of the data masking policy.",
190+
"enum": [
191+
"Enabled",
192+
"Disabled"
193+
],
194+
"type": "string",
195+
"x-ms-enum": {
196+
"name": "DataMaskingState",
197+
"modelAsString": false
198+
}
199+
},
200+
"exemptPrincipals": {
201+
"description": "The list of the exempt principals. Specifies the semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.",
202+
"type": "string"
203+
},
204+
"applicationPrincipals": {
205+
"description": "The list of the application principals. This is a legacy parameter and is no longer used.",
206+
"type": "string",
207+
"readOnly": true
208+
},
209+
"maskingLevel": {
210+
"description": "The masking level. This is a legacy parameter and is no longer used.",
211+
"type": "string",
212+
"readOnly": true
213+
}
214+
}
215+
}
216+
},
217+
"parameters": {
218+
"DatabaseNameParameter": {
219+
"name": "databaseName",
220+
"in": "path",
221+
"description": "The name of the database.",
222+
"required": true,
223+
"type": "string",
224+
"x-ms-parameter-location": "method"
225+
},
226+
"ServerNameParameter": {
227+
"name": "serverName",
228+
"in": "path",
229+
"description": "The name of the server.",
230+
"required": true,
231+
"type": "string",
232+
"x-ms-parameter-location": "method"
233+
}
234+
},
235+
"securityDefinitions": {
236+
"azure_auth": {
237+
"type": "oauth2",
238+
"description": "Azure Active Directory OAuth2 Flow",
239+
"flow": "implicit",
240+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
241+
"scopes": {
242+
"user_impersonation": "impersonate your user account"
243+
}
244+
}
245+
}
246+
}

0 commit comments

Comments
 (0)