Skip to content

Commit c42a52a

Browse files
authored
Update V5 SDK tag with latest request (#14341)
* Update V5 SDK with latest request * add RestorableDroppedDatabases to v5 sdk * remove the duplicated property * formatted
1 parent ecc8630 commit c42a52a

File tree

2 files changed

+270
-3
lines changed

2 files changed

+270
-3
lines changed
Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,264 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "Azure SQL Database replication links",
5+
"description": "Provides read, delete, and failover functionality for Azure SQL Database replication links.",
6+
"version": "2014-04-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+
"paths": {
19+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}": {
20+
"delete": {
21+
"tags": [
22+
"DatabaseReplicationLinks"
23+
],
24+
"operationId": "ReplicationLinks_Delete",
25+
"description": "Deletes a database replication link. Cannot be done during failover.",
26+
"x-ms-examples": {
27+
"Delete a replication link": {
28+
"$ref": "./examples/ReplicationLinkDelete.json"
29+
}
30+
},
31+
"parameters": [
32+
{
33+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
34+
},
35+
{
36+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
37+
},
38+
{
39+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
40+
},
41+
{
42+
"$ref": "#/parameters/ServerNameParameter"
43+
},
44+
{
45+
"name": "databaseName",
46+
"in": "path",
47+
"required": true,
48+
"type": "string",
49+
"description": "The name of the database that has the replication link to be dropped."
50+
},
51+
{
52+
"name": "linkId",
53+
"in": "path",
54+
"required": true,
55+
"type": "string",
56+
"description": "The ID of the replication link to be deleted."
57+
}
58+
],
59+
"responses": {
60+
"200": {
61+
"description": "OK"
62+
},
63+
"204": {
64+
"description": "NoContent"
65+
}
66+
}
67+
}
68+
},
69+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/failover": {
70+
"post": {
71+
"tags": [
72+
"DatabaseReplicationLinks"
73+
],
74+
"operationId": "ReplicationLinks_Failover",
75+
"description": "Sets which replica database is primary by failing over from the current primary replica database.",
76+
"x-ms-examples": {
77+
"Failover a replication link": {
78+
"$ref": "./examples/ReplicationLinkFailover.json"
79+
}
80+
},
81+
"parameters": [
82+
{
83+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
84+
},
85+
{
86+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
87+
},
88+
{
89+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
90+
},
91+
{
92+
"$ref": "#/parameters/ServerNameParameter"
93+
},
94+
{
95+
"name": "databaseName",
96+
"in": "path",
97+
"required": true,
98+
"type": "string",
99+
"description": "The name of the database that has the replication link to be failed over."
100+
},
101+
{
102+
"name": "linkId",
103+
"in": "path",
104+
"required": true,
105+
"type": "string",
106+
"description": "The ID of the replication link to be failed over."
107+
}
108+
],
109+
"responses": {
110+
"204": {
111+
"description": "No Content"
112+
},
113+
"202": {
114+
"description": "Accepted"
115+
}
116+
},
117+
"x-ms-long-running-operation": true
118+
}
119+
},
120+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss": {
121+
"post": {
122+
"tags": [
123+
"DatabaseReplicationLinks"
124+
],
125+
"operationId": "ReplicationLinks_FailoverAllowDataLoss",
126+
"description": "Sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss.",
127+
"x-ms-examples": {
128+
"Failover a replication link": {
129+
"$ref": "./examples/ReplicationLinkFailover.json"
130+
}
131+
},
132+
"parameters": [
133+
{
134+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
135+
},
136+
{
137+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
138+
},
139+
{
140+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
141+
},
142+
{
143+
"$ref": "#/parameters/ServerNameParameter"
144+
},
145+
{
146+
"name": "databaseName",
147+
"in": "path",
148+
"required": true,
149+
"type": "string",
150+
"description": "The name of the database that has the replication link to be failed over."
151+
},
152+
{
153+
"name": "linkId",
154+
"in": "path",
155+
"required": true,
156+
"type": "string",
157+
"description": "The ID of the replication link to be failed over."
158+
}
159+
],
160+
"responses": {
161+
"204": {
162+
"description": "No Content"
163+
},
164+
"202": {
165+
"description": "Accepted"
166+
}
167+
},
168+
"x-ms-long-running-operation": true
169+
}
170+
},
171+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink": {
172+
"post": {
173+
"tags": [
174+
"DatabaseReplicationLinks"
175+
],
176+
"operationId": "ReplicationLinks_Unlink",
177+
"description": "Deletes a database replication link in forced or friendly way.",
178+
"x-ms-examples": {
179+
"Delete replication link": {
180+
"$ref": "./examples/ReplicationLinkUnlink.json"
181+
}
182+
},
183+
"parameters": [
184+
{
185+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
186+
},
187+
{
188+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
189+
},
190+
{
191+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
192+
},
193+
{
194+
"$ref": "#/parameters/ServerNameParameter"
195+
},
196+
{
197+
"name": "databaseName",
198+
"in": "path",
199+
"required": true,
200+
"type": "string",
201+
"description": "The name of the database that has the replication link to be failed over."
202+
},
203+
{
204+
"name": "linkId",
205+
"in": "path",
206+
"required": true,
207+
"type": "string",
208+
"description": "The ID of the replication link to be failed over."
209+
},
210+
{
211+
"name": "parameters",
212+
"in": "body",
213+
"required": true,
214+
"schema": {
215+
"$ref": "#/definitions/UnlinkParameters"
216+
},
217+
"description": "The required parameters for unlinking replication link."
218+
}
219+
],
220+
"responses": {
221+
"204": {
222+
"description": "No Content"
223+
},
224+
"202": {
225+
"description": "Accepted"
226+
}
227+
},
228+
"x-ms-long-running-operation": true
229+
}
230+
}
231+
},
232+
"definitions": {
233+
"UnlinkParameters": {
234+
"properties": {
235+
"forcedTermination": {
236+
"type": "boolean",
237+
"description": "Determines whether link will be terminated in a forced or a friendly way."
238+
}
239+
},
240+
"description": "Represents the parameters for Unlink Replication Link request."
241+
}
242+
},
243+
"parameters": {
244+
"ServerNameParameter": {
245+
"name": "serverName",
246+
"in": "path",
247+
"required": true,
248+
"type": "string",
249+
"description": "The name of the server.",
250+
"x-ms-parameter-location": "method"
251+
}
252+
},
253+
"securityDefinitions": {
254+
"azure_auth": {
255+
"type": "oauth2",
256+
"description": "Azure Active Directory OAuth2 Flow",
257+
"flow": "implicit",
258+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
259+
"scopes": {
260+
"user_impersonation": "impersonate your user account"
261+
}
262+
}
263+
}
264+
}

specification/sql/resource-manager/readme.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ input-file:
4747
- Microsoft.Sql/stable/2014-04-01/dataMasking.json
4848
- Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json
4949
- Microsoft.Sql/stable/2014-04-01/metrics.json
50-
- Microsoft.Sql/stable/2014-04-01/replicationLinks.json
50+
- Microsoft.Sql/stable/2014-04-01/replicationLinks_legacy.json
5151
- Microsoft.Sql/stable/2014-04-01/serverCommunicationLinks.json
5252
- Microsoft.Sql/stable/2014-04-01/serviceObjectives.json
5353
- Microsoft.Sql/stable/2014-04-01/sql.core_legacy.json
@@ -125,8 +125,7 @@ input-file:
125125
- ./Microsoft.Sql/preview/2020-11-01-preview/PrivateEndpointConnections.json
126126
- ./Microsoft.Sql/preview/2020-11-01-preview/PrivateLinkResources.json
127127
- ./Microsoft.Sql/preview/2020-11-01-preview/RecoverableManagedDatabases.json
128-
- ./Microsoft.Sql/preview/2020-11-01-preview/RestorableDroppedDatabases.json
129-
- ./Microsoft.Sql/preview/2020-11-01-preview/RestorableDroppedManagedDatabases.json
128+
- ./Microsoft.Sql/preview/2020-11-01-preview/ReplicationLinks.json
130129
- ./Microsoft.Sql/preview/2020-11-01-preview/RestorePoints.json
131130
- ./Microsoft.Sql/preview/2020-11-01-preview/SensitivityLabels.json
132131
- ./Microsoft.Sql/preview/2020-11-01-preview/ServerAdvisors.json
@@ -152,6 +151,10 @@ input-file:
152151
- ./Microsoft.Sql/preview/2020-11-01-preview/VirtualNetworkRules.json
153152
- ./Microsoft.Sql/preview/2020-11-01-preview/WorkloadClassifiers.json
154153
- ./Microsoft.Sql/preview/2020-11-01-preview/WorkloadGroups.json
154+
- ./Microsoft.Sql/preview/2021-02-01-preview/LedgerDigestUploads.json
155+
- ./Microsoft.Sql/preview/2021-02-01-preview/OutboundFirewallRules.json
156+
- ./Microsoft.Sql/preview/2021-02-01-preview/RestorableDroppedDatabases.json
157+
- ./Microsoft.Sql/preview/2021-02-01-preview/RestorableDroppedManagedDatabases.json
155158
156159
157160
# Needed when there is more than one input file

0 commit comments

Comments
 (0)