From 2167ae4aa6c161defb639ac4298a2ca9188317b5 Mon Sep 17 00:00:00 2001 From: Bogdan Ostojic Date: Thu, 21 Apr 2022 18:16:05 +0200 Subject: [PATCH 1/3] reverting replication_links legacy changes --- .../examples/ReplicationLinkDelete.json | 14 +++++++++++++ .../examples/ReplicationLinkFailover.json | 14 +++++++++++++ .../examples/ReplicationLinkUnlink.json | 17 ++++++++++++++++ .../replicationLinks_legacy.json | 20 +++++++++++++++++++ 4 files changed, 65 insertions(+) create mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkDelete.json create mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkFailover.json create mode 100644 specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkUnlink.json diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkDelete.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkDelete.json new file mode 100644 index 000000000000..ebac700be866 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-4799", + "serverName": "sqlcrudtest-6440", + "databaseName": "testdb", + "linkId": "5b301b68-03f6-4b26-b0f4-73ebb8634238", + "api-version": "2014-04-01" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkFailover.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkFailover.json new file mode 100644 index 000000000000..ce5ed3665178 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkFailover.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-8931", + "serverName": "sqlcrudtest-2137", + "databaseName": "testdb", + "linkId": "f0550bf5-07ce-4270-8e4b-71737975973a", + "api-version": "2014-04-01" + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkUnlink.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkUnlink.json new file mode 100644 index 000000000000..0b4701fa8353 --- /dev/null +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/examples/ReplicationLinkUnlink.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "subscriptionId": "00000000-1111-2222-3333-444444444444", + "resourceGroupName": "sqlcrudtest-8931", + "serverName": "sqlcrudtest-2137", + "databaseName": "testdb", + "linkId": "f0550bf5-07ce-4270-8e4b-71737975973a", + "api-version": "2014-04-01", + "parameters": { + "forcedTermination": true + } + }, + "responses": { + "202": {}, + "204": {} + } +} diff --git a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json index 8090f9c05a1a..92d38a3738dd 100644 --- a/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json +++ b/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json @@ -23,6 +23,11 @@ ], "operationId": "ReplicationLinks_Delete", "description": "Deletes a database replication link. Cannot be done during failover.", + "x-ms-examples": { + "Delete a replication link": { + "$ref": "./examples/ReplicationLinkDelete.json" + } + }, "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" @@ -68,6 +73,11 @@ ], "operationId": "ReplicationLinks_Failover", "description": "Sets which replica database is primary by failing over from the current primary replica database.", + "x-ms-examples": { + "Failover a replication link": { + "$ref": "./examples/ReplicationLinkFailover.json" + } + }, "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" @@ -114,6 +124,11 @@ ], "operationId": "ReplicationLinks_FailoverAllowDataLoss", "description": "Sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss.", + "x-ms-examples": { + "Failover a replication link": { + "$ref": "./examples/ReplicationLinkFailover.json" + } + }, "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" @@ -160,6 +175,11 @@ ], "operationId": "ReplicationLinks_Unlink", "description": "Deletes a database replication link in forced or friendly way.", + "x-ms-examples": { + "Delete replication link": { + "$ref": "./examples/ReplicationLinkUnlink.json" + } + }, "parameters": [ { "$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter" From 55881f06d33b3bb508f4b561ef7bcc7434124149 Mon Sep 17 00:00:00 2001 From: Bogdan Ostojic Date: Thu, 21 Apr 2022 18:22:09 +0200 Subject: [PATCH 2/3] revert changes to composite package v5 tag --- specification/sql/resource-manager/readme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index 7711ceb999e3..bdd081ba4477 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -305,6 +305,7 @@ input-file: - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - Microsoft.Sql/stable/2014-04-01/metrics.json +- Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json - Microsoft.Sql/stable/2014-04-01/recommendedElasticPoolsDecoupled.json - Microsoft.Sql/stable/2014-04-01/replicationLinks.json - Microsoft.Sql/stable/2014-04-01/serverCommunicationLinks.json From b4a205e47015bef4d0f9cf5e666efb3fcf936368 Mon Sep 17 00:00:00 2001 From: Bogdan Ostojic Date: Fri, 22 Apr 2022 15:47:07 +0200 Subject: [PATCH 3/3] add to correct package tag - v5 --- specification/sql/resource-manager/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/sql/resource-manager/readme.md b/specification/sql/resource-manager/readme.md index bdd081ba4477..d2b777021579 100644 --- a/specification/sql/resource-manager/readme.md +++ b/specification/sql/resource-manager/readme.md @@ -164,6 +164,7 @@ input-file: - Microsoft.Sql/stable/2014-04-01/dataMasking.json - Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - Microsoft.Sql/stable/2014-04-01/metrics.json +- Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json - Microsoft.Sql/stable/2014-04-01/serverCommunicationLinks.json - Microsoft.Sql/stable/2014-04-01/serviceObjectives.json - Microsoft.Sql/stable/2014-04-01-legacy/sql.core_legacy.json @@ -305,7 +306,6 @@ input-file: - Microsoft.Sql/stable/2014-04-01/firewallRules.json - Microsoft.Sql/stable/2014-04-01/geoBackupPolicies.json - Microsoft.Sql/stable/2014-04-01/metrics.json -- Microsoft.Sql/stable/2014-04-01-legacy/replicationLinks_legacy.json - Microsoft.Sql/stable/2014-04-01/recommendedElasticPoolsDecoupled.json - Microsoft.Sql/stable/2014-04-01/replicationLinks.json - Microsoft.Sql/stable/2014-04-01/serverCommunicationLinks.json