Skip to content

Commit

Permalink
Data-plane specs added for Library Apis (Azure#11423)
Browse files Browse the repository at this point in the history
* Data-plane specs added for Library Apis

* Swagger specs added for Append Library Api

* Resolved reviewer comments in data plane library apis

* Append API is changed to have application/octet-stream content

* API schema changed for create and append api

Co-authored-by: Navneet Singh <navsi@microsoft.com>
  • Loading branch information
navneet35 and Navneet Singh authored Jan 21, 2021
1 parent 772c440 commit 111dc7f
Show file tree
Hide file tree
Showing 9 changed files with 759 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2066,3 +2066,5 @@ regionality
Resource
Metastores
maintenancewindows
appendpos
appendblock
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"endpoint": "exampleWorkspace.dev.azuresynapse.net",
"libraryName": "exampleLibraryName.jar",
"api-version": "2019-06-01-preview",
"comp": "appendblock",
"content": "file binary chunk"
},
"responses": {
"200": {},
"201": {
"headers": {
"Date": "Fri, 23 Oct 2020 08:28:16 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-writes": "1192",
"x-ms-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
}
},
"202": {
"headers": {
"Date": "Fri, 23 Oct 2020 08:28:16 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-writes": "1192",
"x-ms-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/libraryartifacts/exampleLibraryName.jar",
"recordId": 1234,
"state": "Creating",
"created": "2020-10-23T07:59:29.1573546+00:00",
"changed": "2020-10-23T07:59:29.1573546+00:00",
"type": "LibraryArtifact",
"name": "exampleLibraryName.jar",
"operationId": "1500474f-0000-0200-0000-5cbe090d0000",
"artifactId": "2222222e-222d-222f-2222-22a2f222d2f2"
}
},
"412": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"endpoint": "exampleWorkspace.dev.azuresynapse.net",
"libraryName": "exampleLibraryName.jar",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
"Date": "Fri, 23 Oct 2020 08:28:16 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-writes": "1192",
"x-ms-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/libraryartifacts/exampleLibraryName.jar",
"recordId": 1234,
"state": "Creating",
"created": "2020-10-23T07:59:29.1573546+00:00",
"changed": "2020-10-23T07:59:29.1573546+00:00",
"type": "LibraryArtifact",
"name": "exampleLibraryName.jar",
"operationId": "1500474f-0000-0200-0000-5cbe090d0000",
"artifactId": "2222222e-222d-222f-2222-22a2f222d2f2"
}
},
"409": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"endpoint": "exampleWorkspace.dev.azuresynapse.net",
"libraryName": "exampleLibraryName.jar",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {},
"202": {
"headers": {
"Date": "Fri, 23 Oct 2020 08:28:16 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-writes": "1192",
"x-ms-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/libraryartifacts/exampleLibraryName.jar",
"recordId": 1234,
"state": "Creating",
"created": "2020-10-23T07:59:29.1573546+00:00",
"changed": "2020-10-23T07:59:29.1573546+00:00",
"type": "LibraryArtifact",
"name": "exampleLibraryName.jar",
"operationId": "1500474f-0000-0200-0000-5cbe090d0000",
"artifactId": "2222222e-222d-222f-2222-22a2f222d2f2"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"endpoint": "exampleWorkspace.dev.azuresynapse.net",
"libraryName": "exampleLibraryName.jar",
"ifNoneMatch": "1500474f-0000-0200-0000-5cbe090d0000",
"api-version": "2019-06-01-preview"
},
"responses": {
"304": {},
"200": {
"headers": {
"Date": "Fri, 23 Oct 2020 08:28:16 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-reads": "11995",
"x-ms-request-id": "99e5d0d9-55e6-45a0-8bd2-cf39210f317c",
"x-ms-correlation-request-id": "99e5d0d9-55e6-45a0-8bd2-cf39210f317c"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/libraryartifacts/exampleLibraryName.jar",
"name": "exampleLibraryName.jar",
"type": "Microsoft.Synapse/workspaces/libraryartifacts",
"properties": {
"name": "exampleLibraryName.jar",
"path": "exampleWorkspace/libraries/exampleLibraryName.jar",
"containerName": "exampleContainer",
"type": "jar",
"uploadedTimestamp": "2020-10-23T07:59:29.1573546+00:00",
"provisioningStatus": "Succeeded",
"creatorId": "2222222e-222d-222f-2222-22a2f222d2f2"
},
"etag": "1500474f-0000-0200-0000-5cbe090d0000"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"endpoint": "exampleWorkspace.dev.azuresynapse.net",
"operationId": "exampleOperationId",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Fri, 23 Oct 2020 08:28:16 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-writes": "1192",
"x-ms-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
},
"body": {
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/libraryartifacts/exampleLibraryName.jar",
"name": "exampleLibraryName.jar",
"type": "Microsoft.Synapse/workspaces/libraryartifacts",
"properties": {
"name": "exampleLibraryName.jar",
"path": "exampleWorkspace/libraries/exampleLibraryName.jar",
"containerName": "exampleContainer",
"type": "jar",
"uploadedTimestamp": "2020-10-23T07:59:29.1573546+00:00",
"provisioningStatus": "Succeeded",
"creatorId": "2222222e-222d-222f-2222-22a2f222d2f2"
},
"etag": "1500474f-0000-0200-0000-5cbe090d0000"
}
},
"202": {
"headers": {
"Date": "Fri, 23 Oct 2020 08:28:16 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-writes": "1192",
"x-ms-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264",
"x-ms-correlation-request-id": "e4c589b7-a9fe-4c28-981c-3855ec27d264"
},
"body": {
"status": "InProgress"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"endpoint": "exampleWorkspace.dev.azuresynapse.net",
"api-version": "2019-06-01-preview"
},
"responses": {
"200": {
"headers": {
"Date": "Sat, 16 Jun 2018 00:37:36 GMT",
"X-Content-Type-Options": "nosniff",
"x-ms-ratelimit-remaining-subscription-reads": "14994",
"x-ms-request-id": "558d0fd8-dc1f-44b6-9ca9-59fcca8af9a5",
"x-ms-correlation-request-id": "558d0fd8-dc1f-44b6-9ca9-59fcca8af9a5"
},
"body": {
"value": [
{
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/libraryartifacts/exampleLibraryName.jar",
"name": "exampleLibraryName.jar",
"type": "Microsoft.Synapse/workspaces/libraryartifacts",
"properties": {
"name": "exampleLibraryName.jar",
"path": "exampleWorkspace/libraries/exampleLibraryName.jar",
"containerName": "exampleContainer",
"type": "jar",
"uploadedTimestamp": "2020-10-23T07:59:29.1573546+00:00",
"provisioningStatus": "Succeeded",
"creatorId": "2222222e-222d-222f-2222-22a2f222d2f2"
},
"etag": "1500474f-0000-0200-0000-5cbe090d0000"
}
]
}
}
}
}
Loading

0 comments on commit 111dc7f

Please sign in to comment.