Skip to content

Commit

Permalink
[Datashare]Add sorting query parameters (Azure#10209)
Browse files Browse the repository at this point in the history
* unhidden status

* add typescript to sdk automation

* add pagination query parameters

* re-vert re-ordering of the API's

Co-authored-by: Crystal YU <chunyu@microsoft.com>
Co-authored-by: Aditya Vutukuri <advutuku@microsoft.com>
  • Loading branch information
3 people authored and 00Kai0 committed Oct 12, 2020
1 parent 4dbf399 commit 3c3e698
Show file tree
Hide file tree
Showing 12 changed files with 165 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -685,6 +685,20 @@
"description": "continuation token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -936,6 +950,20 @@
"description": "Continuation token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -1178,6 +1206,20 @@
"description": "The continuation token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -1436,6 +1478,20 @@
"description": "Continuation Token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -1496,6 +1552,20 @@
"description": "Continuation token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -1565,6 +1635,20 @@
"description": "Continuation token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -2027,6 +2111,20 @@
"description": "Continuation Token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -2207,6 +2305,20 @@
"description": "Continuation token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down Expand Up @@ -2276,6 +2388,20 @@
"description": "Continuation token",
"required": false,
"type": "string"
},
{
"name": "$filter",
"in": "query",
"description": "Filters the results using OData syntax.",
"required": false,
"type": "string"
},
{
"name": "$orderby",
"in": "query",
"description": "Sorts the results using OData syntax.",
"required": false,
"type": "string"
}
],
"responses": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareSubscriptionName": "ShareSubscription1",
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"filter": "name eq 'DatasetMapping1'",
"orderBy": "name"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"accountName": "Account1",
"shareName": "Share1",
"dataSetName": "Dataset1",
"api-version": "2018-11-01-preview"
"api-version": "2019-11-01"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"filter": "name eq 'Dataset1'",
"orderBy": "name"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"filter": "properties/targetEmail eq 'johnsmith@microsoft.com'",
"orderBy": "properties/sentAt"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"subscriptionId": "12345678-1234-1234-12345678abc",
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"filter": "name eq 'ShareSubscription1'",
"orderBy": "properties/createdAt"
},
"responses": {
"200": {
Expand Down Expand Up @@ -40,7 +42,7 @@
"properties": {
"userName": "John Smith",
"userEmail": "john.smith@microsoft.com",
"createdAt": "2019-01-17T22:32:36.8185016Z",
"createdAt": "2020-12-17T22:32:36.8185016Z",
"shareSubscriptionStatus": "Active",
"invitationId": "4256e2cf-0f82-4865-961b-12f83333f487",
"sourceShareLocation": "eastus2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"shareSubscriptionSynchronization": {
"synchronizationId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
},
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"filter": "name eq 'datasetmapping1'",
"orderBy": "durationMs"
},
"responses": {
"200": {
Expand All @@ -25,7 +27,7 @@
"startTime": "2018-11-14T04:47:52.9614956Z",
"durationMs": 2000,
"status": "Completed",
"name": "dataset1",
"name": "datasetmapping1",
"dataSetId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb",
"dataSetType": "Blob"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareSubscriptionName": "ShareSub1",
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"orderBy": "durationMs"
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"subscriptionId": "12345678-1234-1234-12345678abc",
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"filter": "name eq 'Share1'",
"orderBy": "properties/createdAt"
},
"responses": {
"200": {
Expand Down Expand Up @@ -35,7 +37,7 @@
"terms": "Confidential",
"shareKind": "CopyBased",
"userName": "John Smith",
"createdAt": "2018-11-14T06:15:15.6818898Z",
"createdAt": "2019-10-14T06:15:15.6818898Z",
"userEmail": "johnsmith@microsoft.com"
},
"id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1/shares/Share1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"shareSynchronization": {
"synchronizationId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb"
},
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"filter": "name eq 'dataset1'",
"orderBy": "durationMs"
},
"responses": {
"200": {
Expand All @@ -28,6 +30,15 @@
"name": "dataset1",
"dataSetId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb",
"dataSetType": "Blob"
},
{
"endTime": "2019-10-14T04:47:52.9614956Z",
"startTime": "2019-10-14T04:47:52.9614956Z",
"durationMs": 2000,
"status": "Completed",
"name": "dataset2",
"dataSetId": "7d0536a6-3fa5-43de-b152-3d07c4f6b2bb",
"dataSetType": "Blob"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"resourceGroupName": "SampleResourceGroup",
"accountName": "Account1",
"shareName": "Share1",
"api-version": "2019-11-01"
"api-version": "2019-11-01",
"filter": "consumerTenantName eq 'nda'"
},
"responses": {
"200": {
Expand Down
1 change: 1 addition & 0 deletions specification/datashare/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ swagger-to-sdk:
- repo: azure-sdk-for-python
- repo: azure-sdk-for-go
- repo: azure-cli-extensions
- repo: azure-sdk-for-js
```


Expand Down

0 comments on commit 3c3e698

Please sign in to comment.