From 3c3e6981c68d90819e19aa9693f930a1f6a6e287 Mon Sep 17 00:00:00 2001 From: vnvaditya Date: Mon, 27 Jul 2020 18:42:02 -0700 Subject: [PATCH] [Datashare]Add sorting query parameters (#10209) * unhidden status * add typescript to sdk automation * add pagination query parameters * re-vert re-ordering of the API's Co-authored-by: Crystal YU Co-authored-by: Aditya Vutukuri --- .../stable/2019-11-01/DataShare.json | 126 ++++++++++++++++++ ...taSetMappings_ListByShareSubscription.json | 4 +- .../2019-11-01/examples/DataSets_Delete.json | 2 +- .../examples/DataSets_ListByShare.json | 4 +- .../examples/Invitations_ListByShare.json | 4 +- .../ShareSubscriptions_ListByAccount.json | 6 +- ...scriptions_ListSynchronizationDetails.json | 6 +- ...areSubscriptions_ListSynchronizations.json | 3 +- .../examples/Shares_ListByAccount.json | 6 +- .../Shares_ListSynchronizationDetails.json | 13 +- .../examples/Shares_ListSynchronizations.json | 3 +- .../datashare/resource-manager/readme.md | 1 + 12 files changed, 165 insertions(+), 13 deletions(-) diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/DataShare.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/DataShare.json index 07c0de6b472b..734372e92f71 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/DataShare.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/DataShare.json @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { @@ -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": { diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSetMappings_ListByShareSubscription.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSetMappings_ListByShareSubscription.json index 766f8839e019..28aca6471ed5 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSetMappings_ListByShareSubscription.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSetMappings_ListByShareSubscription.json @@ -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": { diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSets_Delete.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSets_Delete.json index 641ad9cf412d..eb9de395544c 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSets_Delete.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSets_Delete.json @@ -5,7 +5,7 @@ "accountName": "Account1", "shareName": "Share1", "dataSetName": "Dataset1", - "api-version": "2018-11-01-preview" + "api-version": "2019-11-01" }, "responses": { "200": { diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSets_ListByShare.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSets_ListByShare.json index 36c4e851679d..a0052319a8cf 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSets_ListByShare.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/DataSets_ListByShare.json @@ -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": { diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Invitations_ListByShare.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Invitations_ListByShare.json index 70614c24e56c..95763c961d21 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Invitations_ListByShare.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Invitations_ListByShare.json @@ -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": { diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListByAccount.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListByAccount.json index 07bb2915ddbb..7da7cb2609d4 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListByAccount.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListByAccount.json @@ -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": { @@ -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", diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListSynchronizationDetails.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListSynchronizationDetails.json index efc6af9f2b8f..f36e62ee1d83 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListSynchronizationDetails.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListSynchronizationDetails.json @@ -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": { @@ -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" } diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListSynchronizations.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListSynchronizations.json index 362b27eacc89..616d3a6bea85 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListSynchronizations.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/ShareSubscriptions_ListSynchronizations.json @@ -4,7 +4,8 @@ "resourceGroupName": "SampleResourceGroup", "accountName": "Account1", "shareSubscriptionName": "ShareSub1", - "api-version": "2019-11-01" + "api-version": "2019-11-01", + "orderBy": "durationMs" }, "responses": { "200": { diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListByAccount.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListByAccount.json index 531af3d38a42..4aef3c8dc324 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListByAccount.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListByAccount.json @@ -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": { @@ -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", diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListSynchronizationDetails.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListSynchronizationDetails.json index 0d5883c6bea3..b320c7278776 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListSynchronizationDetails.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListSynchronizationDetails.json @@ -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": { @@ -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" } ] } diff --git a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListSynchronizations.json b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListSynchronizations.json index 633e2acd8f3d..88b0b7efaaa2 100644 --- a/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListSynchronizations.json +++ b/specification/datashare/resource-manager/Microsoft.DataShare/stable/2019-11-01/examples/Shares_ListSynchronizations.json @@ -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": { diff --git a/specification/datashare/resource-manager/readme.md b/specification/datashare/resource-manager/readme.md index 5d1040195bd8..cf5fd2ab8e52 100644 --- a/specification/datashare/resource-manager/readme.md +++ b/specification/datashare/resource-manager/readme.md @@ -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 ```