-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create 2023-04-18-preview to add actionOnExistingTargetTable property (…
…#23670) * remove dropExistingTargetTableOnStart properties * add actionOnExistingTargetTable properties Co-authored-by: jingjingzhong123 <[email protected]>
- Loading branch information
1 parent
529205b
commit 60409c8
Showing
15 changed files
with
1,476 additions
and
1 deletion.
There are no files selected for viewing
87 changes: 87 additions & 0 deletions
87
.../Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_CreateOrUpdate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview", | ||
"linkConnection": { | ||
"description": "linkconnection description", | ||
"properties": { | ||
"compute": { | ||
"coreCount": 8, | ||
"computeType": "General", | ||
"dataProcessIntervalMinutes": 60 | ||
}, | ||
"sourceDatabase": { | ||
"linkedService": { | ||
"referenceName": "exampleSourceLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"typeProperties": { | ||
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql", | ||
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b" | ||
} | ||
}, | ||
"targetDatabase": { | ||
"linkedService": { | ||
"referenceName": "exampleTargetLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"typeProperties": { | ||
"crossTableTransaction": false, | ||
"dropExistingTargetTableOnStart": false, | ||
"actionOnExistingTargetTable": "DropAndRecreateTable" | ||
} | ||
}, | ||
"landingZone": { | ||
"linkedService": { | ||
"referenceName": "exampleLandingZoneLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"fileSystem": "exampleFileSystem", | ||
"folderPath": "exampleFolderPath", | ||
"sasToken": { | ||
"type": "SecureString", | ||
"value": "exampleSasToken" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Synapse/workspaces/testWs/linkConnections/testLinkConnection", | ||
"name": "testLinkConnection", | ||
"type": "Microsoft.Synapse/workspaces/linkConnections", | ||
"description": "linkconnection description", | ||
"properties": { | ||
"compute": { | ||
"coreCount": 8, | ||
"computeType": "General", | ||
"dataProcessIntervalMinutes": 60 | ||
}, | ||
"sourceDatabase": { | ||
"linkedService": { | ||
"referenceName": "exampleSourceLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"typeProperties": { | ||
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql", | ||
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b" | ||
} | ||
}, | ||
"targetDatabase": { | ||
"linkedService": { | ||
"referenceName": "exampleTargetLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"typeProperties": { | ||
"crossTableTransaction": false, | ||
"actionOnExistingTargetTable": "DropAndRecreateTable" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
...ta-plane/Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
...lane/Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_EditTables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview", | ||
"editTablesRequest": { | ||
"linkTables": [ | ||
{ | ||
"id": "33f01131-553b-4b97-83a8-0db255a66901", | ||
"source": { | ||
"tableName": "exampleSourceTable", | ||
"schemaName": "exampleSourceSchema" | ||
}, | ||
"target": { | ||
"tableName": "exampleTargetTable", | ||
"schemaName": "exampleTargetSchema", | ||
"distributionOptions": { | ||
"type": "Round_RoBin" | ||
}, | ||
"structureOptions": { | ||
"type": "Clustered_ColumnStore" | ||
} | ||
}, | ||
"operationType": "Add" | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
.../data-plane/Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Synapse/workspaces/testWs/linkConnections/testLinkConnection", | ||
"name": "testLinkConnection", | ||
"type": "Microsoft.Synapse/workspaces/linkConnections", | ||
"description": "linkconnection description", | ||
"properties": { | ||
"compute": { | ||
"coreCount": 8, | ||
"computeType": "General", | ||
"dataProcessIntervalMinutes": 60 | ||
}, | ||
"sourceDatabase": { | ||
"linkedService": { | ||
"referenceName": "exampleSourceLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"typeProperties": { | ||
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql", | ||
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b" | ||
} | ||
}, | ||
"targetDatabase": { | ||
"linkedService": { | ||
"referenceName": "exampleTargetLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"typeProperties": { | ||
"crossTableTransaction": false, | ||
"dropExistingTargetTableOnStart": false, | ||
"actionOnExistingTargetTable": "DropAndRecreateTable" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...crosoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_GetDetailedStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "d20e417b-b5d1-4d5c-b2d6-4a581575c5b1", | ||
"name": "testLinkConnection", | ||
"isApplyingChanges": false, | ||
"isPartiallyFailed": false, | ||
"startTime": "2021-10-28T08:09:32.2976822Z", | ||
"status": "Running", | ||
"stopTime": "2021-10-28T09:24:47.2415789Z", | ||
"continuousRunId": "23ded02c-056b-45e7-8852-a2fdb8d250dc", | ||
"refreshStatus": { | ||
"refreshStatus": "Failed", | ||
"errorMessage": "sampleErrorMessage" | ||
}, | ||
"landingZoneCredentialExpireTime": "2022-12-31T05:30:00.0000000Z" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
.../Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_ListLinkTables.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "7bbb9091983b48f59808cb322a30e1e1", | ||
"name": "testLinkConnection", | ||
"source": { | ||
"tableName": "exampleSourceTable", | ||
"schemaName": "exampleSourceSchema" | ||
}, | ||
"target": { | ||
"tableName": "exampleTargetTable", | ||
"schemaName": "exampleTargetSchema", | ||
"distributionOptions": { | ||
"type": "Round_RoBin" | ||
}, | ||
"structureOptions": { | ||
"type": "Clustered_ColumnStore" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ata-plane/Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_Pause.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...icrosoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_QueryTableStatus.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview", | ||
"queryTableStatusRequest": { | ||
"maxSegmentCount": 50 | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "8bbb9091983b48f59808cb322a30e1e1", | ||
"startTime": "2021-10-28T08:09:32.2976822Z", | ||
"status": "Replicating", | ||
"stopTime": "2021-10-28T09:24:47.2415789Z", | ||
"errorMessage": "sampleErrorMessage", | ||
"linkTableId": "10c1bb52-6a70-4ece-953a-fc15df0460e2", | ||
"errorCode": "sampleErrorCode", | ||
"lastProcessedData": "2022-07-27T15:19:32.473Z", | ||
"lastTransactionCommitTime": "2022-07-27T15:19:32.473Z" | ||
} | ||
], | ||
"continuationToken": null | ||
} | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ta-plane/Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_Resume.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...ata-plane/Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_Start.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...data-plane/Microsoft.Synapse/preview/2023-04-18-preview/examples/LinkConnection_Stop.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...napse/preview/2023-04-18-preview/examples/LinkConnection_UpdateLandingZoneCredential.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"linkConnectionName": "testLinkConnection", | ||
"api-version": "2023-04-18-preview", | ||
"updateLandingZoneCredentialRequest": { | ||
"sasToken": { | ||
"type": "SecureString", | ||
"value": "exampleSasToken" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...icrosoft.Synapse/preview/2023-04-18-preview/examples/LinkConnections_ListByWorkspace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "testWs.dev.azuresynapse.net", | ||
"api-version": "2023-04-18-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Synapse/workspaces/testWs/linkConnections/testLinkConnection", | ||
"name": "testLinkConnection", | ||
"type": "Microsoft.Synapse/workspaces/linkConnections", | ||
"description": "linkconnection description", | ||
"properties": { | ||
"compute": { | ||
"coreCount": 8, | ||
"computeType": "General", | ||
"dataProcessIntervalMinutes": 60 | ||
}, | ||
"sourceDatabase": { | ||
"linkedService": { | ||
"referenceName": "exampleSourceLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"typeProperties": { | ||
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql", | ||
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b" | ||
} | ||
}, | ||
"targetDatabase": { | ||
"linkedService": { | ||
"referenceName": "exampleTargetLinkedService", | ||
"type": "LinkedServiceReference" | ||
}, | ||
"typeProperties": { | ||
"crossTableTransaction": false, | ||
"dropExistingTargetTableOnStart": false, | ||
"actionOnExistingTargetTable": "DropAndRecreateTable" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"nextLink": null | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.