diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/AccountsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/AccountsOperations.cs
index 7044ddaea35c..fb8cbfa847f2 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/AccountsOperations.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/AccountsOperations.cs
@@ -51,16 +51,13 @@ internal AccountsOperations(DataShareManagementClient client)
public DataShareManagementClient Client { get; private set; }
///
- /// Get an account under a resource group
+ /// List Accounts in a subscription
///
///
- /// Get an account
+ /// List Accounts in Subscription
///
- ///
- /// The resource group name.
- ///
- ///
- /// The name of the share account.
+ ///
+ /// Continuation token
///
///
/// Headers that will be added to request.
@@ -83,20 +80,12 @@ internal AccountsOperations(DataShareManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListBySubscriptionWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
- if (resourceGroupName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
- }
- if (accountName == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
- }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -108,22 +97,23 @@ internal AccountsOperations(DataShareManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("resourceGroupName", resourceGroupName);
- tracingParameters.Add("accountName", accountName);
+ tracingParameters.Add("skipToken", skipToken);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataShare/accounts").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
- _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
- _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
+ if (skipToken != null)
+ {
+ _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken)));
+ }
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
@@ -212,7 +202,7 @@ internal AccountsOperations(DataShareManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -225,7 +215,7 @@ internal AccountsOperations(DataShareManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -245,63 +235,10 @@ internal AccountsOperations(DataShareManagementClient client)
}
///
- /// Create an account in the given resource group
- ///
- ///
- /// Create an account
- ///
- ///
- /// The resource group name.
- ///
- ///
- /// The name of the share account.
- ///
- ///
- /// The account payload.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, Account account, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, accountName, account, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Delete an account
- ///
- ///
- /// DeleteAccount
- ///
- ///
- /// The resource group name.
- ///
- ///
- /// The name of the share account.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Patch a given account
+ /// Get an account under a resource group
///
///
- /// Patch an account
+ /// Get an account
///
///
/// The resource group name.
@@ -309,9 +246,6 @@ internal AccountsOperations(DataShareManagementClient client)
///
/// The name of the share account.
///
- ///
- /// The account update parameters.
- ///
///
/// Headers that will be added to request.
///
@@ -333,7 +267,7 @@ internal AccountsOperations(DataShareManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, AccountUpdateParameters accountUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -347,10 +281,6 @@ internal AccountsOperations(DataShareManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
}
- if (accountUpdateParameters == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "accountUpdateParameters");
- }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -364,9 +294,8 @@ internal AccountsOperations(DataShareManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("accountUpdateParameters", accountUpdateParameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -386,7 +315,7 @@ internal AccountsOperations(DataShareManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -417,12 +346,6 @@ internal AccountsOperations(DataShareManagementClient client)
// Serialize Request
string _requestContent = null;
- if(accountUpdateParameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(accountUpdateParameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
// Set Credentials
if (Client.Credentials != null)
{
@@ -506,13 +429,72 @@ internal AccountsOperations(DataShareManagementClient client)
}
///
- /// List Accounts in a subscription
+ /// Create an account in the given resource group
///
///
- /// List Accounts in Subscription
+ /// Create an account
///
- ///
- /// Continuation token
+ ///
+ /// The resource group name.
+ ///
+ ///
+ /// The name of the share account.
+ ///
+ ///
+ /// The account payload.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, Account account, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, accountName, account, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Delete an account
+ ///
+ ///
+ /// DeleteAccount
+ ///
+ ///
+ /// The resource group name.
+ ///
+ ///
+ /// The name of the share account.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Patch a given account
+ ///
+ ///
+ /// Patch an account
+ ///
+ ///
+ /// The resource group name.
+ ///
+ ///
+ /// The name of the share account.
+ ///
+ ///
+ /// The account update parameters.
///
///
/// Headers that will be added to request.
@@ -535,12 +517,24 @@ internal AccountsOperations(DataShareManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListBySubscriptionWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, AccountUpdateParameters accountUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (accountName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
+ }
+ if (accountUpdateParameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "accountUpdateParameters");
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -552,23 +546,23 @@ internal AccountsOperations(DataShareManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("skipToken", skipToken);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("accountName", accountName);
+ tracingParameters.Add("accountUpdateParameters", accountUpdateParameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataShare/accounts").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
- if (skipToken != null)
- {
- _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken)));
- }
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
@@ -576,7 +570,7 @@ internal AccountsOperations(DataShareManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("PATCH");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -607,6 +601,12 @@ internal AccountsOperations(DataShareManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(accountUpdateParameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(accountUpdateParameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (Client.Credentials != null)
{
@@ -657,7 +657,7 @@ internal AccountsOperations(DataShareManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -670,7 +670,7 @@ internal AccountsOperations(DataShareManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/AccountsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/AccountsOperationsExtensions.cs
index 7971abde20e3..4701f9430738 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/AccountsOperationsExtensions.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/AccountsOperationsExtensions.cs
@@ -21,6 +21,46 @@ namespace Microsoft.Azure.Management.DataShare
///
public static partial class AccountsOperationsExtensions
{
+ ///
+ /// List Accounts in a subscription
+ ///
+ ///
+ /// List Accounts in Subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Continuation token
+ ///
+ public static IPage ListBySubscription(this IAccountsOperations operations, string skipToken = default(string))
+ {
+ return operations.ListBySubscriptionAsync(skipToken).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// List Accounts in a subscription
+ ///
+ ///
+ /// List Accounts in Subscription
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Continuation token
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListBySubscriptionAsync(this IAccountsOperations operations, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(skipToken, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Get an account under a resource group
///
@@ -217,46 +257,6 @@ public static Account Update(this IAccountsOperations operations, string resourc
}
}
- ///
- /// List Accounts in a subscription
- ///
- ///
- /// List Accounts in Subscription
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Continuation token
- ///
- public static IPage ListBySubscription(this IAccountsOperations operations, string skipToken = default(string))
- {
- return operations.ListBySubscriptionAsync(skipToken).GetAwaiter().GetResult();
- }
-
- ///
- /// List Accounts in a subscription
- ///
- ///
- /// List Accounts in Subscription
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// Continuation token
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task> ListBySubscriptionAsync(this IAccountsOperations operations, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(skipToken, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
///
/// List Accounts in a resource group
///
diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerInvitationsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerInvitationsOperations.cs
index b8fcc63a5fd7..e89a807a7bdc 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerInvitationsOperations.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerInvitationsOperations.cs
@@ -51,16 +51,13 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
public DataShareManagementClient Client { get; private set; }
///
- /// Rejects the invitation identified by invitationId
+ /// List the invitations
///
///
- /// Reject an invitation
+ /// Lists invitations
///
- ///
- /// Location of the invitation
- ///
- ///
- /// An invitation payload
+ ///
+ /// The continuation token
///
///
/// Headers that will be added to request.
@@ -83,20 +80,8 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> RejectInvitationWithHttpMessagesAsync(string location, ConsumerInvitation invitation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListInvitationsWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (location == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "location");
- }
- if (invitation == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "invitation");
- }
- if (invitation != null)
- {
- invitation.Validate();
- }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -108,20 +93,22 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("location", location);
- tracingParameters.Add("invitation", invitation);
+ tracingParameters.Add("skipToken", skipToken);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "RejectInvitation", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListInvitations", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DataShare/locations/{location}/RejectInvitation").ToString();
- _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DataShare/ListInvitations").ToString();
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
+ if (skipToken != null)
+ {
+ _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken)));
+ }
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
@@ -129,7 +116,7 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -160,12 +147,6 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
// Serialize Request
string _requestContent = null;
- if(invitation != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(invitation, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
// Set Credentials
if (Client.Credentials != null)
{
@@ -216,7 +197,7 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -229,7 +210,7 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -438,13 +419,16 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
}
///
- /// List the invitations
+ /// Rejects the invitation identified by invitationId
///
///
- /// Lists invitations
+ /// Reject an invitation
///
- ///
- /// The continuation token
+ ///
+ /// Location of the invitation
+ ///
+ ///
+ /// An invitation payload
///
///
/// Headers that will be added to request.
@@ -467,8 +451,20 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListInvitationsWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> RejectInvitationWithHttpMessagesAsync(string location, ConsumerInvitation invitation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (invitation == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "invitation");
+ }
+ if (invitation != null)
+ {
+ invitation.Validate();
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -480,22 +476,20 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("skipToken", skipToken);
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("invitation", invitation);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListInvitations", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "RejectInvitation", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DataShare/ListInvitations").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.DataShare/locations/{location}/RejectInvitation").ToString();
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
List _queryParameters = new List();
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
}
- if (skipToken != null)
- {
- _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken)));
- }
if (_queryParameters.Count > 0)
{
_url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
@@ -503,7 +497,7 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -534,6 +528,12 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(invitation != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(invitation, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (Client.Credentials != null)
{
@@ -584,7 +584,7 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -597,7 +597,7 @@ internal ConsumerInvitationsOperations(DataShareManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerInvitationsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerInvitationsOperationsExtensions.cs
index 55efdc3c3107..fcb7b3d99d40 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerInvitationsOperationsExtensions.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerInvitationsOperationsExtensions.cs
@@ -22,46 +22,40 @@ namespace Microsoft.Azure.Management.DataShare
public static partial class ConsumerInvitationsOperationsExtensions
{
///
- /// Rejects the invitation identified by invitationId
+ /// List the invitations
///
///
- /// Reject an invitation
+ /// Lists invitations
///
///
/// The operations group for this extension method.
///
- ///
- /// Location of the invitation
- ///
- ///
- /// An invitation payload
+ ///
+ /// The continuation token
///
- public static ConsumerInvitation RejectInvitation(this IConsumerInvitationsOperations operations, string location, ConsumerInvitation invitation)
+ public static IPage ListInvitations(this IConsumerInvitationsOperations operations, string skipToken = default(string))
{
- return operations.RejectInvitationAsync(location, invitation).GetAwaiter().GetResult();
+ return operations.ListInvitationsAsync(skipToken).GetAwaiter().GetResult();
}
///
- /// Rejects the invitation identified by invitationId
+ /// List the invitations
///
///
- /// Reject an invitation
+ /// Lists invitations
///
///
/// The operations group for this extension method.
///
- ///
- /// Location of the invitation
- ///
- ///
- /// An invitation payload
+ ///
+ /// The continuation token
///
///
/// The cancellation token.
///
- public static async Task RejectInvitationAsync(this IConsumerInvitationsOperations operations, string location, ConsumerInvitation invitation, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListInvitationsAsync(this IConsumerInvitationsOperations operations, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.RejectInvitationWithHttpMessagesAsync(location, invitation, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListInvitationsWithHttpMessagesAsync(skipToken, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -114,40 +108,46 @@ public static ConsumerInvitation Get(this IConsumerInvitationsOperations operati
}
///
- /// List the invitations
+ /// Rejects the invitation identified by invitationId
///
///
- /// Lists invitations
+ /// Reject an invitation
///
///
/// The operations group for this extension method.
///
- ///
- /// The continuation token
+ ///
+ /// Location of the invitation
///
- public static IPage ListInvitations(this IConsumerInvitationsOperations operations, string skipToken = default(string))
+ ///
+ /// An invitation payload
+ ///
+ public static ConsumerInvitation RejectInvitation(this IConsumerInvitationsOperations operations, string location, ConsumerInvitation invitation)
{
- return operations.ListInvitationsAsync(skipToken).GetAwaiter().GetResult();
+ return operations.RejectInvitationAsync(location, invitation).GetAwaiter().GetResult();
}
///
- /// List the invitations
+ /// Rejects the invitation identified by invitationId
///
///
- /// Lists invitations
+ /// Reject an invitation
///
///
/// The operations group for this extension method.
///
- ///
- /// The continuation token
+ ///
+ /// Location of the invitation
+ ///
+ ///
+ /// An invitation payload
///
///
/// The cancellation token.
///
- public static async Task> ListInvitationsAsync(this IConsumerInvitationsOperations operations, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task RejectInvitationAsync(this IConsumerInvitationsOperations operations, string location, ConsumerInvitation invitation, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListInvitationsWithHttpMessagesAsync(skipToken, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.RejectInvitationWithHttpMessagesAsync(location, invitation, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
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/IAccountsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IAccountsOperations.cs
index 93e63ba01ac9..d6dd20a2025c 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IAccountsOperations.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IAccountsOperations.cs
@@ -23,6 +23,31 @@ namespace Microsoft.Azure.Management.DataShare
///
public partial interface IAccountsOperations
{
+ ///
+ /// List Accounts in a subscription
+ ///
+ ///
+ /// List Accounts in Subscription
+ ///
+ ///
+ /// Continuation token
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListBySubscriptionWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Get an account under a resource group
///
@@ -142,31 +167,6 @@ public partial interface IAccountsOperations
///
Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, AccountUpdateParameters accountUpdateParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List Accounts in a subscription
- ///
- ///
- /// List Accounts in Subscription
- ///
- ///
- /// Continuation token
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when unable to deserialize the response
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task>> ListBySubscriptionWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
/// List Accounts in a resource group
///
///
diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IConsumerInvitationsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IConsumerInvitationsOperations.cs
index 7f1ca3ed424d..6325b92f815e 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IConsumerInvitationsOperations.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IConsumerInvitationsOperations.cs
@@ -24,16 +24,13 @@ namespace Microsoft.Azure.Management.DataShare
public partial interface IConsumerInvitationsOperations
{
///
- /// Rejects the invitation identified by invitationId
+ /// List the invitations
///
///
- /// Reject an invitation
+ /// Lists invitations
///
- ///
- /// Location of the invitation
- ///
- ///
- /// An invitation payload
+ ///
+ /// The continuation token
///
///
/// The headers that will be added to request.
@@ -50,7 +47,7 @@ public partial interface IConsumerInvitationsOperations
///
/// Thrown when a required parameter is null
///
- Task> RejectInvitationWithHttpMessagesAsync(string location, ConsumerInvitation invitation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListInvitationsWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the invitation identified by invitationId
///
@@ -80,13 +77,16 @@ public partial interface IConsumerInvitationsOperations
///
Task> GetWithHttpMessagesAsync(string location, string invitationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List the invitations
+ /// Rejects the invitation identified by invitationId
///
///
- /// Lists invitations
+ /// Reject an invitation
///
- ///
- /// The continuation token
+ ///
+ /// Location of the invitation
+ ///
+ ///
+ /// An invitation payload
///
///
/// The headers that will be added to request.
@@ -103,7 +103,7 @@ public partial interface IConsumerInvitationsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListInvitationsWithHttpMessagesAsync(string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> RejectInvitationWithHttpMessagesAsync(string location, ConsumerInvitation invitation, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// List the invitations
///
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/IProviderShareSubscriptionsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IProviderShareSubscriptionsOperations.cs
index eb453727e565..9d646a07e525 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IProviderShareSubscriptionsOperations.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IProviderShareSubscriptionsOperations.cs
@@ -24,10 +24,10 @@ namespace Microsoft.Azure.Management.DataShare
public partial interface IProviderShareSubscriptionsOperations
{
///
- /// Get share subscription in a provider share.
+ /// Reinstate share subscription in a provider share.
///
///
- /// Get share subscription in a provider share
+ /// Reinstate share subscription in a provider share
///
///
/// The resource group name.
@@ -56,12 +56,12 @@ public partial interface IProviderShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ReinstateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List of available share subscriptions to a provider share.
+ /// Revoke share subscription in a provider share.
///
///
- /// List share subscriptions in a provider share
+ /// Revoke share subscription in a provider share
///
///
/// The resource group name.
@@ -72,8 +72,8 @@ public partial interface IProviderShareSubscriptionsOperations
///
/// The name of the share.
///
- ///
- /// Continuation Token
+ ///
+ /// To locate shareSubscription
///
///
/// The headers that will be added to request.
@@ -90,12 +90,12 @@ public partial interface IProviderShareSubscriptionsOperations
///
/// 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> RevokeWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Revoke share subscription in a provider share.
+ /// Get share subscription in a provider share.
///
///
- /// Revoke share subscription in a provider share
+ /// Get share subscription in a provider share
///
///
/// The resource group name.
@@ -124,12 +124,12 @@ public partial interface IProviderShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> RevokeWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Reinstate share subscription in a provider share.
+ /// List of available share subscriptions to a provider share.
///
///
- /// Reinstate share subscription in a provider share
+ /// List share subscriptions in a provider share
///
///
/// The resource group name.
@@ -140,8 +140,8 @@ public partial interface IProviderShareSubscriptionsOperations
///
/// The name of the share.
///
- ///
- /// To locate shareSubscription
+ ///
+ /// Continuation Token
///
///
/// The headers that will be added to request.
@@ -158,7 +158,7 @@ public partial interface IProviderShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> ReinstateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Revoke share subscription in a provider 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..0786309f949f 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IShareSubscriptionsOperations.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/IShareSubscriptionsOperations.cs
@@ -24,10 +24,10 @@ namespace Microsoft.Azure.Management.DataShare
public partial interface IShareSubscriptionsOperations
{
///
- /// Get shareSubscription in an account.
+ /// Request cancellation of a data share snapshot
///
///
- /// Get a shareSubscription in an account
+ /// Request to cancel a synchronization.
///
///
/// The resource group name.
@@ -38,6 +38,9 @@ public partial interface IShareSubscriptionsOperations
///
/// The name of the shareSubscription.
///
+ ///
+ /// Share Subscription Synchronization payload.
+ ///
///
/// The headers that will be added to request.
///
@@ -53,12 +56,12 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CancelSynchronizationWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Create shareSubscription in an account.
+ /// Get source share synchronization settings for a shareSubscription.
///
///
- /// Create a shareSubscription in an account
+ /// Get synchronization settings set on a share
///
///
/// The resource group name.
@@ -69,8 +72,8 @@ public partial interface IShareSubscriptionsOperations
///
/// The name of the shareSubscription.
///
- ///
- /// create parameters for shareSubscription
+ ///
+ /// Continuation token
///
///
/// The headers that will be added to request.
@@ -87,12 +90,13 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscription shareSubscription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListSourceShareSynchronizationSettingsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Delete shareSubscription in an account.
+ /// List data set level details for a share subscription
+ /// synchronization
///
///
- /// Delete a shareSubscription in an account
+ /// List synchronization details
///
///
/// The resource group name.
@@ -101,7 +105,19 @@ public partial interface IShareSubscriptionsOperations
/// The name of the share account.
///
///
- /// The name of the shareSubscription.
+ /// The name of the share subscription.
+ ///
+ ///
+ /// Share Subscription Synchronization payload.
+ ///
+ ///
+ /// Continuation token
+ ///
+ ///
+ /// Filters the results using OData syntax.
+ ///
+ ///
+ /// Sorts the results using OData syntax.
///
///
/// The headers that will be added to request.
@@ -118,12 +134,12 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, 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));
///
- /// List of available share subscriptions under an account.
+ /// List Synchronizations in a share subscription.
///
///
- /// List share subscriptions in an account
+ /// List synchronizations of a share subscription
///
///
/// The resource group name.
@@ -131,8 +147,17 @@ public partial interface IShareSubscriptionsOperations
///
/// The name of the share account.
///
+ ///
+ /// The name of the share subscription.
+ ///
///
- /// Continuation Token
+ /// Continuation token
+ ///
+ ///
+ /// Filters the results using OData syntax.
+ ///
+ ///
+ /// Sorts the results using OData syntax.
///
///
/// The headers that will be added to request.
@@ -149,12 +174,12 @@ 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>> 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));
///
- /// Get source share synchronization settings for a shareSubscription.
+ /// Initiate an asynchronous data share job
///
///
- /// Get synchronization settings set on a share
+ /// Initiate a copy
///
///
/// The resource group name.
@@ -163,10 +188,10 @@ public partial interface IShareSubscriptionsOperations
/// The name of the share account.
///
///
- /// The name of the shareSubscription.
+ /// The name of share subscription
///
- ///
- /// Continuation token
+ ///
+ /// Synchronize payload
///
///
/// The headers that will be added to request.
@@ -183,12 +208,12 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListSourceShareSynchronizationSettingsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> SynchronizeMethodWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List Synchronizations in a share subscription.
+ /// Get shareSubscription in an account.
///
///
- /// List synchronizations of a share subscription
+ /// Get a shareSubscription in an account
///
///
/// The resource group name.
@@ -197,10 +222,7 @@ public partial interface IShareSubscriptionsOperations
/// The name of the share account.
///
///
- /// The name of the share subscription.
- ///
- ///
- /// Continuation token
+ /// The name of the shareSubscription.
///
///
/// The headers that will be added to request.
@@ -217,13 +239,12 @@ 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> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List data set level details for a share subscription
- /// synchronization
+ /// Create shareSubscription in an account.
///
///
- /// List synchronization details
+ /// Create a shareSubscription in an account
///
///
/// The resource group name.
@@ -232,13 +253,10 @@ public partial interface IShareSubscriptionsOperations
/// The name of the share account.
///
///
- /// The name of the share subscription.
- ///
- ///
- /// Share Subscription Synchronization payload.
+ /// The name of the shareSubscription.
///
- ///
- /// Continuation token
+ ///
+ /// create parameters for shareSubscription
///
///
/// The headers that will be added to request.
@@ -255,12 +273,12 @@ 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> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscription shareSubscription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Initiate an asynchronous data share job
+ /// Delete shareSubscription in an account.
///
///
- /// Initiate a copy
+ /// Delete a shareSubscription in an account
///
///
/// The resource group name.
@@ -269,10 +287,7 @@ public partial interface IShareSubscriptionsOperations
/// The name of the share account.
///
///
- /// The name of share subscription
- ///
- ///
- /// Synchronize payload
+ /// The name of the shareSubscription.
///
///
/// The headers that will be added to request.
@@ -289,12 +304,12 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> SynchronizeMethodWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Request cancellation of a data share snapshot
+ /// List of available share subscriptions under an account.
///
///
- /// Request to cancel a synchronization.
+ /// List share subscriptions in an account
///
///
/// The resource group name.
@@ -302,11 +317,14 @@ public partial interface IShareSubscriptionsOperations
///
/// The name of the share account.
///
- ///
- /// The name of the shareSubscription.
+ ///
+ /// Continuation Token
///
- ///
- /// Share Subscription Synchronization payload.
+ ///
+ /// Filters the results using OData syntax.
+ ///
+ ///
+ /// Sorts the results using OData syntax.
///
///
/// The headers that will be added to request.
@@ -323,12 +341,12 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> CancelSynchronizationWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, 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));
///
- /// Delete shareSubscription in an account.
+ /// Request cancellation of a data share snapshot
///
///
- /// Delete a shareSubscription in an account
+ /// Request to cancel a synchronization.
///
///
/// The resource group name.
@@ -339,6 +357,9 @@ public partial interface IShareSubscriptionsOperations
///
/// The name of the shareSubscription.
///
+ ///
+ /// Share Subscription Synchronization payload.
+ ///
///
/// The headers that will be added to request.
///
@@ -354,7 +375,7 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginCancelSynchronizationWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Initiate an asynchronous data share job
///
@@ -390,10 +411,10 @@ public partial interface IShareSubscriptionsOperations
///
Task> BeginSynchronizeMethodWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Request cancellation of a data share snapshot
+ /// Delete shareSubscription in an account.
///
///
- /// Request to cancel a synchronization.
+ /// Delete a shareSubscription in an account
///
///
/// The resource group name.
@@ -404,9 +425,6 @@ public partial interface IShareSubscriptionsOperations
///
/// The name of the shareSubscription.
///
- ///
- /// Share Subscription Synchronization payload.
- ///
///
/// The headers that will be added to request.
///
@@ -422,12 +440,12 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginCancelSynchronizationWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List of available share subscriptions under an account.
+ /// Get source share synchronization settings for a shareSubscription.
///
///
- /// List share subscriptions in an account
+ /// Get synchronization settings set on a share
///
///
/// The NextLink from the previous successful call to List operation.
@@ -447,12 +465,13 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListSourceShareSynchronizationSettingsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Get source share synchronization settings for a shareSubscription.
+ /// List data set level details for a share subscription
+ /// synchronization
///
///
- /// Get synchronization settings set on a share
+ /// List synchronization details
///
///
/// The NextLink from the previous successful call to List operation.
@@ -472,7 +491,7 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListSourceShareSynchronizationSettingsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListSynchronizationDetailsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// List Synchronizations in a share subscription.
///
@@ -499,11 +518,10 @@ public partial interface IShareSubscriptionsOperations
///
Task>> ListSynchronizationsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List data set level details for a share subscription
- /// synchronization
+ /// List of available share subscriptions under an account.
///
///
- /// List synchronization details
+ /// List share subscriptions in an account
///
///
/// The NextLink from the previous successful call to List operation.
@@ -523,6 +541,6 @@ public partial interface IShareSubscriptionsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListSynchronizationDetailsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
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..fdc763400f50 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISharesOperations.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISharesOperations.cs
@@ -24,10 +24,10 @@ namespace Microsoft.Azure.Management.DataShare
public partial interface ISharesOperations
{
///
- /// Get a specified share
+ /// List data set level details for a share synchronization
///
///
- /// Get a share
+ /// List synchronization details
///
///
/// The resource group name.
@@ -36,7 +36,19 @@ public partial interface ISharesOperations
/// The name of the share account.
///
///
- /// The name of the share to retrieve.
+ /// The name of the share.
+ ///
+ ///
+ /// Share Synchronization payload.
+ ///
+ ///
+ /// Continuation token
+ ///
+ ///
+ /// Filters the results using OData syntax.
+ ///
+ ///
+ /// Sorts the results using OData syntax.
///
///
/// The headers that will be added to request.
@@ -53,12 +65,12 @@ public partial interface ISharesOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, 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));
///
- /// Create a share in the given account.
+ /// List Synchronizations in a share
///
///
- /// Create a share
+ /// List synchronizations of a share
///
///
/// The resource group name.
@@ -69,8 +81,14 @@ public partial interface ISharesOperations
///
/// The name of the share.
///
- ///
- /// The share payload
+ ///
+ /// Continuation token
+ ///
+ ///
+ /// Filters the results using OData syntax.
+ ///
+ ///
+ /// Sorts the results using OData syntax.
///
///
/// The headers that will be added to request.
@@ -87,12 +105,12 @@ public partial interface ISharesOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Share share, 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));
///
- /// Deletes a share
+ /// Get a specified share
///
///
- /// Delete a share
+ /// Get a share
///
///
/// The resource group name.
@@ -101,7 +119,7 @@ public partial interface ISharesOperations
/// The name of the share account.
///
///
- /// The name of the share.
+ /// The name of the share to retrieve.
///
///
/// The headers that will be added to request.
@@ -118,12 +136,12 @@ public partial interface ISharesOperations
///
/// Thrown when a required parameter is null
///
- Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List of available shares under an account.
+ /// Create a share in the given account.
///
///
- /// List shares in an account
+ /// Create a share
///
///
/// The resource group name.
@@ -131,8 +149,11 @@ public partial interface ISharesOperations
///
/// The name of the share account.
///
- ///
- /// Continuation Token
+ ///
+ /// The name of the share.
+ ///
+ ///
+ /// The share payload
///
///
/// The headers that will be added to request.
@@ -149,12 +170,12 @@ 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> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Share share, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List Synchronizations in a share
+ /// Deletes a share
///
///
- /// List synchronizations of a share
+ /// Delete a share
///
///
/// The resource group name.
@@ -165,9 +186,6 @@ public partial interface ISharesOperations
///
/// The name of the share.
///
- ///
- /// Continuation token
- ///
///
/// The headers that will be added to request.
///
@@ -183,12 +201,12 @@ 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> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List data set level details for a share synchronization
+ /// List of available shares under an account.
///
///
- /// List synchronization details
+ /// List shares in an account
///
///
/// The resource group name.
@@ -196,14 +214,14 @@ public partial interface ISharesOperations
///
/// The name of the share account.
///
- ///
- /// The name of the share.
+ ///
+ /// Continuation Token
///
- ///
- /// Share Synchronization payload.
+ ///
+ /// Filters the results using OData syntax.
///
- ///
- /// Continuation token
+ ///
+ /// 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>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a share
///
@@ -253,10 +271,10 @@ public partial interface ISharesOperations
///
Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List of available shares under an account.
+ /// List data set level details for a share synchronization
///
///
- /// List shares in an account
+ /// List synchronization details
///
///
/// The NextLink from the previous successful call to List operation.
@@ -276,7 +294,7 @@ public partial interface ISharesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListSynchronizationDetailsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// List Synchronizations in a share
///
@@ -303,10 +321,10 @@ public partial interface ISharesOperations
///
Task>> ListSynchronizationsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// List data set level details for a share synchronization
+ /// List of available shares under an account.
///
///
- /// List synchronization details
+ /// List shares in an account
///
///
/// The NextLink from the previous successful call to List operation.
@@ -326,6 +344,6 @@ public partial interface ISharesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListSynchronizationDetailsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
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/ProviderShareSubscriptionsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ProviderShareSubscriptionsOperations.cs
index a1884a6b8708..2323341235d4 100644
--- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ProviderShareSubscriptionsOperations.cs
+++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ProviderShareSubscriptionsOperations.cs
@@ -51,10 +51,10 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client)
public DataShareManagementClient Client { get; private set; }
///
- /// Get share subscription in a provider share.
+ /// Reinstate share subscription in a provider share.
///
///
- /// Get share subscription in a provider share
+ /// Reinstate share subscription in a provider share
///
///
/// The resource group name.
@@ -89,7 +89,7 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ReinstateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -127,11 +127,11 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client)
tracingParameters.Add("shareName", shareName);
tracingParameters.Add("providerShareSubscriptionId", providerShareSubscriptionId);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetByShare", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Reinstate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/providerShareSubscriptions/{providerShareSubscriptionId}/reinstate").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName));
@@ -149,7 +149,7 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("POST");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -263,10 +263,10 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client)
}
///
- /// List of available share subscriptions to a provider share.
+ /// Revoke share subscription in a provider share.
///
///
- /// List share subscriptions in a provider share
+ /// Revoke share subscription in a provider share
///
///
/// The resource group name.
@@ -277,8 +277,39 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client)
///
/// The name of the share.
///
- ///
- /// Continuation Token
+ ///
+ /// To locate shareSubscription
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> RevokeWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginRevokeWithHttpMessagesAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get share subscription in a provider share.
+ ///
+ ///
+ /// Get share subscription in a provider share
+ ///
+ ///
+ /// The resource group name.
+ ///
+ ///
+ /// The name of the share account.
+ ///
+ ///
+ /// The name of the share.
+ ///
+ ///
+ /// To locate shareSubscription
///
///
/// Headers that will be added to request.
@@ -301,7 +332,7 @@ internal ProviderShareSubscriptionsOperations(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