Skip to content

Commit c942bdc

Browse files
jeremyfrostiguptanitish-msStefan KrivokapiclobashhSharanSingh
authored
Release sql microsoft.sql 2023 02 01 preview (#25293)
* Adds base for updating Microsoft.Sql from version preview/2022-11-01-preview to version 2023-02-01-preview * Updates readme * Updates API version in new specs and examples * add mi refresh API (#24093) * add mi refresh API * remove stray character * add examples * fix lro error * fix lro error only in example * fixing prettier issue * Test commit - adding error schema * Test2 * Test - changing error type * Revert "Test - changing error type" This reverts commit 84fff94. * Reverting 3 test commits * Test - adding commong error type reference * fix type format errors --------- Co-authored-by: Stefan Krivokapic <[email protected]> * Adding changes from main to release branch. PRs 24175 and 24185 (#24221) * Enable multiple partner servers and failover of read-only endpoint for SQL DB Failover Group in version 2023-02-01-preview. (#24132) * Added the swagger spec and example json files for failvoer group API update in V2023-020-1 * Corrected the FailoverGroupGet.json example * Updated the auto-generated FailoverGroups.json Fixed FailoverGroups.json swagger arm-id attribute for databases field * Added the missing headers field manually * Fix FailoverGroups.json --------- Co-authored-by: Sharan Singh <[email protected]> * Changes to Location Capabilities (#24209) * Loc cap changes * removing changes not related to my changes in dsmain * DAG API 2023-02-01 (#24108) * add new dag api version * Update swagger * Update swagger * patch resource * make replicationMode writable * Add FreeLimitExhaustion Capability in 2023-02-01-preview API (#24224) * Add FreeLimitExhaustion Capability in 2023-02-01-preview API * Change property from name to exhaustionBehaviorType * generate swagger for LocationCapabilites (#24290) * inital commit for LTR Policy Immutability (#24347) * inital commit for immutable ltr backups (#24349) * Update Servers swagger files with adding property "IsIPv6Enabled" (#24305) * Update swagger files for Server API * Add v5 tag for Servers * Restore none for minimal TLS version * Add auto rotation param to databases api (#24339) * Add auto rotation param to databases api * add armid * Adding IsFreemium and CreateTime to Get MI API (#24239) * Updated the examples for LTR Policies and LTR Backups (#24821) * Updated the examples for LTR Policies and LTR Backups * Not sure why makeBackupsImmutable got deleted * updating swagger files for enum name changes (#24742) * Carrying over minor changes for the 2023-02-01-preview release (#25177) * Carrying over minor changes for the 2023-02-01-preview release * Reverting example files that didn't have DsMainDev side changes, and fixing prettier check * Fixes for LTR examples with model validation and prettier check for ServerDelete * Reverting LTR changes * Adding arm-id to serversjson * swagger changes for adding new parameter in dc telemetry (#24834) * testing push * reverting push * swagger files for DC add parameter change * delete added file * modified swagger files without Venkat's change * modified swagger files * changed modelAsString to true * add example files * add example files * fix mismatch * Removing Pattern from ManagedInstance to avoid incident (#25295) * Carrying over minor changes for the 2023-02-01-preview release * Reverting example files that didn't have DsMainDev side changes, and fixing prettier check * Fixes for LTR examples with model validation and prettier check for ServerDelete * Reverting LTR changes * Adding arm-id to serversjson * Removing the Pattern property from ManagedInstances.json as it should not be present and will cause issues in downstream client generation --------- Co-authored-by: guptanitish-ms <[email protected]> Co-authored-by: Stefan Krivokapic <[email protected]> Co-authored-by: lobashh <[email protected]> Co-authored-by: Sharan Singh <[email protected]> Co-authored-by: Aleksand4rZivanovic <[email protected]> Co-authored-by: a-lazarlazic <[email protected]> Co-authored-by: mykolian <[email protected]> Co-authored-by: Srna Nikolic <[email protected]> Co-authored-by: rebeccaxu-ms <[email protected]> Co-authored-by: LeiWang3 <[email protected]> Co-authored-by: viparek <[email protected]> Co-authored-by: Nikola Mirkovic <[email protected]> Co-authored-by: pmahanandire <[email protected]> Co-authored-by: nidhigupta <[email protected]>
1 parent 1e8906b commit c942bdc

File tree

793 files changed

+91376
-3
lines changed

Some content is hidden

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

793 files changed

+91376
-3
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@ francecentral
973973
francesouth
974974
freebsd
975975
freeflow
976+
freemium
976977
frontdoor
977978
frulian
978979
fsaction

specification/sql/resource-manager/Microsoft.Sql/preview/2023-02-01-preview/BackupShortTermRetentionPolicies.json

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

specification/sql/resource-manager/Microsoft.Sql/preview/2023-02-01-preview/BlobAuditing.json

Lines changed: 1087 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2023-02-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+
}
67+
},
68+
"x-ms-examples": {
69+
"Gets the database data masking policies.": {
70+
"$ref": "./examples/DataMaskingPolicyGet.json"
71+
}
72+
}
73+
},
74+
"put": {
75+
"tags": [
76+
"DataMaskingPolicies"
77+
],
78+
"description": "Creates or updates a database data masking policy.",
79+
"operationId": "DataMaskingPolicies_CreateOrUpdate",
80+
"parameters": [
81+
{
82+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
83+
},
84+
{
85+
"$ref": "#/parameters/ServerNameParameter"
86+
},
87+
{
88+
"$ref": "#/parameters/DatabaseNameParameter"
89+
},
90+
{
91+
"name": "dataMaskingPolicyName",
92+
"in": "path",
93+
"description": "The name of the database for which the data masking policy applies.",
94+
"required": true,
95+
"type": "string",
96+
"enum": [
97+
"Default"
98+
],
99+
"x-ms-enum": {
100+
"name": "DataMaskingPolicyName",
101+
"modelAsString": true
102+
}
103+
},
104+
{
105+
"name": "parameters",
106+
"in": "body",
107+
"description": "Parameters for creating or updating a data masking policy.",
108+
"required": true,
109+
"schema": {
110+
"$ref": "#/definitions/DataMaskingPolicy"
111+
}
112+
},
113+
{
114+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
115+
},
116+
{
117+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
118+
}
119+
],
120+
"responses": {
121+
"200": {
122+
"description": "Successfully created database data masking policy.",
123+
"schema": {
124+
"$ref": "#/definitions/DataMaskingPolicy"
125+
}
126+
},
127+
"default": {
128+
"description": "*** Error Responses: ***"
129+
},
130+
"201": {
131+
"description": "Successfully created database data masking policy..",
132+
"schema": {
133+
"$ref": "#/definitions/DataMaskingPolicy"
134+
}
135+
}
136+
},
137+
"x-ms-examples": {
138+
"Create or update data masking policy max": {
139+
"$ref": "./examples/DataMaskingPolicyCreateOrUpdateMax.json"
140+
},
141+
"Create or update data masking policy min.": {
142+
"$ref": "./examples/DataMaskingPolicyCreateOrUpdateMin.json"
143+
}
144+
}
145+
}
146+
}
147+
},
148+
"definitions": {
149+
"DataMaskingPolicy": {
150+
"description": "A database data masking policy.",
151+
"type": "object",
152+
"allOf": [
153+
{
154+
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
155+
}
156+
],
157+
"properties": {
158+
"location": {
159+
"description": "The location of the data masking policy.",
160+
"type": "string",
161+
"readOnly": true
162+
},
163+
"kind": {
164+
"description": "The kind of Data Masking Policy. Metadata, used for Azure portal.",
165+
"type": "string",
166+
"readOnly": true
167+
},
168+
"properties": {
169+
"$ref": "#/definitions/DataMaskingPolicyProperties",
170+
"description": "Resource properties.",
171+
"x-ms-client-flatten": true
172+
}
173+
}
174+
},
175+
"DataMaskingPolicyProperties": {
176+
"description": "The properties of a database data masking policy.",
177+
"required": [
178+
"dataMaskingState"
179+
],
180+
"type": "object",
181+
"properties": {
182+
"dataMaskingState": {
183+
"description": "The state of the data masking policy.",
184+
"enum": [
185+
"Enabled",
186+
"Disabled"
187+
],
188+
"type": "string",
189+
"x-ms-enum": {
190+
"name": "DataMaskingState",
191+
"modelAsString": false
192+
}
193+
},
194+
"exemptPrincipals": {
195+
"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.",
196+
"type": "string"
197+
},
198+
"applicationPrincipals": {
199+
"description": "The list of the application principals. This is a legacy parameter and is no longer used.",
200+
"type": "string",
201+
"readOnly": true
202+
},
203+
"maskingLevel": {
204+
"description": "The masking level. This is a legacy parameter and is no longer used.",
205+
"type": "string",
206+
"readOnly": true
207+
}
208+
}
209+
}
210+
},
211+
"parameters": {
212+
"DatabaseNameParameter": {
213+
"name": "databaseName",
214+
"in": "path",
215+
"description": "The name of the database.",
216+
"required": true,
217+
"type": "string",
218+
"x-ms-parameter-location": "method"
219+
},
220+
"ServerNameParameter": {
221+
"name": "serverName",
222+
"in": "path",
223+
"description": "The name of the server.",
224+
"required": true,
225+
"type": "string",
226+
"x-ms-parameter-location": "method"
227+
}
228+
},
229+
"securityDefinitions": {
230+
"azure_auth": {
231+
"type": "oauth2",
232+
"description": "Azure Active Directory OAuth2 Flow",
233+
"flow": "implicit",
234+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
235+
"scopes": {
236+
"user_impersonation": "impersonate your user account"
237+
}
238+
}
239+
}
240+
}

0 commit comments

Comments
 (0)