diff --git a/eng/mgmt/mgmtmetadata/datashare_resource-manager.txt b/eng/mgmt/mgmtmetadata/datashare_resource-manager.txt index c57a9a9a47755..8b96eb393f339 100644 --- a/eng/mgmt/mgmtmetadata/datashare_resource-manager.txt +++ b/eng/mgmt/mgmtmetadata/datashare_resource-manager.txt @@ -1,14 +1,14 @@ -Installing AutoRest version: 2.0.4413 +Installing AutoRest version: v2 AutoRest installed successfully. Commencing code generation Generating CSharp code Executing AutoRest command -cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datashare/resource-manager/readme.md --csharp --version=2.0.4413 --reflect-api-versions --tag=package-2019-11-01 --csharp-sdks-folder=F:\azure-sdk-for-net\sdk -2020-03-23 22:27:13 UTC +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datashare/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\Users\ahermas\source\repos\azure-sdk-for-net\sdk +2021-03-16 03:52:18 UTC Azure-rest-api-specs repository information GitHub fork: Azure Branch: master -Commit: 9505236faa86b99b6dc58b5655d8e1c4a758d89c +Commit: 3f3a82ed7731b6a212c0a62c7798259d44c99181 AutoRest information -Requested version: 2.0.4413 +Requested version: v2 Bootstrapper version: autorest@2.0.4413 diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/AzSdk.RP.props b/sdk/datashare/Microsoft.Azure.Management.DataShare/AzSdk.RP.props index adb7dc28c1554..0c877da407e0a 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/AzSdk.RP.props +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/AzSdk.RP.props @@ -1,7 +1,7 @@ - DataShare_2019-11-01; + DataShare_2020-09-01; $(PackageTags);$(CommonTags);$(AzureApiTag); \ No newline at end of file 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 7044ddaea35cb..fb8cbfa847f2b 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 7971abde20e3f..4701f9430738c 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 b8fcc63a5fd74..fc57f14eea547 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 55efdc3c31071..fcb7b3d99d409 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/ConsumerSourceDataSetsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerSourceDataSetsOperations.cs index 67523f50bbcc8..fbb276859bf67 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerSourceDataSetsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ConsumerSourceDataSetsOperations.cs @@ -127,7 +127,7 @@ internal ConsumerSourceDataSetsOperations(DataShareManagementClient client) } // 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}/shareSubscriptions/{shareSubscriptionName}/ConsumerSourceDataSets").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/consumerSourceDataSets").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)); 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 497326a964ec5..f33f699777e77 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 536a42bddc6c5..168c682af07a9 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 9f89024743dbd..5c3c2c9f09580 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 f9fb1d1090ea7..8d7abcf02507b 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/DataShareManagementClient.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataShareManagementClient.cs index 6161c80f6ebf4..520e915dbd985 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataShareManagementClient.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/DataShareManagementClient.cs @@ -388,7 +388,7 @@ private void Initialize() SynchronizationSettings = new SynchronizationSettingsOperations(this); Triggers = new TriggersOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2019-11-01"; + ApiVersion = "2020-09-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; 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 93e63ba01ac9f..d6dd20a2025ce 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 7f1ca3ed424d0..6325b92f815e1 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 ef1bfed000fb2..9c35900c030e2 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 d3b86037087a9..91890aaaeaf19 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 03d7eed02517e..c3e74ed03c194 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 eb453727e565a..e3cf96f11d91d 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,11 @@ namespace Microsoft.Azure.Management.DataShare public partial interface IProviderShareSubscriptionsOperations { /// - /// Get share subscription in a provider share. + /// Adjust the expiration date of a share subscription in a provider + /// share. /// /// - /// Get share subscription in a provider share + /// Adjust a share subscription's expiration date in a provider share /// /// /// The resource group name. @@ -41,6 +42,9 @@ public partial interface IProviderShareSubscriptionsOperations /// /// To locate shareSubscription /// + /// + /// The provider share subscription + /// /// /// The headers that will be added to request. /// @@ -56,12 +60,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> AdjustWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscription providerShareSubscription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// List of available share subscriptions to a provider share. + /// Reinstate share subscription in a provider share. /// /// - /// List share subscriptions in a provider share + /// Reinstate share subscription in a provider share /// /// /// The resource group name. @@ -72,8 +76,11 @@ public partial interface IProviderShareSubscriptionsOperations /// /// The name of the share. /// - /// - /// Continuation Token + /// + /// To locate shareSubscription + /// + /// + /// The provider share subscription /// /// /// The headers that will be added to request. @@ -90,7 +97,7 @@ 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> ReinstateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscription providerShareSubscription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Revoke share subscription in a provider share. /// @@ -126,10 +133,10 @@ public partial interface IProviderShareSubscriptionsOperations /// Task> RevokeWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Reinstate share subscription in a provider share. + /// Get share subscription in a provider share. /// /// - /// Reinstate share subscription in a provider share + /// Get share subscription in a provider share /// /// /// The resource group name. @@ -158,7 +165,41 @@ 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> GetByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List of available share subscriptions to a provider share. + /// + /// + /// List share subscriptions in a provider share + /// + /// + /// The resource group name. + /// + /// + /// The name of the share account. + /// + /// + /// The name of the share. + /// + /// + /// 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>> 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 ec220422b1bb5..0786309f949fa 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 cf0eb4d8ee74b..fdc763400f508 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/ISynchronizationSettingsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISynchronizationSettingsOperations.cs index f174657ae6391..0442a22a28c38 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISynchronizationSettingsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ISynchronizationSettingsOperations.cs @@ -61,7 +61,7 @@ public partial interface ISynchronizationSettingsOperations /// Adds a new synchronization setting to an existing share. /// /// - /// Create or update a synchronizationSetting + /// Create a synchronizationSetting /// /// /// The resource group name. 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 4abaebeddebd4..a08f51aff6c8c 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 c8670b28a37fb..59bfe6e308472 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/ADLSGen1FileDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen1FileDataSet.cs index 5928d47e607f4..fa048e5bd8fef 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen1FileDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen1FileDataSet.cs @@ -42,11 +42,12 @@ public ADLSGen1FileDataSet() /// account. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public ADLSGen1FileDataSet(string accountName, string fileName, string folderPath, string resourceGroup, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public ADLSGen1FileDataSet(string accountName, string fileName, string folderPath, string resourceGroup, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { AccountName = accountName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen1FolderDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen1FolderDataSet.cs index 056d4d69dcf47..7f664644d4204 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen1FolderDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen1FolderDataSet.cs @@ -41,11 +41,12 @@ public ADLSGen1FolderDataSet() /// account. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public ADLSGen1FolderDataSet(string accountName, string folderPath, string resourceGroup, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public ADLSGen1FolderDataSet(string accountName, string folderPath, string resourceGroup, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { AccountName = accountName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileDataSet.cs index 92c8ae2b32d3a..5e95ac11dd654 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileDataSet.cs @@ -44,11 +44,12 @@ public ADLSGen2FileDataSet() /// account /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public ADLSGen2FileDataSet(string filePath, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public ADLSGen2FileDataSet(string filePath, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; FilePath = filePath; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileDataSetMapping.cs index c099a9638afdc..1ff709fc901e4 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileDataSetMapping.cs @@ -45,6 +45,7 @@ public ADLSGen2FileDataSetMapping() /// account. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' @@ -53,8 +54,8 @@ public ADLSGen2FileDataSetMapping() /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public ADLSGen2FileDataSetMapping(string dataSetId, string filePath, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string outputType = default(string), string provisioningState = default(string)) - : base(id, name, type) + public ADLSGen2FileDataSetMapping(string dataSetId, string filePath, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string outputType = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; DataSetMappingStatus = dataSetMappingStatus; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileSystemDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileSystemDataSet.cs index a3125d86d8801..2b90a8832b3e3 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileSystemDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileSystemDataSet.cs @@ -42,11 +42,12 @@ public ADLSGen2FileSystemDataSet() /// account /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public ADLSGen2FileSystemDataSet(string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public ADLSGen2FileSystemDataSet(string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; FileSystem = fileSystem; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileSystemDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileSystemDataSetMapping.cs index 4ffe535a7f1f5..79acbc5fe6854 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileSystemDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FileSystemDataSetMapping.cs @@ -45,14 +45,15 @@ public ADLSGen2FileSystemDataSetMapping() /// account. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public ADLSGen2FileSystemDataSetMapping(string dataSetId, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) - : base(id, name, type) + public ADLSGen2FileSystemDataSetMapping(string dataSetId, string fileSystem, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; DataSetMappingStatus = dataSetMappingStatus; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FolderDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FolderDataSet.cs index fedc5729afd53..a0022004cbeae 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FolderDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FolderDataSet.cs @@ -45,11 +45,12 @@ public ADLSGen2FolderDataSet() /// account /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public ADLSGen2FolderDataSet(string fileSystem, string folderPath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public ADLSGen2FolderDataSet(string fileSystem, string folderPath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; FileSystem = fileSystem; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FolderDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FolderDataSetMapping.cs index 32ff23965ed9e..006e6b794b1a2 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FolderDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ADLSGen2FolderDataSetMapping.cs @@ -48,14 +48,15 @@ public ADLSGen2FolderDataSetMapping() /// account. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public ADLSGen2FolderDataSetMapping(string dataSetId, string fileSystem, string folderPath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) - : base(id, name, type) + public ADLSGen2FolderDataSetMapping(string dataSetId, string fileSystem, string folderPath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; DataSetMappingStatus = dataSetMappingStatus; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Account.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Account.cs index c1d2d681277ba..5f7ef1a2351bc 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Account.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Account.cs @@ -36,10 +36,11 @@ public Account() /// /// Identity Info on the Account /// The resource id of the azure resource - /// Location of the azure resource. /// Name of the azure resource - /// Tags on the azure resource. + /// System Data of the Azure resource. /// Type of the azure resource + /// Location of the azure resource. + /// Tags on the azure resource. /// Time at which the account was /// created. /// Provisioning state of the Account. @@ -49,8 +50,8 @@ public Account() /// resource /// Name of the user who created the /// resource - public Account(Identity identity, string id = default(string), string location = default(string), string name = default(string), IDictionary tags = default(IDictionary), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), string provisioningState = default(string), string userEmail = default(string), string userName = default(string)) - : base(id, location, name, tags, type) + public Account(Identity identity, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), System.DateTime? createdAt = default(System.DateTime?), string provisioningState = default(string), string userEmail = default(string), string userName = default(string)) + : base(id, name, systemData, type, location, tags) { Identity = identity; CreatedAt = createdAt; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobContainerDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobContainerDataSet.cs index 0ded39b114562..7086662f5754c 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobContainerDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobContainerDataSet.cs @@ -42,11 +42,12 @@ public BlobContainerDataSet() /// account /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public BlobContainerDataSet(string containerName, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public BlobContainerDataSet(string containerName, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { ContainerName = containerName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobContainerDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobContainerDataSetMapping.cs index fb61639e380e0..20d47d9c4fc4b 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobContainerDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobContainerDataSetMapping.cs @@ -45,14 +45,15 @@ public BlobContainerDataSetMapping() /// account. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public BlobContainerDataSetMapping(string containerName, string dataSetId, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) - : base(id, name, type) + public BlobContainerDataSetMapping(string containerName, string dataSetId, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { ContainerName = containerName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobDataSet.cs index acbdc70ae9c16..ef630377aae7b 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobDataSet.cs @@ -44,11 +44,12 @@ public BlobDataSet() /// account /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public BlobDataSet(string containerName, string filePath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public BlobDataSet(string containerName, string filePath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { ContainerName = containerName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobDataSetMapping.cs index 8306b5a3f0d74..a4b2b8df37b9c 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobDataSetMapping.cs @@ -45,6 +45,7 @@ public BlobDataSetMapping() /// account. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' @@ -53,8 +54,8 @@ public BlobDataSetMapping() /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public BlobDataSetMapping(string containerName, string dataSetId, string filePath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string outputType = default(string), string provisioningState = default(string)) - : base(id, name, type) + public BlobDataSetMapping(string containerName, string dataSetId, string filePath, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string outputType = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { ContainerName = containerName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSet.cs index a5c0210fcdb06..494cb4cd69796 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSet.cs @@ -44,11 +44,12 @@ public BlobFolderDataSet() /// account /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public BlobFolderDataSet(string containerName, string prefix, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public BlobFolderDataSet(string containerName, string prefix, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { ContainerName = containerName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSetMapping.cs index ecbd849249d19..54da34c5468e4 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/BlobFolderDataSetMapping.cs @@ -45,14 +45,15 @@ public BlobFolderDataSetMapping() /// account. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public BlobFolderDataSetMapping(string containerName, string dataSetId, string prefix, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) - : base(id, name, type) + public BlobFolderDataSetMapping(string containerName, string dataSetId, string prefix, string resourceGroup, string storageAccountName, string subscriptionId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { ContainerName = containerName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ConsumerInvitation.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ConsumerInvitation.cs index ef5391ffc267e..001861f5c8d3e 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ConsumerInvitation.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ConsumerInvitation.cs @@ -35,10 +35,13 @@ public ConsumerInvitation() /// Unique id of the invitation. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Number of data sets in a share /// Description shared when the invitation /// was created + /// The expiration date for the share + /// subscription created by accepting the invitation. /// The status of the invitation. /// Possible values include: 'Pending', 'Accepted', 'Rejected', /// 'Withdrawn' @@ -60,11 +63,12 @@ public ConsumerInvitation() /// resource /// Name of the user who created the /// resource - public ConsumerInvitation(string invitationId, string id = default(string), string name = default(string), string type = default(string), int? dataSetCount = default(int?), string description = default(string), string invitationStatus = default(string), string location = default(string), string providerEmail = default(string), string providerName = default(string), string providerTenantName = default(string), System.DateTime? respondedAt = default(System.DateTime?), System.DateTime? sentAt = default(System.DateTime?), string shareName = default(string), string termsOfUse = default(string), string userEmail = default(string), string userName = default(string)) - : base(id, name, type) + public ConsumerInvitation(string invitationId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), int? dataSetCount = default(int?), string description = default(string), System.DateTime? expirationDate = default(System.DateTime?), string invitationStatus = default(string), string location = default(string), string providerEmail = default(string), string providerName = default(string), string providerTenantName = default(string), System.DateTime? respondedAt = default(System.DateTime?), System.DateTime? sentAt = default(System.DateTime?), string shareName = default(string), string termsOfUse = default(string), string userEmail = default(string), string userName = default(string)) + : base(id, name, systemData, type) { DataSetCount = dataSetCount; Description = description; + ExpirationDate = expirationDate; InvitationId = invitationId; InvitationStatus = invitationStatus; Location = location; @@ -97,6 +101,13 @@ public ConsumerInvitation() [JsonProperty(PropertyName = "properties.description")] public string Description { get; private set; } + /// + /// Gets the expiration date for the share subscription created by + /// accepting the invitation. + /// + [JsonProperty(PropertyName = "properties.expirationDate")] + public System.DateTime? ExpirationDate { get; private set; } + /// /// Gets or sets unique id of the invitation. /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ConsumerSourceDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ConsumerSourceDataSet.cs index 97d083aee25ca..239c968500dc0 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ConsumerSourceDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ConsumerSourceDataSet.cs @@ -34,6 +34,7 @@ public ConsumerSourceDataSet() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// DataSet Id /// Location of the data set. @@ -42,9 +43,10 @@ public ConsumerSourceDataSet() /// Type of data set. Possible values /// include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', /// 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', - /// 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable' - public ConsumerSourceDataSet(string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string), string dataSetLocation = default(string), string dataSetName = default(string), string dataSetPath = default(string), string dataSetType = default(string)) - : base(id, name, type) + /// 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + /// 'SynapseWorkspaceSqlPoolTable' + public ConsumerSourceDataSet(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string), string dataSetLocation = default(string), string dataSetName = default(string), string dataSetPath = default(string), string dataSetType = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; DataSetLocation = dataSetLocation; @@ -87,7 +89,8 @@ public ConsumerSourceDataSet() /// Gets type of data set. Possible values include: 'Blob', /// 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', /// 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', - /// 'KustoDatabase', 'SqlDBTable', 'SqlDWTable' + /// 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + /// 'SynapseWorkspaceSqlPoolTable' /// [JsonProperty(PropertyName = "properties.dataSetType")] public string DataSetType { get; private set; } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/CreatedByType.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/CreatedByType.cs new file mode 100644 index 0000000000000..37d9a4cff6355 --- /dev/null +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/CreatedByType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataShare.Models +{ + + /// + /// Defines values for CreatedByType. + /// + public static class CreatedByType + { + public const string User = "User"; + public const string Application = "Application"; + public const string ManagedIdentity = "ManagedIdentity"; + public const string Key = "Key"; + } +} 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 f453cb9d4d1f4..3136fc877dca1 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 { /// @@ -32,9 +30,10 @@ public DataSet() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource - public DataSet(string id = default(string), string name = default(string), string type = default(string)) - : base(id, name, type) + public DataSet(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string)) + : base(id, name, systemData, type) { CustomInit(); } 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 ee11f00c0e10f..8c9fb86d05cf7 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 { /// @@ -32,9 +30,10 @@ public DataSetMapping() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource - public DataSetMapping(string id = default(string), string name = default(string), string type = default(string)) - : base(id, name, type) + public DataSetMapping(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string)) + : base(id, name, systemData, type) { CustomInit(); } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSetType.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSetType.cs index e9414977eabd7..be73fb8167961 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSetType.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DataSetType.cs @@ -28,5 +28,6 @@ public static class DataSetType public const string KustoDatabase = "KustoDatabase"; public const string SqlDBTable = "SqlDBTable"; public const string SqlDWTable = "SqlDWTable"; + public const string SynapseWorkspaceSqlPoolTable = "SynapseWorkspaceSqlPoolTable"; } } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DefaultDto.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DefaultDto.cs index 4027683eb15e2..75fc2f9cfc32b 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DefaultDto.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/DefaultDto.cs @@ -10,8 +10,6 @@ namespace Microsoft.Azure.Management.DataShare.Models { - using Microsoft.Rest; - using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; @@ -20,7 +18,7 @@ namespace Microsoft.Azure.Management.DataShare.Models /// /// Base data transfer object implementation for default resources. /// - public partial class DefaultDto : IResource + public partial class DefaultDto : ProxyDto { /// /// Initializes a new instance of the DefaultDto class. @@ -34,17 +32,16 @@ public DefaultDto() /// Initializes a new instance of the DefaultDto class. /// /// The resource id of the azure resource - /// Location of the azure resource. /// Name of the azure resource - /// Tags on the azure resource. + /// System Data of the Azure resource. /// Type of the azure resource - public DefaultDto(string id = default(string), string location = default(string), string name = default(string), IDictionary tags = default(IDictionary), string type = default(string)) + /// Location of the azure resource. + /// Tags on the azure resource. + public DefaultDto(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) + : base(id, name, systemData, type) { - Id = id; Location = location; - Name = name; Tags = tags; - Type = type; CustomInit(); } @@ -53,35 +50,17 @@ public DefaultDto() /// partial void CustomInit(); - /// - /// Gets the resource id of the azure resource - /// - [JsonProperty(PropertyName = "id")] - public string Id { get; private set; } - /// /// Gets or sets location of the azure resource. /// [JsonProperty(PropertyName = "location")] public string Location { get; set; } - /// - /// Gets name of the azure resource - /// - [JsonProperty(PropertyName = "name")] - public string Name { get; private set; } - /// /// Gets or sets tags on the azure resource. /// [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } - /// - /// Gets type of the azure resource - /// - [JsonProperty(PropertyName = "type")] - public string Type { get; private set; } - } } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Invitation.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Invitation.cs index d9993887848b4..ac064c1eaff68 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Invitation.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Invitation.cs @@ -34,7 +34,10 @@ public Invitation() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource + /// The expiration date for the invitation + /// and share subscription. /// unique invitation id /// The status of the invitation. /// Possible values include: 'Pending', 'Accepted', 'Rejected', @@ -57,9 +60,10 @@ public Invitation() /// resource /// Name of the user who created the /// resource - public Invitation(string id = default(string), string name = default(string), string type = default(string), string invitationId = default(string), string invitationStatus = default(string), System.DateTime? respondedAt = default(System.DateTime?), System.DateTime? sentAt = default(System.DateTime?), string targetActiveDirectoryId = default(string), string targetEmail = default(string), string targetObjectId = default(string), string userEmail = default(string), string userName = default(string)) - : base(id, name, type) + public Invitation(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), System.DateTime? expirationDate = default(System.DateTime?), string invitationId = default(string), string invitationStatus = default(string), System.DateTime? respondedAt = default(System.DateTime?), System.DateTime? sentAt = default(System.DateTime?), string targetActiveDirectoryId = default(string), string targetEmail = default(string), string targetObjectId = default(string), string userEmail = default(string), string userName = default(string)) + : base(id, name, systemData, type) { + ExpirationDate = expirationDate; InvitationId = invitationId; InvitationStatus = invitationStatus; RespondedAt = respondedAt; @@ -77,6 +81,13 @@ public Invitation() /// partial void CustomInit(); + /// + /// Gets or sets the expiration date for the invitation and share + /// subscription. + /// + [JsonProperty(PropertyName = "properties.expirationDate")] + public System.DateTime? ExpirationDate { get; set; } + /// /// Gets unique invitation id /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoClusterDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoClusterDataSet.cs index 041809fd8b2a1..693222c4515fc 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoClusterDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoClusterDataSet.cs @@ -37,6 +37,7 @@ public KustoClusterDataSet() /// cluster. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource @@ -44,8 +45,8 @@ public KustoClusterDataSet() /// Provisioning state of the kusto /// cluster data set. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public KustoClusterDataSet(string kustoClusterResourceId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string), string location = default(string), string provisioningState = default(string)) - : base(id, name, type) + public KustoClusterDataSet(string kustoClusterResourceId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string), string location = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; KustoClusterResourceId = kustoClusterResourceId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoClusterDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoClusterDataSetMapping.cs index e3a7b4afbc1a4..d00eee60308a4 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoClusterDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoClusterDataSetMapping.cs @@ -38,6 +38,7 @@ public KustoClusterDataSetMapping() /// cluster. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' @@ -45,8 +46,8 @@ public KustoClusterDataSetMapping() /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public KustoClusterDataSetMapping(string dataSetId, string kustoClusterResourceId, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string location = default(string), string provisioningState = default(string)) - : base(id, name, type) + public KustoClusterDataSetMapping(string dataSetId, string kustoClusterResourceId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string location = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; DataSetMappingStatus = dataSetMappingStatus; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoDatabaseDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoDatabaseDataSet.cs index a16ee6626fd44..38d13016f065f 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoDatabaseDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoDatabaseDataSet.cs @@ -37,6 +37,7 @@ public KustoDatabaseDataSet() /// database. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource @@ -44,8 +45,8 @@ public KustoDatabaseDataSet() /// Provisioning state of the kusto /// database data set. Possible values include: 'Succeeded', /// 'Creating', 'Deleting', 'Moving', 'Failed' - public KustoDatabaseDataSet(string kustoDatabaseResourceId, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string), string location = default(string), string provisioningState = default(string)) - : base(id, name, type) + public KustoDatabaseDataSet(string kustoDatabaseResourceId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string), string location = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; KustoDatabaseResourceId = kustoDatabaseResourceId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoDatabaseDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoDatabaseDataSetMapping.cs index ce2372f0ec84c..20ab836a35640 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoDatabaseDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/KustoDatabaseDataSetMapping.cs @@ -40,6 +40,7 @@ public KustoDatabaseDataSetMapping() /// cluster. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' @@ -47,8 +48,8 @@ public KustoDatabaseDataSetMapping() /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public KustoDatabaseDataSetMapping(string dataSetId, string kustoClusterResourceId, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string location = default(string), string provisioningState = default(string)) - : base(id, name, type) + public KustoDatabaseDataSetMapping(string dataSetId, string kustoClusterResourceId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string location = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; DataSetMappingStatus = dataSetMappingStatus; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/LastModifiedByType.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/LastModifiedByType.cs new file mode 100644 index 0000000000000..248afba76bac9 --- /dev/null +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/LastModifiedByType.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataShare.Models +{ + + /// + /// Defines values for LastModifiedByType. + /// + public static class LastModifiedByType + { + public const string User = "User"; + public const string Application = "Application"; + public const string ManagedIdentity = "ManagedIdentity"; + public const string Key = "Key"; + } +} diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/OperationMetaMetricSpecification.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/OperationMetaMetricSpecification.cs index 5e9c0c65287cd..5c98ff3275fa9 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/OperationMetaMetricSpecification.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/OperationMetaMetricSpecification.cs @@ -39,6 +39,7 @@ public OperationMetaMetricSpecification() /// localized name of the metric /// enable regional mdm /// account + /// fill gap with zero /// internal metric name /// name of the metric /// dimension name use to @@ -48,13 +49,14 @@ public OperationMetaMetricSpecification() /// supported time grain /// types /// units for the metric - public OperationMetaMetricSpecification(string aggregationType = default(string), IList dimensions = default(IList), string displayDescription = default(string), string displayName = default(string), string enableRegionalMdmAccount = default(string), string internalMetricName = default(string), string name = default(string), string resourceIdDimensionNameOverride = default(string), IList supportedAggregationTypes = default(IList), IList supportedTimeGrainTypes = default(IList), string unit = default(string)) + public OperationMetaMetricSpecification(string aggregationType = default(string), IList dimensions = default(IList), string displayDescription = default(string), string displayName = default(string), string enableRegionalMdmAccount = default(string), bool? fillGapWithZero = default(bool?), string internalMetricName = default(string), string name = default(string), string resourceIdDimensionNameOverride = default(string), IList supportedAggregationTypes = default(IList), IList supportedTimeGrainTypes = default(IList), string unit = default(string)) { AggregationType = aggregationType; Dimensions = dimensions; DisplayDescription = displayDescription; DisplayName = displayName; EnableRegionalMdmAccount = enableRegionalMdmAccount; + FillGapWithZero = fillGapWithZero; InternalMetricName = internalMetricName; Name = name; ResourceIdDimensionNameOverride = resourceIdDimensionNameOverride; @@ -99,6 +101,12 @@ public OperationMetaMetricSpecification() [JsonProperty(PropertyName = "enableRegionalMdmAccount")] public string EnableRegionalMdmAccount { get; set; } + /// + /// Gets or sets fill gap with zero + /// + [JsonProperty(PropertyName = "fillGapWithZero")] + public bool? FillGapWithZero { get; set; } + /// /// Gets or sets internal metric name /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ProviderShareSubscription.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ProviderShareSubscription.cs index 3e61b7dba5197..335754a8cb018 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ProviderShareSubscription.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ProviderShareSubscription.cs @@ -34,6 +34,7 @@ public ProviderShareSubscription() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Email of the consumer who created the /// share subscription @@ -42,6 +43,8 @@ public ProviderShareSubscription() /// Tenant name of the consumer who /// created the share subscription /// created at + /// Expiration date of the share + /// subscription in UTC format /// Email of the provider who created the /// share /// Name of the provider who created the @@ -52,13 +55,14 @@ public ProviderShareSubscription() /// Gets the status of share /// subscription. Possible values include: 'Active', 'Revoked', /// 'SourceDeleted', 'Revoking' - public ProviderShareSubscription(string id = default(string), string name = default(string), string type = default(string), string consumerEmail = default(string), string consumerName = default(string), string consumerTenantName = default(string), System.DateTime? createdAt = default(System.DateTime?), string providerEmail = default(string), string providerName = default(string), System.DateTime? sharedAt = default(System.DateTime?), string shareSubscriptionObjectId = default(string), string shareSubscriptionStatus = default(string)) - : base(id, name, type) + public ProviderShareSubscription(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string consumerEmail = default(string), string consumerName = default(string), string consumerTenantName = default(string), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? expirationDate = default(System.DateTime?), string providerEmail = default(string), string providerName = default(string), System.DateTime? sharedAt = default(System.DateTime?), string shareSubscriptionObjectId = default(string), string shareSubscriptionStatus = default(string)) + : base(id, name, systemData, type) { ConsumerEmail = consumerEmail; ConsumerName = consumerName; ConsumerTenantName = consumerTenantName; CreatedAt = createdAt; + ExpirationDate = expirationDate; ProviderEmail = providerEmail; ProviderName = providerName; SharedAt = sharedAt; @@ -96,6 +100,13 @@ public ProviderShareSubscription() [JsonProperty(PropertyName = "properties.createdAt")] public System.DateTime? CreatedAt { get; private set; } + /// + /// Gets or sets expiration date of the share subscription in UTC + /// format + /// + [JsonProperty(PropertyName = "properties.expirationDate")] + public System.DateTime? ExpirationDate { get; set; } + /// /// Gets email of the provider who created the share /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ProxyDto.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ProxyDto.cs index 1aa82fc213067..3f8c669d61c7f 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ProxyDto.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ProxyDto.cs @@ -33,11 +33,13 @@ public ProxyDto() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource - public ProxyDto(string id = default(string), string name = default(string), string type = default(string)) + public ProxyDto(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string)) { Id = id; Name = name; + SystemData = systemData; Type = type; CustomInit(); } @@ -59,6 +61,12 @@ public ProxyDto() [JsonProperty(PropertyName = "name")] public string Name { get; private set; } + /// + /// Gets system Data of the Azure resource. + /// + [JsonProperty(PropertyName = "systemData")] + public SystemData SystemData { get; private set; } + /// /// Gets type of the azure resource /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ScheduledSynchronizationSetting.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ScheduledSynchronizationSetting.cs index 55e9688ae6ded..cc1b0391826c4 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ScheduledSynchronizationSetting.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ScheduledSynchronizationSetting.cs @@ -40,6 +40,7 @@ public ScheduledSynchronizationSetting() /// Synchronization time /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Time at which the synchronization setting /// was created. @@ -48,8 +49,8 @@ public ScheduledSynchronizationSetting() /// 'Deleting', 'Moving', 'Failed' /// Name of the user who created the /// synchronization setting. - public ScheduledSynchronizationSetting(string recurrenceInterval, System.DateTime synchronizationTime, string id = default(string), string name = default(string), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), string provisioningState = default(string), string userName = default(string)) - : base(id, name, type) + public ScheduledSynchronizationSetting(string recurrenceInterval, System.DateTime synchronizationTime, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), string provisioningState = default(string), string userName = default(string)) + : base(id, name, systemData, type) { CreatedAt = createdAt; ProvisioningState = provisioningState; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ScheduledTrigger.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ScheduledTrigger.cs index e94010bb02b6d..64728cb5f499f 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ScheduledTrigger.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ScheduledTrigger.cs @@ -38,6 +38,7 @@ public ScheduledTrigger() /// Synchronization time /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Time at which the trigger was /// created. @@ -51,8 +52,8 @@ public ScheduledTrigger() /// 'SourceSynchronizationSettingDeleted' /// Name of the user who created the /// trigger. - public ScheduledTrigger(string recurrenceInterval, System.DateTime synchronizationTime, string id = default(string), string name = default(string), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), string provisioningState = default(string), string synchronizationMode = default(string), string triggerStatus = default(string), string userName = default(string)) - : base(id, name, type) + public ScheduledTrigger(string recurrenceInterval, System.DateTime synchronizationTime, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), string provisioningState = default(string), string synchronizationMode = default(string), string triggerStatus = default(string), string userName = default(string)) + : base(id, name, systemData, type) { CreatedAt = createdAt; ProvisioningState = provisioningState; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Share.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Share.cs index d185c361bb052..ae89fff268819 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Share.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/Share.cs @@ -34,6 +34,7 @@ public Share() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Time at which the share was /// created. @@ -48,8 +49,8 @@ public Share() /// resource /// Name of the user who created the /// resource - public Share(string id = default(string), string name = default(string), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), string description = default(string), string provisioningState = default(string), string shareKind = default(string), string terms = default(string), string userEmail = default(string), string userName = default(string)) - : base(id, name, type) + public Share(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), string description = default(string), string provisioningState = default(string), string shareKind = default(string), string terms = default(string), string userEmail = default(string), string userName = default(string)) + : base(id, name, systemData, type) { CreatedAt = createdAt; Description = description; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ShareSubscription.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ShareSubscription.cs index 2a64feb450037..b764436addaa9 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ShareSubscription.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/ShareSubscription.cs @@ -36,9 +36,12 @@ public ShareSubscription() /// Source share location. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Time at which the share subscription was /// created. + /// The expiration date of the share + /// subscription. /// Email of the provider who created the /// resource /// Name of the provider who created the @@ -60,10 +63,11 @@ public ShareSubscription() /// resource /// Name of the user who created the /// resource - public ShareSubscription(string invitationId, string sourceShareLocation, string id = default(string), string name = default(string), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), string providerEmail = default(string), string providerName = default(string), string providerTenantName = default(string), string provisioningState = default(string), string shareDescription = default(string), string shareKind = default(string), string shareName = default(string), string shareSubscriptionStatus = default(string), string shareTerms = default(string), string userEmail = default(string), string userName = default(string)) - : base(id, name, type) + public ShareSubscription(string invitationId, string sourceShareLocation, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? expirationDate = default(System.DateTime?), string providerEmail = default(string), string providerName = default(string), string providerTenantName = default(string), string provisioningState = default(string), string shareDescription = default(string), string shareKind = default(string), string shareName = default(string), string shareSubscriptionStatus = default(string), string shareTerms = default(string), string userEmail = default(string), string userName = default(string)) + : base(id, name, systemData, type) { CreatedAt = createdAt; + ExpirationDate = expirationDate; InvitationId = invitationId; ProviderEmail = providerEmail; ProviderName = providerName; @@ -91,6 +95,12 @@ public ShareSubscription() [JsonProperty(PropertyName = "properties.createdAt")] public System.DateTime? CreatedAt { get; private set; } + /// + /// Gets or sets the expiration date of the share subscription. + /// + [JsonProperty(PropertyName = "properties.expirationDate")] + public System.DateTime? ExpirationDate { get; set; } + /// /// Gets or sets the invitation id. /// 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 c34d9f9393f74..f15fbd2b7318a 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/SqlDBTableDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDBTableDataSet.cs index 0d63e5a3c9512..04a4afa376022 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDBTableDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDBTableDataSet.cs @@ -41,11 +41,12 @@ public SqlDBTableDataSet() /// SQL DB table name. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public SqlDBTableDataSet(string databaseName, string schemaName, string sqlServerResourceId, string tableName, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public SqlDBTableDataSet(string databaseName, string schemaName, string sqlServerResourceId, string tableName, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { DatabaseName = databaseName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDBTableDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDBTableDataSetMapping.cs index 8612eddcc66b1..fcc5cccc94e20 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDBTableDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDBTableDataSetMapping.cs @@ -42,14 +42,15 @@ public SqlDBTableDataSetMapping() /// SQL DB table name. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public SqlDBTableDataSetMapping(string databaseName, string dataSetId, string schemaName, string sqlServerResourceId, string tableName, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) - : base(id, name, type) + public SqlDBTableDataSetMapping(string databaseName, string dataSetId, string schemaName, string sqlServerResourceId, string tableName, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DatabaseName = databaseName; DataSetId = dataSetId; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDWTableDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDWTableDataSet.cs index fed87f3c487d4..de9ccdf69916f 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDWTableDataSet.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDWTableDataSet.cs @@ -41,11 +41,12 @@ public SqlDWTableDataSet() /// SQL DW table name. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Unique id for identifying a data set /// resource - public SqlDWTableDataSet(string dataWarehouseName, string schemaName, string sqlServerResourceId, string tableName, string id = default(string), string name = default(string), string type = default(string), string dataSetId = default(string)) - : base(id, name, type) + public SqlDWTableDataSet(string dataWarehouseName, string schemaName, string sqlServerResourceId, string tableName, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; DataWarehouseName = dataWarehouseName; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDWTableDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDWTableDataSetMapping.cs index 530ff23af048b..25ee0df297e16 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDWTableDataSetMapping.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SqlDWTableDataSetMapping.cs @@ -42,14 +42,15 @@ public SqlDWTableDataSetMapping() /// SQL DW table name. /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource /// Gets the status of the data set /// mapping. Possible values include: 'Ok', 'Broken' /// Provisioning state of the data set /// mapping. Possible values include: 'Succeeded', 'Creating', /// 'Deleting', 'Moving', 'Failed' - public SqlDWTableDataSetMapping(string dataSetId, string dataWarehouseName, string schemaName, string sqlServerResourceId, string tableName, string id = default(string), string name = default(string), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) - : base(id, name, type) + public SqlDWTableDataSetMapping(string dataSetId, string dataWarehouseName, string schemaName, string sqlServerResourceId, string tableName, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) { DataSetId = dataSetId; DataSetMappingStatus = dataSetMappingStatus; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynapseWorkspaceSqlPoolTableDataSet.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynapseWorkspaceSqlPoolTableDataSet.cs new file mode 100644 index 0000000000000..241319454e03f --- /dev/null +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynapseWorkspaceSqlPoolTableDataSet.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataShare.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A Synapse Workspace Sql Pool Table data set. + /// + [Newtonsoft.Json.JsonObject("SynapseWorkspaceSqlPoolTable")] + [Rest.Serialization.JsonTransformation] + public partial class SynapseWorkspaceSqlPoolTableDataSet : DataSet + { + /// + /// Initializes a new instance of the + /// SynapseWorkspaceSqlPoolTableDataSet class. + /// + public SynapseWorkspaceSqlPoolTableDataSet() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// SynapseWorkspaceSqlPoolTableDataSet class. + /// + /// Resource id of + /// the Synapse Workspace SQL Pool Table + /// The resource id of the azure resource + /// Name of the azure resource + /// System Data of the Azure resource. + /// Type of the azure resource + /// Unique id for identifying a data set + /// resource + public SynapseWorkspaceSqlPoolTableDataSet(string synapseWorkspaceSqlPoolTableResourceId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetId = default(string)) + : base(id, name, systemData, type) + { + DataSetId = dataSetId; + SynapseWorkspaceSqlPoolTableResourceId = synapseWorkspaceSqlPoolTableResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets unique id for identifying a data set resource + /// + [JsonProperty(PropertyName = "properties.dataSetId")] + public string DataSetId { get; private set; } + + /// + /// Gets or sets resource id of the Synapse Workspace SQL Pool Table + /// + [JsonProperty(PropertyName = "properties.synapseWorkspaceSqlPoolTableResourceId")] + public string SynapseWorkspaceSqlPoolTableResourceId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (SynapseWorkspaceSqlPoolTableResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SynapseWorkspaceSqlPoolTableResourceId"); + } + } + } +} diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynapseWorkspaceSqlPoolTableDataSetMapping.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynapseWorkspaceSqlPoolTableDataSetMapping.cs new file mode 100644 index 0000000000000..f652a1903431d --- /dev/null +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynapseWorkspaceSqlPoolTableDataSetMapping.cs @@ -0,0 +1,109 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataShare.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// A Synapse Workspace Sql Pool Table data set mapping + /// + [Newtonsoft.Json.JsonObject("SynapseWorkspaceSqlPoolTable")] + [Rest.Serialization.JsonTransformation] + public partial class SynapseWorkspaceSqlPoolTableDataSetMapping : DataSetMapping + { + /// + /// Initializes a new instance of the + /// SynapseWorkspaceSqlPoolTableDataSetMapping class. + /// + public SynapseWorkspaceSqlPoolTableDataSetMapping() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// SynapseWorkspaceSqlPoolTableDataSetMapping class. + /// + /// The id of the source data set. + /// Resource id of + /// the Synapse Workspace SQL Pool Table + /// The resource id of the azure resource + /// Name of the azure resource + /// System Data of the Azure resource. + /// Type of the azure resource + /// Gets the status of the data set + /// mapping. Possible values include: 'Ok', 'Broken' + /// Provisioning state of the data set + /// mapping. Possible values include: 'Succeeded', 'Creating', + /// 'Deleting', 'Moving', 'Failed' + public SynapseWorkspaceSqlPoolTableDataSetMapping(string dataSetId, string synapseWorkspaceSqlPoolTableResourceId, string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string), string dataSetMappingStatus = default(string), string provisioningState = default(string)) + : base(id, name, systemData, type) + { + DataSetId = dataSetId; + DataSetMappingStatus = dataSetMappingStatus; + ProvisioningState = provisioningState; + SynapseWorkspaceSqlPoolTableResourceId = synapseWorkspaceSqlPoolTableResourceId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the id of the source data set. + /// + [JsonProperty(PropertyName = "properties.dataSetId")] + public string DataSetId { get; set; } + + /// + /// Gets the status of the data set mapping. Possible values include: + /// 'Ok', 'Broken' + /// + [JsonProperty(PropertyName = "properties.dataSetMappingStatus")] + public string DataSetMappingStatus { get; private set; } + + /// + /// Gets provisioning state of the data set mapping. Possible values + /// include: 'Succeeded', 'Creating', 'Deleting', 'Moving', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets or sets resource id of the Synapse Workspace SQL Pool Table + /// + [JsonProperty(PropertyName = "properties.synapseWorkspaceSqlPoolTableResourceId")] + public string SynapseWorkspaceSqlPoolTableResourceId { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (DataSetId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "DataSetId"); + } + if (SynapseWorkspaceSqlPoolTableResourceId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "SynapseWorkspaceSqlPoolTableResourceId"); + } + } + } +} diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynchronizationDetails.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynchronizationDetails.cs index 2b7d20caf643c..37d2265d4c2ae 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynchronizationDetails.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SynchronizationDetails.cs @@ -33,7 +33,8 @@ public SynchronizationDetails() /// Type of the data set. Possible values /// include: 'Blob', 'Container', 'BlobFolder', 'AdlsGen2FileSystem', /// 'AdlsGen2Folder', 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', - /// 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable' + /// 'KustoCluster', 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + /// 'SynapseWorkspaceSqlPoolTable' /// Duration of data set level copy /// End time of data set level copy /// The number of files read from the source @@ -89,7 +90,8 @@ public SynchronizationDetails() /// Gets type of the data set. Possible values include: 'Blob', /// 'Container', 'BlobFolder', 'AdlsGen2FileSystem', 'AdlsGen2Folder', /// 'AdlsGen2File', 'AdlsGen1Folder', 'AdlsGen1File', 'KustoCluster', - /// 'KustoDatabase', 'SqlDBTable', 'SqlDWTable' + /// 'KustoDatabase', 'SqlDBTable', 'SqlDWTable', + /// 'SynapseWorkspaceSqlPoolTable' /// [JsonProperty(PropertyName = "dataSetType")] public string DataSetType { get; private set; } 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 559f90889fc75..570faf168cc87 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 { /// @@ -32,9 +30,10 @@ public SynchronizationSetting() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource - public SynchronizationSetting(string id = default(string), string name = default(string), string type = default(string)) - : base(id, name, type) + public SynchronizationSetting(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string)) + : base(id, name, systemData, type) { CustomInit(); } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SystemData.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SystemData.cs new file mode 100644 index 0000000000000..e0227762c23f4 --- /dev/null +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/Models/SystemData.cs @@ -0,0 +1,103 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.DataShare.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Metadata pertaining to creation and last modification of the resource. + /// + public partial class SystemData + { + /// + /// Initializes a new instance of the SystemData class. + /// + public SystemData() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SystemData class. + /// + /// The timestamp of resource creation + /// (UTC). + /// The identity that created the + /// resource. + /// The type of identity that created the + /// resource. Possible values include: 'User', 'Application', + /// 'ManagedIdentity', 'Key' + /// The type of identity that last + /// modified the resource. + /// The identity that last modified the + /// resource. + /// The type of identity that last + /// modified the resource. Possible values include: 'User', + /// 'Application', 'ManagedIdentity', 'Key' + public SystemData(System.DateTime? createdAt = default(System.DateTime?), string createdBy = default(string), string createdByType = default(string), System.DateTime? lastModifiedAt = default(System.DateTime?), string lastModifiedBy = default(string), string lastModifiedByType = default(string)) + { + CreatedAt = createdAt; + CreatedBy = createdBy; + CreatedByType = createdByType; + LastModifiedAt = lastModifiedAt; + LastModifiedBy = lastModifiedBy; + LastModifiedByType = lastModifiedByType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the timestamp of resource creation (UTC). + /// + [JsonProperty(PropertyName = "createdAt")] + public System.DateTime? CreatedAt { get; set; } + + /// + /// Gets or sets the identity that created the resource. + /// + [JsonProperty(PropertyName = "createdBy")] + public string CreatedBy { get; set; } + + /// + /// Gets or sets the type of identity that created the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "createdByType")] + public string CreatedByType { get; set; } + + /// + /// Gets or sets the type of identity that last modified the resource. + /// + [JsonProperty(PropertyName = "lastModifiedAt")] + public System.DateTime? LastModifiedAt { get; set; } + + /// + /// Gets or sets the identity that last modified the resource. + /// + [JsonProperty(PropertyName = "lastModifiedBy")] + public string LastModifiedBy { get; set; } + + /// + /// Gets or sets the type of identity that last modified the resource. + /// Possible values include: 'User', 'Application', 'ManagedIdentity', + /// 'Key' + /// + [JsonProperty(PropertyName = "lastModifiedByType")] + public string LastModifiedByType { get; set; } + + } +} 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 6ef6d0f0d61d6..8089484b64f60 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 { /// @@ -32,9 +30,10 @@ public Trigger() /// /// The resource id of the azure resource /// Name of the azure resource + /// System Data of the Azure resource. /// Type of the azure resource - public Trigger(string id = default(string), string name = default(string), string type = default(string)) - : base(id, name, type) + public Trigger(string id = default(string), string name = default(string), SystemData systemData = default(SystemData), string type = default(string)) + : base(id, name, systemData, type) { CustomInit(); } 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 a1884a6b8708c..51374b369f8f4 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. + /// Adjust the expiration date of a share subscription in a provider share. /// /// - /// Get share subscription in a provider share + /// Adjust a share subscription's expiration date in a provider share /// /// /// The resource group name. @@ -68,6 +68,9 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) /// /// To locate shareSubscription /// + /// + /// The provider share subscription + /// /// /// Headers that will be added to request. /// @@ -89,7 +92,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> AdjustWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscription providerShareSubscription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -115,6 +118,10 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (providerShareSubscription == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "providerShareSubscription"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -126,12 +133,13 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareName", shareName); tracingParameters.Add("providerShareSubscriptionId", providerShareSubscriptionId); + tracingParameters.Add("providerShareSubscription", providerShareSubscription); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetByShare", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Adjust", 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}/adjust").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 +157,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) @@ -180,6 +188,12 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; + if(providerShareSubscription != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(providerShareSubscription, 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) { @@ -263,10 +277,10 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// List of available share subscriptions to a provider share. + /// Reinstate share subscription in a provider share. /// /// - /// List share subscriptions in a provider share + /// Reinstate share subscription in a provider share /// /// /// The resource group name. @@ -277,8 +291,11 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) /// /// The name of the share. /// - /// - /// Continuation Token + /// + /// To locate shareSubscription + /// + /// + /// The provider share subscription /// /// /// Headers that will be added to request. @@ -301,7 +318,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> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ReinstateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscription providerShareSubscription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -319,10 +336,18 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "shareName"); } + if (providerShareSubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "providerShareSubscriptionId"); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } + if (providerShareSubscription == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "providerShareSubscription"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -333,26 +358,24 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareName", shareName); - tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("providerShareSubscriptionId", providerShareSubscriptionId); + tracingParameters.Add("providerShareSubscription", providerShareSubscription); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByShare", 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").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)); _url = _url.Replace("{shareName}", System.Uri.EscapeDataString(shareName)); + _url = _url.Replace("{providerShareSubscriptionId}", System.Uri.EscapeDataString(providerShareSubscriptionId)); 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); @@ -360,7 +383,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) @@ -391,6 +414,12 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; + if(providerShareSubscription != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(providerShareSubscription, 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) { @@ -441,7 +470,7 @@ internal ProviderShareSubscriptionsOperations(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")) @@ -454,7 +483,7 @@ internal ProviderShareSubscriptionsOperations(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) { @@ -505,10 +534,10 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// Reinstate share subscription in a provider share. + /// Get share subscription in a provider share. /// /// - /// Reinstate share subscription in a provider share + /// Get share subscription in a provider share /// /// /// The resource group name. @@ -543,7 +572,7 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ReinstateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetByShareWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -581,11 +610,11 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("shareName", shareName); tracingParameters.Add("providerShareSubscriptionId", providerShareSubscriptionId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Reinstate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetByShare", 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}/reinstate").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}").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)); @@ -603,7 +632,7 @@ internal ProviderShareSubscriptionsOperations(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) @@ -716,6 +745,217 @@ internal ProviderShareSubscriptionsOperations(DataShareManagementClient client) return _result; } + /// + /// List of available share subscriptions to a provider share. + /// + /// + /// List share subscriptions in a provider share + /// + /// + /// The resource group name. + /// + /// + /// The name of the share account. + /// + /// + /// The name of the share. + /// + /// + /// Continuation Token + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// 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)) + { + 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 (shareName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "shareName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("accountName", accountName); + tracingParameters.Add("shareName", shareName); + tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByShare", 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").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)); + _url = _url.Replace("{shareName}", System.Uri.EscapeDataString(shareName)); + 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); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new DataShareErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + DataShareError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new AzureOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + if (_httpResponse.Headers.Contains("x-ms-request-id")) + { + _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); + } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + /// /// Revoke share subscription in a provider share. /// diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ProviderShareSubscriptionsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ProviderShareSubscriptionsOperationsExtensions.cs index ddf703350b119..ddce07c7879af 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ProviderShareSubscriptionsOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ProviderShareSubscriptionsOperationsExtensions.cs @@ -22,10 +22,10 @@ namespace Microsoft.Azure.Management.DataShare public static partial class ProviderShareSubscriptionsOperationsExtensions { /// - /// Get share subscription in a provider share. + /// Adjust the expiration date of a share subscription in a provider share. /// /// - /// Get share subscription in a provider share + /// Adjust a share subscription's expiration date in a provider share /// /// /// The operations group for this extension method. @@ -42,16 +42,19 @@ public static partial class ProviderShareSubscriptionsOperationsExtensions /// /// To locate shareSubscription /// - public static ProviderShareSubscription GetByShare(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId) + /// + /// The provider share subscription + /// + public static ProviderShareSubscription Adjust(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscription providerShareSubscription) { - return operations.GetByShareAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId).GetAwaiter().GetResult(); + return operations.AdjustAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId, providerShareSubscription).GetAwaiter().GetResult(); } /// - /// Get share subscription in a provider share. + /// Adjust the expiration date of a share subscription in a provider share. /// /// - /// Get share subscription in a provider share + /// Adjust a share subscription's expiration date in a provider share /// /// /// The operations group for this extension method. @@ -68,22 +71,25 @@ public static ProviderShareSubscription GetByShare(this IProviderShareSubscripti /// /// To locate shareSubscription /// + /// + /// The provider share subscription + /// /// /// The cancellation token. /// - public static async Task GetByShareAsync(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AdjustAsync(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscription providerShareSubscription, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AdjustWithHttpMessagesAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId, providerShareSubscription, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// List of available share subscriptions to a provider share. + /// Reinstate share subscription in a provider share. /// /// - /// List share subscriptions in a provider share + /// Reinstate share subscription in a provider share /// /// /// The operations group for this extension method. @@ -97,19 +103,22 @@ public static ProviderShareSubscription GetByShare(this IProviderShareSubscripti /// /// The name of the share. /// - /// - /// Continuation Token + /// + /// To locate shareSubscription /// - public static IPage ListByShare(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string)) + /// + /// The provider share subscription + /// + public static ProviderShareSubscription Reinstate(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscription providerShareSubscription) { - return operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken).GetAwaiter().GetResult(); + return operations.ReinstateAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId, providerShareSubscription).GetAwaiter().GetResult(); } /// - /// List of available share subscriptions to a provider share. + /// Reinstate share subscription in a provider share. /// /// - /// List share subscriptions in a provider share + /// Reinstate share subscription in a provider share /// /// /// The operations group for this extension method. @@ -123,15 +132,18 @@ public static ProviderShareSubscription GetByShare(this IProviderShareSubscripti /// /// The name of the share. /// - /// - /// Continuation Token + /// + /// To locate shareSubscription + /// + /// + /// The provider share subscription /// /// /// The cancellation token. /// - public static async Task> ListByShareAsync(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ReinstateAsync(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, ProviderShareSubscription providerShareSubscription, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ReinstateWithHttpMessagesAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId, providerShareSubscription, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -196,10 +208,10 @@ public static ProviderShareSubscription Revoke(this IProviderShareSubscriptionsO } /// - /// Reinstate share subscription in a provider share. + /// Get share subscription in a provider share. /// /// - /// Reinstate share subscription in a provider share + /// Get share subscription in a provider share /// /// /// The operations group for this extension method. @@ -216,16 +228,16 @@ public static ProviderShareSubscription Revoke(this IProviderShareSubscriptionsO /// /// To locate shareSubscription /// - public static ProviderShareSubscription Reinstate(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId) + public static ProviderShareSubscription GetByShare(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId) { - return operations.ReinstateAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId).GetAwaiter().GetResult(); + return operations.GetByShareAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId).GetAwaiter().GetResult(); } /// - /// Reinstate share subscription in a provider share. + /// Get share subscription in a provider share. /// /// - /// Reinstate share subscription in a provider share + /// Get share subscription in a provider share /// /// /// The operations group for this extension method. @@ -245,9 +257,67 @@ public static ProviderShareSubscription Reinstate(this IProviderShareSubscriptio /// /// The cancellation token. /// - public static async Task ReinstateAsync(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetByShareAsync(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string providerShareSubscriptionId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List of available share subscriptions to a provider share. + /// + /// + /// List share subscriptions in a provider share + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The name of the share account. + /// + /// + /// The name of the share. + /// + /// + /// Continuation Token + /// + public static IPage ListByShare(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string)) + { + return operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken).GetAwaiter().GetResult(); + } + + /// + /// List of available share subscriptions to a provider share. + /// + /// + /// List share subscriptions in a provider share + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The name of the share account. + /// + /// + /// The name of the share. + /// + /// + /// Continuation Token + /// + /// + /// The cancellation token. + /// + public static async Task> ListByShareAsync(this IProviderShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ReinstateWithHttpMessagesAsync(resourceGroupName, accountName, shareName, providerShareSubscriptionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SdkInfo_DataShareManagementClient.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SdkInfo_DataShareManagementClient.cs index f7fd47faf8d09..c8f07017129df 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SdkInfo_DataShareManagementClient.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SdkInfo_DataShareManagementClient.cs @@ -19,28 +19,28 @@ public static IEnumerable> ApiInfo_DataShareManage { return new Tuple[] { - new Tuple("DataShare", "Accounts", "2019-11-01"), - new Tuple("DataShare", "ConsumerInvitations", "2019-11-01"), - new Tuple("DataShare", "ConsumerSourceDataSets", "2019-11-01"), - new Tuple("DataShare", "DataSetMappings", "2019-11-01"), - new Tuple("DataShare", "DataSets", "2019-11-01"), - new Tuple("DataShare", "Invitations", "2019-11-01"), - new Tuple("DataShare", "Operations", "2019-11-01"), - new Tuple("DataShare", "ProviderShareSubscriptions", "2019-11-01"), - new Tuple("DataShare", "ShareSubscriptions", "2019-11-01"), - new Tuple("DataShare", "Shares", "2019-11-01"), - new Tuple("DataShare", "SynchronizationSettings", "2019-11-01"), - new Tuple("DataShare", "Triggers", "2019-11-01"), + new Tuple("DataShare", "Accounts", "2020-09-01"), + new Tuple("DataShare", "ConsumerInvitations", "2020-09-01"), + new Tuple("DataShare", "ConsumerSourceDataSets", "2020-09-01"), + new Tuple("DataShare", "DataSetMappings", "2020-09-01"), + new Tuple("DataShare", "DataSets", "2020-09-01"), + new Tuple("DataShare", "Invitations", "2020-09-01"), + new Tuple("DataShare", "Operations", "2020-09-01"), + new Tuple("DataShare", "ProviderShareSubscriptions", "2020-09-01"), + new Tuple("DataShare", "ShareSubscriptions", "2020-09-01"), + new Tuple("DataShare", "Shares", "2020-09-01"), + new Tuple("DataShare", "SynchronizationSettings", "2020-09-01"), + new Tuple("DataShare", "Triggers", "2020-09-01"), }.AsEnumerable(); } } // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "2.0.4413"; + public static readonly String AutoRestVersion = "v2"; public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datashare/resource-manager/readme.md --csharp --version=2.0.4413 --reflect-api-versions --tag=package-2019-11-01 --csharp-sdks-folder=F:\\azure-sdk-for-net\\sdk"; + public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datashare/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\ahermas\\source\\repos\\azure-sdk-for-net\\sdk"; public static readonly String GithubForkName = "Azure"; public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "9505236faa86b99b6dc58b5655d8e1c4a758d89c"; + public static readonly String GithubCommidId = "3f3a82ed7731b6a212c0a62c7798259d44c99181"; public static readonly String CodeGenerationErrors = ""; public static readonly String GithubRepoName = "azure-rest-api-specs"; // END: Code Generation Metadata Section diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperations.cs index 9123fff700992..a71716897dadf 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperations.cs @@ -51,10 +51,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) public DataShareManagementClient Client { get; private set; } /// - /// 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. @@ -65,6 +65,40 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// The name of the shareSubscription. /// + /// + /// Share Subscription Synchronization payload. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CancelSynchronizationWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginCancelSynchronizationWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get source share synchronization settings for a shareSubscription. + /// + /// + /// Get synchronization settings set on a share + /// + /// + /// The resource group name. + /// + /// + /// The name of the share account. + /// + /// + /// The name of the shareSubscription. + /// + /// + /// Continuation token + /// /// /// Headers that will be added to request. /// @@ -86,7 +120,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSourceShareSynchronizationSettingsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -118,12 +152,13 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); + tracingParameters.Add("skipToken", skipToken); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListSourceShareSynchronizationSettings", 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}/shareSubscriptions/{shareSubscriptionName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSourceShareSynchronizationSettings").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)); @@ -133,6 +168,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _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); @@ -140,7 +179,7 @@ internal ShareSubscriptionsOperations(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) @@ -221,7 +260,7 @@ internal ShareSubscriptionsOperations(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")) @@ -234,7 +273,7 @@ internal ShareSubscriptionsOperations(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) { @@ -254,10 +293,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// Create shareSubscription in an account. + /// List data set level details for a share subscription synchronization /// /// - /// Create a shareSubscription in an account + /// List synchronization details /// /// /// The resource group name. @@ -266,10 +305,19 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// The name of the share account. /// /// - /// The name of the shareSubscription. + /// The name of the share subscription. /// - /// - /// create parameters for shareSubscription + /// + /// Share Subscription Synchronization payload. + /// + /// + /// Continuation token + /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. /// /// /// Headers that will be added to request. @@ -292,7 +340,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscription shareSubscription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -310,13 +358,13 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionName"); } - if (shareSubscription == null) + if (shareSubscriptionSynchronization == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscription"); + throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionSynchronization"); } - if (shareSubscription != null) + if (shareSubscriptionSynchronization != null) { - shareSubscription.Validate(); + shareSubscriptionSynchronization.Validate(); } if (Client.ApiVersion == null) { @@ -332,13 +380,16 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); - tracingParameters.Add("shareSubscription", shareSubscription); + tracingParameters.Add("shareSubscriptionSynchronization", shareSubscriptionSynchronization); + tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetails", 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}/shareSubscriptions/{shareSubscriptionName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizationDetails").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)); @@ -348,6 +399,18 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _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 (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); @@ -355,7 +418,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -386,9 +449,9 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; - if(shareSubscription != null) + if(shareSubscriptionSynchronization != null) { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(shareSubscription, Client.SerializationSettings); + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(shareSubscriptionSynchronization, 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"); } @@ -412,7 +475,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201) + if ((int)_statusCode != 200) { var ex = new DataShareErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -442,7 +505,7 @@ internal ShareSubscriptionsOperations(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")) @@ -455,25 +518,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _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) { @@ -493,10 +538,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// Delete shareSubscription in an account. + /// List Synchronizations in a share subscription. /// /// - /// Delete a shareSubscription in an account + /// List synchronizations of a share subscription /// /// /// The resource group name. @@ -505,35 +550,16 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// The name of the share account. /// /// - /// The name of the shareSubscription. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. + /// The name of the share subscription. /// - public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// List of available share subscriptions under an account. - /// - /// - /// List share subscriptions in an account - /// - /// - /// The resource group name. + /// + /// Continuation token /// - /// - /// The name of the share account. + /// + /// Filters the results using OData syntax. /// - /// - /// Continuation Token + /// + /// Sorts the results using OData syntax. /// /// /// Headers that will be added to request. @@ -556,7 +582,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -570,6 +596,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } + if (shareSubscriptionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionName"); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -583,16 +613,20 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); 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, "ListByAccount", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizations", 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}/shareSubscriptions").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/listSynchronizations").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)); + _url = _url.Replace("{shareSubscriptionName}", System.Uri.EscapeDataString(shareSubscriptionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -602,6 +636,14 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -609,7 +651,7 @@ internal ShareSubscriptionsOperations(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) @@ -690,7 +732,7 @@ internal ShareSubscriptionsOperations(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")) @@ -703,7 +745,7 @@ internal ShareSubscriptionsOperations(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) { @@ -723,10 +765,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// 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. @@ -735,10 +777,38 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// 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. + /// + /// + /// The cancellation token. + /// + public async Task> SynchronizeMethodWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginSynchronizeMethodWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, synchronize, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get shareSubscription in an account. + /// + /// + /// Get a shareSubscription in an account + /// + /// + /// The resource group name. + /// + /// + /// The name of the share account. + /// + /// + /// The name of the shareSubscription. /// /// /// Headers that will be added to request. @@ -761,7 +831,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSourceShareSynchronizationSettingsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -793,13 +863,12 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); - tracingParameters.Add("skipToken", skipToken); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSourceShareSynchronizationSettings", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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}/shareSubscriptions/{shareSubscriptionName}/listSourceShareSynchronizationSettings").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}").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)); @@ -809,10 +878,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _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); @@ -820,7 +885,7 @@ internal ShareSubscriptionsOperations(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) @@ -901,7 +966,7 @@ internal ShareSubscriptionsOperations(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")) @@ -914,7 +979,7 @@ internal ShareSubscriptionsOperations(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) { @@ -934,10 +999,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// List Synchronizations in a share subscription. + /// Create shareSubscription in an account. /// /// - /// List synchronizations of a share subscription + /// Create a shareSubscription in an account /// /// /// The resource group name. @@ -946,10 +1011,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// The name of the share account. /// /// - /// The name of the share subscription. + /// The name of the shareSubscription. /// - /// - /// Continuation token + /// + /// create parameters for shareSubscription /// /// /// Headers that will be added to request. @@ -972,7 +1037,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscription shareSubscription, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -990,6 +1055,14 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionName"); } + if (shareSubscription == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscription"); + } + if (shareSubscription != null) + { + shareSubscription.Validate(); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -1004,13 +1077,13 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); - tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("shareSubscription", shareSubscription); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizations", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Create", 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}/shareSubscriptions/{shareSubscriptionName}/listSynchronizations").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}").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)); @@ -1020,10 +1093,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _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); @@ -1031,7 +1100,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1062,6 +1131,12 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; + if(shareSubscription != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(shareSubscription, 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) { @@ -1082,7 +1157,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new DataShareErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1112,7 +1187,7 @@ internal ShareSubscriptionsOperations(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")) @@ -1125,7 +1200,25 @@ internal ShareSubscriptionsOperations(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) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1145,10 +1238,38 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// List data set level details for a share subscription synchronization + /// Delete shareSubscription in an account. + /// + /// + /// Delete a shareSubscription in an account + /// + /// + /// The resource group name. + /// + /// + /// The name of the share account. + /// + /// + /// The name of the shareSubscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List of available share subscriptions under an account. /// /// - /// List synchronization details + /// List share subscriptions in an account /// /// /// The resource group name. @@ -1156,14 +1277,14 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// The name of the share account. /// - /// - /// The name of the share subscription. + /// + /// Continuation Token /// - /// - /// Share Subscription Synchronization payload. + /// + /// Filters the results using OData syntax. /// - /// - /// Continuation token + /// + /// Sorts the results using OData syntax. /// /// /// Headers that will be added to request. @@ -1186,7 +1307,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1200,18 +1321,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } - if (shareSubscriptionName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionName"); - } - if (shareSubscriptionSynchronization == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionSynchronization"); - } - if (shareSubscriptionSynchronization != null) - { - shareSubscriptionSynchronization.Validate(); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -1225,19 +1334,18 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); - tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); - tracingParameters.Add("shareSubscriptionSynchronization", shareSubscriptionSynchronization); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetails", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByAccount", 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}/shareSubscriptions/{shareSubscriptionName}/listSynchronizationDetails").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions").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)); - _url = _url.Replace("{shareSubscriptionName}", System.Uri.EscapeDataString(shareSubscriptionName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1247,6 +1355,14 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -1254,7 +1370,7 @@ internal ShareSubscriptionsOperations(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) @@ -1285,12 +1401,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; - if(shareSubscriptionSynchronization != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(shareSubscriptionSynchronization, 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) { @@ -1341,7 +1451,7 @@ internal ShareSubscriptionsOperations(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")) @@ -1354,7 +1464,7 @@ internal ShareSubscriptionsOperations(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) { @@ -1373,37 +1483,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) return _result; } - /// - /// Initiate an asynchronous data share job - /// - /// - /// Initiate a copy - /// - /// - /// The resource group name. - /// - /// - /// The name of the share account. - /// - /// - /// The name of share subscription - /// - /// - /// Synchronize payload - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> SynchronizeMethodWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginSynchronizeMethodWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, synchronize, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - /// /// Request cancellation of a data share snapshot /// @@ -1423,34 +1502,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// Share Subscription Synchronization payload. /// /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> CancelSynchronizationWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginCancelSynchronizationWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// Delete shareSubscription in an account. - /// - /// - /// Delete a shareSubscription in an account - /// - /// - /// The resource group name. - /// - /// - /// The name of the share account. - /// - /// - /// The name of the shareSubscription. - /// - /// /// Headers that will be added to request. /// /// @@ -1471,7 +1522,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCancelSynchronizationWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1489,6 +1540,14 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionName"); } + if (shareSubscriptionSynchronization == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionSynchronization"); + } + if (shareSubscriptionSynchronization != null) + { + shareSubscriptionSynchronization.Validate(); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -1503,12 +1562,13 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); + tracingParameters.Add("shareSubscriptionSynchronization", shareSubscriptionSynchronization); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCancelSynchronization", 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}/shareSubscriptions/{shareSubscriptionName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization").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)); @@ -1525,7 +1585,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1556,6 +1616,12 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; + if(shareSubscriptionSynchronization != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(shareSubscriptionSynchronization, 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) { @@ -1576,7 +1642,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new DataShareErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1606,7 +1672,7 @@ internal ShareSubscriptionsOperations(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")) @@ -1619,7 +1685,25 @@ internal ShareSubscriptionsOperations(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) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 202) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1719,7 +1803,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } // 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}/shareSubscriptions/{shareSubscriptionName}/Synchronize").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}/synchronize").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)); @@ -1874,10 +1958,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// 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. @@ -1888,9 +1972,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// The name of the shareSubscription. /// - /// - /// Share Subscription Synchronization payload. - /// /// /// Headers that will be added to request. /// @@ -1912,7 +1993,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> BeginCancelSynchronizationWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareSubscriptionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -1930,14 +2011,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionName"); } - if (shareSubscriptionSynchronization == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "shareSubscriptionSynchronization"); - } - if (shareSubscriptionSynchronization != null) - { - shareSubscriptionSynchronization.Validate(); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -1952,13 +2025,12 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareSubscriptionName", shareSubscriptionName); - tracingParameters.Add("shareSubscriptionSynchronization", shareSubscriptionSynchronization); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "BeginCancelSynchronization", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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}/shareSubscriptions/{shareSubscriptionName}/cancelSynchronization").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shareSubscriptions/{shareSubscriptionName}").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)); @@ -1975,7 +2047,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2006,12 +2078,6 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; - if(shareSubscriptionSynchronization != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(shareSubscriptionSynchronization, 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) { @@ -2032,7 +2098,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new DataShareErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -2062,7 +2128,7 @@ internal ShareSubscriptionsOperations(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")) @@ -2075,25 +2141,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 202) - { - _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) { @@ -2113,10 +2161,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// 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. @@ -2142,7 +2190,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSourceShareSynchronizationSettingsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -2157,7 +2205,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByAccountNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListSourceShareSynchronizationSettingsNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -2170,7 +2218,7 @@ internal ShareSubscriptionsOperations(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) @@ -2251,7 +2299,7 @@ internal ShareSubscriptionsOperations(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")) @@ -2264,7 +2312,7 @@ internal ShareSubscriptionsOperations(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) { @@ -2284,10 +2332,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// 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. @@ -2313,7 +2361,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSourceShareSynchronizationSettingsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationDetailsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -2328,7 +2376,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSourceShareSynchronizationSettingsNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetailsNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -2422,7 +2470,7 @@ internal ShareSubscriptionsOperations(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")) @@ -2435,7 +2483,7 @@ internal ShareSubscriptionsOperations(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) { @@ -2626,10 +2674,10 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) } /// - /// 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. @@ -2655,7 +2703,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationDetailsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -2670,7 +2718,7 @@ internal ShareSubscriptionsOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetailsNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByAccountNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -2683,7 +2731,7 @@ internal ShareSubscriptionsOperations(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) @@ -2764,7 +2812,7 @@ internal ShareSubscriptionsOperations(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")) @@ -2777,7 +2825,7 @@ internal ShareSubscriptionsOperations(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/ShareSubscriptionsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperationsExtensions.cs index d8a710c32e3e2..946c94ef1f643 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/ShareSubscriptionsOperationsExtensions.cs @@ -22,10 +22,10 @@ namespace Microsoft.Azure.Management.DataShare public static partial class ShareSubscriptionsOperationsExtensions { /// - /// Get shareSubscription in an account. + /// Request cancellation of a data share snapshot /// /// - /// Get a shareSubscription in an account + /// Request to cancel a synchronization. /// /// /// The operations group for this extension method. @@ -39,16 +39,19 @@ public static partial class ShareSubscriptionsOperationsExtensions /// /// The name of the shareSubscription. /// - public static ShareSubscription Get(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName) + /// + /// Share Subscription Synchronization payload. + /// + public static ShareSubscriptionSynchronization CancelSynchronization(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization) { - return operations.GetAsync(resourceGroupName, accountName, shareSubscriptionName).GetAwaiter().GetResult(); + return operations.CancelSynchronizationAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization).GetAwaiter().GetResult(); } /// - /// Get shareSubscription in an account. + /// Request cancellation of a data share snapshot /// /// - /// Get a shareSubscription in an account + /// Request to cancel a synchronization. /// /// /// The operations group for this extension method. @@ -62,22 +65,25 @@ public static ShareSubscription Get(this IShareSubscriptionsOperations operation /// /// The name of the shareSubscription. /// + /// + /// Share Subscription Synchronization payload. + /// /// /// The cancellation token. /// - public static async Task GetAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CancelSynchronizationAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CancelSynchronizationWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -91,19 +97,19 @@ public static ShareSubscription Get(this IShareSubscriptionsOperations operation /// /// The name of the shareSubscription. /// - /// - /// create parameters for shareSubscription + /// + /// Continuation token /// - public static ShareSubscription Create(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscription shareSubscription) + public static IPage ListSourceShareSynchronizationSettings(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string)) { - return operations.CreateAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscription).GetAwaiter().GetResult(); + return operations.ListSourceShareSynchronizationSettingsAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -117,25 +123,25 @@ public static ShareSubscription Create(this IShareSubscriptionsOperations operat /// /// The name of the shareSubscription. /// - /// - /// create parameters for shareSubscription + /// + /// Continuation token /// /// /// The cancellation token. /// - public static async Task CreateAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscription shareSubscription, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSourceShareSynchronizationSettingsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscription, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSourceShareSynchronizationSettingsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -147,18 +153,30 @@ public static ShareSubscription Create(this IShareSubscriptionsOperations operat /// The name of the share account. /// /// - /// The name of the shareSubscription. + /// The name of the share subscription. /// - public static OperationResponse Delete(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName) + /// + /// Share Subscription Synchronization payload. + /// + /// + /// Continuation token + /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListSynchronizationDetails(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.DeleteAsync(resourceGroupName, accountName, shareSubscriptionName).GetAwaiter().GetResult(); + return operations.ListSynchronizationDetailsAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -170,24 +188,36 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// 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 cancellation token. /// - public static async Task DeleteAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationDetailsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationDetailsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -198,19 +228,28 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// /// The name of the share account. /// + /// + /// The name of the share subscription. + /// /// - /// Continuation Token + /// Continuation token /// - public static IPage ListByAccount(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string skipToken = default(string)) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListSynchronizations(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListByAccountAsync(resourceGroupName, accountName, skipToken).GetAwaiter().GetResult(); + return operations.ListSynchronizationsAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -221,25 +260,34 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// /// 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 cancellation token. /// - public static async Task> ListByAccountAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -251,21 +299,21 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// The name of the share account. /// /// - /// The name of the shareSubscription. + /// The name of share subscription /// - /// - /// Continuation token + /// + /// Synchronize payload /// - public static IPage ListSourceShareSynchronizationSettings(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string)) + public static ShareSubscriptionSynchronization SynchronizeMethod(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize) { - return operations.ListSourceShareSynchronizationSettingsAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken).GetAwaiter().GetResult(); + return operations.SynchronizeMethodAsync(resourceGroupName, accountName, shareSubscriptionName, synchronize).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -277,27 +325,27 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// The name of the share account. /// /// - /// The name of the shareSubscription. + /// The name of share subscription /// - /// - /// Continuation token + /// + /// Synchronize payload /// /// /// The cancellation token. /// - public static async Task> ListSourceShareSynchronizationSettingsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task SynchronizeMethodAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSourceShareSynchronizationSettingsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.SynchronizeMethodWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, synchronize, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// List Synchronizations in a share subscription. + /// Get shareSubscription in an account. /// /// - /// List synchronizations of a share subscription + /// Get a shareSubscription in an account /// /// /// The operations group for this extension method. @@ -309,21 +357,18 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// The name of the share account. /// /// - /// The name of the share subscription. - /// - /// - /// Continuation token + /// The name of the shareSubscription. /// - public static IPage ListSynchronizations(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string)) + public static ShareSubscription Get(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName) { - return operations.ListSynchronizationsAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName, shareSubscriptionName).GetAwaiter().GetResult(); } /// - /// List Synchronizations in a share subscription. + /// Get shareSubscription in an account. /// /// - /// List synchronizations of a share subscription + /// Get a shareSubscription in an account /// /// /// The operations group for this extension method. @@ -335,27 +380,24 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// The name of the share account. /// /// - /// The name of the share subscription. - /// - /// - /// Continuation token + /// The name of the shareSubscription. /// /// /// The cancellation token. /// - public static async Task> ListSynchronizationsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -367,24 +409,21 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// 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 /// - public static IPage ListSynchronizationDetails(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string)) + public static ShareSubscription Create(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscription shareSubscription) { - return operations.ListSynchronizationDetailsAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken).GetAwaiter().GetResult(); + return operations.CreateAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscription).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -396,30 +435,27 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// 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 cancellation token. /// - public static async Task> ListSynchronizationDetailsAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscription shareSubscription, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationDetailsWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscription, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Initiate an asynchronous data share job + /// Delete shareSubscription in an account. /// /// - /// Initiate a copy + /// Delete a shareSubscription in an account /// /// /// The operations group for this extension method. @@ -431,21 +467,18 @@ public static OperationResponse Delete(this IShareSubscriptionsOperations operat /// The name of the share account. /// /// - /// The name of share subscription - /// - /// - /// Synchronize payload + /// The name of the shareSubscription. /// - public static ShareSubscriptionSynchronization SynchronizeMethod(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize) + public static OperationResponse Delete(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName) { - return operations.SynchronizeMethodAsync(resourceGroupName, accountName, shareSubscriptionName, synchronize).GetAwaiter().GetResult(); + return operations.DeleteAsync(resourceGroupName, accountName, shareSubscriptionName).GetAwaiter().GetResult(); } /// - /// Initiate an asynchronous data share job + /// Delete shareSubscription in an account. /// /// - /// Initiate a copy + /// Delete a shareSubscription in an account /// /// /// The operations group for this extension method. @@ -457,27 +490,24 @@ public static ShareSubscriptionSynchronization SynchronizeMethod(this IShareSubs /// The name of the share account. /// /// - /// The name of share subscription - /// - /// - /// Synchronize payload + /// The name of the shareSubscription. /// /// /// The cancellation token. /// - public static async Task SynchronizeMethodAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, Synchronize synchronize, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.SynchronizeMethodWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, synchronize, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -488,22 +518,25 @@ public static ShareSubscriptionSynchronization SynchronizeMethod(this IShareSubs /// /// The name of the share account. /// - /// - /// The name of the shareSubscription. + /// + /// Continuation Token /// - /// - /// Share Subscription Synchronization payload. + /// + /// Filters the results using OData syntax. /// - public static ShareSubscriptionSynchronization CancelSynchronization(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization) + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListByAccount(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.CancelSynchronizationAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization).GetAwaiter().GetResult(); + return operations.ListByAccountAsync(resourceGroupName, accountName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -514,28 +547,31 @@ public static ShareSubscriptionSynchronization CancelSynchronization(this IShare /// /// 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 cancellation token. /// - public static async Task CancelSynchronizationAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAccountAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CancelSynchronizationWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete shareSubscription in an account. + /// Request cancellation of a data share snapshot /// /// - /// Delete a shareSubscription in an account + /// Request to cancel a synchronization. /// /// /// The operations group for this extension method. @@ -549,16 +585,19 @@ public static ShareSubscriptionSynchronization CancelSynchronization(this IShare /// /// The name of the shareSubscription. /// - public static OperationResponse BeginDelete(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName) + /// + /// Share Subscription Synchronization payload. + /// + public static ShareSubscriptionSynchronization BeginCancelSynchronization(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization) { - return operations.BeginDeleteAsync(resourceGroupName, accountName, shareSubscriptionName).GetAwaiter().GetResult(); + return operations.BeginCancelSynchronizationAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization).GetAwaiter().GetResult(); } /// - /// Delete shareSubscription in an account. + /// Request cancellation of a data share snapshot /// /// - /// Delete a shareSubscription in an account + /// Request to cancel a synchronization. /// /// /// The operations group for this extension method. @@ -572,12 +611,15 @@ public static OperationResponse BeginDelete(this IShareSubscriptionsOperations o /// /// The name of the shareSubscription. /// + /// + /// Share Subscription Synchronization payload. + /// /// /// The cancellation token. /// - public static async Task BeginDeleteAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginCancelSynchronizationAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginCancelSynchronizationWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -642,10 +684,10 @@ public static ShareSubscriptionSynchronization BeginSynchronizeMethod(this IShar } /// - /// Request cancellation of a data share snapshot + /// Delete shareSubscription in an account. /// /// - /// Request to cancel a synchronization. + /// Delete a shareSubscription in an account /// /// /// The operations group for this extension method. @@ -659,19 +701,16 @@ public static ShareSubscriptionSynchronization BeginSynchronizeMethod(this IShar /// /// The name of the shareSubscription. /// - /// - /// Share Subscription Synchronization payload. - /// - public static ShareSubscriptionSynchronization BeginCancelSynchronization(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization) + public static OperationResponse BeginDelete(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName) { - return operations.BeginCancelSynchronizationAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization).GetAwaiter().GetResult(); + return operations.BeginDeleteAsync(resourceGroupName, accountName, shareSubscriptionName).GetAwaiter().GetResult(); } /// - /// Request cancellation of a data share snapshot + /// Delete shareSubscription in an account. /// /// - /// Request to cancel a synchronization. + /// Delete a shareSubscription in an account /// /// /// The operations group for this extension method. @@ -685,25 +724,22 @@ public static ShareSubscriptionSynchronization BeginCancelSynchronization(this I /// /// The name of the shareSubscription. /// - /// - /// Share Subscription Synchronization payload. - /// /// /// The cancellation token. /// - public static async Task BeginCancelSynchronizationAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, ShareSubscriptionSynchronization shareSubscriptionSynchronization, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task BeginDeleteAsync(this IShareSubscriptionsOperations operations, string resourceGroupName, string accountName, string shareSubscriptionName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BeginCancelSynchronizationWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, shareSubscriptionSynchronization, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareSubscriptionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -711,16 +747,16 @@ public static ShareSubscriptionSynchronization BeginCancelSynchronization(this I /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByAccountNext(this IShareSubscriptionsOperations operations, string nextPageLink) + public static IPage ListSourceShareSynchronizationSettingsNext(this IShareSubscriptionsOperations operations, string nextPageLink) { - return operations.ListByAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListSourceShareSynchronizationSettingsNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -731,19 +767,19 @@ public static IPage ListByAccountNext(this IShareSubscription /// /// The cancellation token. /// - public static async Task> ListByAccountNextAsync(this IShareSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSourceShareSynchronizationSettingsNextAsync(this IShareSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSourceShareSynchronizationSettingsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -751,16 +787,16 @@ public static IPage ListByAccountNext(this IShareSubscription /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListSourceShareSynchronizationSettingsNext(this IShareSubscriptionsOperations operations, string nextPageLink) + public static IPage ListSynchronizationDetailsNext(this IShareSubscriptionsOperations operations, string nextPageLink) { - return operations.ListSourceShareSynchronizationSettingsNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListSynchronizationDetailsNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -771,9 +807,9 @@ public static IPage ListSourceShareSynchroniz /// /// The cancellation token. /// - public static async Task> ListSourceShareSynchronizationSettingsNextAsync(this IShareSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationDetailsNextAsync(this IShareSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSourceShareSynchronizationSettingsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationDetailsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -820,10 +856,10 @@ public static IPage ListSynchronizationsNext(t } /// - /// 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 operations group for this extension method. @@ -831,16 +867,16 @@ public static IPage ListSynchronizationsNext(t /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListSynchronizationDetailsNext(this IShareSubscriptionsOperations operations, string nextPageLink) + public static IPage ListByAccountNext(this IShareSubscriptionsOperations operations, string nextPageLink) { - return operations.ListSynchronizationDetailsNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -851,9 +887,9 @@ public static IPage ListSynchronizationDetailsNext(this /// /// The cancellation token. /// - public static async Task> ListSynchronizationDetailsNextAsync(this IShareSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAccountNextAsync(this IShareSubscriptionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationDetailsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperations.cs index 8253d02d53969..caf5cd91797ac 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperations.cs @@ -51,10 +51,10 @@ internal SharesOperations(DataShareManagementClient client) public DataShareManagementClient Client { get; private set; } /// - /// Get a specified share + /// List data set level details for a share synchronization /// /// - /// Get a share + /// List synchronization details /// /// /// The resource group name. @@ -63,7 +63,19 @@ internal SharesOperations(DataShareManagementClient client) /// 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. /// /// /// Headers that will be added to request. @@ -86,7 +98,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -104,6 +116,10 @@ internal SharesOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "shareName"); } + if (shareSynchronization == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "shareSynchronization"); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -118,12 +134,16 @@ internal SharesOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareName", shareName); + tracingParameters.Add("shareSynchronization", shareSynchronization); + tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetails", 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizationDetails").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)); @@ -133,6 +153,18 @@ internal SharesOperations(DataShareManagementClient client) { _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 (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); @@ -140,7 +172,7 @@ internal SharesOperations(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) @@ -171,6 +203,12 @@ internal SharesOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; + if(shareSynchronization != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(shareSynchronization, 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) { @@ -221,7 +259,7 @@ internal SharesOperations(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")) @@ -234,7 +272,7 @@ internal SharesOperations(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) { @@ -254,10 +292,10 @@ internal SharesOperations(DataShareManagementClient client) } /// - /// Create a share in the given account. + /// List Synchronizations in a share /// /// - /// Create a share + /// List synchronizations of a share /// /// /// The resource group name. @@ -268,8 +306,14 @@ internal SharesOperations(DataShareManagementClient client) /// /// The name of the share. /// - /// - /// The share payload + /// + /// Continuation token + /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. /// /// /// Headers that will be added to request. @@ -292,7 +336,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Share share, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -310,10 +354,6 @@ internal SharesOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "shareName"); } - if (share == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "share"); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -328,13 +368,15 @@ internal SharesOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareName", shareName); - tracingParameters.Add("share", share); + tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizations", 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}/listSynchronizations").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)); @@ -344,6 +386,18 @@ internal SharesOperations(DataShareManagementClient client) { _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 (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); @@ -351,7 +405,7 @@ internal SharesOperations(DataShareManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -382,12 +436,6 @@ internal SharesOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; - if(share != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(share, 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) { @@ -408,7 +456,7 @@ internal SharesOperations(DataShareManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201) + if ((int)_statusCode != 200) { var ex = new DataShareErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -438,7 +486,7 @@ internal SharesOperations(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")) @@ -451,25 +499,7 @@ internal SharesOperations(DataShareManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } - // Deserialize Response - if ((int)_statusCode == 201) - { - _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) { @@ -489,10 +519,10 @@ internal SharesOperations(DataShareManagementClient client) } /// - /// Deletes a share + /// Get a specified share /// /// - /// Delete a share + /// Get a share /// /// /// The resource group name. @@ -501,35 +531,7 @@ internal SharesOperations(DataShareManagementClient client) /// The name of the share account. /// /// - /// The name of the share. - /// - /// - /// The headers that will be added to request. - /// - /// - /// The cancellation token. - /// - public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) - { - // Send request - AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareName, customHeaders, cancellationToken).ConfigureAwait(false); - return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); - } - - /// - /// List of available shares under an account. - /// - /// - /// List shares in an account - /// - /// - /// The resource group name. - /// - /// - /// The name of the share account. - /// - /// - /// Continuation Token + /// The name of the share to retrieve. /// /// /// Headers that will be added to request. @@ -552,7 +554,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -566,6 +568,10 @@ internal SharesOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } + if (shareName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "shareName"); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -579,25 +585,22 @@ internal SharesOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); - tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("shareName", shareName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByAccount", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", 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").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}").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)); + _url = _url.Replace("{shareName}", System.Uri.EscapeDataString(shareName)); 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); @@ -686,7 +689,7 @@ internal SharesOperations(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")) @@ -699,7 +702,7 @@ internal SharesOperations(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) { @@ -719,10 +722,10 @@ internal SharesOperations(DataShareManagementClient client) } /// - /// List Synchronizations in a share + /// Create a share in the given account. /// /// - /// List synchronizations of a share + /// Create a share /// /// /// The resource group name. @@ -733,8 +736,8 @@ internal SharesOperations(DataShareManagementClient client) /// /// The name of the share. /// - /// - /// Continuation token + /// + /// The share payload /// /// /// Headers that will be added to request. @@ -757,7 +760,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Share share, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -775,6 +778,10 @@ internal SharesOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "shareName"); } + if (share == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "share"); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -789,13 +796,13 @@ internal SharesOperations(DataShareManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("shareName", shareName); - tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("share", share); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizations", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Create", 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}/listSynchronizations").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares/{shareName}").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)); @@ -805,10 +812,6 @@ internal SharesOperations(DataShareManagementClient client) { _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); @@ -816,7 +819,7 @@ internal SharesOperations(DataShareManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -847,6 +850,12 @@ internal SharesOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; + if(share != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(share, 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) { @@ -867,7 +876,7 @@ internal SharesOperations(DataShareManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new DataShareErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -897,7 +906,7 @@ internal SharesOperations(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")) @@ -910,7 +919,25 @@ internal SharesOperations(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) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -930,10 +957,10 @@ internal SharesOperations(DataShareManagementClient client) } /// - /// List data set level details for a share synchronization + /// Deletes a share /// /// - /// List synchronization details + /// Delete a share /// /// /// The resource group name. @@ -944,11 +971,39 @@ internal SharesOperations(DataShareManagementClient client) /// /// The name of the share. /// - /// - /// Share Synchronization payload. + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// List of available shares under an account. + /// + /// + /// List shares in an account + /// + /// + /// The resource group name. + /// + /// + /// The name of the share account. /// /// - /// Continuation token + /// Continuation Token + /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. /// /// /// Headers that will be added to request. @@ -971,7 +1026,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationDetailsWithHttpMessagesAsync(string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAccountWithHttpMessagesAsync(string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.SubscriptionId == null) { @@ -985,14 +1040,6 @@ internal SharesOperations(DataShareManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } - if (shareName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "shareName"); - } - if (shareSynchronization == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "shareSynchronization"); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -1006,19 +1053,18 @@ internal SharesOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); - tracingParameters.Add("shareName", shareName); - tracingParameters.Add("shareSynchronization", shareSynchronization); tracingParameters.Add("skipToken", skipToken); + tracingParameters.Add("filter", filter); + tracingParameters.Add("orderby", orderby); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetails", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByAccount", 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}/listSynchronizationDetails").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares").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)); - _url = _url.Replace("{shareName}", System.Uri.EscapeDataString(shareName)); List _queryParameters = new List(); if (Client.ApiVersion != null) { @@ -1028,6 +1074,14 @@ internal SharesOperations(DataShareManagementClient client) { _queryParameters.Add(string.Format("$skipToken={0}", System.Uri.EscapeDataString(skipToken))); } + if (filter != null) + { + _queryParameters.Add(string.Format("$filter={0}", System.Uri.EscapeDataString(filter))); + } + if (orderby != null) + { + _queryParameters.Add(string.Format("$orderby={0}", System.Uri.EscapeDataString(orderby))); + } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); @@ -1035,7 +1089,7 @@ internal SharesOperations(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) @@ -1066,12 +1120,6 @@ internal SharesOperations(DataShareManagementClient client) // Serialize Request string _requestContent = null; - if(shareSynchronization != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(shareSynchronization, 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) { @@ -1122,7 +1170,7 @@ internal SharesOperations(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")) @@ -1135,7 +1183,7 @@ internal SharesOperations(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) { @@ -1358,10 +1406,10 @@ internal SharesOperations(DataShareManagementClient client) } /// - /// 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. @@ -1387,7 +1435,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSynchronizationDetailsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1402,7 +1450,7 @@ internal SharesOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByAccountNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetailsNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1415,7 +1463,7 @@ internal SharesOperations(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) @@ -1496,7 +1544,7 @@ internal SharesOperations(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")) @@ -1509,7 +1557,7 @@ internal SharesOperations(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) { @@ -1700,10 +1748,10 @@ internal SharesOperations(DataShareManagementClient client) } /// - /// 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. @@ -1729,7 +1777,7 @@ internal SharesOperations(DataShareManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListSynchronizationDetailsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByAccountNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (nextPageLink == null) { @@ -1744,7 +1792,7 @@ internal SharesOperations(DataShareManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("nextPageLink", nextPageLink); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListSynchronizationDetailsNext", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByAccountNext", tracingParameters); } // Construct URL string _url = "{nextLink}"; @@ -1757,7 +1805,7 @@ internal SharesOperations(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) @@ -1838,7 +1886,7 @@ internal SharesOperations(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")) @@ -1851,7 +1899,7 @@ internal SharesOperations(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/SharesOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperationsExtensions.cs index 190c573091d44..f82691ed68372 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SharesOperationsExtensions.cs @@ -22,10 +22,10 @@ namespace Microsoft.Azure.Management.DataShare public static partial class SharesOperationsExtensions { /// - /// Get a specified share + /// List data set level details for a share synchronization /// /// - /// Get a share + /// List synchronization details /// /// /// The operations group for this extension method. @@ -37,18 +37,30 @@ public static partial class SharesOperationsExtensions /// The name of the share account. /// /// - /// The name of the share to retrieve. + /// The name of the share. /// - public static Share Get(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName) + /// + /// Share Synchronization payload. + /// + /// + /// Continuation token + /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListSynchronizationDetails(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.GetAsync(resourceGroupName, accountName, shareName).GetAwaiter().GetResult(); + return operations.ListSynchronizationDetailsAsync(resourceGroupName, accountName, shareName, shareSynchronization, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// - /// Get a specified share + /// List data set level details for a share synchronization /// /// - /// Get a share + /// List synchronization details /// /// /// The operations group for this extension method. @@ -60,24 +72,36 @@ public static Share Get(this ISharesOperations operations, string resourceGroupN /// 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 cancellation token. /// - public static async Task GetAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationDetailsAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, shareName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationDetailsWithHttpMessagesAsync(resourceGroupName, accountName, shareName, shareSynchronization, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create a share in the given account. + /// List Synchronizations in a share /// /// - /// Create a share + /// List synchronizations of a share /// /// /// The operations group for this extension method. @@ -91,19 +115,25 @@ public static Share Get(this ISharesOperations operations, string resourceGroupN /// /// The name of the share. /// - /// - /// The share payload + /// + /// Continuation token /// - public static Share Create(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, Share share) + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. + /// + public static IPage ListSynchronizations(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.CreateAsync(resourceGroupName, accountName, shareName, share).GetAwaiter().GetResult(); + return operations.ListSynchronizationsAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// - /// Create a share in the given account. + /// List Synchronizations in a share /// /// - /// Create a share + /// List synchronizations of a share /// /// /// The operations group for this extension method. @@ -117,25 +147,31 @@ public static Share Create(this ISharesOperations operations, string resourceGro /// /// The name of the share. /// - /// - /// The share payload + /// + /// Continuation token + /// + /// + /// Filters the results using OData syntax. + /// + /// + /// Sorts the results using OData syntax. /// /// /// The cancellation token. /// - public static async Task CreateAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, Share share, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationsAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, shareName, share, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationsWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a share + /// Get a specified share /// /// - /// Delete a share + /// Get a share /// /// /// The operations group for this extension method. @@ -147,18 +183,18 @@ public static Share Create(this ISharesOperations operations, string resourceGro /// The name of the share account. /// /// - /// The name of the share. + /// The name of the share to retrieve. /// - public static OperationResponse Delete(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName) + public static Share Get(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName) { - return operations.DeleteAsync(resourceGroupName, accountName, shareName).GetAwaiter().GetResult(); + return operations.GetAsync(resourceGroupName, accountName, shareName).GetAwaiter().GetResult(); } /// - /// Deletes a share + /// Get a specified share /// /// - /// Delete a share + /// Get a share /// /// /// The operations group for this extension method. @@ -170,24 +206,24 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// The name of the share account. /// /// - /// The name of the share. + /// The name of the share to retrieve. /// /// /// The cancellation token. /// - public static async Task DeleteAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, shareName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// List of available shares under an account. + /// Create a share in the given account. /// /// - /// List shares in an account + /// Create a share /// /// /// The operations group for this extension method. @@ -198,19 +234,22 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// The name of the share account. /// - /// - /// Continuation Token + /// + /// The name of the share. /// - public static IPage ListByAccount(this ISharesOperations operations, string resourceGroupName, string accountName, string skipToken = default(string)) + /// + /// The share payload + /// + public static Share Create(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, Share share) { - return operations.ListByAccountAsync(resourceGroupName, accountName, skipToken).GetAwaiter().GetResult(); + return operations.CreateAsync(resourceGroupName, accountName, shareName, share).GetAwaiter().GetResult(); } /// - /// List of available shares under an account. + /// Create a share in the given account. /// /// - /// List shares in an account + /// Create a share /// /// /// The operations group for this extension method. @@ -221,25 +260,28 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// The name of the share account. /// - /// - /// Continuation Token + /// + /// The name of the share. + /// + /// + /// The share payload /// /// /// The cancellation token. /// - public static async Task> ListByAccountAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, Share share, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, shareName, share, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// List Synchronizations in a share + /// Deletes a share /// /// - /// List synchronizations of a share + /// Delete a share /// /// /// The operations group for this extension method. @@ -253,19 +295,16 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// The name of the share. /// - /// - /// Continuation token - /// - public static IPage ListSynchronizations(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string)) + public static OperationResponse Delete(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName) { - return operations.ListSynchronizationsAsync(resourceGroupName, accountName, shareName, skipToken).GetAwaiter().GetResult(); + return operations.DeleteAsync(resourceGroupName, accountName, shareName).GetAwaiter().GetResult(); } /// - /// List Synchronizations in a share + /// Deletes a share /// /// - /// List synchronizations of a share + /// Delete a share /// /// /// The operations group for this extension method. @@ -279,25 +318,22 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// The name of the share. /// - /// - /// Continuation token - /// /// /// The cancellation token. /// - public static async Task> ListSynchronizationsAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationsWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// 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 operations group for this extension method. @@ -308,25 +344,25 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// 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. /// - public static IPage ListSynchronizationDetails(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string)) + public static IPage ListByAccount(this ISharesOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string)) { - return operations.ListSynchronizationDetailsAsync(resourceGroupName, accountName, shareName, shareSynchronization, skipToken).GetAwaiter().GetResult(); + return operations.ListByAccountAsync(resourceGroupName, accountName, skipToken, filter, orderby).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -337,21 +373,21 @@ public static OperationResponse Delete(this ISharesOperations operations, string /// /// 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 cancellation token. /// - public static async Task> ListSynchronizationDetailsAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string shareName, ShareSynchronization shareSynchronization, string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAccountAsync(this ISharesOperations operations, string resourceGroupName, string accountName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationDetailsWithHttpMessagesAsync(resourceGroupName, accountName, shareName, shareSynchronization, skipToken, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAccountWithHttpMessagesAsync(resourceGroupName, accountName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -410,10 +446,10 @@ public static OperationResponse BeginDelete(this ISharesOperations operations, s } /// - /// 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 operations group for this extension method. @@ -421,16 +457,16 @@ public static OperationResponse BeginDelete(this ISharesOperations operations, s /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListByAccountNext(this ISharesOperations operations, string nextPageLink) + public static IPage ListSynchronizationDetailsNext(this ISharesOperations operations, string nextPageLink) { - return operations.ListByAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListSynchronizationDetailsNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -441,9 +477,9 @@ public static IPage ListByAccountNext(this ISharesOperations operations, /// /// The cancellation token. /// - public static async Task> ListByAccountNextAsync(this ISharesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSynchronizationDetailsNextAsync(this ISharesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListByAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSynchronizationDetailsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -490,10 +526,10 @@ public static IPage ListSynchronizationsNext(this ISharesO } /// - /// 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 operations group for this extension method. @@ -501,16 +537,16 @@ public static IPage ListSynchronizationsNext(this ISharesO /// /// The NextLink from the previous successful call to List operation. /// - public static IPage ListSynchronizationDetailsNext(this ISharesOperations operations, string nextPageLink) + public static IPage ListByAccountNext(this ISharesOperations operations, string nextPageLink) { - return operations.ListSynchronizationDetailsNextAsync(nextPageLink).GetAwaiter().GetResult(); + return operations.ListByAccountNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// - /// 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 operations group for this extension method. @@ -521,9 +557,9 @@ public static IPage ListSynchronizationDetailsNext(this /// /// The cancellation token. /// - public static async Task> ListSynchronizationDetailsNextAsync(this ISharesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListByAccountNextAsync(this ISharesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSynchronizationDetailsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListByAccountNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SynchronizationSettingsOperations.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SynchronizationSettingsOperations.cs index c00bc626f5efa..bb1bdf1998501 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SynchronizationSettingsOperations.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SynchronizationSettingsOperations.cs @@ -266,7 +266,7 @@ internal SynchronizationSettingsOperations(DataShareManagementClient client) /// Adds a new synchronization setting to an existing share. /// /// - /// Create or update a synchronizationSetting + /// Create a synchronizationSetting /// /// /// The resource group name. diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SynchronizationSettingsOperationsExtensions.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SynchronizationSettingsOperationsExtensions.cs index 6c4f387b308b4..fd58017c98e12 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SynchronizationSettingsOperationsExtensions.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Generated/SynchronizationSettingsOperationsExtensions.cs @@ -83,7 +83,7 @@ public static SynchronizationSetting Get(this ISynchronizationSettingsOperations /// Adds a new synchronization setting to an existing share. /// /// - /// Create or update a synchronizationSetting + /// Create a synchronizationSetting /// /// /// The operations group for this extension method. @@ -112,7 +112,7 @@ public static SynchronizationSetting Create(this ISynchronizationSettingsOperati /// Adds a new synchronization setting to an existing share. /// /// - /// Create or update a synchronizationSetting + /// Create a synchronizationSetting /// /// /// The operations group for this extension method. diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Microsoft.Azure.Management.DataShare.csproj b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Microsoft.Azure.Management.DataShare.csproj index 1d4a8c019fa3b..066539dd7364c 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Microsoft.Azure.Management.DataShare.csproj +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Microsoft.Azure.Management.DataShare.csproj @@ -5,13 +5,13 @@ Microsoft.Azure.Management.DataShare Azure Data Share is a first party resource provider that enables customers to easily and securely share big data with other organizations in Azure, with centralized management, monitoring and governance. - 1.0.1 + 1.2.0 Microsoft.Azure.Management.DataShare Microsoft Azure resource management;Data Share;ADS; diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Properties/AssemblyInfo.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Properties/AssemblyInfo.cs index 29a6f57014f82..dfc348662572a 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Properties/AssemblyInfo.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/Properties/AssemblyInfo.cs @@ -8,8 +8,8 @@ [assembly: AssemblyTitle("Microsoft Azure Data Share Management Library")] [assembly: AssemblyDescription("Provides Microsft Azure DataShare management functions for managing the Microsoft Azure DataShare service.")] -[assembly: AssemblyVersion("1.0.1.0")] -[assembly: AssemblyFileVersion("1.0.1.0")] +[assembly: AssemblyVersion("1.2.0.0")] +[assembly: AssemblyFileVersion("1.2.0.0")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("Azure .NET SDK")] diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/generate.ps1 b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/generate.ps1 index 6f31d24e0927c..d97061d315fc5 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/src/generate.ps1 +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/src/generate.ps1 @@ -1 +1 @@ -Start-AutoRestCodeGeneration -ResourceProvider "datashare/resource-manager" -AutoRestVersion "v2" -ConfigFileTag "package-2019-11-01" \ No newline at end of file +Start-AutoRestCodeGeneration -ResourceProvider "datashare/resource-manager" -AutoRestVersion "v2" \ No newline at end of file diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/Microsoft.Azure.Management.DataShare.Tests.csproj b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/Microsoft.Azure.Management.DataShare.Tests.csproj index 34de6c10f1f06..683fa921794c4 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/Microsoft.Azure.Management.DataShare.Tests.csproj +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/Microsoft.Azure.Management.DataShare.Tests.csproj @@ -27,7 +27,9 @@ + - + + \ No newline at end of file diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/AccountScenarioTests.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/AccountScenarioTests.cs index 933189bb21f44..31305e882e322 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/AccountScenarioTests.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/AccountScenarioTests.cs @@ -10,7 +10,8 @@ namespace DataShare.Tests.ScenarioTests public class AccountScenarioTests : ScenarioTestBase { - public Account ExpectedAccount = new Account(new Identity(), location: ScenarioTestBase.AccountLocation); + private const string shareName = "sdktestingshare"; + public Account ExpectedAccount = new Account(identity, "DataShareId", shareName, default(SystemData), "Microsoft.DataShare", ScenarioTestBase.AccountLocation); [Fact] public async Task AccountCrud() @@ -37,7 +38,7 @@ internal static async Task CreateAsync( AzureOperationResponse createResponse = await client.Accounts.CreateWithHttpMessagesAsync(resourceGroupName, accountName, expectedAccount); AccountScenarioTests.ValidateAccount(createResponse.Body, accountName); - Assert.Equal(HttpStatusCode.Created, createResponse.Response.StatusCode); + Assert.Equal(HttpStatusCode.OK, createResponse.Response.StatusCode); } private static void ValidateAccount(Account actualAccount, string expectedAccountName) diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataSetMappingScenarioTests.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataSetMappingScenarioTests.cs index 523e4dfdff41a..e6697ccd3e027 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataSetMappingScenarioTests.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataSetMappingScenarioTests.cs @@ -62,9 +62,9 @@ await client.Triggers.DeleteWithHttpMessagesAsync( Assert.Equal(HttpStatusCode.NoContent, deleteResponse.Response.StatusCode); } - internal static DataSetMapping GetDataSetMapping() + internal static DataSetMapping GetDataSetMapping(string containerName, string dataSetId, string filePath, string resourceGroup, string storageAccountName, string subscriptionId) { - return new BlobDataSetMapping(); + return new BlobDataSetMapping( containerName, dataSetId, filePath, resourceGroup, storageAccountName, subscriptionId); } } } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataSetScenarioTests.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataSetScenarioTests.cs index c2a2bf0ddd0fb..f41a94d505d56 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataSetScenarioTests.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataSetScenarioTests.cs @@ -2,6 +2,7 @@ namespace DataShare.Tests.ScenarioTests { using System; using System.Net; + using System.Runtime.CompilerServices; using System.Threading.Tasks; using Microsoft.Azure.Management.DataShare; using Microsoft.Azure.Management.DataShare.Models; @@ -11,6 +12,9 @@ namespace DataShare.Tests.ScenarioTests public class DataSetScenarioTests : ScenarioTestBase { + public static string dataSetId =""; + public static string filepath = @"apple.txt"; + internal static async Task CreateAsync( DataShareManagementClient client, string resourceGroupName, @@ -26,6 +30,12 @@ await client.DataSets.CreateWithHttpMessagesAsync( shareName, dataSetName, expectedDataSet); + + AzureOperationResponse DataSet = await client.DataSets.GetWithHttpMessagesAsync( resourceGroupName, accountName, shareName, dataSetName); + + BlobDataSet blobDataSet = (BlobDataSet)DataSet.Body; + dataSetId = blobDataSet.DataSetId; + DataSetScenarioTests.ValidateDataSet( createResponse.Body, dataSetName); @@ -64,9 +74,9 @@ await client.DataSets.DeleteWithHttpMessagesAsync( Assert.Equal(HttpStatusCode.NoContent, deleteResponse.Response.StatusCode); } - internal static DataSet GetDataSet() + internal static DataSet GetDataSet(string containerName, string filePath, string resourceGroup,string storageActName, string subscriptionIdVal) { - return new BlobDataSet(); + return new BlobDataSet(containerName, filePath, resourceGroup, storageActName, subscriptionIdVal); } } } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataShareE2EScenarioTests.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataShareE2EScenarioTests.cs index 78854c2977051..a6c48886e5d1b 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataShareE2EScenarioTests.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/DataShareE2EScenarioTests.cs @@ -14,17 +14,23 @@ public class DataShareE2EScenarioTests : ScenarioTestBase.AccountLocation); + Account expectedAccount = new Account(identity, "DataShareId", shareName,default(SystemData), "Microsoft.DataShare", ScenarioTestBase.AccountLocation); + string subscriptionIdVal = Environment.GetEnvironmentVariable(subscriptionId); - Func action = async (client) => + Func action = async (client) => { await AccountScenarioTests.CreateAsync( client, @@ -53,7 +59,7 @@ await ShareScenarioTests.CreateAsync( this.AccountName, DataShareE2EScenarioTests.shareName, DataShareE2EScenarioTests.dataSetName, - DataSetScenarioTests.GetDataSet()); + DataSetScenarioTests.GetDataSet(containerName , DataSetScenarioTests.filepath, this.ResourceGroupName, ScenarioTestBase.storageActName, subscriptionIdVal)); Invitation invitation = await InvitationScenarioTests.CreateAsync( client, @@ -86,7 +92,7 @@ await DataSetMappingScenarioTests.CreateAsync( this.AccountName, DataShareE2EScenarioTests.shareSubscriptionName, DataShareE2EScenarioTests.dataSetMappingName, - DataSetMappingScenarioTests.GetDataSetMapping()); + DataSetMappingScenarioTests.GetDataSetMapping(containerName, DataSetScenarioTests.dataSetId, DataSetScenarioTests.filepath, this.ResourceGroupName,storageActName,subscriptionIdVal)); ShareSubscriptionScenarioTests.Synchronize( client, diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/InvitationScenarioTests.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/InvitationScenarioTests.cs index 08dcbb58c49fd..aa13805f0dd31 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/InvitationScenarioTests.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/InvitationScenarioTests.cs @@ -62,7 +62,9 @@ await client.Invitations.DeleteWithHttpMessagesAsync( internal static Invitation GetExpectedInvitation() { - return new Invitation(); + string servPrincipal = "9c1d7b62-8746-48cf-b7d8-f1bda6d9efd0"; + + return new Invitation(targetActiveDirectoryId: tenantId, targetObjectId: servPrincipal); } } } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ScenarioTestBase.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ScenarioTestBase.cs index e362f9df17ef9..a663ddab064fd 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ScenarioTestBase.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ScenarioTestBase.cs @@ -1,20 +1,38 @@ namespace DataShare.Tests.ScenarioTests { using System; + using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Threading.Tasks; using Microsoft.Azure.Management.DataShare; using Microsoft.Azure.Management.ResourceManager; + using Microsoft.Azure.Management.Storage; using Microsoft.Azure.Management.ResourceManager.Models; + using Microsoft.Azure.Management.Storage.Models; using Microsoft.Azure.Test.HttpRecorder; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + using Identity = Microsoft.Azure.Management.DataShare.Models.Identity; + using Sku = Microsoft.Azure.Management.Storage.Models.Sku; public abstract class ScenarioTestBase { private const string ResourceGroupNamePrefix = "sdktestingadsrg"; - protected const string AccountNamePrefix = "sdktestingshareaccount"; - protected const string AccountLocation = "West US 2"; + protected const string AccountNamePrefix = "sdktstshareaccount"; + protected const string AccountLocation = "eastus"; protected static Type Type = typeof(T); + public static Sku DefaultSku = new Sku(SkuName.StandardGRS); + public static Dictionary DefaultTags = new Dictionary + { + {"key1","value1"}, + {"key2","value2"} + }; + + + protected static string storageActName = "storageactsample"; + protected static string tenantId = Environment.GetEnvironmentVariable(DataShareE2EScenarioTests.tenant); + protected static string srvPrincipal = Environment.GetEnvironmentVariable(DataShareE2EScenarioTests.servicePrincipal); + + protected static Identity identity = new Identity(tenantId, srvPrincipal, "SystemAssigned"); protected string ResourceGroupName { get; private set; } protected string AccountName { get; private set; } @@ -37,9 +55,11 @@ protected async Task RunTest( HttpMockServer.Mode = HttpRecorderMode.Playback; } - this.ResourceGroupName = - TestUtilities.GenerateName(ScenarioTestBase.ResourceGroupNamePrefix); - this.AccountName = TestUtilities.GenerateName(ScenarioTestBase.AccountNamePrefix); + //this.ResourceGroupName = TestUtilities.GenerateName(ScenarioTestBase.ResourceGroupNamePrefix); + this.ResourceGroupName = ScenarioTestBase.ResourceGroupNamePrefix; + + // this.AccountName = TestUtilities.GenerateName(ScenarioTestBase.AccountNamePrefix); + this.AccountName = ScenarioTestBase.AccountNamePrefix; this.Client = mockContext.GetServiceClient( @@ -52,6 +72,9 @@ protected async Task RunTest( this.ResourceGroupName, new ResourceGroup() { Location = ScenarioTestBase.AccountLocation }); + StorageManagementClient storageManagementClient = mockContext.GetServiceClient(TestEnvironmentFactory.GetTestEnvironment()); + CreateStorageAccount(this.ResourceGroupName, storageActName, storageManagementClient); + await initialAction(this.Client); if (finallyAction != null) @@ -62,5 +85,35 @@ protected async Task RunTest( resourceManagementClient.ResourceGroups.Delete(this.ResourceGroupName); } } + + /// + /// Create a new Storage Account. If one already exists then the request still succeeds + /// + /// Resource Group Name + /// Account Name + /// Use Cool Storage + /// Use Encryption + /// Storage Management Client + private static void CreateStorageAccount(string rgname, string acctName, StorageManagementClient storageMgmtClient) + { + StorageAccountCreateParameters parameters = GetDefaultStorageAccountParameters(); + + Console.WriteLine("Creating a storage account..."); + var storageAccount = storageMgmtClient.StorageAccounts.Create(rgname, acctName, parameters); + Console.WriteLine("Storage account created with name " + storageAccount.Name); + } + + private static StorageAccountCreateParameters GetDefaultStorageAccountParameters() + { + StorageAccountCreateParameters account = new StorageAccountCreateParameters + { + Location = AccountLocation, + Kind = Kind.StorageV2, + Tags = DefaultTags, + Sku = DefaultSku + }; + + return account; + } } } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ShareScenarioTests.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ShareScenarioTests.cs index e0e1609eb10e0..10403cb3b7f6a 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ShareScenarioTests.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ShareScenarioTests.cs @@ -50,7 +50,7 @@ internal static async Task Delete( internal static Share GetShare() { - return new Share(); + return new Share( shareKind: "CopyBased"); } } } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ShareSubscriptionScenarioTests.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ShareSubscriptionScenarioTests.cs index f9f007961e09f..a5faa5bf0ab3c 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ShareSubscriptionScenarioTests.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/ShareSubscriptionScenarioTests.cs @@ -21,7 +21,7 @@ internal static void Synchronize( resourceGroupName, accountName, shareSubscriptionName, - new Synchronize()); + new Synchronize(synchronizationMode: "FullSync")); } internal static async Task CreateAsync( diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/SynchronizationSettingScenarioTests.cs b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/SynchronizationSettingScenarioTests.cs index bbbed3bb23f45..d56ef7889cc46 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/SynchronizationSettingScenarioTests.cs +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/ScenarioTests/SynchronizationSettingScenarioTests.cs @@ -66,7 +66,9 @@ await client.SynchronizationSettings.DeleteWithHttpMessagesAsync( internal static SynchronizationSetting GetSynchronizationSetting() { - return new ScheduledSynchronizationSetting(RecurrenceInterval.Day, DateTime.UtcNow); + var today = DateTime.Today; + var tomorrow = today.AddDays(1); + return new ScheduledSynchronizationSetting(RecurrenceInterval.Day, tomorrow); } } } diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/SessionRecords/AccountScenarioTests/AccountCrud.json b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/SessionRecords/AccountScenarioTests/AccountCrud.json index e9b44f8f8e969..84576b8b79547 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/SessionRecords/AccountScenarioTests/AccountCrud.json +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/SessionRecords/AccountScenarioTests/AccountCrud.json @@ -1,517 +1,1505 @@ -{ +{ "Entries": [ { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount?api-version=2019-11-01", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourcegroups/sdktestingadsrg?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RpbmdhZHNyZz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5fc0a790-71ec-4cc0-b93f-e92f3b0df638" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "28" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "82326b40-9a5f-4ed4-914c-f7211c02d94d" + ], + "x-ms-correlation-request-id": [ + "82326b40-9a5f-4ed4-914c-f7211c02d94d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061646Z:82326b40-9a5f-4ed4-914c-f7211c02d94d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:16:46 GMT" + ], + "Content-Length": [ + "183" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg\",\r\n \"name\": \"sdktestingadsrg\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.Storage/storageAccounts/storageactsample?api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3JhZ2VhY3RzYW1wbGU/YXBpLXZlcnNpb249MjAyMS0wMS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e835fd27-19d4-44f9-94a5-9a957a0181bd" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "162" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01" + ], + "Retry-After": [ + "17" + ], + "x-ms-request-id": [ + "b74cf1c9-7172-4cd8-85c1-7a104f727912" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "51937e26-7f69-40a1-9d07-c2c817b12df7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061649Z:51937e26-7f69-40a1-9d07-c2c817b12df7" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:16:49 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9iNzRjZjFjOS03MTcyLTRjZDgtODVjMS03YTEwNGY3Mjc5MTI/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "6021381d-ee5b-42bb-a621-a4249b63dd15" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "76ac60ae-bf96-46cc-8abb-9e299ba2357d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061707Z:76ac60ae-bf96-46cc-8abb-9e299ba2357d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:17:06 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9iNzRjZjFjOS03MTcyLTRjZDgtODVjMS03YTEwNGY3Mjc5MTI/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "6bcd1781-2774-440a-8307-eedc0671196f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "857669d0-aaeb-4462-ab05-fa0fc99e565d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061710Z:857669d0-aaeb-4462-ab05-fa0fc99e565d" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:17:09 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9iNzRjZjFjOS03MTcyLTRjZDgtODVjMS03YTEwNGY3Mjc5MTI/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "552193fc-0a58-4f16-9513-614abcb4b3a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "91152570-3a61-488e-98d6-a4a43733ff09" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061713Z:91152570-3a61-488e-98d6-a4a43733ff09" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:17:13 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9iNzRjZjFjOS03MTcyLTRjZDgtODVjMS03YTEwNGY3Mjc5MTI/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "ab23fc1d-121b-4a84-b124-1688f9cf0087" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "19a83f8a-7114-4f22-9b03-213af7010709" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061716Z:19a83f8a-7114-4f22-9b03-213af7010709" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:17:16 GMT" + ], + "Content-Type": [ + "text/plain; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/b74cf1c9-7172-4cd8-85c1-7a104f727912?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9iNzRjZjFjOS03MTcyLTRjZDgtODVjMS03YTEwNGY3Mjc5MTI/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7207a764-cf57-4e52-8464-cc6423c21510" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "28803c0d-ee25-4af4-b6f4-7803c54e0055" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061720Z:28803c0d-ee25-4af4-b6f4-7803c54e0055" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:17:19 GMT" + ], + "Content-Length": [ + "1359" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.Storage/storageAccounts/storageactsample\",\r\n \"name\": \"storageactsample\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-03-11T06:16:49.3741869Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-03-11T06:16:49.3741869Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2021-03-11T06:16:49.2491892Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://storageactsample.dfs.core.windows.net/\",\r\n \"web\": \"https://storageactsample.z13.web.core.windows.net/\",\r\n \"blob\": \"https://storageactsample.blob.core.windows.net/\",\r\n \"queue\": \"https://storageactsample.queue.core.windows.net/\",\r\n \"table\": \"https://storageactsample.table.core.windows.net/\",\r\n \"file\": \"https://storageactsample.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"westus\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"eastus\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ea663643-d2b7-425f-83aa-35ee4a379f5e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "81" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-quota": [ + "[{\"currentUsed\":54,\"limit\":100,\"name\":{\"localizedValue\":\"Account resource quota\",\"value\":\"Account resource quota\"},\"target\":\"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\"}]" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "7842192f-ca55-400e-85a9-846ed5541c3d" + ], + "x-ms-correlation-request-id": [ + "7842192f-ca55-400e-85a9-846ed5541c3d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061732Z:7842192f-ca55-400e-85a9-846ed5541c3d" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:17:32 GMT" + ], + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"1709241f-e79b-43b1-a35e-6cc3e941ba5e\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T06:17:31.4450736Z\",\r\n \"provisioningState\": \"Creating\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T06:17:29.3384227Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T06:17:29.3384227Z\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "091831e2-3907-4835-80a7-b3ef7cfdee1b" + ], + "x-ms-correlation-request-id": [ + "091831e2-3907-4835-80a7-b3ef7cfdee1b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061802Z:091831e2-3907-4835-80a7-b3ef7cfdee1b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:18:02 GMT" + ], + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"1709241f-e79b-43b1-a35e-6cc3e941ba5e\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T06:17:31.4450736Z\",\r\n \"provisioningState\": \"Creating\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T06:17:29.3384227Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T06:17:29.3384227Z\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "8e69dd9d-280b-469e-946f-ea345ce36eb5" + ], + "x-ms-correlation-request-id": [ + "8e69dd9d-280b-469e-946f-ea345ce36eb5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061832Z:8e69dd9d-280b-469e-946f-ea345ce36eb5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:18:32 GMT" + ], + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"1709241f-e79b-43b1-a35e-6cc3e941ba5e\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T06:17:31.4450736Z\",\r\n \"provisioningState\": \"Creating\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T06:17:29.3384227Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T06:17:29.3384227Z\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "448facd9-a4d9-49b8-9160-41c942676b6b" + ], + "x-ms-correlation-request-id": [ + "448facd9-a4d9-49b8-9160-41c942676b6b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061903Z:448facd9-a4d9-49b8-9160-41c942676b6b" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:19:02 GMT" + ], + "Content-Length": [ + "799" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"1709241f-e79b-43b1-a35e-6cc3e941ba5e\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T06:17:31.4450736Z\",\r\n \"provisioningState\": \"Creating\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T06:17:29.3384227Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T06:17:29.3384227Z\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "32bb6d14-3add-4634-b7ca-976ec0e8efed" + ], + "x-ms-correlation-request-id": [ + "32bb6d14-3add-4634-b7ca-976ec0e8efed" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061933Z:32bb6d14-3add-4634-b7ca-976ec0e8efed" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:19:32 GMT" + ], + "Content-Length": [ + "800" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"1709241f-e79b-43b1-a35e-6cc3e941ba5e\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T06:17:31.4450736Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T06:17:29.3384227Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T06:17:29.3384227Z\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "71a2b709-e4ae-4ac0-896a-ee976f6d5009" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.DataShare/locations/eastus/operationResults/00c465b7-953a-4484-be9f-ca6d8b064053?api-version=2020-09-01" + ], + "Server": [ + "Kestrel" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "a6b75d08-96c0-40e2-b139-791d2359149a" + ], + "x-ms-correlation-request-id": [ + "a6b75d08-96c0-40e2-b139-791d2359149a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T061942Z:a6b75d08-96c0-40e2-b139-791d2359149a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:19:42 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "503a39be-6617-4f4e-b5c2-3ca438b17472" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" + ], + "x-ms-request-id": [ + "d4d4dc8c-2d1b-4a29-a979-d8017438480e" + ], + "x-ms-correlation-request-id": [ + "d4d4dc8c-2d1b-4a29-a979-d8017438480e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T062013Z:d4d4dc8c-2d1b-4a29-a979-d8017438480e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:20:13 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.DataShare/locations/eastus/operationResults/00c465b7-953a-4484-be9f-ca6d8b064053?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy8wMGM0NjViNy05NTNhLTQ0ODQtYmU5Zi1jYTZkOGIwNjQwNTM/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-quota": [ + "[{\"currentUsed\":53,\"limit\":100,\"name\":{\"localizedValue\":\"Account resource quota\",\"value\":\"Account resource quota\"},\"target\":\"\"}]" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "7df0ca7f-47c7-471a-85e0-fe9d4831f821" + ], + "x-ms-correlation-request-id": [ + "7df0ca7f-47c7-471a-85e0-fe9d4831f821" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T062013Z:7df0ca7f-47c7-471a-85e0-fe9d4831f821" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:20:13 GMT" + ], + "Content-Length": [ + "67" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.DataShare/locations/eastus/operationResults/00c465b7-953a-4484-be9f-ca6d8b064053?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy8wMGM0NjViNy05NTNhLTQ0ODQtYmU5Zi1jYTZkOGIwNjQwNTM/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-quota": [ + "[{\"currentUsed\":53,\"limit\":100,\"name\":{\"localizedValue\":\"Account resource quota\",\"value\":\"Account resource quota\"},\"target\":\"\"}]" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "49c845bf-f9ba-4518-a0a4-f0afe0cde5c6" + ], + "x-ms-correlation-request-id": [ + "49c845bf-f9ba-4518-a0a4-f0afe0cde5c6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T062013Z:49c845bf-f9ba-4518-a0a4-f0afe0cde5c6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:20:13 GMT" + ], + "Content-Length": [ + "67" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourcegroups/sdktestingadsrg?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RpbmdhZHNyZz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "0a70de7a-a581-4f50-bd7c-f7f421ed4232" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/0.8.0.0" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], - "X-Powered-By": [ - "ASP.NET" + "Retry-After": [ + "15" ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "14999" ], "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "54aa1b9a-0870-4308-98e6-22b820508bf1" ], "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "54aa1b9a-0870-4308-98e6-22b820508bf1" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "WESTUS2:20210311T062034Z:54aa1b9a-0870-4308-98e6-22b820508bf1" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:20:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount?api-version=2019-11-01", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "8f888f02-26d1-4873-aec9-a667ab975d8e" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.DataShare.DataShareManagementClient/0.1.0.0" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14991" + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" ], "x-ms-request-id": [ - "39c604c1-60d2-4f05-81f6-f1aa97724c89" + "40d3c88f-b4e7-4cc8-b835-e1fb295d62ac" ], "x-ms-correlation-request-id": [ - "39c604c1-60d2-4f05-81f6-f1aa97724c89" + "40d3c88f-b4e7-4cc8-b835-e1fb295d62ac" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:39c604c1-60d2-4f05-81f6-f1aa97724c89" + "WESTUS2:20210311T062049Z:40d3c88f-b4e7-4cc8-b835-e1fb295d62ac" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:20:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 204 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSR1VrYzBOekV5TFZkRlUxUlZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:37 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" + "11998" ], "x-ms-request-id": [ - "9fb06ff5-8994-4679-af49-30ab8db5a928" + "26f53841-4885-41eb-85ae-d6b6bf410aa8" ], "x-ms-correlation-request-id": [ - "9fb06ff5-8994-4679-af49-30ab8db5a928" + "26f53841-4885-41eb-85ae-d6b6bf410aa8" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034237Z:9fb06ff5-8994-4679-af49-30ab8db5a928" + "WESTUS2:20210311T062104Z:26f53841-4885-41eb-85ae-d6b6bf410aa8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:21:04 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSR1VrYzBOekV5TFZkRlUxUlZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:52 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "11997" ], "x-ms-request-id": [ - "7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "a1e08a79-ae1d-4eae-b01e-63f2748450d7" ], "x-ms-correlation-request-id": [ - "7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "a1e08a79-ae1d-4eae-b01e-63f2748450d7" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034252Z:7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "WESTUS2:20210311T062120Z:a1e08a79-ae1d-4eae-b01e-63f2748450d7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:21:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSR1VrYzBOekV5TFZkRlUxUlZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:43:07 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" + "11996" ], "x-ms-request-id": [ - "f19cbaed-e72a-4e4f-826d-fc1841497bad" + "4c5b0425-1c4a-4854-aaac-0011d495bb92" ], "x-ms-correlation-request-id": [ - "f19cbaed-e72a-4e4f-826d-fc1841497bad" + "4c5b0425-1c4a-4854-aaac-0011d495bb92" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034308Z:f19cbaed-e72a-4e4f-826d-fc1841497bad" + "WESTUS2:20210311T062135Z:4c5b0425-1c4a-4854-aaac-0011d495bb92" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:21:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSR1VrYzBOekV5TFZkRlUxUlZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:43:08 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "11995" ], "x-ms-request-id": [ - "ede2c301-02ac-471a-b8f1-cca43dbdc8c0" + "b0dbeec4-f564-4cc8-8f4c-a581bd8afcb8" ], "x-ms-correlation-request-id": [ - "ede2c301-02ac-471a-b8f1-cca43dbdc8c0" + "b0dbeec4-f564-4cc8-8f4c-a581bd8afcb8" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034308Z:ede2c301-02ac-471a-b8f1-cca43dbdc8c0" + "WESTUS2:20210311T062150Z:b0dbeec4-f564-4cc8-8f4c-a581bd8afcb8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:21:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourcegroups/sdktestingadsrg?api-version=2017-05-10", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "61fb3724-0dc2-4786-9d8b-3608037e4f30" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:21 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14986" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" ], "x-ms-request-id": [ - "d21629cc-8eda-4d31-9e1c-be3c2a545015" + "f41b9524-d8aa-4dac-b8c0-a01169a7e516" ], "x-ms-correlation-request-id": [ - "d21629cc-8eda-4d31-9e1c-be3c2a545015" + "f41b9524-d8aa-4dac-b8c0-a01169a7e516" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034222Z:d21629cc-8eda-4d31-9e1c-be3c2a545015" + "WESTUS2:20210311T062205Z:f41b9524-d8aa-4dac-b8c0-a01169a7e516" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:22:04 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount?api-version=2019-11-01", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West US 2\"\r\n}", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "ad09e823-4630-473d-8e53-871017d152cf" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount\",\r\n \"name\": \"sdktestingshareaccount\",\r\n \"location\": \"West US 2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Length": [ - "191" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:14 GMT" - ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" ], "x-ms-request-id": [ - "54c1327a-9969-4a41-893d-a0ac06f9a886" + "ca4a25b2-7f4e-4666-9868-928e6619dfae" ], "x-ms-correlation-request-id": [ - "54c1327a-9969-4a41-893d-a0ac06f9a886" + "ca4a25b2-7f4e-4666-9868-928e6619dfae" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034214Z:54c1327a-9969-4a41-893d-a0ac06f9a886" + "WESTUS2:20210311T062220Z:ca4a25b2-7f4e-4666-9868-928e6619dfae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:22:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 201 + "ResponseBody": "", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourcegroups/sdktestingadsrg?api-version=2017-05-10", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West US 2\"\r\n}", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "7ef2513d-c451-42a2-8634-665f7e7354cc" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg\",\r\n \"name\": \"sdktestingadfrg4712\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Length": [ - "191" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:14 GMT" - ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" ], "x-ms-request-id": [ - "54c1327a-9969-4a41-893d-a0ac06f9a886" + "fdb8f53f-9be7-4a9e-b005-86cd23ed5124" ], "x-ms-correlation-request-id": [ - "54c1327a-9969-4a41-893d-a0ac06f9a886" + "fdb8f53f-9be7-4a9e-b005-86cd23ed5124" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034214Z:54c1327a-9969-4a41-893d-a0ac06f9a886" + "WESTUS2:20210311T062221Z:fdb8f53f-9be7-4a9e-b005-86cd23ed5124" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 06:22:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 201 + "ResponseBody": "", + "StatusCode": 200 } ], - "Names": { - "RunTest": [ - "sdktestingadsrg", - "sdktestingshareaccount" - ] - }, + "Names": {}, "Variables": { - "SubscriptionId": "c39dce18-cead-4065-8fb1-3af7683a5038" + "SubscriptionId": "0f3dcfc3-18f8-4099-b381-8353e19d43a7" } } \ No newline at end of file diff --git a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/SessionRecords/DataShareE2EScenarioTests/DataShareE2E.json b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/SessionRecords/DataShareE2EScenarioTests/DataShareE2E.json index 82ef569e84e04..a2410d04845cb 100644 --- a/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/SessionRecords/DataShareE2EScenarioTests/DataShareE2E.json +++ b/sdk/datashare/Microsoft.Azure.Management.DataShare/tests/SessionRecords/DataShareE2EScenarioTests/DataShareE2E.json @@ -1,48 +1,48 @@ -{ +{ "Entries": [ { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping?api-version=2019-11-01", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourcegroups/sdktestingadsrg?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RpbmdhZHNyZz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"DataSetId\":\"d2411889-5357-4ca8-8d65-9363e46ef2ed\",\r\n \"containerName\":\"providerContainer\",\r\n \"resourceGroup\":\"sdktestingstorageRG\",\r\n \"storageAccountName\":\"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\" \r\n}", + "RequestBody": "{\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "9c70ae41-fb05-47b6-8ca5-49044fb3699f" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping\", \r\n \"name\": \"sdktestingdatasetmapping\", \r\n \"kind\": \"Container\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"dataSetId\": \"d2411889-5357-4ca8-8d65-9363e46ef2ed\", \r\n \"dataSetMappingStatus\": \"ok\",\r\n \"resourceGroup\": \"sdktestingstorageRG\", \r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", - "ResponseHeaders": { + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], + "28" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "f1dacc06-f974-4ed6-b8ca-413698069a9a" + ], + "x-ms-correlation-request-id": [ + "f1dacc06-f974-4ed6-b8ca-413698069a9a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185203Z:f1dacc06-f974-4ed6-b8ca-413698069a9a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -50,1792 +50,458 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:52:03 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "183" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg\",\r\n \"name\": \"sdktestingadsrg\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZTEvZGF0YVNldE1hcHBpbmdzL3Nka3Rlc3RpbmdkYXRhc2V0bWFwcGluZz9hcGktdmVyc2lvbj0yMDE4LTExLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.Storage/storageAccounts/storageactsample?api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LlN0b3JhZ2Uvc3RvcmFnZUFjY291bnRzL3N0b3JhZ2VhY3RzYW1wbGU/YXBpLXZlcnNpb249MjAyMS0wMS0wMQ==", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"DataSetId\":\"d2411889-5357-4ca8-8d65-9363e46ef2ed\",\r\n \"containerName\":\"providerContainer\", \r\n \"prefix\": \"sdktestingPrefix\", \r\n \"resourceGroup\":\"sdktestingstorageRG\",\r\n \"storageAccountName\":\"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\" \r\n}", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n }\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "1c1dd998-8da8-4a9b-84dc-97b9b063dc51" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping\", \r\n \"name\": \"sdktestingdatasetmapping\", \r\n \"kind\": \"BlobFolder\", \r\n \"properties\": {\r\n \"dataSetId\":\"d2411889-5357-4ca8-8d65-9363e46ef2ed\", \r\n \"containerName\": \"providerContainer\", \r\n \"prefix\": \"sdktestingPrefix\", \r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"dataSetMappingStatus\": \"ok\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", - "ResponseHeaders": { + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], + "162" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01" ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "Retry-After": [ + "17" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-request-id": [ + "efbeb99f-3fd3-4fd3-9891-6468c3927b59" ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" ], "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "53e0f2c3-bf8a-49dd-9dce-c653f7604c3e" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZTEvZGF0YVNldE1hcHBpbmdzL3Nka3Rlc3RpbmdkYXRhc2V0bWFwcGluZz9hcGktdmVyc2lvbj0yMDE4LTExLTAxLXByZXZpZXc=", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"DataSetId\":\"d2411889-5357-4ca8-8d65-9363e46ef2ed\", \r\n \"containerName\":\"providerContainer\",\r\n \"filePath\": \"sdktestingFilePath\", \r\n \"resourceGroup\":\"sdktestingstorageRG\",\r\n \"storageAccountName\":\"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\" \r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" + "WESTUS2:20210311T185206Z:53e0f2c3-bf8a-49dd-9dce-c653f7604c3e" ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "X-Content-Type-Options": [ + "nosniff" ], - "accept-language": [ - "en-US" + "Date": [ + "Thu, 11 Mar 2021 18:52:06 GMT" ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings,/sdktestingdatasetmapping\", \r\n \"name\": \"sdktestingdatasetmapping\", \r\n \"kind\": \"Blob\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"filePath\": \"sdktestingFilePath\",\r\n \"dataSetId\": \"d2411889-5357-4ca8-8d65-9363e46ef2ed\",\r\n \"dataSetMappingStatus\": \"ok\", \r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", - "ResponseHeaders": { "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" + "text/plain; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "0" ] }, - "StatusCode": 201 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZTEvZGF0YVNldE1hcHBpbmdzL3Nka3Rlc3RpbmdkYXRhc2V0bWFwcGluZz9hcGktdmVyc2lvbj0yMDE4LTExLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9lZmJlYjk5Zi0zZmQzLTRmZDMtOTg5MS02NDY4YzM5MjdiNTk/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping\", \r\n \"name\": \"sdktestingdatasetmapping\", \r\n \"kind\": \"Blob\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"filePath\": \"sdktestingFilePath\",\r\n \"dataSetId\": \"d2411889-5357-4ca8-8d65-9363e46ef2ed\", \r\n \"dataSetMappingStatus\": \"ok\",\r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "ea0a0450-b14a-45d2-bb98-421349255ffc" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "117035c8-c211-46b9-858b-00f60492916a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185223Z:117035c8-c211-46b9-858b-00f60492916a" + ], "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:52:23 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "text/plain; charset=utf-8" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZTEvZGF0YVNldE1hcHBpbmdzL3Nka3Rlc3RpbmdkYXRhc2V0bWFwcGluZz9hcGktdmVyc2lvbj0yMDE4LTExLTAxLXByZXZpZXc=", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9lZmJlYjk5Zi0zZmQzLTRmZDMtOTg5MS02NDY4YzM5MjdiNTk/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping\", \r\n \"name\": \"sdktestingdatasetmapping\", \r\n \"kind\": \"Blob\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"filePath\": \"sdktestingFilePath\",\r\n \"dataSetId\": \"d2411889-5357-4ca8-8d65-9363e46ef2ed\", \r\n \"dataSetMappingStatus\": \"ok\",\r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01" ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" + "Retry-After": [ + "3" ], - "X-Content-Type-Options": [ - "nosniff" + "x-ms-request-id": [ + "f8555a52-8e07-48a3-abc7-de72b1e54edf" ], - "X-Powered-By": [ - "ASP.NET" + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" ], "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "c1a8e339-7615-4aea-8f60-373af1f20f64" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset?api-version=2019-11-01", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"containerName\":\"providerContainer\",\r\n \"resourceGroup\":\"sdktestingstorageRG\",\r\n \"storageAccountName\":\"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\" \r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" + "WESTUS2:20210311T185226Z:c1a8e339-7615-4aea-8f60-373af1f20f64" ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "X-Content-Type-Options": [ + "nosniff" ], - "accept-language": [ - "en-US" + "Date": [ + "Thu, 11 Mar 2021 18:52:26 GMT" ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset\", \r\n \"name\": \"sdktestingdataset\", \r\n \"kind\": \"Container\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"dataSetId\": \"162b705c-c13c-460f-815e-d0fdb9e56fb1\", \r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", - "ResponseHeaders": { "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" + "text/plain; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "0" ] }, - "StatusCode": 201 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/datasets/sdktestingdataset?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvZGF0YVNldHMvc2RrdGVzdGluZ2RhdGFzZXQ/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"containerName\":\"providerContainer\",\r\n \"prefix\": \"sdktestingPrefix\", \r\n \"resourceGroup\":\"sdktestingstorageRG\",\r\n \"storageAccountName\":\"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\" \r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset\", \r\n \"name\": \"sdktestingdataset\", \r\n \"kind\": \"BlobFolder\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"prefix\": \"sdktestingPrefix\",\r\n \"dataSetId\": \"162b705c-c13c-460f-815e-d0fdb9e56fb1\", \r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/datasets/sdktestingdataset?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvZGF0YVNldHMvc2RrdGVzdGluZ2RhdGFzZXQ/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"containerName\":\"providerContainer\",\r\n \"filePath\": \"sdktestingFilePath\", \r\n \"resourceGroup\":\"sdktestingstorageRG\",\r\n \"storageAccountName\":\"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\" \r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset\", \r\n \"name\": \"sdktestingdataset\", \r\n \"kind\": \"Blob\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"filePath\": \"sdktestingFilePath\",\r\n \"dataSetId\": \"162b705c-c13c-460f-815e-d0fdb9e56fb1\", \r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/datasets/sdktestingdataset?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvZGF0YVNldHMvc2RrdGVzdGluZ2RhdGFzZXQ/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset\", \r\n \"name\": \"sdktestingdataset\", \r\n \"kind\": \"Blob\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"filePath\": \"sdktestingFilePath\",\r\n \"dataSetId\": \"162b705c-c13c-460f-815e-d0fdb9e56fb1\", \r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/datasets/sdktestingdataset?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvZGF0YVNldHMvc2RrdGVzdGluZ2RhdGFzZXQ/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset\", \r\n \"name\": \"sdktestingdataset\", \r\n \"kind\": \"Blob\", \r\n \"properties\": {\r\n \"containerName\": \"providerContainer\", \r\n \"filePath\": \"sdktestingFilePath\",\r\n \"dataSetId\": \"162b705c-c13c-460f-815e-d0fdb9e56fb1\", \r\n \"resourceGroup\": \"sdktestingstorageRG\",\r\n \"storageAccountName\": \"sdktestingstorage\", \r\n \"subscriptionId\": \"e3c4699f-415a-4437-901e-3be6271b5113\"}\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/Synchronize?api-version=2019-11-01", - "RequestMethod": "POST", - "RequestBody": "{\r\n \"synchronizationMode\": \"FullSync\"\r\n }", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "Azure-AsyncOperation": [ - "https://management.azure.com/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/operationResults/ab0426f3-6673-408f-9127-5e14ccccc1e7?api-version=2019-11-01" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/operationResults/ab0426f3-6673-408f-9127-5e14ccccc1e7?api-version=2019-11-01", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\"startTime\":\"Wed, 26 Jun 2019 01:15:47 GMT\",\"endTime\":\"Wed, 26 Jun 2019 01:15:47 GMT\",\"status\":\"Succeeded\",\"error\":null}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger?api-version=2019-11-01", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"kind\": \"ScheduleBased\",\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationMode\": \"Incremental\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\"\r\n }\r\n }", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\",\r\n \"createdAt\": \"2019-06-25T00:02:09.2382898Z\",\r\n \"createdBy\": \"Yaser Alkayale\",\r\n \"provisioningState\": \"Creating\",\r\n \"triggerStatus\": \"Inactive\",\r\n \"synchronizationMode\": \"Incremental\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger\",\r\n \"name\": \"sdktestingtrigger\",\r\n \"type\": \"Microsoft.DataShare/Triggers\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1YjEvdHJpZ2dlcnMvc2RrdGVzdGluZ3RyaWdnZXI/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\",\r\n \"createdAt\": \"2019-06-25T00:02:09.2382898Z\",\r\n \"createdBy\": \"Yaser Alkayale\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"triggerStatus\": \"Inactive\",\r\n \"synchronizationMode\": \"Incremental\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger\",\r\n \"name\": \"sdktestingtrigger\",\r\n \"type\": \"Microsoft.DataShare/Triggers\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1YjEvdHJpZ2dlcnM/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\",\r\n \"createdAt\": \"2019-06-25T00:02:09.2382898Z\",\r\n \"createdBy\": \"Yaser Alkayale\",\r\n \"provisioningState\": \"Creating\",\r\n \"triggerStatus\": \"Inactive\",\r\n \"synchronizationMode\": \"Incremental\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger\",\r\n \"name\": \"sdktestingtrigger\",\r\n \"type\": \"Microsoft.DataShare/Triggers\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger?api-version=2019-11-01", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\",\r\n \"createdAt\": \"2019-06-25T00:02:09.2382898Z\",\r\n \"createdBy\": \"Yaser Alkayale\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"triggerStatus\": \"Inactive\",\r\n \"synchronizationMode\": \"Incremental\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger\",\r\n \"name\": \"sdktestingtrigger\",\r\n \"type\": \"Microsoft.DataShare/Triggers\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1YjEvdHJpZ2dlcnMvc2RrdGVzdGluZ3RyaWdnZXI/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\",\r\n \"createdAt\": \"2019-06-25T00:02:09.2382898Z\",\r\n \"createdBy\": \"Yaser Alkayale\",\r\n \"provisioningState\": \"Creating\",\r\n \"triggerStatus\": \"Inactive\",\r\n \"synchronizationMode\": \"Incremental\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger\",\r\n \"name\": \"sdktestingtrigger\",\r\n \"type\": \"Microsoft.DataShare/Triggers\"\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1YjEvdHJpZ2dlcnMvc2RrdGVzdGluZ3RyaWdnZXI/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "Location": [ - "https://management.azure.com/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/67e0667f-089e-420c-9914-caaafbf81c22?api-version=2019-11-01" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/67e0667f-089e-420c-9914-caaafbf81c22?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDI3OWM0ZmEtZjM3Ny00MDdjLTkyNjctOGQ3MzkzYjQwNTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy82N2UwNjY3Zi0wODllLTQyMGMtOTkxNC1jYWFhZmJmODFjMjI/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}\r\n", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}\r\n", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/67e0667f-089e-420c-9914-caaafbf81c22?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDI3OWM0ZmEtZjM3Ny00MDdjLTkyNjctOGQ3MzkzYjQwNTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy82N2UwNjY3Zi0wODllLTQyMGMtOTkxNC1jYWFhZmJmODFjMjI/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}\r\n", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}\r\n", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting?api-version=2019-11-01", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"kind\": \"ScheduleBased\",\r\n \"properties\": {\r\n\"recurrenceInterval\": \"hour\",\r\n\"synchronizationTime\": \"06/19/2019 22:53:33\"\r\n}\r\n}", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\"properties\":{\"recurrenceInterval\":\"Hour\",\"synchronizationTime\":\"06/19/2019 22:53:33\",\"createdAt\":\"2019-06-19T22:15:18.7247217Z\",\"createdBy\":\"Yaser Alkayale\",\"provisioningState\":\"Succeeded\"},\"kind\":\"ScheduleBased\",\"id\":\"/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/resourceGroups/yaser-testing-adls-gen1/providers/Microsoft.DataShare/accounts/testingadlsgen1/shares/testing/synchronizationSettings/setting1\",\"name\":\"sdktestingsynchronizationsetting\",\"type\":\"Microsoft.DataShare/SynchronizationSettings\"}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 201 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvc3luY2hyb25pemF0aW9uU2V0dGluZ3M/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\",\r\n \"createdAt\": \"2019-06-19T22:41:57.7347492Z\",\r\n \"createdBy\": \"Yaser Alkayale\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting\",\r\n \"name\": \"sdktestingsynchronizationsetting\",\r\n \"type\": \"Microsoft.DataShare/SynchronizationSettings\"\r\n }\r\n ]\r\n}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ] - }, - "StatusCode": 200 - }, - { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvc3luY2hyb25pemF0aW9uU2V0dGluZ3Mvc2RrdGVzdGluZ3N5bmNocm9uaXphdGlvbnNldHRpbmc/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], - "Cache-Control": [ - "no-cache" - ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], - "Pragma": [ - "no-cache" - ], - "Server": [ - "Microsoft-IIS/8.5" - ], - "Strict-Transport-Security": [ - "max-age=31536000; includeSubDomains" - ], - "X-Content-Type-Options": [ - "nosniff" - ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" - ], - "Location": [ - "https://management.azure.com/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/ea8cf6c7-9307-4a02-af78-8873154f444a?api-version=2019-11-01" - ] - }, - "StatusCode": 202 - }, - { - "RequestUri": "/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/ea8cf6c7-9307-4a02-af78-8873154f444a?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDI3OWM0ZmEtZjM3Ny00MDdjLTkyNjctOGQ3MzkzYjQwNTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy9lYThjZjZjNy05MzA3LTRhMDItYWY3OC04ODczMTU0ZjQ0NGE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9lZmJlYjk5Zi0zZmQzLTRmZDMtOTg5MS02NDY4YzM5MjdiNTk/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], - "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\"startTime\":null,\"endTime\":null,\"status\":\"Succeeded\",\"error\":null}", - "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], + "User-Agent": [ + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "25d3e410-9d89-40c4-b864-c03b2b61221f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "6c2b0801-3fb8-4eb8-b73a-b2cd97c46409" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185230Z:6c2b0801-3fb8-4eb8-b73a-b2cd97c46409" + ], "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:52:29 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "text/plain; charset=utf-8" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/ea8cf6c7-9307-4a02-af78-8873154f444a?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDI3OWM0ZmEtZjM3Ny00MDdjLTkyNjctOGQ3MzkzYjQwNTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy9lYThjZjZjNy05MzA3LTRhMDItYWY3OC04ODczMTU0ZjQ0NGE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9lZmJlYjk5Zi0zZmQzLTRmZDMtOTg5MS02NDY4YzM5MjdiNTk/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" ] }, - "ResponseBody": "{\"startTime\":null,\"endTime\":null,\"status\":\"Succeeded\",\"error\":null}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01" + ], + "Retry-After": [ + "3" + ], + "x-ms-request-id": [ + "d38c28f6-31e1-43d4-ab39-cac60877ae8d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "994e8766-bddf-4081-b942-dca6b585fbb5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185233Z:994e8766-bddf-4081-b942-dca6b585fbb5" + ], "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:52:32 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "text/plain; charset=utf-8" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvc3luY2hyb25pemF0aW9uU2V0dGluZ3Mvc2RrdGVzdGluZ3N5bmNocm9uaXphdGlvbnNldHRpbmc/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.Storage/locations/eastus/asyncoperations/efbeb99f-3fd3-4fd3-9891-6468c3927b59?monitor=true&api-version=2021-01-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuU3RvcmFnZS9sb2NhdGlvbnMvZWFzdHVzL2FzeW5jb3BlcmF0aW9ucy9lZmJlYjk5Zi0zZmQzLTRmZDMtOTg5MS02NDY4YzM5MjdiNTk/bW9uaXRvcj10cnVlJmFwaS12ZXJzaW9uPTIwMjEtMDEtMDE=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.Storage.StorageManagementClient/19.0.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\",\r\n \"createdAt\": \"2019-06-24T20:40:39.6328247Z\",\r\n \"createdBy\": \"Yaser Alkayale\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting\",\r\n \"name\": \"sdktestingsynchronizationsetting\",\r\n \"type\": \"Microsoft.DataShare/SynchronizationSettings\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" + "x-ms-request-id": [ + "aa919661-7953-4e91-a555-7ef324aee3e9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "Server": [ + "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "a81dcf42-abdc-4889-ae8c-5ff441eac650" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185236Z:a81dcf42-abdc-4889-ae8c-5ff441eac650" + ], "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:52:35 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "1359" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"sku\": {\r\n \"name\": \"Standard_GRS\",\r\n \"tier\": \"Standard\"\r\n },\r\n \"kind\": \"StorageV2\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.Storage/storageAccounts/storageactsample\",\r\n \"name\": \"storageactsample\",\r\n \"type\": \"Microsoft.Storage/storageAccounts\",\r\n \"location\": \"eastus\",\r\n \"tags\": {\r\n \"key1\": \"value1\",\r\n \"key2\": \"value2\"\r\n },\r\n \"properties\": {\r\n \"privateEndpointConnections\": [],\r\n \"networkAcls\": {\r\n \"bypass\": \"AzureServices\",\r\n \"virtualNetworkRules\": [],\r\n \"ipRules\": [],\r\n \"defaultAction\": \"Allow\"\r\n },\r\n \"supportsHttpsTrafficOnly\": true,\r\n \"encryption\": {\r\n \"services\": {\r\n \"file\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-03-11T18:52:06.1291452Z\"\r\n },\r\n \"blob\": {\r\n \"keyType\": \"Account\",\r\n \"enabled\": true,\r\n \"lastEnabledTime\": \"2021-03-11T18:52:06.1291452Z\"\r\n }\r\n },\r\n \"keySource\": \"Microsoft.Storage\"\r\n },\r\n \"accessTier\": \"Hot\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"creationTime\": \"2021-03-11T18:52:06.0041263Z\",\r\n \"primaryEndpoints\": {\r\n \"dfs\": \"https://storageactsample.dfs.core.windows.net/\",\r\n \"web\": \"https://storageactsample.z13.web.core.windows.net/\",\r\n \"blob\": \"https://storageactsample.blob.core.windows.net/\",\r\n \"queue\": \"https://storageactsample.queue.core.windows.net/\",\r\n \"table\": \"https://storageactsample.table.core.windows.net/\",\r\n \"file\": \"https://storageactsample.file.core.windows.net/\"\r\n },\r\n \"primaryLocation\": \"eastus\",\r\n \"statusOfPrimary\": \"available\",\r\n \"secondaryLocation\": \"westus\",\r\n \"statusOfSecondary\": \"available\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvc3luY2hyb25pemF0aW9uU2V0dGluZ3Mvc2RrdGVzdGluZ3N5bmNocm9uaXphdGlvbnNldHRpbmc/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "92e06f3c-283b-42d5-9b51-08dba97d747e" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "", - "ResponseHeaders": { + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], + "81" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-quota": [ + "[{\"currentUsed\":54,\"limit\":100,\"name\":{\"localizedValue\":\"Account resource quota\",\"value\":\"Account resource quota\"},\"target\":\"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\"}]" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "38559f14-3b61-48b5-b15e-5d0c2bc82c8c" + ], + "x-ms-correlation-request-id": [ + "38559f14-3b61-48b5-b15e-5d0c2bc82c8c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185241Z:38559f14-3b61-48b5-b15e-5d0c2bc82c8c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1843,71 +509,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" - ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Date": [ + "Thu, 11 Mar 2021 18:52:40 GMT" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "799" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "Location": [ - "https://management.azure.com/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/ea8cf6c7-9307-4a02-af78-8873154f444a?api-version=2019-11-01" + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"a1b96ead-d467-4e0b-9ffd-ef03ab2eb9ca\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T18:52:39.8557536Z\",\r\n \"provisioningState\": \"Creating\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:52:38.2452397Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:52:38.2452397Z\"\r\n }\r\n}", + "StatusCode": 201 }, { - "RequestUri": "/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/ea8cf6c7-9307-4a02-af78-8873154f444a?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDI3OWM0ZmEtZjM3Ny00MDdjLTkyNjctOGQ3MzkzYjQwNTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy9lYThjZjZjNy05MzA3LTRhMDItYWY3OC04ODczMTU0ZjQ0NGE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\"startTime\":null,\"endTime\":null,\"status\":\"Succeeded\",\"error\":null}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "02824925-0f04-4ece-99f2-03e5829c004c" + ], + "x-ms-correlation-request-id": [ + "02824925-0f04-4ece-99f2-03e5829c004c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185311Z:02824925-0f04-4ece-99f2-03e5829c004c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1915,68 +566,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:53:11 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "799" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"a1b96ead-d467-4e0b-9ffd-ef03ab2eb9ca\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T18:52:39.8557536Z\",\r\n \"provisioningState\": \"Creating\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:52:38.2452397Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:52:38.2452397Z\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/0279c4fa-f377-407c-9267-8d7393b40581/providers/Microsoft.DataShare/locations/eastus/operationResults/ea8cf6c7-9307-4a02-af78-8873154f444a?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDI3OWM0ZmEtZjM3Ny00MDdjLTkyNjctOGQ3MzkzYjQwNTgxL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy9lYThjZjZjNy05MzA3LTRhMDItYWY3OC04ODczMTU0ZjQ0NGE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\"startTime\":null,\"endTime\":null,\"status\":\"Succeeded\",\"error\":null}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "0c119c40-787a-49ec-b6f6-953ef44d5f4d" + ], + "x-ms-correlation-request-id": [ + "0c119c40-787a-49ec-b6f6-953ef44d5f4d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185342Z:0c119c40-787a-49ec-b6f6-953ef44d5f4d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -1984,68 +623,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:53:41 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "799" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"a1b96ead-d467-4e0b-9ffd-ef03ab2eb9ca\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T18:52:39.8557536Z\",\r\n \"provisioningState\": \"Creating\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:52:38.2452397Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:52:38.2452397Z\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvc3luY2hyb25pemF0aW9uU2V0dGluZ3Mvc2RrdGVzdGluZ3N5bmNocm9uaXphdGlvbnNldHRpbmc/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", - "RequestBody": "", - "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Hour\",\r\n \"synchronizationTime\": \"06/19/2019 22:53:33\",\r\n \"createdAt\": \"2019-06-24T20:40:39.6328247Z\",\r\n \"createdBy\": \"Yaser Alkayale\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting\",\r\n \"name\": \"sdktestingsynchronizationsetting\",\r\n \"type\": \"Microsoft.DataShare/SynchronizationSettings\"\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "168fbc78-1f25-4e34-9cb6-f656dc52bed8" + ], + "x-ms-correlation-request-id": [ + "168fbc78-1f25-4e34-9cb6-f656dc52bed8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185412Z:168fbc78-1f25-4e34-9cb6-f656dc52bed8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2053,67 +680,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:54:11 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "799" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"a1b96ead-d467-4e0b-9ffd-ef03ab2eb9ca\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T18:52:39.8557536Z\",\r\n \"provisioningState\": \"Creating\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:52:38.2452397Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:52:38.2452397Z\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub?api-version=2019-11-01", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"InvitationId\":\"80f618dc-2ca8-4f99-83ee-9d2889066c6d\" \r\n }", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub\", \r\n \"name\": \"sdktestingsharesub\", \r\n \"properties\": {\r\n \"createdAt\": \"2019-06-11T18:30:38.4357641Z\", \r\n \"shareSubscriptionStatus\": \"Active\", \r\n \"provisioningState\": \"Succeeded\",\r\n \"shareName\": \"sdktestingshare\", \r\n \"invitationId\": \"80f618dc-2ca8-4f99-83ee-9d2889066c6d\"}\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "05a2ae17-963a-4b1c-93f9-7e3bd022e025" + ], + "x-ms-correlation-request-id": [ + "05a2ae17-963a-4b1c-93f9-7e3bd022e025" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185442Z:05a2ae17-963a-4b1c-93f9-7e3bd022e025" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2121,67 +737,74 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:54:41 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "800" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 201 + "ResponseBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"a1b96ead-d467-4e0b-9ffd-ef03ab2eb9ca\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T18:52:39.8557536Z\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"location\": \"eastus\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount\",\r\n \"name\": \"sdktstshareaccount\",\r\n \"type\": \"Microsoft.DataShare/accounts\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:52:38.2452397Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:52:38.2452397Z\"\r\n }\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1YjE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZT9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"shareKind\": \"CopyBased\"\r\n }\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "b88111f4-f611-4043-9b7c-c03c1dbb7243" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub\", \r\n \"name\": \"sdktestingsharesub\", \r\n \"properties\": {\r\n \"createdAt\": \"2019-06-11T18:30:38.4357641Z\", \r\n \"shareSubscriptionStatus\": \"Active\", \r\n \"provisioningState\": \"Succeeded\",\r\n \"shareName\": \"sdktestingshare\", \r\n \"invitationId\": \"80f618dc-2ca8-4f99-83ee-9d2889066c6d\"}\r\n}", - "ResponseHeaders": { + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], + "58" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/sdktestingshare" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-quota": [ + "[{\"currentUsed\":1,\"limit\":200,\"name\":{\"localizedValue\":\"Share resource quota\",\"value\":\"Share resource quota\"},\"target\":\"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare\"}]" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "b98f0e30-ee9e-49ae-975f-bf80a07e9214" + ], + "x-ms-correlation-request-id": [ + "b98f0e30-ee9e-49ae-975f-bf80a07e9214" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185814Z:b98f0e30-ee9e-49ae-975f-bf80a07e9214" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2189,62 +812,71 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:58:14 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "690" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 200 + "ResponseBody": "{\r\n \"properties\": {\r\n \"shareKind\": \"CopyBased\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdAt\": \"2021-03-11T18:58:14.112916Z\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare\",\r\n \"name\": \"sdktestingshare\",\r\n \"type\": \"Microsoft.DataShare/accounts/shares\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:58:13.5199019Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:58:13.5199019Z\"\r\n }\r\n}", + "StatusCode": 201 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1YjE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZS9zeW5jaHJvbml6YXRpb25TZXR0aW5ncy9zZGt0ZXN0aW5nc3luY2hyb25pemF0aW9uc2V0dGluZz9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"ScheduleBased\",\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Day\",\r\n \"synchronizationTime\": \"2021-03-12T08:00:00Z\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "47a1f915-8028-4054-bae6-631c3fc8c39e" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "141" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Location": [ - "https://management.azure.com/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "ca353f15-0d72-48ce-a61c-900a4cd91d1f" + ], + "x-ms-correlation-request-id": [ + "ca353f15-0d72-48ce-a61c-900a4cd91d1f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185814Z:ca353f15-0d72-48ce-a61c-900a4cd91d1f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2252,170 +884,212 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:58:14 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "566" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 202 + "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Day\",\r\n \"synchronizationTime\": \"2021-03-12T08:00:00Z\",\r\n \"createdAt\": \"2021-03-11T18:58:14.710931Z\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/synchronizationSettings/sdktestingsynchronizationsetting\",\r\n \"name\": \"sdktestingsynchronizationsetting\",\r\n \"type\": \"Microsoft.DataShare/accounts/shares/synchronizationSettings\"\r\n}", + "StatusCode": 201 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvb3BlcmF0aW9ucmVzdWx0cy9leUpxYjJKSlpDSTZJbEpGVTA5VlVrTkZSMUpQVlZCRVJVeEZWRWxQVGtwUFFpMVRSRXRVUlZOVVNVNUhRVVJHVWtjME56RXlMVmRGVTFSVlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkSFZ6SW4wP2FwaS12ZXJzaW9uPTIwMTgtMTEtMDEtcHJldmlldw==", - "RequestMethod": "GET", - "RequestBody": "", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZS9kYXRhU2V0cy9zZGt0ZXN0aW5nZGF0YXNldD9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"Blob\",\r\n \"properties\": {\r\n \"containerName\": \"containername\",\r\n \"filePath\": \"apple.txt\",\r\n \"resourceGroup\": \"sdktestingadsrg\",\r\n \"storageAccountName\": \"storageactsample\",\r\n \"subscriptionId\": \"0f3dcfc3-18f8-4099-b381-8353e19d43a7\"\r\n }\r\n}", "RequestHeaders": { + "x-ms-client-request-id": [ + "acff747b-6450-41d5-919c-1e9702286063" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "266" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:52 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01" + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset?api-version=2020-09-01" ], - "Retry-After": [ - "15" + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "x-ms-quota": [ + "[{\"currentUsed\":1,\"limit\":200,\"name\":{\"localizedValue\":\"DataSet resource quota\",\"value\":\"DataSet resource quota\"},\"target\":\"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset\"}]" + ], + "Server": [ + "Kestrel" ], "x-ms-request-id": [ - "7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "66a9b681-a14d-4312-85ec-f793d750090b" ], "x-ms-correlation-request-id": [ - "7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "66a9b681-a14d-4312-85ec-f793d750090b" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034252Z:7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "WESTUS2:20210311T185818Z:66a9b681-a14d-4312-85ec-f793d750090b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 18:58:17 GMT" + ], + "Content-Length": [ + "823" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 200 + "ResponseBody": "{\r\n \"properties\": {\r\n \"containerName\": \"containername\",\r\n \"filePath\": \"apple.txt\",\r\n \"subscriptionId\": \"0f3dcfc3-18f8-4099-b381-8353e19d43a7\",\r\n \"resourceGroup\": \"sdktestingadsrg\",\r\n \"storageAccountName\": \"storageactsample\",\r\n \"dataSetId\": \"ca2a8a92-4381-4fc2-b2fb-b1aace217bf9\"\r\n },\r\n \"kind\": \"Blob\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset\",\r\n \"name\": \"sdktestingdataset\",\r\n \"type\": \"Microsoft.DataShare/accounts/shares/dataSets\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:58:17.4509428Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:58:17.4509428Z\"\r\n }\r\n}", + "StatusCode": 201 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvb3BlcmF0aW9ucmVzdWx0cy9leUpxYjJKSlpDSTZJbEpGVTA5VlVrTkZSMUpQVlZCRVJVeEZWRWxQVGtwUFFpMVRSRXRVUlZOVVNVNUhRVVJHVWtjME56RXlMVmRGVTFSVlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkSFZ6SW4wP2FwaS12ZXJzaW9uPTIwMTgtMTEtMDEtcHJldmlldw==", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZS9kYXRhU2V0cy9zZGt0ZXN0aW5nZGF0YXNldD9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "c79a74a8-67ea-4094-84c3-ee97efcb71c2" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:43:07 GMT" - ], "Pragma": [ "no-cache" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" + "11999" + ], + "Server": [ + "Kestrel" ], "x-ms-request-id": [ - "f19cbaed-e72a-4e4f-826d-fc1841497bad" + "87eba216-db6b-43ee-95ef-92a53dea3fed" ], "x-ms-correlation-request-id": [ - "f19cbaed-e72a-4e4f-826d-fc1841497bad" + "87eba216-db6b-43ee-95ef-92a53dea3fed" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034308Z:f19cbaed-e72a-4e4f-826d-fc1841497bad" + "WESTUS2:20210311T185818Z:87eba216-db6b-43ee-95ef-92a53dea3fed" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 18:58:18 GMT" + ], + "Content-Length": [ + "823" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"containerName\": \"containername\",\r\n \"filePath\": \"apple.txt\",\r\n \"subscriptionId\": \"0f3dcfc3-18f8-4099-b381-8353e19d43a7\",\r\n \"resourceGroup\": \"sdktestingadsrg\",\r\n \"storageAccountName\": \"storageactsample\",\r\n \"dataSetId\": \"ca2a8a92-4381-4fc2-b2fb-b1aace217bf9\"\r\n },\r\n \"kind\": \"Blob\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/dataSets/sdktestingdataset\",\r\n \"name\": \"sdktestingdataset\",\r\n \"type\": \"Microsoft.DataShare/accounts/shares/dataSets\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:58:17.4509428Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:58:17.4509428Z\"\r\n }\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shareSubscriptions/sdktestingsharesub?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1YjE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZS9pbnZpdGF0aW9ucy9zZGt0ZXN0aW5naW52aXRhdGlvbj9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"targetActiveDirectoryId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"targetObjectId\": \"9c1d7b62-8746-48cf-b7d8-f1bda6d9efd0\"\r\n }\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "1eae65f9-2331-429d-bda7-eeebe726a047" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", - "ResponseHeaders": { + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], + "162" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" + "Pragma": [ + "no-cache" + ], + "Location": [ + "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation/1806b677-e4c3-4478-b505-3a66afacc257" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-quota": [ + "[{\"currentUsed\":1,\"limit\":200,\"name\":{\"localizedValue\":\"Invitation resource quota\",\"value\":\"Invitation resource quota\"},\"target\":\"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation\"}]" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "0618ef3e-cd11-4100-92ed-7810abc53451" ], - "Pragma": [ - "no-cache" + "x-ms-correlation-request-id": [ + "0618ef3e-cd11-4100-92ed-7810abc53451" ], - "Server": [ - "Microsoft-IIS/8.5" + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185820Z:0618ef3e-cd11-4100-92ed-7810abc53451" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2423,67 +1097,74 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:58:20 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "886" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 404 + "ResponseBody": "{\r\n \"properties\": {\r\n \"sentAt\": \"2021-03-11T18:58:20.6739678Z\",\r\n \"targetActiveDirectoryId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\",\r\n \"targetObjectId\": \"9c1d7b62-8746-48cf-b7d8-f1bda6d9efd0\",\r\n \"invitationStatus\": \"Pending\",\r\n \"invitationId\": \"1806b677-e4c3-4478-b505-3a66afacc257\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation\",\r\n \"name\": \"sdktestinginvitation\",\r\n \"type\": \"Microsoft.DataShare/accounts/shares/invitations\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:58:20.1909456Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:58:20.1909456Z\"\r\n }\r\n}", + "StatusCode": 201 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation?api-version=2019-11-01", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yj9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"TargetEmail\" : \"test@microsoft.com\" \r\n }", + "RequestBody": "{\r\n \"properties\": {\r\n \"invitationId\": \"1806b677-e4c3-4478-b505-3a66afacc257\",\r\n \"sourceShareLocation\": \"eastus\"\r\n }\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "46f2d70d-4b41-4e49-a728-185db26004bd" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation\", \r\n \"name\": \"sdktestinginvitation\", \r\n \"properties\": {\r\n \"invitationId\": \"c39dce18-cead-4065-8fb1-3af7683a5038\", \r\n \"createdAt\": \"2019-06-11T18:30:38.4357641Z\", \r\n \"targetEmail\": \"test@microsoft.com\", \r\n \"invitationStatus\": \"Pending\", \r\n \"sender\": \"sdktesting\"}\r\n}", - "ResponseHeaders": { + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], + "126" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/sdktestingsharesub" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1195" + ], + "x-ms-quota": [ + "[{\"currentUsed\":1,\"limit\":100,\"name\":{\"localizedValue\":\"ShareSubscription resource quota\",\"value\":\"ShareSubscription resource quota\"},\"target\":\"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub\"}]" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "e066a564-a538-409a-acb9-13448eabe88a" + ], + "x-ms-correlation-request-id": [ + "e066a564-a538-409a-acb9-13448eabe88a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185823Z:e066a564-a538-409a-acb9-13448eabe88a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2491,67 +1172,71 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:58:22 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "691" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"createdAt\": \"2021-03-11T18:58:22.8053183Z\",\r\n \"invitationId\": \"1806b677-e4c3-4478-b505-3a66afacc257\",\r\n \"sourceShareLocation\": \"eastus\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"shareKind\": \"CopyBased\",\r\n \"shareName\": \"sdktestingshare\",\r\n \"shareSubscriptionStatus\": \"Active\",\r\n \"providerName\": \"azure data share sdk testing\",\r\n \"providerEmail\": \"\",\r\n \"providerTenantName\": \"Microsoft\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"userEmail\": \"\"\r\n },\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub\",\r\n \"name\": \"sdktestingsharesub\",\r\n \"type\": \"Microsoft.DataShare/accounts/shareSubscriptions\"\r\n}", "StatusCode": 201 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvaW52aXRhdGlvbnMvc2RrdGVzdGluZ2ludml0YXRpb24/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "GET", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi90cmlnZ2Vycy9zZGt0ZXN0aW5ndHJpZ2dlcj9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"ScheduleBased\",\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Day\",\r\n \"synchronizationTime\": \"2021-03-12T08:00:00Z\"\r\n }\r\n}", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "8d0c5be9-fd4e-40b2-b01c-dc6a067f3fe4" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" - ] - }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation\", \r\n \"name\": \"sdktestinginvitation\", \r\n \"properties\": {\r\n \"createdAt\": \"2019-06-11T18:30:38.4357641Z\", \r\n \"TargetEmail\": \"test@microsoft.com\", \r\n \"invitationStatus\": \"Pending\", \r\n \"sender\": \"sdktesting\"}\r\n}", - "ResponseHeaders": { + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], + "141" + ] + }, + "ResponseHeaders": { "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger?api-version=2020-09-01" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1194" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "8e64ea03-dbb8-45b3-bac3-004f0bbe01da" + ], + "x-ms-correlation-request-id": [ + "8e64ea03-dbb8-45b3-bac3-004f0bbe01da" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185825Z:8e64ea03-dbb8-45b3-bac3-004f0bbe01da" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2559,67 +1244,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:58:25 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "873" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 200 + "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Day\",\r\n \"synchronizationTime\": \"2021-03-12T08:00:00Z\",\r\n \"createdAt\": \"2021-03-11T18:58:25.351882Z\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"provisioningState\": \"Creating\",\r\n \"triggerStatus\": \"Inactive\",\r\n \"synchronizationMode\": \"Incremental\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger\",\r\n \"name\": \"sdktestingtrigger\",\r\n \"type\": \"Microsoft.DataShare/accounts/shareSubscriptions/triggers\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:58:25.0787714Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:58:25.0787714Z\"\r\n }\r\n}", + "StatusCode": 201 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvaW52aXRhdGlvbnMvc2RrdGVzdGluZ2ludml0YXRpb24/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi90cmlnZ2Vycy9zZGt0ZXN0aW5ndHJpZ2dlcj9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "4227f424-6cd1-4f51-9ec8-236edbc2b886" + ], + "x-ms-correlation-request-id": [ + "4227f424-6cd1-4f51-9ec8-236edbc2b886" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185856Z:4227f424-6cd1-4f51-9ec8-236edbc2b886" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2627,59 +1301,74 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:58:55 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "872" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 404 + "ResponseBody": "{\r\n \"properties\": {\r\n \"recurrenceInterval\": \"Day\",\r\n \"synchronizationTime\": \"2021-03-12T08:00:00Z\",\r\n \"createdAt\": \"2021-03-11T18:58:25.351882Z\",\r\n \"userName\": \"azure data share sdk testing\",\r\n \"provisioningState\": \"Succeeded\",\r\n \"triggerStatus\": \"Active\",\r\n \"synchronizationMode\": \"Incremental\"\r\n },\r\n \"kind\": \"ScheduleBased\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/triggers/sdktestingtrigger\",\r\n \"name\": \"sdktestingtrigger\",\r\n \"type\": \"Microsoft.DataShare/accounts/shareSubscriptions/triggers\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:58:25.0787714Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:58:25.0787714Z\"\r\n }\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare/invitations/sdktestinginvitation?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTEvaW52aXRhdGlvbnMvc2RrdGVzdGluZ2ludml0YXRpb24/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi9kYXRhU2V0TWFwcGluZ3Mvc2RrdGVzdGluZ2RhdGFzZXRtYXBwaW5nP2FwaS12ZXJzaW9uPTIwMjAtMDktMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"kind\": \"Blob\",\r\n \"properties\": {\r\n \"containerName\": \"containername\",\r\n \"dataSetId\": \"ca2a8a92-4381-4fc2-b2fb-b1aace217bf9\",\r\n \"filePath\": \"apple.txt\",\r\n \"resourceGroup\": \"sdktestingadsrg\",\r\n \"storageAccountName\": \"storageactsample\",\r\n \"subscriptionId\": \"0f3dcfc3-18f8-4099-b381-8353e19d43a7\"\r\n }\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "0d3bf66b-1f3a-4526-95b6-1953e85db90d" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "324" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping?api-version=2020-09-01" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1193" + ], + "x-ms-quota": [ + "[{\"currentUsed\":1,\"limit\":200,\"name\":{\"localizedValue\":\"DataSetMapping resource quota\",\"value\":\"DataSetMapping resource quota\"},\"target\":\"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping\"}]" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "dac10760-1780-47c7-bb71-dd10d5e8a061" + ], + "x-ms-correlation-request-id": [ + "dac10760-1780-47c7-bb71-dd10d5e8a061" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185900Z:dac10760-1780-47c7-bb71-dd10d5e8a061" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2687,62 +1376,74 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:59:00 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "956" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 200 + "ResponseBody": "{\r\n \"properties\": {\r\n \"containerName\": \"containername\",\r\n \"filePath\": \"apple.txt\",\r\n \"outputType\": null,\r\n \"subscriptionId\": \"0f3dcfc3-18f8-4099-b381-8353e19d43a7\",\r\n \"resourceGroup\": \"sdktestingadsrg\",\r\n \"storageAccountName\": \"storageactsample\",\r\n \"dataSetId\": \"ca2a8a92-4381-4fc2-b2fb-b1aace217bf9\",\r\n \"dataSetMappingStatus\": \"Ok\",\r\n \"provisioningState\": \"Succeeded\"\r\n },\r\n \"kind\": \"Blob\",\r\n \"id\": \"/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/dataSetMappings/sdktestingdatasetmapping\",\r\n \"name\": \"sdktestingdatasetmapping\",\r\n \"type\": \"Microsoft.DataShare/accounts/shareSubscriptions/dataSetMappings\",\r\n \"systemData\": {\r\n \"createdBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"createdByType\": \"Application\",\r\n \"createdAt\": \"2021-03-11T18:59:00.1958882Z\",\r\n \"lastModifiedBy\": \"70bda389-35fc-46c0-8a19-36f790132d35\",\r\n \"lastModifiedByType\": \"Application\",\r\n \"lastModifiedAt\": \"2021-03-11T18:59:00.1958882Z\"\r\n }\r\n}", + "StatusCode": 201 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", - "RequestBody": "", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/synchronize?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi9zeW5jaHJvbml6ZT9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"synchronizationMode\": \"FullSync\"\r\n}", "RequestHeaders": { "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" + "165da197-9b39-4123-a096-0509e3890f7f" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "41" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Location": [ - "https://management.azure.com/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/shareSubscriptionSynchronizations/dcb8f2d1-e198-4d4d-a4e6-65b9387b310b?api-version=2020-09-01" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/synchronizationOperationResults/dcb8f2d1-e198-4d4d-a4e6-65b9387b310b?api-version=2020-09-01" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "dcb8f2d1-e198-4d4d-a4e6-65b9387b310b" + ], + "x-ms-correlation-request-id": [ + "dcb8f2d1-e198-4d4d-a4e6-65b9387b310b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185912Z:dcb8f2d1-e198-4d4d-a4e6-65b9387b310b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2750,62 +1451,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:59:11 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "111" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"status\": \"Queued\",\r\n \"synchronizationId\": \"dcb8f2d1-e198-4d4d-a4e6-65b9387b310b\",\r\n \"synchronizationMode\": \"FullSync\"\r\n}", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/synchronizationOperationResults/dcb8f2d1-e198-4d4d-a4e6-65b9387b310b?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi9zeW5jaHJvbml6YXRpb25PcGVyYXRpb25SZXN1bHRzL2RjYjhmMmQxLWUxOTgtNGQ0ZC1hNGU2LTY1YjkzODdiMzEwYj9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Location": [ - "https://management.azure.com/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01" - ], - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "a097912f-9eb3-47b8-af72-f87667874003" + ], + "x-ms-correlation-request-id": [ + "a097912f-9eb3-47b8-af72-f87667874003" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T185942Z:a097912f-9eb3-47b8-af72-f87667874003" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2813,67 +1508,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 18:59:42 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "66" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 204 + "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Accepted\",\r\n \"error\": null\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare?api-version=2019-11-01", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"shareKind\":\"CopyBased\",\r\n \"description\":\"SDK testing\",\r\n \"terms\":\"Sdk terms of use\"\r\n }", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/synchronizationOperationResults/dcb8f2d1-e198-4d4d-a4e6-65b9387b310b?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi9zeW5jaHJvbml6YXRpb25PcGVyYXRpb25SZXN1bHRzL2RjYjhmMmQxLWUxOTgtNGQ0ZC1hNGU2LTY1YjkzODdiMzEwYj9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare\", \r\n \"name\": \"sdktestingshare\", \r\n \"properties\": {\r\n \"createdAt\": \"2019-06-11T18:30:38.4357641Z\", \r\n \"shareKind\": \"CopyBased\", \r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"Test Share\", \r\n \"terms\": \"Test terms\"}\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "14324be2-a95f-4105-be00-7296e5898968" + ], + "x-ms-correlation-request-id": [ + "14324be2-a95f-4105-be00-7296e5898968" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T190012Z:14324be2-a95f-4105-be00-7296e5898968" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2881,67 +1565,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 19:00:11 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "66" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 201 + "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Accepted\",\r\n \"error\": null\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/synchronizationOperationResults/dcb8f2d1-e198-4d4d-a4e6-65b9387b310b?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi9zeW5jaHJvbml6YXRpb25PcGVyYXRpb25SZXN1bHRzL2RjYjhmMmQxLWUxOTgtNGQ0ZC1hNGU2LTY1YjkzODdiMzEwYj9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare\", \r\n \"name\": \"sdktestingshare\", \r\n \"properties\": {\r\n \"createdAt\": \"2019-06-11T18:30:38.4357641Z\", \r\n \"shareKind\": \"CopyBased\", \r\n \"provisioningState\": \"Succeeded\", \r\n \"description\": \"Test Share\", \r\n \"terms\": \"Test terms\"}\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "92e06fb1-3be5-461b-857c-df5e94e6eaef" + ], + "x-ms-correlation-request-id": [ + "92e06fb1-3be5-461b-857c-df5e94e6eaef" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T190042Z:92e06fb1-3be5-461b-857c-df5e94e6eaef" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -2949,67 +1622,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 19:00:42 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "66" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Accepted\",\r\n \"error\": null\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/synchronizationOperationResults/dcb8f2d1-e198-4d4d-a4e6-65b9387b310b?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi9zeW5jaHJvbml6YXRpb25PcGVyYXRpb25SZXN1bHRzL2RjYjhmMmQxLWUxOTgtNGQ0ZC1hNGU2LTY1YjkzODdiMzEwYj9hcGktdmVyc2lvbj0yMDIwLTA5LTAx", "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare\", \r\n \"name\": \"sdktestingshare\", \r\n \"properties\": {\r\n \"createdAt\": \"2019-06-11T18:30:38.4357641Z\", \r\n \"shareKind\": \"CopyBased\", \r\n \"provisioningState\": \"Succeeded\", \r\n \"description\": \"Test Share\", \r\n \"terms\": \"Test Terms\"}\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "91b31457-e3ab-4d06-8727-021a6a8c1203" + ], + "x-ms-correlation-request-id": [ + "91b31457-e3ab-4d06-8727-021a6a8c1203" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T190112Z:91b31457-e3ab-4d06-8727-021a6a8c1203" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3017,68 +1679,56 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 19:01:12 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "67" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"shareKind\":\"CopyBased\",\r\n \"description\":\"SDK Description\",\r\n \"terms\":\"SDK Terms of Use\"\r\n }", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount/shareSubscriptions/sdktestingsharesub/shareSubscriptionSynchronizations/dcb8f2d1-e198-4d4d-a4e6-65b9387b310b?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQvc2hhcmVTdWJzY3JpcHRpb25zL3Nka3Rlc3RpbmdzaGFyZXN1Yi9zaGFyZVN1YnNjcmlwdGlvblN5bmNocm9uaXphdGlvbnMvZGNiOGYyZDEtZTE5OC00ZDRkLWE0ZTYtNjViOTM4N2IzMTBiP2FwaS12ZXJzaW9uPTIwMjAtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare\", \r\n \"name\": \"sdktestingshare\", \r\n \"properties\": {\r\n \"createdAt\": \"2019-06-11T18:30:38.4357641Z\", \r\n \"shareKind\": \"CopyBased\", \r\n \"provisioningState\": \"Succeeded\",\r\n \"description\": \"SDK Description\", \r\n \"terms\": \"SDK Terms of Use\"}\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "623dc7dd-2f84-4b6b-b0fa-346823601f16" + ], + "x-ms-correlation-request-id": [ + "623dc7dd-2f84-4b6b-b0fa-346823601f16" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T190113Z:623dc7dd-2f84-4b6b-b0fa-346823601f16" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3086,170 +1736,179 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 19:01:12 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "217" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 201 + "ResponseBody": "{\r\n \"endTime\": \"2021-03-11T19:00:34.3383504Z\",\r\n \"startTime\": \"2021-03-11T18:59:13.3296713Z\",\r\n \"durationMs\": 81009,\r\n \"status\": \"Succeeded\",\r\n \"synchronizationId\": \"dcb8f2d1-e198-4d4d-a4e6-65b9387b310b\",\r\n \"synchronizationMode\": \"FullSync\"\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvb3BlcmF0aW9ucmVzdWx0cy9leUpxYjJKSlpDSTZJbEpGVTA5VlVrTkZSMUpQVlZCRVJVeEZWRWxQVGtwUFFpMVRSRXRVUlZOVVNVNUhRVVJHVWtjME56RXlMVmRGVTFSVlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkSFZ6SW4wP2FwaS12ZXJzaW9uPTIwMTgtMTEtMDEtcHJldmlldw==", - "RequestMethod": "GET", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "187f1fad-b865-4e28-beb2-49ab2c8a9f5c" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:52 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://management.azure.com/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01" + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.DataShare/locations/eastus/operationResults/2272848d-99e4-405b-91a1-ac8c6c35ff7d?api-version=2020-09-01" ], - "Retry-After": [ - "15" + "Server": [ + "Kestrel" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" ], "x-ms-request-id": [ - "7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "1f9f750b-da3d-4561-aad1-316bfac619de" ], "x-ms-correlation-request-id": [ - "7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "1f9f750b-da3d-4561-aad1-316bfac619de" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034252Z:7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "WESTUS2:20210311T190315Z:1f9f750b-da3d-4561-aad1-316bfac619de" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:03:14 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvb3BlcmF0aW9ucmVzdWx0cy9leUpxYjJKSlpDSTZJbEpGVTA5VlVrTkZSMUpQVlZCRVJVeEZWRWxQVGtwUFFpMVRSRXRVUlZOVVNVNUhRVVJHVWtjME56RXlMVmRGVTFSVlV5SXNJbXB2WWt4dlkyRjBhVzl1SWpvaWQyVnpkSFZ6SW4wP2FwaS12ZXJzaW9uPTIwMTgtMTEtMDEtcHJldmlldw==", - "RequestMethod": "GET", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktstshareaccount?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFTaGFyZS9hY2NvdW50cy9zZGt0c3RzaGFyZWFjY291bnQ/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { + "x-ms-client-request-id": [ + "47faa925-34b0-4efe-a8b0-6a5327ed6e97" + ], + "Accept-Language": [ + "en-US" + ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:43:07 GMT" - ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" + "Server": [ + "Kestrel" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14998" ], "x-ms-request-id": [ - "f19cbaed-e72a-4e4f-826d-fc1841497bad" + "f1da12eb-7684-4a5b-aa92-049321f74db5" ], "x-ms-correlation-request-id": [ - "f19cbaed-e72a-4e4f-826d-fc1841497bad" + "f1da12eb-7684-4a5b-aa92-049321f74db5" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034308Z:f19cbaed-e72a-4e4f-826d-fc1841497bad" + "WESTUS2:20210311T190348Z:f1da12eb-7684-4a5b-aa92-049321f74db5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:03:48 GMT" + ], + "Expires": [ + "-1" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 204 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount/shares/sdktestingshare?api-version=2019-11-01", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L3Jlc291cmNlR3JvdXBzL3Nka3Rlc3RpbmdhZHNyZzQ3MTIvcHJvdmlkZXJzL01pY3Jvc29mdC5EYXRhU2hhcmUvYWNjb3VudHMvc2RrdGVzdGluZ3NoYXJlYWNjb3VudDk3NzYvc2hhcmVzL3Nka3Rlc3RpbmdzaGFyZTE/YXBpLXZlcnNpb249MjAxOC0xMS0wMS1wcmV2aWV3", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.DataShare/locations/eastus/operationResults/2272848d-99e4-405b-91a1-ac8c6c35ff7d?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy8yMjcyODQ4ZC05OWU0LTQwNWItOTFhMS1hYzhjNmMzNWZmN2Q/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"NotFound\",\r\n \"message\": \"The requested resource was not found.\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "191" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], - "Server": [ - "Microsoft-IIS/8.5" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-quota": [ + "[{\"currentUsed\":53,\"limit\":100,\"name\":{\"localizedValue\":\"Account resource quota\",\"value\":\"Account resource quota\"},\"target\":\"\"}]" + ], + "Server": [ + "Kestrel" + ], + "x-ms-request-id": [ + "202c1b26-31b3-48aa-a0e3-9c235edbc9f7" + ], + "x-ms-correlation-request-id": [ + "202c1b26-31b3-48aa-a0e3-9c235edbc9f7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T190345Z:202c1b26-31b3-48aa-a0e3-9c235edbc9f7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3257,59 +1916,59 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 19:03:45 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "67" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, - "StatusCode": 404 + "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount?api-version=2019-11-01", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/providers/Microsoft.DataShare/locations/eastus/operationResults/2272848d-99e4-405b-91a1-ac8c6c35ff7d?api-version=2020-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YVNoYXJlL2xvY2F0aW9ucy9lYXN0dXMvb3BlcmF0aW9uUmVzdWx0cy8yMjcyODQ4ZC05OWU0LTQwNWItOTFhMS1hYzhjNmMzNWZmN2Q/YXBpLXZlcnNpb249MjAyMC0wOS0wMQ==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "fe3b4974-ca93-4e1e-b51e-752cf0cd13e3" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/0.8.0.0" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.DataShare.DataShareManagementClient/1.2.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-quota": [ + "[{\"currentUsed\":53,\"limit\":100,\"name\":{\"localizedValue\":\"Account resource quota\",\"value\":\"Account resource quota\"},\"target\":\"\"}]" + ], "Server": [ - "Microsoft-IIS/8.5" + "Kestrel" + ], + "x-ms-request-id": [ + "c1ea9e07-9c44-41d9-b07c-77705a4fbd80" + ], + "x-ms-correlation-request-id": [ + "c1ea9e07-9c44-41d9-b07c-77705a4fbd80" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20210311T190346Z:c1ea9e07-9c44-41d9-b07c-77705a4fbd80" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" @@ -3317,480 +1976,475 @@ "X-Content-Type-Options": [ "nosniff" ], - "X-Powered-By": [ - "ASP.NET" - ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14992" + "Date": [ + "Thu, 11 Mar 2021 19:03:46 GMT" ], - "x-ms-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Length": [ + "67" ], - "x-ms-correlation-request-id": [ - "ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Content-Type": [ + "application/json; charset=utf-8" ], - "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:ed9d09c8-ddd8-4cdf-ae78-19aa4caec1e8" + "Expires": [ + "-1" ] }, + "ResponseBody": "{\r\n \"startTime\": null,\r\n \"endTime\": null,\r\n \"status\": \"Succeeded\",\r\n \"error\": null\r\n}", "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount?api-version=2019-11-01", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/resourcegroups/sdktestingadsrg?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L3Jlc291cmNlZ3JvdXBzL3Nka3Rlc3RpbmdhZHNyZz9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "x-ms-client-request-id": [ - "8f888f02-26d1-4873-aec9-a667ab975d8e" + "5773255c-91c2-41a7-a87f-62f458b6b863" ], - "accept-language": [ + "Accept-Language": [ "en-US" ], "User-Agent": [ - "FxVersion/4.6.26201.01", - "Microsoft.Azure.Management.DataShare.DataShareManagementClient/0.1.0.0" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:20 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], "x-ms-ratelimit-remaining-subscription-deletes": [ - "14991" + "14999" ], "x-ms-request-id": [ - "39c604c1-60d2-4f05-81f6-f1aa97724c89" + "d4838f33-cf78-4cea-8599-12da08df5503" ], "x-ms-correlation-request-id": [ - "39c604c1-60d2-4f05-81f6-f1aa97724c89" + "d4838f33-cf78-4cea-8599-12da08df5503" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034220Z:39c604c1-60d2-4f05-81f6-f1aa97724c89" + "WESTUS2:20210311T190349Z:d4838f33-cf78-4cea-8599-12da08df5503" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:03:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 204 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSR1VrYzBOekV5TFZkRlUxUlZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:37 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14976" + "11999" ], "x-ms-request-id": [ - "9fb06ff5-8994-4679-af49-30ab8db5a928" + "8e0d7edd-6bbd-4550-8356-e71c3e127200" ], "x-ms-correlation-request-id": [ - "9fb06ff5-8994-4679-af49-30ab8db5a928" + "8e0d7edd-6bbd-4550-8356-e71c3e127200" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034237Z:9fb06ff5-8994-4679-af49-30ab8db5a928" + "WESTUS2:20210311T190405Z:8e0d7edd-6bbd-4550-8356-e71c3e127200" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:04:04 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSR1VrYzBOekV5TFZkRlUxUlZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:52 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14975" + "11998" ], "x-ms-request-id": [ - "7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "78c905b3-a8f1-415e-9049-397ede35f82f" ], "x-ms-correlation-request-id": [ - "7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "78c905b3-a8f1-415e-9049-397ede35f82f" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034252Z:7618ad24-17bd-4e04-93d2-7ffb5b678e03" + "WESTUS2:20210311T190420Z:78c905b3-a8f1-415e-9049-397ede35f82f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:04:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSR1VrYzBOekV5TFZkRlUxUlZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:43:07 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14974" + "11997" ], "x-ms-request-id": [ - "f19cbaed-e72a-4e4f-826d-fc1841497bad" + "854c1ab7-e92a-41a9-9422-63490c7872ea" ], "x-ms-correlation-request-id": [ - "f19cbaed-e72a-4e4f-826d-fc1841497bad" + "854c1ab7-e92a-41a9-9422-63490c7872ea" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034308Z:f19cbaed-e72a-4e4f-826d-fc1841497bad" + "WESTUS2:20210311T190435Z:854c1ab7-e92a-41a9-9422-63490c7872ea" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:04:34 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10", - "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvYzM5ZGNlMTgtY2VhZC00MDY1LThmYjEtM2FmNzY4M2E1MDM4L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSR1VrYzBOekV5TFZkRlUxUlZVeUlzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEhWekluMD9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:43:08 GMT" - ], "Pragma": [ "no-cache" ], + "Location": [ + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" + ], + "Retry-After": [ + "15" + ], "x-ms-ratelimit-remaining-subscription-reads": [ - "14973" + "11996" ], "x-ms-request-id": [ - "ede2c301-02ac-471a-b8f1-cca43dbdc8c0" + "a96dbf71-27d9-485f-acba-b67fb8aff701" ], "x-ms-correlation-request-id": [ - "ede2c301-02ac-471a-b8f1-cca43dbdc8c0" + "a96dbf71-27d9-485f-acba-b67fb8aff701" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034308Z:ede2c301-02ac-471a-b8f1-cca43dbdc8c0" + "WESTUS2:20210311T190450Z:a96dbf71-27d9-485f-acba-b67fb8aff701" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:04:49 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 200 + "ResponseBody": "", + "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourcegroups/sdktestingadsrg?api-version=2017-05-10", - "RequestMethod": "DELETE", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { - "x-ms-client-request-id": [ - "61fb3724-0dc2-4786-9d8b-3608037e4f30" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "", "ResponseHeaders": { - "Content-Length": [ - "0" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:21 GMT" - ], "Pragma": [ "no-cache" ], "Location": [ - "https://api-dogfood.resources.windows-int.net/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURGUkc0NzEyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10" + "https://management.azure.com/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10" ], "Retry-After": [ "15" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ - "14986" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" ], "x-ms-request-id": [ - "d21629cc-8eda-4d31-9e1c-be3c2a545015" + "8cc20951-1484-4758-95e9-2a9ba7ddbe3b" ], "x-ms-correlation-request-id": [ - "d21629cc-8eda-4d31-9e1c-be3c2a545015" + "8cc20951-1484-4758-95e9-2a9ba7ddbe3b" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034222Z:d21629cc-8eda-4d31-9e1c-be3c2a545015" + "WESTUS2:20210311T190505Z:8cc20951-1484-4758-95e9-2a9ba7ddbe3b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:05:05 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, + "ResponseBody": "", "StatusCode": 202 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount?api-version=2019-11-01", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West US 2\"\r\n}", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "ad09e823-4630-473d-8e53-871017d152cf" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01" + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg/providers/Microsoft.DataShare/accounts/sdktestingshareaccount\",\r\n \"name\": \"sdktestingshareaccount\",\r\n \"location\": \"West US 2\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Length": [ - "191" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:14 GMT" - ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" ], "x-ms-request-id": [ - "54c1327a-9969-4a41-893d-a0ac06f9a886" + "d85b6801-5493-4f82-8ebb-d97f070d5768" ], "x-ms-correlation-request-id": [ - "54c1327a-9969-4a41-893d-a0ac06f9a886" + "d85b6801-5493-4f82-8ebb-d97f070d5768" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034214Z:54c1327a-9969-4a41-893d-a0ac06f9a886" + "WESTUS2:20210311T190521Z:d85b6801-5493-4f82-8ebb-d97f070d5768" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:05:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 201 + "ResponseBody": "", + "StatusCode": 200 }, { - "RequestUri": "/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourcegroups/sdktestingadsrg?api-version=2017-05-10", - "RequestMethod": "PUT", - "RequestBody": "{\r\n \"location\": \"West US 2\"\r\n}", + "RequestUri": "/subscriptions/0f3dcfc3-18f8-4099-b381-8353e19d43a7/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUSU5HQURTUkctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMGYzZGNmYzMtMThmOC00MDk5LWIzODEtODM1M2UxOWQ0M2E3L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFUUkV0VVJWTlVTVTVIUVVSVFVrY3RSVUZUVkZWVElpd2lhbTlpVEc5allYUnBiMjRpT2lKbFlYTjBkWE1pZlE/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", "RequestHeaders": { - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Content-Length": [ - "29" - ], - "x-ms-client-request-id": [ - "7ef2513d-c451-42a2-8634-665f7e7354cc" - ], - "accept-language": [ - "en-US" - ], "User-Agent": [ - "FxVersion/4.6.26201.01", + "FxVersion/4.6.29812.02", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" ] }, - "ResponseBody": "{\r\n \"id\": \"/subscriptions/c39dce18-cead-4065-8fb1-3af7683a5038/resourceGroups/sdktestingadsrg\",\r\n \"name\": \"sdktestingadfrg4712\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", "ResponseHeaders": { - "Content-Length": [ - "191" - ], - "Content-Type": [ - "application/json; charset=utf-8" - ], - "Expires": [ - "-1" - ], "Cache-Control": [ "no-cache" ], - "Date": [ - "Fri, 22 Jun 2018 03:42:14 GMT" - ], "Pragma": [ "no-cache" ], - "x-ms-ratelimit-remaining-subscription-writes": [ - "1187" + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" ], "x-ms-request-id": [ - "54c1327a-9969-4a41-893d-a0ac06f9a886" + "0f6b25cb-80b7-441d-8cdc-a7e1957bff5f" ], "x-ms-correlation-request-id": [ - "54c1327a-9969-4a41-893d-a0ac06f9a886" + "0f6b25cb-80b7-441d-8cdc-a7e1957bff5f" ], "x-ms-routing-request-id": [ - "NORTHEUROPE:20180622T034214Z:54c1327a-9969-4a41-893d-a0ac06f9a886" + "WESTUS2:20210311T190521Z:0f6b25cb-80b7-441d-8cdc-a7e1957bff5f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" + ], + "Date": [ + "Thu, 11 Mar 2021 19:05:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" ] }, - "StatusCode": 201 + "ResponseBody": "", + "StatusCode": 200 } ], - "Names": { - "RunTest": [ - "sdktestingadsrg", - "sdktestingshareaccount", - "sdktestingshare", - "sdktestingsynchronizationsetting", - "sdktestinginvitation", - "sdktestingsharesub" - ] - }, + "Names": {}, "Variables": { - "SubscriptionId": "c39dce18-cead-4065-8fb1-3af7683a5038" + "SubscriptionId": "0f3dcfc3-18f8-4099-b381-8353e19d43a7" } } \ No newline at end of file diff --git a/sdk/eng/mgmt/mgmtmetadata/datashare_resource-manager.txt b/sdk/eng/mgmt/mgmtmetadata/datashare_resource-manager.txt new file mode 100644 index 0000000000000..e69de29bb2d1d