diff --git a/src/SDKs/DataLake.Analytics/DataLakeAnalytics.Tests/ScenarioTests/JobOperationTests.cs b/src/SDKs/DataLake.Analytics/DataLakeAnalytics.Tests/ScenarioTests/JobOperationTests.cs
index 6af90b7b42a0..d30ace9165d4 100644
--- a/src/SDKs/DataLake.Analytics/DataLakeAnalytics.Tests/ScenarioTests/JobOperationTests.cs
+++ b/src/SDKs/DataLake.Analytics/DataLakeAnalytics.Tests/ScenarioTests/JobOperationTests.cs
@@ -44,12 +44,12 @@ public void SubmitGetListCancelTest()
var pipelineName = TestUtilities.GenerateName("jobPipeline");
var pipelineUri = string.Format("https://{0}.contoso.com/myJob", TestUtilities.GenerateName("pipelineuri"));
// Submit a job to the account
- var jobToSubmit = new JobInformation
+ var jobToSubmit = new CreateJobParameters
{
Name = "azure sdk data lake analytics job",
DegreeOfParallelism = 2,
Type = JobType.USql,
- Properties = new USqlJobProperties
+ Properties = new CreateUSqlJobProperties
{
Script = "DROP DATABASE IF EXISTS testdb; CREATE DATABASE testdb;"
},
@@ -146,13 +146,24 @@ public void SubmitGetListCancelTest()
Assert.Equal(1, listRecurrence.Count());
Assert.True(listRecurrence.Any(recurrence => recurrence.RecurrenceId == recurrenceId));
+ // Build a job to the account
+ var jobToBuild = new BuildJobParameters
+ {
+ Name = "azure sdk data lake analytics job",
+ Type = JobType.USql,
+ Properties = new CreateUSqlJobProperties
+ {
+ Script = "DROP DATABASE IF EXISTS testdb; CREATE DATABASE testdb;"
+ }
+ };
+
// Just compile the job, which requires a jobId in the job object
- var compileResponse = clientToUse.Job.Build(commonData.SecondDataLakeAnalyticsAccountName, jobToSubmit);
+ var compileResponse = clientToUse.Job.Build(commonData.SecondDataLakeAnalyticsAccountName, jobToBuild);
Assert.NotNull(compileResponse);
// now compile a broken job and verify diagnostics report an error
jobToSubmit.Properties.Script = "DROP DATABASE IF EXIST FOO; CREATE DATABASE FOO;";
- compileResponse = clientToUse.Job.Build(commonData.SecondDataLakeAnalyticsAccountName, jobToSubmit);
+ compileResponse = clientToUse.Job.Build(commonData.SecondDataLakeAnalyticsAccountName, jobToBuild);
Assert.NotNull(compileResponse);
Assert.Equal(1, ((USqlJobProperties)compileResponse.Properties).Diagnostics.Count);
diff --git a/src/SDKs/DataLake.Analytics/DataLakeAnalytics.Tests/TestHelpers/DataLakeAnalyticsManagementHelper.cs b/src/SDKs/DataLake.Analytics/DataLakeAnalytics.Tests/TestHelpers/DataLakeAnalyticsManagementHelper.cs
index 3fd7ee4da93b..37fa89b6161d 100644
--- a/src/SDKs/DataLake.Analytics/DataLakeAnalytics.Tests/TestHelpers/DataLakeAnalyticsManagementHelper.cs
+++ b/src/SDKs/DataLake.Analytics/DataLakeAnalytics.Tests/TestHelpers/DataLakeAnalyticsManagementHelper.cs
@@ -318,12 +318,12 @@ CREATE VIEW {0}.dbo.{3}
internal Guid RunJobToCompletion(DataLakeAnalyticsJobManagementClient jobClient, string dataLakeAnalyticsAccountName, Guid jobIdToUse, string scriptToRun)
{
- var createOrBuildParams = new JobInformation
+ var createOrBuildParams = new CreateJobParameters
{
Name = TestUtilities.GenerateName("testjob1"),
Type = JobType.USql,
DegreeOfParallelism = 2,
- Properties = new USqlJobProperties
+ Properties = new CreateUSqlJobProperties
{
// Type = JobType.USql,
Script = scriptToRun
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Customizations/DataLakeAnalyticsCustomizationHelper.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Customizations/DataLakeAnalyticsCustomizationHelper.cs
index 0f98d10f2a06..e8f1c79d0ed6 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Customizations/DataLakeAnalyticsCustomizationHelper.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Customizations/DataLakeAnalyticsCustomizationHelper.cs
@@ -14,7 +14,7 @@ internal static class DataLakeAnalyticsCustomizationHelper
/// This constant is used as the default package version to place in the user agent.
/// It should mirror the package version in the project.json file.
///
- internal const string PackageVersion = "3.0.1";
+ internal const string PackageVersion = "3.1.0-preview";
internal const string DefaultAdlaDnsSuffix = "azuredatalakeanalytics.net";
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/AccountOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/AccountOperations.cs
index 226dde8d2dc3..e06310e86aa3 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/AccountOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/AccountOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -93,7 +93,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -240,7 +240,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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"))
@@ -253,7 +253,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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)
{
@@ -309,7 +309,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
@@ -450,7 +450,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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"))
@@ -463,7 +463,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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)
{
@@ -482,6 +482,84 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
return _result;
}
+ ///
+ /// Creates the specified Data Lake Analytics account. This supplies the user
+ /// with computation services for Data Lake Analytics workloads
+ ///
+ ///
+ /// The name of the Azure resource group that contains the Data Lake Analytics
+ /// account.the account will be associated with.
+ ///
+ ///
+ /// The name of the Data Lake Analytics account to create.
+ ///
+ ///
+ /// Parameters supplied to the create Data Lake Analytics account operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Updates the Data Lake Analytics account object specified by the accountName
+ /// with the contents of the account object.
+ ///
+ ///
+ /// The name of the Azure resource group that contains the Data Lake Analytics
+ /// account.
+ ///
+ ///
+ /// The name of the Data Lake Analytics account to update.
+ ///
+ ///
+ /// Parameters supplied to the update Data Lake Analytics account operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccountUpdateParameters parameters = default(DataLakeAnalyticsAccountUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Begins the delete process for the Data Lake Analytics account object
+ /// specified by the account name.
+ ///
+ ///
+ /// The name of the Azure resource group that contains the Data Lake Analytics
+ /// account.
+ ///
+ ///
+ /// The name of the Data Lake Analytics account to delete
+ ///
+ ///
+ /// 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);
+ }
+
///
/// Gets details of the specified Data Lake Analytics account.
///
@@ -679,30 +757,6 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
return _result;
}
- ///
- /// Begins the delete delete process for the Data Lake Analytics account object
- /// specified by the account name.
- ///
- ///
- /// The name of the Azure resource group that contains the Data Lake Analytics
- /// account.
- ///
- ///
- /// The name of the Data Lake Analytics account to delete
- ///
- ///
- /// 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);
- }
-
///
/// Creates the specified Data Lake Analytics account. This supplies the user
/// with computation services for Data Lake Analytics workloads
@@ -718,57 +772,6 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
/// Parameters supplied to the create Data Lake Analytics account operation.
///
///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Updates the Data Lake Analytics account object specified by the accountName
- /// with the contents of the account object.
- ///
- ///
- /// The name of the Azure resource group that contains the Data Lake Analytics
- /// account.
- ///
- ///
- /// The name of the Data Lake Analytics account to update.
- ///
- ///
- /// Parameters supplied to the update Data Lake Analytics account operation.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccountUpdateParameters parameters = default(DataLakeAnalyticsAccountUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Begins the delete delete process for the Data Lake Analytics account object
- /// specified by the account name.
- ///
- ///
- /// The name of the Azure resource group that contains the Data Lake Analytics
- /// account.
- ///
- ///
- /// The name of the Data Lake Analytics account to delete
- ///
- ///
/// Headers that will be added to request.
///
///
@@ -777,6 +780,9 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -786,7 +792,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -796,6 +802,14 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
}
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
+ if (parameters != null)
+ {
+ parameters.Validate();
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -813,8 +827,9 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -834,7 +849,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -865,6 +880,12 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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)
{
@@ -885,7 +906,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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 != 201)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -920,13 +941,49 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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"))
{
_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);
+ }
+ }
+ // 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)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -935,18 +992,18 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
}
///
- /// Creates the specified Data Lake Analytics account. This supplies the user
- /// with computation services for Data Lake Analytics workloads
+ /// Updates the Data Lake Analytics account object specified by the accountName
+ /// with the contents of the account object.
///
///
/// The name of the Azure resource group that contains the Data Lake Analytics
- /// account.the account will be associated with.
+ /// account.
///
///
- /// The name of the Data Lake Analytics account to create.
+ /// The name of the Data Lake Analytics account to update.
///
///
- /// Parameters supplied to the create Data Lake Analytics account operation.
+ /// Parameters supplied to the update Data Lake Analytics account operation.
///
///
/// Headers that will be added to request.
@@ -969,7 +1026,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccountUpdateParameters parameters = default(DataLakeAnalyticsAccountUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -979,14 +1036,6 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "accountName");
}
- if (parameters == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
- }
- if (parameters != null)
- {
- parameters.Validate();
- }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -1006,7 +1055,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -1026,7 +1075,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.Method = new HttpMethod("PATCH");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1083,7 +1132,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 201 && (int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 201)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1126,7 +1175,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
// Deserialize Response
- if ((int)_statusCode == 201)
+ if ((int)_statusCode == 200)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -1144,7 +1193,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
}
}
// Deserialize Response
- if ((int)_statusCode == 200)
+ if ((int)_statusCode == 201)
{
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
@@ -1169,18 +1218,15 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
}
///
- /// Updates the Data Lake Analytics account object specified by the accountName
- /// with the contents of the account object.
+ /// Begins the delete process for the Data Lake Analytics account object
+ /// specified by the account name.
///
///
/// The name of the Azure resource group that contains the Data Lake Analytics
/// account.
///
///
- /// The name of the Data Lake Analytics account to update.
- ///
- ///
- /// Parameters supplied to the update Data Lake Analytics account operation.
+ /// The name of the Data Lake Analytics account to delete
///
///
/// Headers that will be added to request.
@@ -1191,9 +1237,6 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -1203,7 +1246,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccountUpdateParameters parameters = default(DataLakeAnalyticsAccountUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1230,9 +1273,8 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
- tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -1252,7 +1294,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.Method = new HttpMethod("DELETE");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -1283,12 +1325,6 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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)
{
@@ -1309,7 +1345,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200 && (int)_statusCode != 201)
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
{
var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -1344,49 +1380,13 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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"))
{
_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);
- }
- }
- // 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)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -1422,7 +1422,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -1536,7 +1536,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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"))
@@ -1549,7 +1549,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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)
{
@@ -1596,7 +1596,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (nextPageLink == null)
{
@@ -1710,7 +1710,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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"))
@@ -1723,7 +1723,7 @@ internal AccountOperations(DataLakeAnalyticsAccountManagementClient 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/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/AccountOperationsExtensions.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/AccountOperationsExtensions.cs
index 7a3caf61710a..e4ca435e5d64 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/AccountOperationsExtensions.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/AccountOperationsExtensions.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -46,7 +46,7 @@ public static partial class AccountOperationsExtensions
/// resources included with the resources in the response, e.g.
/// Categories?$count=true. Optional.
///
- public static IPage ListByResourceGroup(this IAccountOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?))
+ public static IPage ListByResourceGroup(this IAccountOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?))
{
return operations.ListByResourceGroupAsync(resourceGroupName, odataQuery, select, count).GetAwaiter().GetResult();
}
@@ -77,7 +77,7 @@ public static partial class AccountOperationsExtensions
///
/// The cancellation token.
///
- public static async Task> ListByResourceGroupAsync(this IAccountOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByResourceGroupAsync(this IAccountOperations operations, string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, odataQuery, select, count, null, cancellationToken).ConfigureAwait(false))
{
@@ -104,7 +104,7 @@ public static partial class AccountOperationsExtensions
/// resources included with the resources in the response, e.g.
/// Categories?$count=true. Optional.
///
- public static IPage List(this IAccountOperations operations, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?))
+ public static IPage List(this IAccountOperations operations, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?))
{
return operations.ListAsync(odataQuery, select, count).GetAwaiter().GetResult();
}
@@ -131,7 +131,7 @@ public static partial class AccountOperationsExtensions
///
/// The cancellation token.
///
- public static async Task> ListAsync(this IAccountOperations operations, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAsync(this IAccountOperations operations, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, select, count, null, cancellationToken).ConfigureAwait(false))
{
@@ -139,89 +139,6 @@ public static partial class AccountOperationsExtensions
}
}
- ///
- /// Gets details of the specified Data Lake Analytics account.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the Azure resource group that contains the Data Lake Analytics
- /// account.
- ///
- ///
- /// The name of the Data Lake Analytics account to retrieve.
- ///
- public static DataLakeAnalyticsAccount Get(this IAccountOperations operations, string resourceGroupName, string accountName)
- {
- return operations.GetAsync(resourceGroupName, accountName).GetAwaiter().GetResult();
- }
-
- ///
- /// Gets details of the specified Data Lake Analytics account.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the Azure resource group that contains the Data Lake Analytics
- /// account.
- ///
- ///
- /// The name of the Data Lake Analytics account to retrieve.
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task GetAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
- {
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
- }
-
- ///
- /// Begins the delete delete process for the Data Lake Analytics account object
- /// specified by the account name.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the Azure resource group that contains the Data Lake Analytics
- /// account.
- ///
- ///
- /// The name of the Data Lake Analytics account to delete
- ///
- public static void Delete(this IAccountOperations operations, string resourceGroupName, string accountName)
- {
- operations.DeleteAsync(resourceGroupName, accountName).GetAwaiter().GetResult();
- }
-
- ///
- /// Begins the delete delete process for the Data Lake Analytics account object
- /// specified by the account name.
- ///
- ///
- /// The operations group for this extension method.
- ///
- ///
- /// The name of the Azure resource group that contains the Data Lake Analytics
- /// account.
- ///
- ///
- /// The name of the Data Lake Analytics account to delete
- ///
- ///
- /// The cancellation token.
- ///
- public static async Task DeleteAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
- {
- (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose();
- }
-
///
/// Creates the specified Data Lake Analytics account. This supplies the user
/// with computation services for Data Lake Analytics workloads
@@ -323,7 +240,7 @@ public static DataLakeAnalyticsAccount Create(this IAccountOperations operations
}
///
- /// Begins the delete delete process for the Data Lake Analytics account object
+ /// Begins the delete process for the Data Lake Analytics account object
/// specified by the account name.
///
///
@@ -336,13 +253,13 @@ public static DataLakeAnalyticsAccount Create(this IAccountOperations operations
///
/// The name of the Data Lake Analytics account to delete
///
- public static void BeginDelete(this IAccountOperations operations, string resourceGroupName, string accountName)
+ public static void Delete(this IAccountOperations operations, string resourceGroupName, string accountName)
{
- operations.BeginDeleteAsync(resourceGroupName, accountName).GetAwaiter().GetResult();
+ operations.DeleteAsync(resourceGroupName, accountName).GetAwaiter().GetResult();
}
///
- /// Begins the delete delete process for the Data Lake Analytics account object
+ /// Begins the delete process for the Data Lake Analytics account object
/// specified by the account name.
///
///
@@ -358,9 +275,51 @@ public static void BeginDelete(this IAccountOperations operations, string resour
///
/// The cancellation token.
///
- public static async Task BeginDeleteAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Gets details of the specified Data Lake Analytics account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the Azure resource group that contains the Data Lake Analytics
+ /// account.
+ ///
+ ///
+ /// The name of the Data Lake Analytics account to retrieve.
+ ///
+ public static DataLakeAnalyticsAccount Get(this IAccountOperations operations, string resourceGroupName, string accountName)
+ {
+ return operations.GetAsync(resourceGroupName, accountName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets details of the specified Data Lake Analytics account.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the Azure resource group that contains the Data Lake Analytics
+ /// account.
+ ///
+ ///
+ /// The name of the Data Lake Analytics account to retrieve.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
@@ -463,6 +422,47 @@ public static DataLakeAnalyticsAccount BeginCreate(this IAccountOperations opera
}
}
+ ///
+ /// Begins the delete process for the Data Lake Analytics account object
+ /// specified by the account name.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the Azure resource group that contains the Data Lake Analytics
+ /// account.
+ ///
+ ///
+ /// The name of the Data Lake Analytics account to delete
+ ///
+ public static void BeginDelete(this IAccountOperations operations, string resourceGroupName, string accountName)
+ {
+ operations.BeginDeleteAsync(resourceGroupName, accountName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Begins the delete process for the Data Lake Analytics account object
+ /// specified by the account name.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the Azure resource group that contains the Data Lake Analytics
+ /// account.
+ ///
+ ///
+ /// The name of the Data Lake Analytics account to delete
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginDeleteAsync(this IAccountOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
///
/// Gets the first page of Data Lake Analytics accounts, if any, within a
/// specific resource group. This includes a link to the next page, if any.
@@ -473,7 +473,7 @@ public static DataLakeAnalyticsAccount BeginCreate(this IAccountOperations opera
///
/// The NextLink from the previous successful call to List operation.
///
- public static IPage ListByResourceGroupNext(this IAccountOperations operations, string nextPageLink)
+ public static IPage ListByResourceGroupNext(this IAccountOperations operations, string nextPageLink)
{
return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult();
}
@@ -491,7 +491,7 @@ public static IPage ListByResourceGroupNext(this IAcco
///
/// The cancellation token.
///
- public static async Task> ListByResourceGroupNextAsync(this IAccountOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListByResourceGroupNextAsync(this IAccountOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
@@ -509,7 +509,7 @@ public static IPage ListByResourceGroupNext(this IAcco
///
/// The NextLink from the previous successful call to List operation.
///
- public static IPage ListNext(this IAccountOperations operations, string nextPageLink)
+ public static IPage ListNext(this IAccountOperations operations, string nextPageLink)
{
return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult();
}
@@ -527,7 +527,7 @@ public static IPage ListNext(this IAccountOperations o
///
/// The cancellation token.
///
- public static async Task> ListNextAsync(this IAccountOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListNextAsync(this IAccountOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
{
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/CatalogOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/CatalogOperations.cs
index b8f574631ab2..72f2e0b0b49c 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/CatalogOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/CatalogOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -461,8 +461,9 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
}
///
- /// Gets the specified secret in the specified database. This is deprecated and
- /// will be removed in the next release. Please use GetCredential instead.
+ /// Deletes the specified secret in the specified database. This is deprecated
+ /// and will be removed in the next release. Please use DeleteCredential
+ /// instead.
///
///
/// The Azure Data Lake Analytics account upon which to execute catalog
@@ -472,7 +473,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// The name of the database containing the secret.
///
///
- /// The name of the secret to get
+ /// The name of the secret to delete
///
///
/// Headers that will be added to request.
@@ -483,9 +484,6 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -496,7 +494,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// A response object containing the response body and response headers.
///
[System.Obsolete()]
- public async Task> GetSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
{
@@ -529,7 +527,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("secretName", secretName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetSecret", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "DeleteSecret", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
@@ -550,7 +548,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("DELETE");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -636,31 +634,13 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient 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"))
{
_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);
@@ -669,9 +649,8 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
}
///
- /// Deletes the specified secret in the specified database. This is deprecated
- /// and will be removed in the next release. Please use DeleteCredential
- /// instead.
+ /// Gets the specified secret in the specified database. This is deprecated and
+ /// will be removed in the next release. Please use GetCredential instead.
///
///
/// The Azure Data Lake Analytics account upon which to execute catalog
@@ -681,7 +660,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// The name of the database containing the secret.
///
///
- /// The name of the secret to delete
+ /// The name of the secret to get
///
///
/// Headers that will be added to request.
@@ -692,6 +671,9 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -702,7 +684,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// A response object containing the response body and response headers.
///
[System.Obsolete()]
- public async Task DeleteSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
{
@@ -735,7 +717,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("secretName", secretName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "DeleteSecret", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetSecret", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
@@ -756,7 +738,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("DELETE");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -842,13 +824,31 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient 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"))
{
_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);
@@ -886,6 +886,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
///
/// A response object containing the response body and response headers.
///
+ [System.Obsolete()]
public async Task DeleteAllSecretsWithHttpMessagesAsync(string accountName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
@@ -1441,17 +1442,26 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
}
///
- /// Retrieves the specified credential from the Data Lake Analytics catalog.
+ /// Deletes the specified credential in the specified database
///
///
/// The Azure Data Lake Analytics account upon which to execute catalog
/// operations.
///
///
- /// The name of the database containing the schema.
+ /// The name of the database containing the credential.
///
///
- /// The name of the credential.
+ /// The name of the credential to delete
+ ///
+ ///
+ /// The parameters to delete a credential if the current user is not the
+ /// account owner.
+ ///
+ ///
+ /// Indicates if the delete should be a cascading delete (which deletes all
+ /// resources dependent on the credential as well as the credential) or not. If
+ /// false will fail if there are any resources relying on the credential.
///
///
/// Headers that will be added to request.
@@ -1462,9 +1472,6 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -1474,7 +1481,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialDeleteParameters parameters = default(DataLakeAnalyticsCatalogCredentialDeleteParameters), bool? cascade = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
{
@@ -1506,8 +1513,10 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("credentialName", credentialName);
+ tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("cascade", cascade);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetCredential", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "DeleteCredential", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
@@ -1517,6 +1526,10 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
_url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
_url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName));
List _queryParameters = new List();
+ if (cascade != null)
+ {
+ _queryParameters.Add(string.Format("cascade={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cascade, Client.SerializationSettings).Trim('"'))));
+ }
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
@@ -1528,7 +1541,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient 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)
@@ -1559,6 +1572,12 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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)
{
@@ -1614,31 +1633,13 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient 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"))
{
_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);
@@ -1647,26 +1648,17 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
}
///
- /// Deletes the specified credential in the specified database
+ /// Retrieves the specified credential from the Data Lake Analytics catalog.
///
///
/// The Azure Data Lake Analytics account upon which to execute catalog
/// operations.
///
///
- /// The name of the database containing the credential.
+ /// The name of the database containing the schema.
///
///
- /// The name of the credential to delete
- ///
- ///
- /// The parameters to delete a credential if the current user is not the
- /// account owner.
- ///
- ///
- /// Indicates if the delete should be a cascading delete (which deletes all
- /// resources dependent on the credential as well as the credential) or not. If
- /// false will fail if there are any resources relying on the credential.
+ /// The name of the credential.
///
///
/// Headers that will be added to request.
@@ -1677,6 +1669,9 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -1686,7 +1681,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task DeleteCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialDeleteParameters parameters = default(DataLakeAnalyticsCatalogCredentialDeleteParameters), bool? cascade = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
{
@@ -1718,10 +1713,8 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("databaseName", databaseName);
tracingParameters.Add("credentialName", credentialName);
- tracingParameters.Add("parameters", parameters);
- tracingParameters.Add("cascade", cascade);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "DeleteCredential", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetCredential", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
@@ -1731,10 +1724,6 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
_url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName));
_url = _url.Replace("{credentialName}", System.Uri.EscapeDataString(credentialName));
List _queryParameters = new List();
- if (cascade != null)
- {
- _queryParameters.Add(string.Format("cascade={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cascade, Client.SerializationSettings).Trim('"'))));
- }
if (Client.ApiVersion != null)
{
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
@@ -1746,7 +1735,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient 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)
@@ -1777,12 +1766,6 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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)
{
@@ -1838,13 +1821,31 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient 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"))
{
_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);
@@ -3212,7 +3213,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// The basic switch indicates what level of information to return when listing
/// tables. When basic is true, only database_name, schema_name, table_name and
/// version are returned for each table, otherwise all table metadata is
- /// returned. By default, it is false
+ /// returned. By default, it is false. Optional.
///
///
/// Headers that will be added to request.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/CatalogOperationsExtensions.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/CatalogOperationsExtensions.cs
index bfd84496504d..c881f7a903cd 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/CatalogOperationsExtensions.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/CatalogOperationsExtensions.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -138,8 +138,9 @@ public static void UpdateSecret(this ICatalogOperations operations, string accou
}
///
- /// Gets the specified secret in the specified database. This is deprecated and
- /// will be removed in the next release. Please use GetCredential instead.
+ /// Deletes the specified secret in the specified database. This is deprecated
+ /// and will be removed in the next release. Please use DeleteCredential
+ /// instead.
///
///
/// The operations group for this extension method.
@@ -152,17 +153,18 @@ public static void UpdateSecret(this ICatalogOperations operations, string accou
/// The name of the database containing the secret.
///
///
- /// The name of the secret to get
+ /// The name of the secret to delete
///
[System.Obsolete()]
- public static USqlSecret GetSecret(this ICatalogOperations operations, string accountName, string databaseName, string secretName)
+ public static void DeleteSecret(this ICatalogOperations operations, string accountName, string databaseName, string secretName)
{
- return operations.GetSecretAsync(accountName, databaseName, secretName).GetAwaiter().GetResult();
+ operations.DeleteSecretAsync(accountName, databaseName, secretName).GetAwaiter().GetResult();
}
///
- /// Gets the specified secret in the specified database. This is deprecated and
- /// will be removed in the next release. Please use GetCredential instead.
+ /// Deletes the specified secret in the specified database. This is deprecated
+ /// and will be removed in the next release. Please use DeleteCredential
+ /// instead.
///
///
/// The operations group for this extension method.
@@ -175,24 +177,20 @@ public static USqlSecret GetSecret(this ICatalogOperations operations, string ac
/// The name of the database containing the secret.
///
///
- /// The name of the secret to get
+ /// The name of the secret to delete
///
///
/// The cancellation token.
///
[System.Obsolete()]
- public static async Task GetSecretAsync(this ICatalogOperations operations, string accountName, string databaseName, string secretName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteSecretAsync(this ICatalogOperations operations, string accountName, string databaseName, string secretName, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetSecretWithHttpMessagesAsync(accountName, databaseName, secretName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.DeleteSecretWithHttpMessagesAsync(accountName, databaseName, secretName, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
- /// Deletes the specified secret in the specified database. This is deprecated
- /// and will be removed in the next release. Please use DeleteCredential
- /// instead.
+ /// Gets the specified secret in the specified database. This is deprecated and
+ /// will be removed in the next release. Please use GetCredential instead.
///
///
/// The operations group for this extension method.
@@ -205,18 +203,17 @@ public static USqlSecret GetSecret(this ICatalogOperations operations, string ac
/// The name of the database containing the secret.
///
///
- /// The name of the secret to delete
+ /// The name of the secret to get
///
[System.Obsolete()]
- public static void DeleteSecret(this ICatalogOperations operations, string accountName, string databaseName, string secretName)
+ public static USqlSecret GetSecret(this ICatalogOperations operations, string accountName, string databaseName, string secretName)
{
- operations.DeleteSecretAsync(accountName, databaseName, secretName).GetAwaiter().GetResult();
+ return operations.GetSecretAsync(accountName, databaseName, secretName).GetAwaiter().GetResult();
}
///
- /// Deletes the specified secret in the specified database. This is deprecated
- /// and will be removed in the next release. Please use DeleteCredential
- /// instead.
+ /// Gets the specified secret in the specified database. This is deprecated and
+ /// will be removed in the next release. Please use GetCredential instead.
///
///
/// The operations group for this extension method.
@@ -229,15 +226,18 @@ public static void DeleteSecret(this ICatalogOperations operations, string accou
/// The name of the database containing the secret.
///
///
- /// The name of the secret to delete
+ /// The name of the secret to get
///
///
/// The cancellation token.
///
[System.Obsolete()]
- public static async Task DeleteSecretAsync(this ICatalogOperations operations, string accountName, string databaseName, string secretName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetSecretAsync(this ICatalogOperations operations, string accountName, string databaseName, string secretName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteSecretWithHttpMessagesAsync(accountName, databaseName, secretName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.GetSecretWithHttpMessagesAsync(accountName, databaseName, secretName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
@@ -255,6 +255,7 @@ public static void DeleteSecret(this ICatalogOperations operations, string accou
///
/// The name of the database containing the secret.
///
+ [System.Obsolete()]
public static void DeleteAllSecrets(this ICatalogOperations operations, string accountName, string databaseName)
{
operations.DeleteAllSecretsAsync(accountName, databaseName).GetAwaiter().GetResult();
@@ -278,6 +279,7 @@ public static void DeleteAllSecrets(this ICatalogOperations operations, string a
///
/// The cancellation token.
///
+ [System.Obsolete()]
public static async Task DeleteAllSecretsAsync(this ICatalogOperations operations, string accountName, string databaseName, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.DeleteAllSecretsWithHttpMessagesAsync(accountName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose();
@@ -394,7 +396,7 @@ public static void UpdateCredential(this ICatalogOperations operations, string a
}
///
- /// Retrieves the specified credential from the Data Lake Analytics catalog.
+ /// Deletes the specified credential in the specified database
///
///
/// The operations group for this extension method.
@@ -404,18 +406,27 @@ public static void UpdateCredential(this ICatalogOperations operations, string a
/// operations.
///
///
- /// The name of the database containing the schema.
+ /// The name of the database containing the credential.
///
///
- /// The name of the credential.
+ /// The name of the credential to delete
///
- public static USqlCredential GetCredential(this ICatalogOperations operations, string accountName, string databaseName, string credentialName)
+ ///
+ /// The parameters to delete a credential if the current user is not the
+ /// account owner.
+ ///
+ ///
+ /// Indicates if the delete should be a cascading delete (which deletes all
+ /// resources dependent on the credential as well as the credential) or not. If
+ /// false will fail if there are any resources relying on the credential.
+ ///
+ public static void DeleteCredential(this ICatalogOperations operations, string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialDeleteParameters parameters = default(DataLakeAnalyticsCatalogCredentialDeleteParameters), bool? cascade = false)
{
- return operations.GetCredentialAsync(accountName, databaseName, credentialName).GetAwaiter().GetResult();
+ operations.DeleteCredentialAsync(accountName, databaseName, credentialName, parameters, cascade).GetAwaiter().GetResult();
}
///
- /// Retrieves the specified credential from the Data Lake Analytics catalog.
+ /// Deletes the specified credential in the specified database
///
///
/// The operations group for this extension method.
@@ -425,24 +436,30 @@ public static USqlCredential GetCredential(this ICatalogOperations operations, s
/// operations.
///
///
- /// The name of the database containing the schema.
+ /// The name of the database containing the credential.
///
///
- /// The name of the credential.
+ /// The name of the credential to delete
+ ///
+ ///
+ /// The parameters to delete a credential if the current user is not the
+ /// account owner.
+ ///
+ ///
+ /// Indicates if the delete should be a cascading delete (which deletes all
+ /// resources dependent on the credential as well as the credential) or not. If
+ /// false will fail if there are any resources relying on the credential.
///
///
/// The cancellation token.
///
- public static async Task GetCredentialAsync(this ICatalogOperations operations, string accountName, string databaseName, string credentialName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteCredentialAsync(this ICatalogOperations operations, string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialDeleteParameters parameters = default(DataLakeAnalyticsCatalogCredentialDeleteParameters), bool? cascade = false, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetCredentialWithHttpMessagesAsync(accountName, databaseName, credentialName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.DeleteCredentialWithHttpMessagesAsync(accountName, databaseName, credentialName, parameters, cascade, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
- /// Deletes the specified credential in the specified database
+ /// Retrieves the specified credential from the Data Lake Analytics catalog.
///
///
/// The operations group for this extension method.
@@ -452,27 +469,18 @@ public static USqlCredential GetCredential(this ICatalogOperations operations, s
/// operations.
///
///
- /// The name of the database containing the credential.
+ /// The name of the database containing the schema.
///
///
- /// The name of the credential to delete
- ///
- ///
- /// The parameters to delete a credential if the current user is not the
- /// account owner.
- ///
- ///
- /// Indicates if the delete should be a cascading delete (which deletes all
- /// resources dependent on the credential as well as the credential) or not. If
- /// false will fail if there are any resources relying on the credential.
+ /// The name of the credential.
///
- public static void DeleteCredential(this ICatalogOperations operations, string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialDeleteParameters parameters = default(DataLakeAnalyticsCatalogCredentialDeleteParameters), bool? cascade = false)
+ public static USqlCredential GetCredential(this ICatalogOperations operations, string accountName, string databaseName, string credentialName)
{
- operations.DeleteCredentialAsync(accountName, databaseName, credentialName, parameters, cascade).GetAwaiter().GetResult();
+ return operations.GetCredentialAsync(accountName, databaseName, credentialName).GetAwaiter().GetResult();
}
///
- /// Deletes the specified credential in the specified database
+ /// Retrieves the specified credential from the Data Lake Analytics catalog.
///
///
/// The operations group for this extension method.
@@ -482,26 +490,20 @@ public static USqlCredential GetCredential(this ICatalogOperations operations, s
/// operations.
///
///
- /// The name of the database containing the credential.
+ /// The name of the database containing the schema.
///
///
- /// The name of the credential to delete
- ///
- ///
- /// The parameters to delete a credential if the current user is not the
- /// account owner.
- ///
- ///
- /// Indicates if the delete should be a cascading delete (which deletes all
- /// resources dependent on the credential as well as the credential) or not. If
- /// false will fail if there are any resources relying on the credential.
+ /// The name of the credential.
///
///
/// The cancellation token.
///
- public static async Task DeleteCredentialAsync(this ICatalogOperations operations, string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialDeleteParameters parameters = default(DataLakeAnalyticsCatalogCredentialDeleteParameters), bool? cascade = false, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetCredentialAsync(this ICatalogOperations operations, string accountName, string databaseName, string credentialName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.DeleteCredentialWithHttpMessagesAsync(accountName, databaseName, credentialName, parameters, cascade, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.GetCredentialWithHttpMessagesAsync(accountName, databaseName, credentialName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
@@ -900,7 +902,7 @@ public static USqlTable GetTable(this ICatalogOperations operations, string acco
/// The basic switch indicates what level of information to return when listing
/// tables. When basic is true, only database_name, schema_name, table_name and
/// version are returned for each table, otherwise all table metadata is
- /// returned. By default, it is false
+ /// returned. By default, it is false. Optional.
///
public static IPage ListTables(this ICatalogOperations operations, string accountName, string databaseName, string schemaName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), bool? basic = false)
{
@@ -939,7 +941,7 @@ public static USqlTable GetTable(this ICatalogOperations operations, string acco
/// The basic switch indicates what level of information to return when listing
/// tables. When basic is true, only database_name, schema_name, table_name and
/// version are returned for each table, otherwise all table metadata is
- /// returned. By default, it is false
+ /// returned. By default, it is false. Optional.
///
///
/// The cancellation token.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ComputePoliciesOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ComputePoliciesOperations.cs
index 0d621687f32e..3f85b675ec59 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ComputePoliciesOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ComputePoliciesOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ComputePoliciesOperationsExtensions.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ComputePoliciesOperationsExtensions.cs
index 5c16fc53e1e0..38d416f3802f 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ComputePoliciesOperationsExtensions.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ComputePoliciesOperationsExtensions.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsAccountManagementClient.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsAccountManagementClient.cs
index e5c9beaf36b4..8caf6176912a 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsAccountManagementClient.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsAccountManagementClient.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsCatalogManagementClient.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsCatalogManagementClient.cs
index 4b88c72a7e19..86237949bcaf 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsCatalogManagementClient.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsCatalogManagementClient.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsJobManagementClient.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsJobManagementClient.cs
index 1136134f5d1c..0e60a58f5292 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsJobManagementClient.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeAnalyticsJobManagementClient.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -213,6 +213,8 @@ private void Initialize()
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("type"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("type"));
CustomInitialize();
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
}
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeStoreAccountsOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeStoreAccountsOperations.cs
index 711d882f6a74..b0a4e5decb3c 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeStoreAccountsOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeStoreAccountsOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -53,19 +53,22 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
public DataLakeAnalyticsAccountManagementClient Client { get; private set; }
///
- /// Gets the specified Data Lake Store account details in the specified Data
- /// Lake Analytics account.
+ /// Updates the specified Data Lake Analytics account to include the additional
+ /// Data Lake Store account.
///
///
/// The name of the Azure resource group that contains the Data Lake Analytics
/// account.
///
///
- /// The name of the Data Lake Analytics account from which to retrieve the Data
- /// Lake Store account details.
+ /// The name of the Data Lake Analytics account to which to add the Data Lake
+ /// Store account.
///
///
- /// The name of the Data Lake Store account to retrieve
+ /// The name of the Data Lake Store account to add.
+ ///
+ ///
+ /// The details of the Data Lake Store account.
///
///
/// Headers that will be added to request.
@@ -76,9 +79,6 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -88,7 +88,7 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string dataLakeStoreAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task AddWithHttpMessagesAsync(string resourceGroupName, string accountName, string dataLakeStoreAccountName, AddDataLakeStoreParameters parameters = default(AddDataLakeStoreParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -120,8 +120,9 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("dataLakeStoreAccountName", dataLakeStoreAccountName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Add", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -142,7 +143,7 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -173,6 +174,12 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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)
{
@@ -228,31 +235,13 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
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"))
{
_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);
@@ -448,22 +437,19 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
}
///
- /// Updates the specified Data Lake Analytics account to include the additional
- /// Data Lake Store account.
+ /// Gets the specified Data Lake Store account details in the specified Data
+ /// Lake Analytics account.
///
///
/// The name of the Azure resource group that contains the Data Lake Analytics
/// account.
///
///
- /// The name of the Data Lake Analytics account to which to add the Data Lake
- /// Store account.
+ /// The name of the Data Lake Analytics account from which to retrieve the Data
+ /// Lake Store account details.
///
///
- /// The name of the Data Lake Store account to add.
- ///
- ///
- /// The details of the Data Lake Store account.
+ /// The name of the Data Lake Store account to retrieve
///
///
/// Headers that will be added to request.
@@ -474,6 +460,9 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
@@ -483,7 +472,7 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
///
/// A response object containing the response body and response headers.
///
- public async Task AddWithHttpMessagesAsync(string resourceGroupName, string accountName, string dataLakeStoreAccountName, AddDataLakeStoreParameters parameters = default(AddDataLakeStoreParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string dataLakeStoreAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -515,9 +504,8 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("accountName", accountName);
tracingParameters.Add("dataLakeStoreAccountName", dataLakeStoreAccountName);
- tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Add", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
@@ -538,7 +526,7 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -569,12 +557,6 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, 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)
{
@@ -630,13 +612,31 @@ internal DataLakeStoreAccountsOperations(DataLakeAnalyticsAccountManagementClien
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"))
{
_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);
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeStoreAccountsOperationsExtensions.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeStoreAccountsOperationsExtensions.cs
index 6f9abab3d6e7..de6d83e0081c 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeStoreAccountsOperationsExtensions.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/DataLakeStoreAccountsOperationsExtensions.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -24,8 +24,8 @@ namespace Microsoft.Azure.Management.DataLake.Analytics
public static partial class DataLakeStoreAccountsOperationsExtensions
{
///
- /// Gets the specified Data Lake Store account details in the specified Data
- /// Lake Analytics account.
+ /// Updates the specified Data Lake Analytics account to include the additional
+ /// Data Lake Store account.
///
///
/// The operations group for this extension method.
@@ -35,20 +35,23 @@ public static partial class DataLakeStoreAccountsOperationsExtensions
/// account.
///
///
- /// The name of the Data Lake Analytics account from which to retrieve the Data
- /// Lake Store account details.
+ /// The name of the Data Lake Analytics account to which to add the Data Lake
+ /// Store account.
///
///
- /// The name of the Data Lake Store account to retrieve
+ /// The name of the Data Lake Store account to add.
///
- public static DataLakeStoreAccountInfo Get(this IDataLakeStoreAccountsOperations operations, string resourceGroupName, string accountName, string dataLakeStoreAccountName)
+ ///
+ /// The details of the Data Lake Store account.
+ ///
+ public static void Add(this IDataLakeStoreAccountsOperations operations, string resourceGroupName, string accountName, string dataLakeStoreAccountName, AddDataLakeStoreParameters parameters = default(AddDataLakeStoreParameters))
{
- return operations.GetAsync(resourceGroupName, accountName, dataLakeStoreAccountName).GetAwaiter().GetResult();
+ operations.AddAsync(resourceGroupName, accountName, dataLakeStoreAccountName, parameters).GetAwaiter().GetResult();
}
///
- /// Gets the specified Data Lake Store account details in the specified Data
- /// Lake Analytics account.
+ /// Updates the specified Data Lake Analytics account to include the additional
+ /// Data Lake Store account.
///
///
/// The operations group for this extension method.
@@ -58,21 +61,21 @@ public static DataLakeStoreAccountInfo Get(this IDataLakeStoreAccountsOperations
/// account.
///
///
- /// The name of the Data Lake Analytics account from which to retrieve the Data
- /// Lake Store account details.
+ /// The name of the Data Lake Analytics account to which to add the Data Lake
+ /// Store account.
///
///
- /// The name of the Data Lake Store account to retrieve
+ /// The name of the Data Lake Store account to add.
+ ///
+ ///
+ /// The details of the Data Lake Store account.
///
///
/// The cancellation token.
///
- public static async Task GetAsync(this IDataLakeStoreAccountsOperations operations, string resourceGroupName, string accountName, string dataLakeStoreAccountName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task AddAsync(this IDataLakeStoreAccountsOperations operations, string resourceGroupName, string accountName, string dataLakeStoreAccountName, AddDataLakeStoreParameters parameters = default(AddDataLakeStoreParameters), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, dataLakeStoreAccountName, null, cancellationToken).ConfigureAwait(false))
- {
- return _result.Body;
- }
+ (await operations.AddWithHttpMessagesAsync(resourceGroupName, accountName, dataLakeStoreAccountName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
@@ -125,8 +128,8 @@ public static void Delete(this IDataLakeStoreAccountsOperations operations, stri
}
///
- /// Updates the specified Data Lake Analytics account to include the additional
- /// Data Lake Store account.
+ /// Gets the specified Data Lake Store account details in the specified Data
+ /// Lake Analytics account.
///
///
/// The operations group for this extension method.
@@ -136,23 +139,20 @@ public static void Delete(this IDataLakeStoreAccountsOperations operations, stri
/// account.
///
///
- /// The name of the Data Lake Analytics account to which to add the Data Lake
- /// Store account.
+ /// The name of the Data Lake Analytics account from which to retrieve the Data
+ /// Lake Store account details.
///
///
- /// The name of the Data Lake Store account to add.
- ///
- ///
- /// The details of the Data Lake Store account.
+ /// The name of the Data Lake Store account to retrieve
///
- public static void Add(this IDataLakeStoreAccountsOperations operations, string resourceGroupName, string accountName, string dataLakeStoreAccountName, AddDataLakeStoreParameters parameters = default(AddDataLakeStoreParameters))
+ public static DataLakeStoreAccountInfo Get(this IDataLakeStoreAccountsOperations operations, string resourceGroupName, string accountName, string dataLakeStoreAccountName)
{
- operations.AddAsync(resourceGroupName, accountName, dataLakeStoreAccountName, parameters).GetAwaiter().GetResult();
+ return operations.GetAsync(resourceGroupName, accountName, dataLakeStoreAccountName).GetAwaiter().GetResult();
}
///
- /// Updates the specified Data Lake Analytics account to include the additional
- /// Data Lake Store account.
+ /// Gets the specified Data Lake Store account details in the specified Data
+ /// Lake Analytics account.
///
///
/// The operations group for this extension method.
@@ -162,21 +162,21 @@ public static void Delete(this IDataLakeStoreAccountsOperations operations, stri
/// account.
///
///
- /// The name of the Data Lake Analytics account to which to add the Data Lake
- /// Store account.
+ /// The name of the Data Lake Analytics account from which to retrieve the Data
+ /// Lake Store account details.
///
///
- /// The name of the Data Lake Store account to add.
- ///
- ///
- /// The details of the Data Lake Store account.
+ /// The name of the Data Lake Store account to retrieve
///
///
/// The cancellation token.
///
- public static async Task AddAsync(this IDataLakeStoreAccountsOperations operations, string resourceGroupName, string accountName, string dataLakeStoreAccountName, AddDataLakeStoreParameters parameters = default(AddDataLakeStoreParameters), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IDataLakeStoreAccountsOperations operations, string resourceGroupName, string accountName, string dataLakeStoreAccountName, CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.AddWithHttpMessagesAsync(resourceGroupName, accountName, dataLakeStoreAccountName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, dataLakeStoreAccountName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
}
///
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/FirewallRulesOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/FirewallRulesOperations.cs
index 64f127def815..242fbbe588eb 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/FirewallRulesOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/FirewallRulesOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/FirewallRulesOperationsExtensions.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/FirewallRulesOperationsExtensions.cs
index bf67e85ecad9..295e16a88f56 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/FirewallRulesOperationsExtensions.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/FirewallRulesOperationsExtensions.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IAccountOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IAccountOperations.cs
index 55367b8c600a..86010f087069 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IAccountOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IAccountOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -62,7 +62,7 @@ public partial interface IAccountOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the first page of Data Lake Analytics accounts, if any, within
/// the current subscription. This includes a link to the next page, if
@@ -96,16 +96,22 @@ public partial interface IAccountOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), string select = default(string), bool? count = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets details of the specified Data Lake Analytics account.
+ /// Creates the specified Data Lake Analytics account. This supplies
+ /// the user with computation services for Data Lake Analytics
+ /// workloads
///
///
/// The name of the Azure resource group that contains the Data Lake
- /// Analytics account.
+ /// Analytics account.the account will be associated with.
///
///
- /// The name of the Data Lake Analytics account to retrieve.
+ /// The name of the Data Lake Analytics account to create.
+ ///
+ ///
+ /// Parameters supplied to the create Data Lake Analytics account
+ /// operation.
///
///
/// The headers that will be added to request.
@@ -122,45 +128,20 @@ public partial interface IAccountOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Begins the delete delete process for the Data Lake Analytics
- /// account object specified by the account name.
+ /// Updates the Data Lake Analytics account object specified by the
+ /// accountName with the contents of the account object.
///
///
/// The name of the Azure resource group that contains the Data Lake
/// Analytics account.
///
///
- /// The name of the Data Lake Analytics account to delete
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- ///
- /// Thrown when the operation returned an invalid status code
- ///
- ///
- /// Thrown when a required parameter is null
- ///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
- ///
- /// Creates the specified Data Lake Analytics account. This supplies
- /// the user with computation services for Data Lake Analytics
- /// workloads
- ///
- ///
- /// The name of the Azure resource group that contains the Data Lake
- /// Analytics account.the account will be associated with.
- ///
- ///
- /// The name of the Data Lake Analytics account to create.
+ /// The name of the Data Lake Analytics account to update.
///
///
- /// Parameters supplied to the create Data Lake Analytics account
+ /// Parameters supplied to the update Data Lake Analytics account
/// operation.
///
///
@@ -178,21 +159,17 @@ public partial interface IAccountOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccount parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccountUpdateParameters parameters = default(DataLakeAnalyticsAccountUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Updates the Data Lake Analytics account object specified by the
- /// accountName with the contents of the account object.
+ /// Begins the delete process for the Data Lake Analytics account
+ /// object specified by the account name.
///
///
/// The name of the Azure resource group that contains the Data Lake
/// Analytics account.
///
///
- /// The name of the Data Lake Analytics account to update.
- ///
- ///
- /// Parameters supplied to the update Data Lake Analytics account
- /// operation.
+ /// The name of the Data Lake Analytics account to delete
///
///
/// The headers that will be added to request.
@@ -203,23 +180,19 @@ public partial interface IAccountOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccountUpdateParameters parameters = default(DataLakeAnalyticsAccountUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Begins the delete delete process for the Data Lake Analytics
- /// account object specified by the account name.
+ /// Gets details of the specified Data Lake Analytics account.
///
///
/// The name of the Azure resource group that contains the Data Lake
/// Analytics account.
///
///
- /// The name of the Data Lake Analytics account to delete
+ /// The name of the Data Lake Analytics account to retrieve.
///
///
/// The headers that will be added to request.
@@ -230,10 +203,13 @@ public partial interface IAccountOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates the specified Data Lake Analytics account. This supplies
/// the user with computation services for Data Lake Analytics
@@ -298,6 +274,30 @@ public partial interface IAccountOperations
///
Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, DataLakeAnalyticsAccountUpdateParameters parameters = default(DataLakeAnalyticsAccountUpdateParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Begins the delete process for the Data Lake Analytics account
+ /// object specified by the account name.
+ ///
+ ///
+ /// The name of the Azure resource group that contains the Data Lake
+ /// Analytics account.
+ ///
+ ///
+ /// The name of the Data Lake Analytics account to delete
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets the first page of Data Lake Analytics accounts, if any, within
/// a specific resource group. This includes a link to the next page,
/// if any.
@@ -320,7 +320,7 @@ public partial interface IAccountOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the first page of Data Lake Analytics accounts, if any, within
/// the current subscription. This includes a link to the next page, if
@@ -344,6 +344,6 @@ public partial interface IAccountOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ICatalogOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ICatalogOperations.cs
index e4a86b41e946..a917e8ba4354 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ICatalogOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/ICatalogOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -90,9 +90,9 @@ public partial interface ICatalogOperations
[System.Obsolete()]
Task UpdateSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets the specified secret in the specified database. This is
+ /// Deletes the specified secret in the specified database. This is
/// deprecated and will be removed in the next release. Please use
- /// GetCredential instead.
+ /// DeleteCredential instead.
///
///
/// The Azure Data Lake Analytics account upon which to execute catalog
@@ -102,7 +102,7 @@ public partial interface ICatalogOperations
/// The name of the database containing the secret.
///
///
- /// The name of the secret to get
+ /// The name of the secret to delete
///
///
/// The headers that will be added to request.
@@ -113,18 +113,15 @@ public partial interface ICatalogOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
[System.Obsolete()]
- Task> GetSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes the specified secret in the specified database. This is
+ /// Gets the specified secret in the specified database. This is
/// deprecated and will be removed in the next release. Please use
- /// DeleteCredential instead.
+ /// GetCredential instead.
///
///
/// The Azure Data Lake Analytics account upon which to execute catalog
@@ -134,7 +131,7 @@ public partial interface ICatalogOperations
/// The name of the database containing the secret.
///
///
- /// The name of the secret to delete
+ /// The name of the secret to get
///
///
/// The headers that will be added to request.
@@ -145,11 +142,14 @@ public partial interface ICatalogOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
[System.Obsolete()]
- Task DeleteSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes all secrets in the specified database. This is deprecated
/// and will be removed in the next release. In the future, please only
@@ -168,12 +168,13 @@ public partial interface ICatalogOperations
///
/// The cancellation token.
///
- ///
+ ///
/// Thrown when the operation returned an invalid status code
///
- ///
+ ///
/// Thrown when a required parameter is null
///
+ [System.Obsolete()]
Task DeleteAllSecretsWithHttpMessagesAsync(string accountName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Creates the specified credential for use with external data sources
@@ -240,18 +241,27 @@ public partial interface ICatalogOperations
///
Task UpdateCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Retrieves the specified credential from the Data Lake Analytics
- /// catalog.
+ /// Deletes the specified credential in the specified database
///
///
/// The Azure Data Lake Analytics account upon which to execute catalog
/// operations.
///
///
- /// The name of the database containing the schema.
+ /// The name of the database containing the credential.
///
///
- /// The name of the credential.
+ /// The name of the credential to delete
+ ///
+ ///
+ /// The parameters to delete a credential if the current user is not
+ /// the account owner.
+ ///
+ ///
+ /// Indicates if the delete should be a cascading delete (which deletes
+ /// all resources dependent on the credential as well as the
+ /// credential) or not. If false will fail if there are any resources
+ /// relying on the credential.
///
///
/// The headers that will be added to request.
@@ -262,35 +272,23 @@ public partial interface ICatalogOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> GetCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialDeleteParameters parameters = default(DataLakeAnalyticsCatalogCredentialDeleteParameters), bool? cascade = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes the specified credential in the specified database
+ /// Retrieves the specified credential from the Data Lake Analytics
+ /// catalog.
///
///
/// The Azure Data Lake Analytics account upon which to execute catalog
/// operations.
///
///
- /// The name of the database containing the credential.
+ /// The name of the database containing the schema.
///
///
- /// The name of the credential to delete
- ///
- ///
- /// The parameters to delete a credential if the current user is not
- /// the account owner.
- ///
- ///
- /// Indicates if the delete should be a cascading delete (which deletes
- /// all resources dependent on the credential as well as the
- /// credential) or not. If false will fail if there are any resources
- /// relying on the credential.
+ /// The name of the credential.
///
///
/// The headers that will be added to request.
@@ -301,10 +299,13 @@ public partial interface ICatalogOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task DeleteCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, DataLakeAnalyticsCatalogCredentialDeleteParameters parameters = default(DataLakeAnalyticsCatalogCredentialDeleteParameters), bool? cascade = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetCredentialWithHttpMessagesAsync(string accountName, string databaseName, string credentialName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Retrieves the list of credentials from the Data Lake Analytics
/// catalog.
@@ -553,7 +554,8 @@ public partial interface ICatalogOperations
/// The basic switch indicates what level of information to return when
/// listing tables. When basic is true, only database_name,
/// schema_name, table_name and version are returned for each table,
- /// otherwise all table metadata is returned. By default, it is false
+ /// otherwise all table metadata is returned. By default, it is false.
+ /// Optional.
///
///
/// The headers that will be added to request.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IComputePoliciesOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IComputePoliciesOperations.cs
index 91e21d0458bb..6f1568269716 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IComputePoliciesOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IComputePoliciesOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsAccountManagementClient.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsAccountManagementClient.cs
index 583ebfa4fdcd..0cf9cfcfb57a 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsAccountManagementClient.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsAccountManagementClient.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsCatalogManagementClient.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsCatalogManagementClient.cs
index 8a4b15eb54e9..0bd780b9b79d 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsCatalogManagementClient.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsCatalogManagementClient.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsJobManagementClient.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsJobManagementClient.cs
index f8821e338fd8..e292e76a6e03 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsJobManagementClient.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeAnalyticsJobManagementClient.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
diff --git a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeStoreAccountsOperations.cs b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeStoreAccountsOperations.cs
index cf48f8a10549..8d38a4508b47 100644
--- a/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeStoreAccountsOperations.cs
+++ b/src/SDKs/DataLake.Analytics/Management.DataLake.Analytics/Generated/IDataLakeStoreAccountsOperations.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
-// Code generated by Microsoft (R) AutoRest Code Generator 1.1.0.0
+// Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
@@ -26,19 +26,22 @@ namespace Microsoft.Azure.Management.DataLake.Analytics
public partial interface IDataLakeStoreAccountsOperations
{
///
- /// Gets the specified Data Lake Store account details in the specified
- /// Data Lake Analytics account.
+ /// Updates the specified Data Lake Analytics account to include the
+ /// additional Data Lake Store account.
///
///
/// The name of the Azure resource group that contains the Data Lake
/// Analytics account.
///
///
- /// The name of the Data Lake Analytics account from which to retrieve
- /// the Data Lake Store account details.
+ /// The name of the Data Lake Analytics account to which to add the
+ /// Data Lake Store account.
///
///
- /// The name of the Data Lake Store account to retrieve
+ /// The name of the Data Lake Store account to add.
+ ///
+ ///
+ /// The details of the Data Lake Store account.
///
///
/// The headers that will be added to request.
@@ -49,13 +52,10 @@ public partial interface IDataLakeStoreAccountsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string accountName, string dataLakeStoreAccountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task AddWithHttpMessagesAsync(string resourceGroupName, string accountName, string dataLakeStoreAccountName, AddDataLakeStoreParameters parameters = default(AddDataLakeStoreParameters), Dictionary