Skip to content

Commit

Permalink
create 2023-04-18-preview to add actionOnExistingTargetTable property (
Browse files Browse the repository at this point in the history
…#23670)

* remove dropExistingTargetTableOnStart properties

* add actionOnExistingTargetTable properties

Co-authored-by: jingjingzhong123 <[email protected]>
  • Loading branch information
jingzhong-MS and jingzhong-MS authored May 22, 2023
1 parent 529205b commit 60409c8
Show file tree
Hide file tree
Showing 15 changed files with 1,476 additions and 1 deletion.
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"
}
}
}
}
}
}
}
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": {}
}
}
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": {}
}
}
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"
}
}
}
}
}
}
}
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"
}
}
}
}
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"
}
}
}
]
}
}
}
}
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": {}
}
}
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
}
}
}
}
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": {}
}
}
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": {}
}
}
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": {}
}
}
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": {}
}
}
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
}
}
}
}
Loading

0 comments on commit 60409c8

Please sign in to comment.