Skip to content

Commit

Permalink
Add hq node and dop percent to Job contract
Browse files Browse the repository at this point in the history
  • Loading branch information
hosunmsft committed Sep 24, 2018
1 parent 3908a17 commit 7794996
Show file tree
Hide file tree
Showing 18 changed files with 275 additions and 155 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public async Task<AzureOperationResponse> CreateSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
Expand Down Expand Up @@ -292,7 +292,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public async Task<AzureOperationResponse<USqlSecret>> GetSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
Expand Down Expand Up @@ -501,7 +501,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public async Task<AzureOperationResponse> UpdateSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
Expand Down Expand Up @@ -700,7 +700,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public async Task<AzureOperationResponse> DeleteSecretWithHttpMessagesAsync(string accountName, string databaseName, string secretName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
Expand Down Expand Up @@ -885,7 +885,7 @@ internal CatalogOperations(DataLakeAnalyticsCatalogManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public async Task<AzureOperationResponse> DeleteAllSecretsWithHttpMessagesAsync(string accountName, string databaseName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (accountName == null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static partial class CatalogOperationsExtensions
/// <param name='parameters'>
/// The parameters required to create the secret (name and password)
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static void CreateSecret(this ICatalogOperations operations, string accountName, string databaseName, string secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters)
{
operations.CreateSecretAsync(accountName, databaseName, secretName, parameters).GetAwaiter().GetResult();
Expand Down Expand Up @@ -73,7 +73,7 @@ public static void CreateSecret(this ICatalogOperations operations, string accou
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static async Task CreateSecretAsync(this ICatalogOperations operations, string accountName, string databaseName, string secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.CreateSecretWithHttpMessagesAsync(accountName, databaseName, secretName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
Expand All @@ -96,7 +96,7 @@ public static void CreateSecret(this ICatalogOperations operations, string accou
/// <param name='secretName'>
/// The name of the secret to get
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static USqlSecret GetSecret(this ICatalogOperations operations, string accountName, string databaseName, string secretName)
{
return operations.GetSecretAsync(accountName, databaseName, secretName).GetAwaiter().GetResult();
Expand All @@ -122,7 +122,7 @@ public static USqlSecret GetSecret(this ICatalogOperations operations, string ac
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static async Task<USqlSecret> GetSecretAsync(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))
Expand Down Expand Up @@ -152,7 +152,7 @@ public static USqlSecret GetSecret(this ICatalogOperations operations, string ac
/// <param name='parameters'>
/// The parameters required to modify the secret (name and password)
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static void UpdateSecret(this ICatalogOperations operations, string accountName, string databaseName, string secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters)
{
operations.UpdateSecretAsync(accountName, databaseName, secretName, parameters).GetAwaiter().GetResult();
Expand Down Expand Up @@ -182,7 +182,7 @@ public static void UpdateSecret(this ICatalogOperations operations, string accou
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static async Task UpdateSecretAsync(this ICatalogOperations operations, string accountName, string databaseName, string secretName, DataLakeAnalyticsCatalogSecretCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.UpdateSecretWithHttpMessagesAsync(accountName, databaseName, secretName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
Expand All @@ -206,7 +206,7 @@ public static void UpdateSecret(this ICatalogOperations operations, string accou
/// <param name='secretName'>
/// The name of the secret to delete
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static void DeleteSecret(this ICatalogOperations operations, string accountName, string databaseName, string secretName)
{
operations.DeleteSecretAsync(accountName, databaseName, secretName).GetAwaiter().GetResult();
Expand All @@ -233,7 +233,7 @@ public static void DeleteSecret(this ICatalogOperations operations, string accou
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static async Task DeleteSecretAsync(this ICatalogOperations operations, string accountName, string databaseName, string secretName, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.DeleteSecretWithHttpMessagesAsync(accountName, databaseName, secretName, null, cancellationToken).ConfigureAwait(false)).Dispose();
Expand All @@ -254,7 +254,7 @@ public static void DeleteSecret(this ICatalogOperations operations, string accou
/// <param name='databaseName'>
/// The name of the database containing the secret.
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
public static void DeleteAllSecrets(this ICatalogOperations operations, string accountName, string databaseName)
{
operations.DeleteAllSecretsAsync(accountName, databaseName).GetAwaiter().GetResult();
Expand All @@ -278,7 +278,7 @@ public static void DeleteAllSecrets(this ICatalogOperations operations, string a
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
[System.Obsolete()]
[System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,20 @@ public partial class DataLakeAnalyticsAccountManagementClient : ServiceClient<Da
public string ApiVersion { get; private set; }

/// <summary>
/// Gets or sets the preferred language for the response.
/// The preferred language for the response.
/// </summary>
public string AcceptLanguage { get; set; }

/// <summary>
/// Gets or sets the retry timeout in seconds for Long Running Operations.
/// Default value is 30.
/// The retry timeout in seconds for Long Running Operations. Default value is
/// 30.
/// </summary>
public int? LongRunningOperationRetryTimeout { get; set; }

/// <summary>
/// When set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// Whether a unique x-ms-client-request-id should be generated. When set to
/// true a unique x-ms-client-request-id value is generated and included in
/// each request. Default is true.
/// </summary>
public bool? GenerateClientRequestId { get; set; }

Expand Down Expand Up @@ -110,6 +111,19 @@ public partial class DataLakeAnalyticsAccountManagementClient : ServiceClient<Da
/// </summary>
public virtual ILocationsOperations Locations { get; private set; }

/// <summary>
/// Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class.
/// </summary>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling DataLakeAnalyticsAccountManagementClient.Dispose(). False: will not dispose provided httpClient</param>
protected DataLakeAnalyticsAccountManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
{
Initialize();
}

/// <summary>
/// Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class.
/// </summary>
Expand Down Expand Up @@ -205,6 +219,33 @@ internal DataLakeAnalyticsAccountManagementClient(ServiceClientCredentials crede
}
}

/// <summary>
/// Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class.
/// </summary>
/// <param name='credentials'>
/// Required. Credentials needed for the client to connect to Azure.
/// </param>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling DataLakeAnalyticsAccountManagementClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
internal DataLakeAnalyticsAccountManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
{
if (credentials == null)
{
throw new System.ArgumentNullException("credentials");
}
Credentials = credentials;
if (Credentials != null)
{
Credentials.InitializeServiceClient(this);
}
}

/// <summary>
/// Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,20 @@ public partial class DataLakeAnalyticsCatalogManagementClient : ServiceClient<Da
public string AdlaCatalogDnsSuffix { get; set; }

/// <summary>
/// Gets or sets the preferred language for the response.
/// The preferred language for the response.
/// </summary>
public string AcceptLanguage { get; set; }

/// <summary>
/// Gets or sets the retry timeout in seconds for Long Running Operations.
/// Default value is 30.
/// The retry timeout in seconds for Long Running Operations. Default value is
/// 30.
/// </summary>
public int? LongRunningOperationRetryTimeout { get; set; }

/// <summary>
/// When set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// Whether a unique x-ms-client-request-id should be generated. When set to
/// true a unique x-ms-client-request-id value is generated and included in
/// each request. Default is true.
/// </summary>
public bool? GenerateClientRequestId { get; set; }

Expand All @@ -79,6 +80,19 @@ public partial class DataLakeAnalyticsCatalogManagementClient : ServiceClient<Da
/// </summary>
public virtual ICatalogOperations Catalog { get; private set; }

/// <summary>
/// Initializes a new instance of the DataLakeAnalyticsCatalogManagementClient class.
/// </summary>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling DataLakeAnalyticsCatalogManagementClient.Dispose(). False: will not dispose provided httpClient</param>
protected DataLakeAnalyticsCatalogManagementClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient)
{
Initialize();
}

/// <summary>
/// Initializes a new instance of the DataLakeAnalyticsCatalogManagementClient class.
/// </summary>
Expand Down Expand Up @@ -129,6 +143,33 @@ internal DataLakeAnalyticsCatalogManagementClient(ServiceClientCredentials crede
}
}

/// <summary>
/// Initializes a new instance of the DataLakeAnalyticsCatalogManagementClient class.
/// </summary>
/// <param name='credentials'>
/// Required. Credentials needed for the client to connect to Azure.
/// </param>
/// <param name='httpClient'>
/// HttpClient to be used
/// </param>
/// <param name='disposeHttpClient'>
/// True: will dispose the provided httpClient on calling DataLakeAnalyticsCatalogManagementClient.Dispose(). False: will not dispose provided httpClient</param>
/// <exception cref="System.ArgumentNullException">
/// Thrown when a required parameter is null
/// </exception>
internal DataLakeAnalyticsCatalogManagementClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient)
{
if (credentials == null)
{
throw new System.ArgumentNullException("credentials");
}
Credentials = credentials;
if (Credentials != null)
{
Credentials.InitializeServiceClient(this);
}
}

/// <summary>
/// Initializes a new instance of the DataLakeAnalyticsCatalogManagementClient class.
/// </summary>
Expand Down
Loading

0 comments on commit 7794996

Please sign in to comment.