From f447eec5771b330d5bc0a590d23ef8c439a72e4b Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 28 Jul 2020 01:47:13 +0000 Subject: [PATCH] Generated from 292e2cbfdfc4a66969ccaa472a9fdce531c4e747 re-vert re-ordering of the API's --- .../Generated/DataSetMappingsOperations.cs | 18 +++++- .../DataSetMappingsOperationsExtensions.cs | 20 +++++-- .../src/Generated/DataSetsOperations.cs | 18 +++++- .../Generated/DataSetsOperationsExtensions.cs | 20 +++++-- .../Generated/IDataSetMappingsOperations.cs | 8 ++- .../src/Generated/IDataSetsOperations.cs | 8 ++- .../src/Generated/IInvitationsOperations.cs | 8 ++- .../IShareSubscriptionsOperations.cs | 24 +++++++- .../src/Generated/ISharesOperations.cs | 24 +++++++- .../src/Generated/InvitationsOperations.cs | 18 +++++- .../InvitationsOperationsExtensions.cs | 20 +++++-- .../src/Generated/Models/DataSet.cs | 2 - .../src/Generated/Models/DataSetMapping.cs | 2 - .../SourceShareSynchronizationSetting.cs | 2 - .../Models/SynchronizationSetting.cs | 2 - .../src/Generated/Models/Trigger.cs | 2 - .../SdkInfo_DataShareManagementClient.cs | 11 ---- .../Generated/ShareSubscriptionsOperations.cs | 54 ++++++++++++++++- .../ShareSubscriptionsOperationsExtensions.cs | 60 +++++++++++++++---- .../src/Generated/SharesOperations.cs | 54 ++++++++++++++++- .../Generated/SharesOperationsExtensions.cs | 60 +++++++++++++++---- 21 files changed, 360 insertions(+), 75 deletions(-) diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetMappingsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetMappingsOperations.cs index 497326a964ec..f33f699777e7 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetMappingsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetMappingsOperations.cs @@ -717,6 +717,12 @@ internal DataSetMappingsOperations(DataShareManagementClient client) /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -738,7 +744,7 @@ internal DataSetMappingsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByShareSubscriptionWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByShareSubscriptionWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -771,6 +777,8 @@ internal DataSetMappingsOperations(DataShareManagementClient client) tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByShareSubscription", tracingParameters); } @@ -790,6 +798,14 @@ internal DataSetMappingsOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetMappingsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetMappingsOperationsExtensions.cs index 536a42bddc6c..168c682af07a 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetMappingsOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetMappingsOperationsExtensions.cs @@ -223,9 +223,15 @@ public static void Delete(this IDataSetMappingsOperations operations, string res /// /// Continuation token /// - public static IPage ListByShareSubscription(this IDataSetMappingsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListByShareSubscription(this IDataSetMappingsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListByShareSubscriptionAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken).GetAwaiter().GetResult(); + return operations.ListByShareSubscriptionAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -249,12 +255,18 @@ public static void Delete(this IDataSetMappingsOperations operations, string res /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListByShareSubscriptionAsync(this IDataSetMappingsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByShareSubscriptionAsync(this IDataSetMappingsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByShareSubscriptionWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByShareSubscriptionWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetsOperations.cs index 9f89024743db..5c3c2c9f0958 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetsOperations.cs @@ -555,6 +555,12 @@ internal DataSetsOperations(DataShareManagementClient client) /// /// continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -576,7 +582,7 @@ internal DataSetsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -609,6 +615,8 @@ internal DataSetsOperations(DataShareManagementClient client) tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareName", shareName); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByShare", tracingParameters); } @@ -628,6 +636,14 @@ internal DataSetsOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetsOperationsExtensions.cs index f9fb1d1090ea..8d7abcf02507 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetsOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataSetsOperationsExtensions.cs @@ -219,9 +219,15 @@ public static void Delete(this IDataSetsOperations operations, string resourceGr /// /// continuation token /// - public static IPage ListByShare(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListByShare(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken).GetAwaiter().GetResult(); + return operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -245,12 +251,18 @@ public static void Delete(this IDataSetsOperations operations, string resourceGr /// /// continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListByShareAsync(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByShareAsync(this IDataSetsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IDataSetMappingsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IDataSetMappingsOperations.cs index ef1bfed000fb..9c35900c030e 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IDataSetMappingsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IDataSetMappingsOperations.cs @@ -146,6 +146,12 @@ public partial interface IDataSetMappingsOperations /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -161,7 +167,7 @@ public partial interface IDataSetMappingsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByShareSubscriptionWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByShareSubscriptionWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// List DataSetMappings in a share subscription. /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IDataSetsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IDataSetsOperations.cs index d3b86037087a..91890aaaeaf1 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IDataSetsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IDataSetsOperations.cs @@ -143,6 +143,12 @@ public partial interface IDataSetsOperations /// /// continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -158,7 +164,7 @@ public partial interface IDataSetsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete DataSet in a share. /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IInvitationsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IInvitationsOperations.cs index 03d7eed02517..c3e74ed03c19 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IInvitationsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IInvitationsOperations.cs @@ -143,6 +143,12 @@ public partial interface IInvitationsOperations /// /// The continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -158,7 +164,7 @@ public partial interface IInvitationsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// List all Invitations in a share. /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IShareSubscriptionsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IShareSubscriptionsOperations.cs index ec220422b1bb..8e7bd8c422bb 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IShareSubscriptionsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IShareSubscriptionsOperations.cs @@ -134,6 +134,12 @@ public partial interface IShareSubscriptionsOperations /// /// Continuation Token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -149,7 +155,7 @@ public partial interface IShareSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get source share synchronization settings for a shareSubscription. /// @@ -202,6 +208,12 @@ public partial interface IShareSubscriptionsOperations /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -217,7 +229,7 @@ public partial interface IShareSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// List data set level details for a share subscription /// synchronization @@ -240,6 +252,12 @@ public partial interface IShareSubscriptionsOperations /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -255,7 +273,7 @@ public partial interface IShareSubscriptionsOperations /// /// Thrown when a required parameter is null /// - Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Initiate an asynchronous data share job /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISharesOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISharesOperations.cs index cf0eb4d8ee74..c70910b6d63f 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISharesOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISharesOperations.cs @@ -134,6 +134,12 @@ public partial interface ISharesOperations /// /// Continuation Token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -149,7 +155,7 @@ public partial interface ISharesOperations /// /// Thrown when a required parameter is null /// - Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// List Synchronizations in a share /// @@ -168,6 +174,12 @@ public partial interface ISharesOperations /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -183,7 +195,7 @@ public partial interface ISharesOperations /// /// Thrown when a required parameter is null /// - Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// List data set level details for a share synchronization /// @@ -205,6 +217,12 @@ public partial interface ISharesOperations /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The headers that will be added to request. /// @@ -220,7 +238,7 @@ public partial interface ISharesOperations /// /// Thrown when a required parameter is null /// - Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a share /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/InvitationsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/InvitationsOperations.cs index 4abaebeddebd..a08f51aff6c8 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/InvitationsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/InvitationsOperations.cs @@ -715,6 +715,12 @@ internal InvitationsOperations(DataShareManagementClient client) /// /// The continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -736,7 +742,7 @@ internal InvitationsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -769,6 +775,8 @@ internal InvitationsOperations(DataShareManagementClient client) tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareName", shareName); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByShare", tracingParameters); } @@ -788,6 +796,14 @@ internal InvitationsOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/InvitationsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/InvitationsOperationsExtensions.cs index c8670b28a37f..59bfe6e30847 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/InvitationsOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/InvitationsOperationsExtensions.cs @@ -219,9 +219,15 @@ public static void Delete(this IInvitationsOperations operations, string resourc /// /// The continuation token /// - public static IPage ListByShare(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListByShare(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken).GetAwaiter().GetResult(); + return operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -245,12 +251,18 @@ public static void Delete(this IInvitationsOperations operations, string resourc /// /// The continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListByShareAsync(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByShareAsync(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSet.cs index f453cb9d4d1f..43d00ef299d5 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSet.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataShare.Models { - using Newtonsoft.Json; using System.Linq; /// /// A DataSet data transfer object. /// - [Newtonsoft.Json.JsonObject("DataSet")] public partial class DataSet : ProxyDto { /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSetMapping.cs index ee11f00c0e10..99a33c2f8c57 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSetMapping.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataShare.Models { - using Newtonsoft.Json; using System.Linq; /// /// A data set mapping data transfer object. /// - [Newtonsoft.Json.JsonObject("DataSetMapping")] public partial class DataSetMapping : ProxyDto { /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SourceShareSynchronizationSetting.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SourceShareSynchronizationSetting.cs index c34d9f9393f7..f15fbd2b7318 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SourceShareSynchronizationSetting.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SourceShareSynchronizationSetting.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataShare.Models { - using Newtonsoft.Json; using System.Linq; /// /// A view of synchronization setting added by the provider /// - [Newtonsoft.Json.JsonObject("SourceShareSynchronizationSetting")] public partial class SourceShareSynchronizationSetting { /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynchronizationSetting.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynchronizationSetting.cs index 559f90889fc7..38cc15b4a943 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynchronizationSetting.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynchronizationSetting.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataShare.Models { - using Newtonsoft.Json; using System.Linq; /// /// A Synchronization Setting data transfer object. /// - [Newtonsoft.Json.JsonObject("SynchronizationSetting")] public partial class SynchronizationSetting : ProxyDto { /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Trigger.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Trigger.cs index 6ef6d0f0d61d..d9cc431a6d37 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Trigger.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Trigger.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.DataShare.Models { - using Newtonsoft.Json; using System.Linq; /// /// A Trigger data transfer object. /// - [Newtonsoft.Json.JsonObject("Trigger")] public partial class Trigger : ProxyDto { /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SdkInfo_DataShareManagementClient.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SdkInfo_DataShareManagementClient.cs index f7fd47faf8d0..61a0b92feb55 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SdkInfo_DataShareManagementClient.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SdkInfo_DataShareManagementClient.cs @@ -34,16 +34,5 @@ public static IEnumerable> ApiInfo_DataShareManage }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "2.0.4413"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datashare/resource-manager/readme.md --csharp --version=2.0.4413 --reflect-api-versions --tag=package-2019-11-01 --csharp-sdks-folder=F:\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "9505236faa86b99b6dc58b5655d8e1c4a758d89c"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperations.cs index 9123fff70099..dad60ce5754f 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperations.cs @@ -535,6 +535,12 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// Continuation Token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -556,7 +562,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -584,6 +590,8 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByAccount", tracingParameters); } @@ -602,6 +610,14 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -951,6 +967,12 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -972,7 +994,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1005,6 +1027,8 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizations", tracingParameters); } @@ -1024,6 +1048,14 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -1165,6 +1197,12 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -1186,7 +1224,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1228,6 +1266,8 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); tracingParameters.Add("shareSubscriptionSynchronization", shareSubscriptionSynchronization); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetails", tracingParameters); } @@ -1247,6 +1287,14 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperationsExtensions.cs index d8a710c32e3e..df7081675d44 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperationsExtensions.cs @@ -201,9 +201,15 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// /// Continuation Token /// - public static IPage ListByAccount(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListByAccount(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListByAccountAsync(resourceGroupName, accountName, skipToken).GetAwaiter().GetResult(); + return operations.ListByAccountAsync(resourceGroupName, accountName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -224,12 +230,18 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// /// Continuation Token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListByAccountAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAccountAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -314,9 +326,15 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// /// Continuation token /// - public static IPage ListSynchronizations(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListSynchronizations(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListSynchronizationsAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken).GetAwaiter().GetResult(); + return operations.ListSynchronizationsAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -340,12 +358,18 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListSynchronizationsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -375,9 +399,15 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// /// Continuation token /// - public static IPage ListSynchronizationDetails(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListSynchronizationDetails(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListSynchronizationDetailsAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken).GetAwaiter().GetResult(); + return operations.ListSynchronizationDetailsAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -404,12 +434,18 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListSynchronizationDetailsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationDetailsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationDetailsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationDetailsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperations.cs index 8253d02d5396..24969960abc1 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperations.cs @@ -531,6 +531,12 @@ internal SharesOperations(DataShareManagementClient client) /// /// Continuation Token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -552,7 +558,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -580,6 +586,8 @@ internal SharesOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListByAccount", tracingParameters); } @@ -598,6 +606,14 @@ internal SharesOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -736,6 +752,12 @@ internal SharesOperations(DataShareManagementClient client) /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -757,7 +779,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -790,6 +812,8 @@ internal SharesOperations(DataShareManagementClient client) tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareName", shareName); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizations", tracingParameters); } @@ -809,6 +833,14 @@ internal SharesOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -950,6 +982,12 @@ internal SharesOperations(DataShareManagementClient client) /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// Headers that will be added to request. /// @@ -971,7 +1009,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1009,6 +1047,8 @@ internal SharesOperations(DataShareManagementClient client) tracingParameters.Add("shareName", shareName); tracingParameters.Add("shareSynchronization", shareSynchronization); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetails", tracingParameters); } @@ -1028,6 +1068,14 @@ internal SharesOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperationsExtensions.cs index 190c573091d4..d2e2d72e032d 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperationsExtensions.cs @@ -201,9 +201,15 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// Continuation Token /// - public static IPage ListByAccount(this ISharesOperations operations, string resourceGroupName, string accountName, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListByAccount(this ISharesOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListByAccountAsync(resourceGroupName, accountName, skipToken).GetAwaiter().GetResult(); + return operations.ListByAccountAsync(resourceGroupName, accountName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -224,12 +230,18 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// Continuation Token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListByAccountAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAccountAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -256,9 +268,15 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// Continuation token /// - public static IPage ListSynchronizations(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListSynchronizations(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListSynchronizationsAsync(resourceGroupName, accountName, shareName, skipToken).GetAwaiter().GetResult(); + return operations.ListSynchronizationsAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -282,12 +300,18 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListSynchronizationsAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationsAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationsWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationsWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -317,9 +341,15 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// Continuation token /// - public static IPage ListSynchronizationDetails(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListSynchronizationDetails(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListSynchronizationDetailsAsync(resourceGroupName, accountName, shareName, shareSynchronization, skipToken).GetAwaiter().GetResult(); + return operations.ListSynchronizationDetailsAsync(resourceGroupName, accountName, shareName, shareSynchronization, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// @@ -346,12 +376,18 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// Continuation token /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// /// /// The cancellation token. /// - public static async Task> ListSynchronizationDetailsAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationDetailsAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationDetailsWithHttpMessagesAsync(resourceGroupName, accountName, shareName, shareSynchronization, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationDetailsWithHttpMessagesAsync(resourceGroupName, accountName, shareName, shareSynchronization, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; }