diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/DataFactoryManagementClient.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/DataFactoryManagementClient.cs index 74474ca44abd..707b6f73d10d 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/DataFactoryManagementClient.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/DataFactoryManagementClient.cs @@ -86,6 +86,10 @@ public partial class DataFactoryManagementClient : Microsoft.Rest.ServiceClient< /// public virtual IIntegrationRuntimeNodesOperations IntegrationRuntimeNodes { get; private set; } /// + /// Gets the IIntegrationRuntimeOperations + /// + public virtual IIntegrationRuntimeOperations IntegrationRuntime { get; private set; } + /// /// Gets the ILinkedServicesOperations /// public virtual ILinkedServicesOperations LinkedServices { get; private set; } @@ -397,6 +401,7 @@ private void Initialize() this.IntegrationRuntimes = new IntegrationRuntimesOperations(this); this.IntegrationRuntimeObjectMetadata = new IntegrationRuntimeObjectMetadataOperations(this); this.IntegrationRuntimeNodes = new IntegrationRuntimeNodesOperations(this); + this.IntegrationRuntime = new IntegrationRuntimeOperations(this); this.LinkedServices = new LinkedServicesOperations(this); this.Datasets = new DatasetsOperations(this); this.Pipelines = new PipelinesOperations(this); diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/IDataFactoryManagementClient.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/IDataFactoryManagementClient.cs index 93cd4bb6b0d3..3fd5a5cc035f 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/IDataFactoryManagementClient.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/IDataFactoryManagementClient.cs @@ -99,6 +99,11 @@ public partial interface IDataFactoryManagementClient : System.IDisposable /// IIntegrationRuntimeNodesOperations IntegrationRuntimeNodes { get; } + /// + /// Gets the IIntegrationRuntimeOperations + /// + IIntegrationRuntimeOperations IntegrationRuntime { get; } + /// /// Gets the ILinkedServicesOperations /// diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/IIntegrationRuntimeOperations.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/IIntegrationRuntimeOperations.cs new file mode 100644 index 000000000000..e3f23b59dcdb --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/IIntegrationRuntimeOperations.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// IntegrationRuntimeOperations operations. + /// + public partial interface IIntegrationRuntimeOperations + { + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The allowed idle time for interactive authoring. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> EnableInteractiveQueryWithHttpMessagesAsync(string resourceGroupName, string factoryName, string integrationRuntimeName, int? autoTerminationMinutes = default(int?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> DisableInteractiveQueryWithHttpMessagesAsync(string resourceGroupName, string factoryName, string integrationRuntimeName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The allowed idle time for interactive authoring. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> BeginEnableInteractiveQueryWithHttpMessagesAsync(string resourceGroupName, string factoryName, string integrationRuntimeName, int? autoTerminationMinutes = default(int?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + System.Threading.Tasks.Task> BeginDisableInteractiveQueryWithHttpMessagesAsync(string resourceGroupName, string factoryName, string integrationRuntimeName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/IntegrationRuntimeOperations.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/IntegrationRuntimeOperations.cs new file mode 100644 index 000000000000..3755b89533d5 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/IntegrationRuntimeOperations.cs @@ -0,0 +1,660 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory +{ + using System.Linq; + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + + /// + /// IntegrationRuntimeOperations operations. + /// + internal partial class IntegrationRuntimeOperations : Microsoft.Rest.IServiceOperations, IIntegrationRuntimeOperations + { + /// + /// Initializes a new instance of the IntegrationRuntimeOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal IntegrationRuntimeOperations (DataFactoryManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + this.Client = client; + } + + /// + /// Gets a reference to the DataFactoryManagementClient + /// + public DataFactoryManagementClient Client { get; private set; } + + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The allowed idle time for interactive authoring. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> EnableInteractiveQueryWithHttpMessagesAsync(string resourceGroupName, string factoryName, string integrationRuntimeName, int? autoTerminationMinutes = default(int?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginEnableInteractiveQueryWithHttpMessagesAsync(resourceGroupName, factoryName, integrationRuntimeName, autoTerminationMinutes, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async System.Threading.Tasks.Task> DisableInteractiveQueryWithHttpMessagesAsync(string resourceGroupName, string factoryName, string integrationRuntimeName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // Send Request + Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginDisableInteractiveQueryWithHttpMessagesAsync(resourceGroupName, factoryName, integrationRuntimeName, customHeaders, cancellationToken).ConfigureAwait(false); + return await this.Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The allowed idle time for interactive authoring. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> BeginEnableInteractiveQueryWithHttpMessagesAsync(string resourceGroupName, string factoryName, string integrationRuntimeName, int? autoTerminationMinutes = default(int?), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (resourceGroupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (integrationRuntimeName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "integrationRuntimeName"); + } + if (integrationRuntimeName != null) + { + if (integrationRuntimeName.Length > 63) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "integrationRuntimeName", 63); + } + if (integrationRuntimeName.Length < 3) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "integrationRuntimeName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(integrationRuntimeName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "integrationRuntimeName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + EnableInteractiveQueryRequest enableInteractiveQueryRequest = new EnableInteractiveQueryRequest(); + if(autoTerminationMinutes != null) + { + enableInteractiveQueryRequest.AutoTerminationMinutes = autoTerminationMinutes; + } + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); + + tracingParameters.Add("enableInteractiveQueryRequest", enableInteractiveQueryRequest); + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginEnableInteractiveQuery", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/enableInteractiveQuery").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + _url = _url.Replace("{integrationRuntimeName}", System.Uri.EscapeDataString(integrationRuntimeName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + if(enableInteractiveQueryRequest != null) + { + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(enableInteractiveQueryRequest, this.Client.SerializationSettings); + _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); + _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); + } + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings)); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async System.Threading.Tasks.Task> BeginDisableInteractiveQueryWithHttpMessagesAsync(string resourceGroupName, string factoryName, string integrationRuntimeName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + + + + if (this.Client.SubscriptionId == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + + if (resourceGroupName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (resourceGroupName != null) + { + if (resourceGroupName.Length > 90) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "resourceGroupName", 90); + } + if (resourceGroupName.Length < 1) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "resourceGroupName", 1); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$")) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$"); + } + } + if (factoryName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "factoryName"); + } + if (factoryName != null) + { + if (factoryName.Length > 63) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "factoryName", 63); + } + if (factoryName.Length < 3) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "factoryName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(factoryName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "factoryName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (integrationRuntimeName == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "integrationRuntimeName"); + } + if (integrationRuntimeName != null) + { + if (integrationRuntimeName.Length > 63) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "integrationRuntimeName", 63); + } + if (integrationRuntimeName.Length < 3) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "integrationRuntimeName", 3); + } + if (!System.Text.RegularExpressions.Regex.IsMatch(integrationRuntimeName, "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$")) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.Pattern, "integrationRuntimeName", "^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$"); + } + } + if (this.Client.ApiVersion == null) + { + throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + + // Tracing + bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); + System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("factoryName", factoryName); + tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); + + + tracingParameters.Add("cancellationToken", cancellationToken); + Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginDisableInteractiveQuery", tracingParameters); + } + // Construct URL + + var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/disableInteractiveQuery").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{factoryName}", System.Uri.EscapeDataString(factoryName)); + _url = _url.Replace("{integrationRuntimeName}", System.Uri.EscapeDataString(integrationRuntimeName)); + + System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + if (this.Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new System.Net.Http.HttpRequestMessage(); + System.Net.Http.HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (this.Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + } + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + // Serialize Request + string _requestContent = null; + // Set Credentials + if (this.Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + + System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (Newtonsoft.Json.JsonException) + { + // Ignore the exception + } + ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new Microsoft.Rest.Azure.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 = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + try + { + _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(Newtonsoft.Json.JsonSerializer.Create(this.Client.DeserializationSettings)); + } + catch (Newtonsoft.Json.JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new Microsoft.Rest.SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex); + } + if (_shouldTrace) + { + Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + + + + + + } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/IntegrationRuntimeOperationsExtensions.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/IntegrationRuntimeOperationsExtensions.cs new file mode 100644 index 000000000000..0edeb5ee0b12 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/IntegrationRuntimeOperationsExtensions.cs @@ -0,0 +1,204 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +namespace Microsoft.Azure.Management.DataFactory +{ + using Microsoft.Rest.Azure; + using Models; + + /// + /// Extension methods for IntegrationRuntimeOperations + /// + public static partial class IntegrationRuntimeOperationsExtensions + { + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + public static IntegrationRuntimeResource EnableInteractiveQuery(this IIntegrationRuntimeOperations operations, string resourceGroupName, string factoryName, string integrationRuntimeName, int? autoTerminationMinutes = default(int?)) + { + return ((IIntegrationRuntimeOperations)operations).EnableInteractiveQueryAsync(resourceGroupName, factoryName, integrationRuntimeName, autoTerminationMinutes).GetAwaiter().GetResult(); + } + + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task EnableInteractiveQueryAsync(this IIntegrationRuntimeOperations operations, string resourceGroupName, string factoryName, string integrationRuntimeName, int? autoTerminationMinutes = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.EnableInteractiveQueryWithHttpMessagesAsync(resourceGroupName, factoryName, integrationRuntimeName, autoTerminationMinutes, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + public static IntegrationRuntimeResource DisableInteractiveQuery(this IIntegrationRuntimeOperations operations, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + return ((IIntegrationRuntimeOperations)operations).DisableInteractiveQueryAsync(resourceGroupName, factoryName, integrationRuntimeName).GetAwaiter().GetResult(); + } + + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task DisableInteractiveQueryAsync(this IIntegrationRuntimeOperations operations, string resourceGroupName, string factoryName, string integrationRuntimeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.DisableInteractiveQueryWithHttpMessagesAsync(resourceGroupName, factoryName, integrationRuntimeName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + public static IntegrationRuntimeResource BeginEnableInteractiveQuery(this IIntegrationRuntimeOperations operations, string resourceGroupName, string factoryName, string integrationRuntimeName, int? autoTerminationMinutes = default(int?)) + { + return ((IIntegrationRuntimeOperations)operations).BeginEnableInteractiveQueryAsync(resourceGroupName, factoryName, integrationRuntimeName, autoTerminationMinutes).GetAwaiter().GetResult(); + } + + /// + /// Enable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginEnableInteractiveQueryAsync(this IIntegrationRuntimeOperations operations, string resourceGroupName, string factoryName, string integrationRuntimeName, int? autoTerminationMinutes = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.BeginEnableInteractiveQueryWithHttpMessagesAsync(resourceGroupName, factoryName, integrationRuntimeName, autoTerminationMinutes, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + public static IntegrationRuntimeResource BeginDisableInteractiveQuery(this IIntegrationRuntimeOperations operations, string resourceGroupName, string factoryName, string integrationRuntimeName) + { + return ((IIntegrationRuntimeOperations)operations).BeginDisableInteractiveQueryAsync(resourceGroupName, factoryName, integrationRuntimeName).GetAwaiter().GetResult(); + } + + /// + /// Disable interactive authoring of Managed Virtual Network integration + /// runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The resource group name. + /// + /// + /// The factory name. + /// + /// + /// The integration runtime name. + /// + /// + /// The cancellation token. + /// + public static async System.Threading.Tasks.Task BeginDisableInteractiveQueryAsync(this IIntegrationRuntimeOperations operations, string resourceGroupName, string factoryName, string integrationRuntimeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + using (var _result = await operations.BeginDisableInteractiveQueryWithHttpMessagesAsync(resourceGroupName, factoryName, integrationRuntimeName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + } +} diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/EnableInteractiveQueryRequest.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/EnableInteractiveQueryRequest.cs new file mode 100644 index 000000000000..3a948540b237 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/EnableInteractiveQueryRequest.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Linq; + + /// + /// The enable the interactive authoring information. + /// + public partial class EnableInteractiveQueryRequest + { + /// + /// Initializes a new instance of the EnableInteractiveQueryRequest class. + /// + public EnableInteractiveQueryRequest() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the EnableInteractiveQueryRequest class. + /// + + /// The allowed idle time for interactive authoring. + /// + public EnableInteractiveQueryRequest(int? autoTerminationMinutes = default(int?)) + + { + this.AutoTerminationMinutes = autoTerminationMinutes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the allowed idle time for interactive authoring. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "autoTerminationMinutes")] + public int? AutoTerminationMinutes {get; set; } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorAdditionalInfo.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorAdditionalInfo.cs new file mode 100644 index 000000000000..a54fc8374359 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorAdditionalInfo.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Linq; + + /// + /// The resource management error additional info. + /// + public partial class ErrorAdditionalInfo + { + /// + /// Initializes a new instance of the ErrorAdditionalInfo class. + /// + public ErrorAdditionalInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorAdditionalInfo class. + /// + + /// The additional info type. + /// + + /// The additional info. + /// + public ErrorAdditionalInfo(string type = default(string), object info = default(object)) + + { + this.Type = type; + this.Info = info; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the additional info type. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + public string Type {get; private set; } + + /// + /// Gets the additional info. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "info")] + public object Info {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorDetail.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorDetail.cs new file mode 100644 index 000000000000..506328e9baae --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorDetail.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Linq; + + /// + /// The error detail. + /// + public partial class ErrorDetail + { + /// + /// Initializes a new instance of the ErrorDetail class. + /// + public ErrorDetail() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorDetail class. + /// + + /// The error code. + /// + + /// The error message. + /// + + /// The error target. + /// + + /// The error details. + /// + + /// The error additional info. + /// + public ErrorDetail(string code = default(string), string message = default(string), string target = default(string), System.Collections.Generic.IList details = default(System.Collections.Generic.IList), System.Collections.Generic.IList additionalInfo = default(System.Collections.Generic.IList)) + + { + this.Code = code; + this.Message = message; + this.Target = target; + this.Details = details; + this.AdditionalInfo = additionalInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the error code. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + public string Code {get; private set; } + + /// + /// Gets the error message. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + public string Message {get; private set; } + + /// + /// Gets the error target. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "target")] + public string Target {get; private set; } + + /// + /// Gets the error details. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "details")] + public System.Collections.Generic.IList Details {get; private set; } + + /// + /// Gets the error additional info. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "additionalInfo")] + public System.Collections.Generic.IList AdditionalInfo {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorResponse.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorResponse.cs new file mode 100644 index 000000000000..9e4eda6950a5 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorResponse.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Linq; + + /// + /// Common error response for all Azure Resource Manager APIs to return error + /// details for failed operations. (This also follows the OData error response + /// format.). + /// + /// + /// Common error response for all Azure Resource Manager APIs to return error + /// details for failed operations. (This also follows the OData error response + /// format.). + /// + public partial class ErrorResponse + { + /// + /// Initializes a new instance of the ErrorResponse class. + /// + public ErrorResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorResponse class. + /// + + /// The error object. + /// + public ErrorResponse(ErrorDetail error = default(ErrorDetail)) + + { + this.Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets the error object. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + public ErrorDetail Error {get; set; } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorResponseException.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorResponseException.cs new file mode 100644 index 000000000000..139b98dbec7e --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ErrorResponseException.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Exception thrown for an invalid response with ErrorResponse information. + /// + public partial class ErrorResponseException : Microsoft.Rest.RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public Microsoft.Rest.HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public Microsoft.Rest.HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ErrorResponse Body { get; set; } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + public ErrorResponseException() + { + } + + /// + /// Initializes a new instance of the ErrorResponse class. + /// + /// The exception message. + public ErrorResponseException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorResponse class. + /// + /// The exception message. + /// Inner exception. + public ErrorResponseException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOnDemandLinkedService.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOnDemandLinkedService.cs index ae5178984552..ff860950a8d6 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOnDemandLinkedService.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOnDemandLinkedService.cs @@ -83,6 +83,10 @@ public HDInsightOnDemandLinkedService() /// with resultType string). /// + /// HDInsight On-demand cluster resource group authentication type. + /// Possible values include: 'ServicePrincipalKey', + /// 'SystemAssignedManagedIdentity', 'UserAssignedManagedIdentity' + /// The prefix of cluster name, postfix will be distinct with timestamp. Type: /// string (or Expression with resultType string). /// @@ -178,7 +182,7 @@ public HDInsightOnDemandLinkedService() /// The credential reference containing authentication information. /// - public HDInsightOnDemandLinkedService(object clusterSize, object timeToLive, object typePropertiesVersion, LinkedServiceReference linkedServiceName, object hostSubscriptionId, object tenant, object clusterResourceGroup, System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string version = default(string), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), System.Collections.Generic.IDictionary parameters = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IList annotations = default(System.Collections.Generic.IList), object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), object clusterNamePrefix = default(object), object clusterUserName = default(object), SecretBase clusterPassword = default(SecretBase), object clusterSshUserName = default(object), SecretBase clusterSshPassword = default(SecretBase), System.Collections.Generic.IList additionalLinkedServiceNames = default(System.Collections.Generic.IList), LinkedServiceReference hcatalogLinkedServiceName = default(LinkedServiceReference), object clusterType = default(object), object sparkVersion = default(object), object coreConfiguration = default(object), object hBaseConfiguration = default(object), object hdfsConfiguration = default(object), object hiveConfiguration = default(object), object mapReduceConfiguration = default(object), object oozieConfiguration = default(object), object stormConfiguration = default(object), object yarnConfiguration = default(object), string encryptedCredential = default(string), object headNodeSize = default(object), object dataNodeSize = default(object), object zookeeperNodeSize = default(object), System.Collections.Generic.IList scriptActions = default(System.Collections.Generic.IList), object virtualNetworkId = default(object), object subnetName = default(object), CredentialReference credential = default(CredentialReference)) + public HDInsightOnDemandLinkedService(object clusterSize, object timeToLive, object typePropertiesVersion, LinkedServiceReference linkedServiceName, object hostSubscriptionId, object tenant, object clusterResourceGroup, System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string version = default(string), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), System.Collections.Generic.IDictionary parameters = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IList annotations = default(System.Collections.Generic.IList), object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), string clusterResourceGroupAuthType = default(string), object clusterNamePrefix = default(object), object clusterUserName = default(object), SecretBase clusterPassword = default(SecretBase), object clusterSshUserName = default(object), SecretBase clusterSshPassword = default(SecretBase), System.Collections.Generic.IList additionalLinkedServiceNames = default(System.Collections.Generic.IList), LinkedServiceReference hcatalogLinkedServiceName = default(LinkedServiceReference), object clusterType = default(object), object sparkVersion = default(object), object coreConfiguration = default(object), object hBaseConfiguration = default(object), object hdfsConfiguration = default(object), object hiveConfiguration = default(object), object mapReduceConfiguration = default(object), object oozieConfiguration = default(object), object stormConfiguration = default(object), object yarnConfiguration = default(object), string encryptedCredential = default(string), object headNodeSize = default(object), object dataNodeSize = default(object), object zookeeperNodeSize = default(object), System.Collections.Generic.IList scriptActions = default(System.Collections.Generic.IList), object virtualNetworkId = default(object), object subnetName = default(object), CredentialReference credential = default(CredentialReference)) : base(additionalProperties, version, connectVia, description, parameters, annotations) { @@ -191,6 +195,7 @@ public HDInsightOnDemandLinkedService() this.ServicePrincipalKey = servicePrincipalKey; this.Tenant = tenant; this.ClusterResourceGroup = clusterResourceGroup; + this.ClusterResourceGroupAuthType = clusterResourceGroupAuthType; this.ClusterNamePrefix = clusterNamePrefix; this.ClusterUserName = clusterUserName; this.ClusterPassword = clusterPassword; @@ -290,6 +295,13 @@ public HDInsightOnDemandLinkedService() [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.clusterResourceGroup")] public object ClusterResourceGroup {get; set; } + /// + /// Gets or sets hDInsight On-demand cluster resource group authentication + /// type. Possible values include: 'ServicePrincipalKey', 'SystemAssignedManagedIdentity', 'UserAssignedManagedIdentity' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.clusterResourceGroupAuthType")] + public string ClusterResourceGroupAuthType {get; set; } + /// /// Gets or sets the prefix of cluster name, postfix will be distinct with /// timestamp. Type: string (or Expression with resultType string). @@ -520,6 +532,7 @@ public override void Validate() + if (this.AdditionalLinkedServiceNames != null) { foreach (var element in this.AdditionalLinkedServiceNames) diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOnDemandLinkedServiceTypeProperties.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOnDemandLinkedServiceTypeProperties.cs index d6de70d5c256..f82eab98aa8c 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOnDemandLinkedServiceTypeProperties.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOnDemandLinkedServiceTypeProperties.cs @@ -62,6 +62,10 @@ public HDInsightOnDemandLinkedServiceTypeProperties() /// with resultType string). /// + /// HDInsight On-demand cluster resource group authentication type. + /// Possible values include: 'ServicePrincipalKey', + /// 'SystemAssignedManagedIdentity', 'UserAssignedManagedIdentity' + /// The prefix of cluster name, postfix will be distinct with timestamp. Type: /// string (or Expression with resultType string). /// @@ -157,7 +161,7 @@ public HDInsightOnDemandLinkedServiceTypeProperties() /// The credential reference containing authentication information. /// - public HDInsightOnDemandLinkedServiceTypeProperties(object clusterSize, object timeToLive, object version, LinkedServiceReference linkedServiceName, object hostSubscriptionId, object tenant, object clusterResourceGroup, object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), object clusterNamePrefix = default(object), object clusterUserName = default(object), SecretBase clusterPassword = default(SecretBase), object clusterSshUserName = default(object), SecretBase clusterSshPassword = default(SecretBase), System.Collections.Generic.IList additionalLinkedServiceNames = default(System.Collections.Generic.IList), LinkedServiceReference hcatalogLinkedServiceName = default(LinkedServiceReference), object clusterType = default(object), object sparkVersion = default(object), object coreConfiguration = default(object), object hBaseConfiguration = default(object), object hdfsConfiguration = default(object), object hiveConfiguration = default(object), object mapReduceConfiguration = default(object), object oozieConfiguration = default(object), object stormConfiguration = default(object), object yarnConfiguration = default(object), string encryptedCredential = default(string), object headNodeSize = default(object), object dataNodeSize = default(object), object zookeeperNodeSize = default(object), System.Collections.Generic.IList scriptActions = default(System.Collections.Generic.IList), object virtualNetworkId = default(object), object subnetName = default(object), CredentialReference credential = default(CredentialReference)) + public HDInsightOnDemandLinkedServiceTypeProperties(object clusterSize, object timeToLive, object version, LinkedServiceReference linkedServiceName, object hostSubscriptionId, object tenant, object clusterResourceGroup, object servicePrincipalId = default(object), SecretBase servicePrincipalKey = default(SecretBase), string clusterResourceGroupAuthType = default(string), object clusterNamePrefix = default(object), object clusterUserName = default(object), SecretBase clusterPassword = default(SecretBase), object clusterSshUserName = default(object), SecretBase clusterSshPassword = default(SecretBase), System.Collections.Generic.IList additionalLinkedServiceNames = default(System.Collections.Generic.IList), LinkedServiceReference hcatalogLinkedServiceName = default(LinkedServiceReference), object clusterType = default(object), object sparkVersion = default(object), object coreConfiguration = default(object), object hBaseConfiguration = default(object), object hdfsConfiguration = default(object), object hiveConfiguration = default(object), object mapReduceConfiguration = default(object), object oozieConfiguration = default(object), object stormConfiguration = default(object), object yarnConfiguration = default(object), string encryptedCredential = default(string), object headNodeSize = default(object), object dataNodeSize = default(object), object zookeeperNodeSize = default(object), System.Collections.Generic.IList scriptActions = default(System.Collections.Generic.IList), object virtualNetworkId = default(object), object subnetName = default(object), CredentialReference credential = default(CredentialReference)) { this.ClusterSize = clusterSize; @@ -169,6 +173,7 @@ public HDInsightOnDemandLinkedServiceTypeProperties() this.ServicePrincipalKey = servicePrincipalKey; this.Tenant = tenant; this.ClusterResourceGroup = clusterResourceGroup; + this.ClusterResourceGroupAuthType = clusterResourceGroupAuthType; this.ClusterNamePrefix = clusterNamePrefix; this.ClusterUserName = clusterUserName; this.ClusterPassword = clusterPassword; @@ -268,6 +273,13 @@ public HDInsightOnDemandLinkedServiceTypeProperties() [Newtonsoft.Json.JsonProperty(PropertyName = "clusterResourceGroup")] public object ClusterResourceGroup {get; set; } + /// + /// Gets or sets hDInsight On-demand cluster resource group authentication + /// type. Possible values include: 'ServicePrincipalKey', 'SystemAssignedManagedIdentity', 'UserAssignedManagedIdentity' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "clusterResourceGroupAuthType")] + public string ClusterResourceGroupAuthType {get; set; } + /// /// Gets or sets the prefix of cluster name, postfix will be distinct with /// timestamp. Type: string (or Expression with resultType string). @@ -497,6 +509,7 @@ public virtual void Validate() + if (this.AdditionalLinkedServiceNames != null) { foreach (var element in this.AdditionalLinkedServiceNames) diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOndemandClusterResourceGroupAuthenticationType.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOndemandClusterResourceGroupAuthenticationType.cs new file mode 100644 index 000000000000..4eea75d6b869 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/HDInsightOndemandClusterResourceGroupAuthenticationType.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for HDInsightOndemandClusterResourceGroupAuthenticationType. + /// + + + public static class HDInsightOndemandClusterResourceGroupAuthenticationType + { + public const string ServicePrincipalKey = "ServicePrincipalKey"; + public const string SystemAssignedManagedIdentity = "SystemAssignedManagedIdentity"; + public const string UserAssignedManagedIdentity = "UserAssignedManagedIdentity"; + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IntegrationRuntimeDisableInteractiveQueryHeaders.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IntegrationRuntimeDisableInteractiveQueryHeaders.cs new file mode 100644 index 000000000000..da005c264197 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IntegrationRuntimeDisableInteractiveQueryHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Linq; + + public partial class IntegrationRuntimeDisableInteractiveQueryHeaders + { + /// + /// Initializes a new instance of the IntegrationRuntimeDisableInteractiveQueryHeaders class. + /// + public IntegrationRuntimeDisableInteractiveQueryHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IntegrationRuntimeDisableInteractiveQueryHeaders class. + /// + + /// + /// + + /// + /// + public IntegrationRuntimeDisableInteractiveQueryHeaders(string location = default(string), string azureAsyncOperation = default(string)) + + { + this.Location = location; + this.AzureAsyncOperation = azureAsyncOperation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + public string Location {get; set; } + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation {get; set; } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IntegrationRuntimeEnableInteractiveQueryHeaders.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IntegrationRuntimeEnableInteractiveQueryHeaders.cs new file mode 100644 index 000000000000..03f948c43599 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/IntegrationRuntimeEnableInteractiveQueryHeaders.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Linq; + + public partial class IntegrationRuntimeEnableInteractiveQueryHeaders + { + /// + /// Initializes a new instance of the IntegrationRuntimeEnableInteractiveQueryHeaders class. + /// + public IntegrationRuntimeEnableInteractiveQueryHeaders() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the IntegrationRuntimeEnableInteractiveQueryHeaders class. + /// + + /// + /// + + /// + /// + public IntegrationRuntimeEnableInteractiveQueryHeaders(string location = default(string), string azureAsyncOperation = default(string)) + + { + this.Location = location; + this.AzureAsyncOperation = azureAsyncOperation; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + public string Location {get; set; } + + /// + /// Gets or sets + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + public string AzureAsyncOperation {get; set; } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/InteractiveCapabilityStatus.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/InteractiveCapabilityStatus.cs new file mode 100644 index 000000000000..3cf222e34422 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/InteractiveCapabilityStatus.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + + /// + /// Defines values for InteractiveCapabilityStatus. + /// + + + public static class InteractiveCapabilityStatus + { + public const string Enabling = "Enabling"; + public const string Enabled = "Enabled"; + public const string Disabling = "Disabling"; + public const string Disabled = "Disabled"; + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/InteractiveQueryProperties.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/InteractiveQueryProperties.cs new file mode 100644 index 000000000000..0ffe413727d2 --- /dev/null +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/InteractiveQueryProperties.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.Management.DataFactory.Models +{ + using System.Linq; + + /// + /// Interactive authoring capability type properties. + /// + public partial class InteractiveQueryProperties + { + /// + /// Initializes a new instance of the InteractiveQueryProperties class. + /// + public InteractiveQueryProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the InteractiveQueryProperties class. + /// + + /// The interactive authoring capability status. Must be one of + /// InteractiveCapabilityStatus. The default value is 'Enabling'. + /// Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled' + + /// The allowed idle time for interactive authoring. + /// + public InteractiveQueryProperties(string status = default(string), int? autoTerminationMinutes = default(int?)) + + { + this.Status = status; + this.AutoTerminationMinutes = autoTerminationMinutes; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + + /// + /// Gets the interactive authoring capability status. Must be one of + /// InteractiveCapabilityStatus. The default value is 'Enabling'. Possible values include: 'Enabling', 'Enabled', 'Disabling', 'Disabled' + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + public string Status {get; private set; } + + /// + /// Gets the allowed idle time for interactive authoring. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "autoTerminationMinutes")] + public int? AutoTerminationMinutes {get; private set; } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/LookupActivity.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/LookupActivity.cs index b1a57c12fb3c..f81ff8f15236 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/LookupActivity.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/LookupActivity.cs @@ -66,13 +66,19 @@ public LookupActivity() /// Whether to return first row or all rows. Default value is true. Type: /// boolean (or Expression with resultType boolean). /// - public LookupActivity(string name, CopySource source, DatasetReference dataset, System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string description = default(string), string state = default(string), string onInactiveMarkAs = default(string), System.Collections.Generic.IList dependsOn = default(System.Collections.Generic.IList), System.Collections.Generic.IList userProperties = default(System.Collections.Generic.IList), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), object firstRowOnly = default(object)) + + /// Indicates whether to treat decimal values as strings to avoid value + /// overflow issue. This option is enabled for SnowflakeV2 connector only. + /// Type: boolean (or Expression with resultType boolean). + /// + public LookupActivity(string name, CopySource source, DatasetReference dataset, System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string description = default(string), string state = default(string), string onInactiveMarkAs = default(string), System.Collections.Generic.IList dependsOn = default(System.Collections.Generic.IList), System.Collections.Generic.IList userProperties = default(System.Collections.Generic.IList), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), object firstRowOnly = default(object), object treatDecimalAsString = default(object)) : base(name, additionalProperties, description, state, onInactiveMarkAs, dependsOn, userProperties, linkedServiceName, policy) { this.Source = source; this.Dataset = dataset; this.FirstRowOnly = firstRowOnly; + this.TreatDecimalAsString = treatDecimalAsString; CustomInit(); } @@ -101,6 +107,14 @@ public LookupActivity() /// [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.firstRowOnly")] public object FirstRowOnly {get; set; } + + /// + /// Gets or sets indicates whether to treat decimal values as strings to avoid + /// value overflow issue. This option is enabled for SnowflakeV2 connector + /// only. Type: boolean (or Expression with resultType boolean). + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.treatDecimalAsString")] + public object TreatDecimalAsString {get; set; } /// /// Validate the object. /// @@ -124,6 +138,7 @@ public override void Validate() this.Dataset.Validate(); } + } } } \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/LookupActivityTypeProperties.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/LookupActivityTypeProperties.cs index 064e4fa38504..ba4ae21a3b54 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/LookupActivityTypeProperties.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/LookupActivityTypeProperties.cs @@ -34,12 +34,18 @@ public LookupActivityTypeProperties() /// Whether to return first row or all rows. Default value is true. Type: /// boolean (or Expression with resultType boolean). /// - public LookupActivityTypeProperties(CopySource source, DatasetReference dataset, object firstRowOnly = default(object)) + + /// Indicates whether to treat decimal values as strings to avoid value + /// overflow issue. This option is enabled for SnowflakeV2 connector only. + /// Type: boolean (or Expression with resultType boolean). + /// + public LookupActivityTypeProperties(CopySource source, DatasetReference dataset, object firstRowOnly = default(object), object treatDecimalAsString = default(object)) { this.Source = source; this.Dataset = dataset; this.FirstRowOnly = firstRowOnly; + this.TreatDecimalAsString = treatDecimalAsString; CustomInit(); } @@ -68,6 +74,14 @@ public LookupActivityTypeProperties() /// [Newtonsoft.Json.JsonProperty(PropertyName = "firstRowOnly")] public object FirstRowOnly {get; set; } + + /// + /// Gets or sets indicates whether to treat decimal values as strings to avoid + /// value overflow issue. This option is enabled for SnowflakeV2 connector + /// only. Type: boolean (or Expression with resultType boolean). + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "treatDecimalAsString")] + public object TreatDecimalAsString {get; set; } /// /// Validate the object. /// @@ -90,6 +104,7 @@ public virtual void Validate() this.Dataset.Validate(); } + } } } \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ManagedIntegrationRuntime.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ManagedIntegrationRuntime.cs index 37e273563791..84aaa2c28c44 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ManagedIntegrationRuntime.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ManagedIntegrationRuntime.cs @@ -52,7 +52,10 @@ public ManagedIntegrationRuntime() /// The name of virtual network to which Azure-SSIS integration runtime will /// join /// - public ManagedIntegrationRuntime(System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string description = default(string), string state = default(string), ManagedVirtualNetworkReference managedVirtualNetwork = default(ManagedVirtualNetworkReference), IntegrationRuntimeComputeProperties computeProperties = default(IntegrationRuntimeComputeProperties), IntegrationRuntimeSsisProperties ssisProperties = default(IntegrationRuntimeSsisProperties), IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork = default(IntegrationRuntimeCustomerVirtualNetwork)) + + /// Interactive authoring capability reference. + /// + public ManagedIntegrationRuntime(System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string description = default(string), string state = default(string), ManagedVirtualNetworkReference managedVirtualNetwork = default(ManagedVirtualNetworkReference), IntegrationRuntimeComputeProperties computeProperties = default(IntegrationRuntimeComputeProperties), IntegrationRuntimeSsisProperties ssisProperties = default(IntegrationRuntimeSsisProperties), IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork = default(IntegrationRuntimeCustomerVirtualNetwork), InteractiveQueryProperties interactiveQuery = default(InteractiveQueryProperties)) : base(additionalProperties, description) { @@ -61,6 +64,7 @@ public ManagedIntegrationRuntime() this.ComputeProperties = computeProperties; this.SsisProperties = ssisProperties; this.CustomerVirtualNetwork = customerVirtualNetwork; + this.InteractiveQuery = interactiveQuery; CustomInit(); } @@ -101,6 +105,12 @@ public ManagedIntegrationRuntime() /// [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.customerVirtualNetwork")] public IntegrationRuntimeCustomerVirtualNetwork CustomerVirtualNetwork {get; set; } + + /// + /// Gets or sets interactive authoring capability reference. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.interactiveQuery")] + public InteractiveQueryProperties InteractiveQuery {get; set; } /// /// Validate the object. /// @@ -123,6 +133,7 @@ public virtual void Validate() this.SsisProperties.Validate(); } + } } } \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ManagedIntegrationRuntimeTypeProperties.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ManagedIntegrationRuntimeTypeProperties.cs index 0a4a55c7ec8c..f578c9cc7f2e 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ManagedIntegrationRuntimeTypeProperties.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ManagedIntegrationRuntimeTypeProperties.cs @@ -33,12 +33,16 @@ public ManagedIntegrationRuntimeTypeProperties() /// The name of virtual network to which Azure-SSIS integration runtime will /// join /// - public ManagedIntegrationRuntimeTypeProperties(IntegrationRuntimeComputeProperties computeProperties = default(IntegrationRuntimeComputeProperties), IntegrationRuntimeSsisProperties ssisProperties = default(IntegrationRuntimeSsisProperties), IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork = default(IntegrationRuntimeCustomerVirtualNetwork)) + + /// Interactive authoring capability reference. + /// + public ManagedIntegrationRuntimeTypeProperties(IntegrationRuntimeComputeProperties computeProperties = default(IntegrationRuntimeComputeProperties), IntegrationRuntimeSsisProperties ssisProperties = default(IntegrationRuntimeSsisProperties), IntegrationRuntimeCustomerVirtualNetwork customerVirtualNetwork = default(IntegrationRuntimeCustomerVirtualNetwork), InteractiveQueryProperties interactiveQuery = default(InteractiveQueryProperties)) { this.ComputeProperties = computeProperties; this.SsisProperties = ssisProperties; this.CustomerVirtualNetwork = customerVirtualNetwork; + this.InteractiveQuery = interactiveQuery; CustomInit(); } @@ -66,6 +70,12 @@ public ManagedIntegrationRuntimeTypeProperties() /// [Newtonsoft.Json.JsonProperty(PropertyName = "customerVirtualNetwork")] public IntegrationRuntimeCustomerVirtualNetwork CustomerVirtualNetwork {get; set; } + + /// + /// Gets or sets interactive authoring capability reference. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "interactiveQuery")] + public InteractiveQueryProperties InteractiveQuery {get; set; } /// /// Validate the object. /// @@ -83,6 +93,7 @@ public virtual void Validate() this.SsisProperties.Validate(); } + } } } \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ScriptActivity.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ScriptActivity.cs index 4c595472656a..96905651aa24 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ScriptActivity.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ScriptActivity.cs @@ -70,7 +70,12 @@ public ScriptActivity() /// of rows affected by the DML statement. Supported connector: SnowflakeV2. /// Type: boolean (or Expression with resultType boolean). /// - public ScriptActivity(string name, System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string description = default(string), string state = default(string), string onInactiveMarkAs = default(string), System.Collections.Generic.IList dependsOn = default(System.Collections.Generic.IList), System.Collections.Generic.IList userProperties = default(System.Collections.Generic.IList), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), object scriptBlockExecutionTimeout = default(object), System.Collections.Generic.IList scripts = default(System.Collections.Generic.IList), ScriptActivityTypePropertiesLogSettings logSettings = default(ScriptActivityTypePropertiesLogSettings), object returnMultistatementResult = default(object)) + + /// Indicates whether to treat decimal values as strings to avoid value + /// overflow issue. This option is enabled for SnowflakeV2 connector only. + /// Type: boolean (or Expression with resultType boolean). + /// + public ScriptActivity(string name, System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string description = default(string), string state = default(string), string onInactiveMarkAs = default(string), System.Collections.Generic.IList dependsOn = default(System.Collections.Generic.IList), System.Collections.Generic.IList userProperties = default(System.Collections.Generic.IList), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), object scriptBlockExecutionTimeout = default(object), System.Collections.Generic.IList scripts = default(System.Collections.Generic.IList), ScriptActivityTypePropertiesLogSettings logSettings = default(ScriptActivityTypePropertiesLogSettings), object returnMultistatementResult = default(object), object treatDecimalAsString = default(object)) : base(name, additionalProperties, description, state, onInactiveMarkAs, dependsOn, userProperties, linkedServiceName, policy) { @@ -78,6 +83,7 @@ public ScriptActivity() this.Scripts = scripts; this.LogSettings = logSettings; this.ReturnMultistatementResult = returnMultistatementResult; + this.TreatDecimalAsString = treatDecimalAsString; CustomInit(); } @@ -114,6 +120,14 @@ public ScriptActivity() /// [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.returnMultistatementResult")] public object ReturnMultistatementResult {get; set; } + + /// + /// Gets or sets indicates whether to treat decimal values as strings to avoid + /// value overflow issue. This option is enabled for SnowflakeV2 connector + /// only. Type: boolean (or Expression with resultType boolean). + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.treatDecimalAsString")] + public object TreatDecimalAsString {get; set; } /// /// Validate the object. /// @@ -139,6 +153,7 @@ public override void Validate() this.LogSettings.Validate(); } + } } } \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ScriptActivityTypeProperties.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ScriptActivityTypeProperties.cs index 5131066b24b6..9bce56d811f5 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ScriptActivityTypeProperties.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/ScriptActivityTypeProperties.cs @@ -38,13 +38,19 @@ public ScriptActivityTypeProperties() /// of rows affected by the DML statement. Supported connector: SnowflakeV2. /// Type: boolean (or Expression with resultType boolean). /// - public ScriptActivityTypeProperties(object scriptBlockExecutionTimeout = default(object), System.Collections.Generic.IList scripts = default(System.Collections.Generic.IList), ScriptActivityTypePropertiesLogSettings logSettings = default(ScriptActivityTypePropertiesLogSettings), object returnMultistatementResult = default(object)) + + /// Indicates whether to treat decimal values as strings to avoid value + /// overflow issue. This option is enabled for SnowflakeV2 connector only. + /// Type: boolean (or Expression with resultType boolean). + /// + public ScriptActivityTypeProperties(object scriptBlockExecutionTimeout = default(object), System.Collections.Generic.IList scripts = default(System.Collections.Generic.IList), ScriptActivityTypePropertiesLogSettings logSettings = default(ScriptActivityTypePropertiesLogSettings), object returnMultistatementResult = default(object), object treatDecimalAsString = default(object)) { this.ScriptBlockExecutionTimeout = scriptBlockExecutionTimeout; this.Scripts = scripts; this.LogSettings = logSettings; this.ReturnMultistatementResult = returnMultistatementResult; + this.TreatDecimalAsString = treatDecimalAsString; CustomInit(); } @@ -81,6 +87,14 @@ public ScriptActivityTypeProperties() /// [Newtonsoft.Json.JsonProperty(PropertyName = "returnMultistatementResult")] public object ReturnMultistatementResult {get; set; } + + /// + /// Gets or sets indicates whether to treat decimal values as strings to avoid + /// value overflow issue. This option is enabled for SnowflakeV2 connector + /// only. Type: boolean (or Expression with resultType boolean). + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "treatDecimalAsString")] + public object TreatDecimalAsString {get; set; } /// /// Validate the object. /// @@ -105,6 +119,7 @@ public virtual void Validate() this.LogSettings.Validate(); } + } } } \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/SnowflakeLinkedV2ServiceTypeProperties.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/SnowflakeLinkedV2ServiceTypeProperties.cs index 63d02e291048..7cdbea1eb288 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/SnowflakeLinkedV2ServiceTypeProperties.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/SnowflakeLinkedV2ServiceTypeProperties.cs @@ -81,7 +81,11 @@ public SnowflakeLinkedV2ServiceTypeProperties() /// The encrypted credential used for authentication. Credentials are encrypted /// using the integration runtime credential manager. Type: string. /// - public SnowflakeLinkedV2ServiceTypeProperties(object accountIdentifier, object database, object warehouse, object user = default(object), SecretBase password = default(SecretBase), string authenticationType = default(string), object clientId = default(object), SecretBase clientSecret = default(SecretBase), object tenantId = default(object), object scope = default(object), SecretBase privateKey = default(SecretBase), SecretBase privateKeyPassphrase = default(SecretBase), object role = default(object), object host = default(object), object schema = default(object), string encryptedCredential = default(string)) + + /// Indicates whether to use UTC timezone for timestamp data types. Type: + /// boolean. + /// + public SnowflakeLinkedV2ServiceTypeProperties(object accountIdentifier, object database, object warehouse, object user = default(object), SecretBase password = default(SecretBase), string authenticationType = default(string), object clientId = default(object), SecretBase clientSecret = default(SecretBase), object tenantId = default(object), object scope = default(object), SecretBase privateKey = default(SecretBase), SecretBase privateKeyPassphrase = default(SecretBase), object role = default(object), object host = default(object), object schema = default(object), string encryptedCredential = default(string), object useUtcTimestamps = default(object)) { this.AccountIdentifier = accountIdentifier; @@ -100,6 +104,7 @@ public SnowflakeLinkedV2ServiceTypeProperties() this.Host = host; this.Schema = schema; this.EncryptedCredential = encryptedCredential; + this.UseUtcTimestamps = useUtcTimestamps; CustomInit(); } @@ -217,6 +222,13 @@ public SnowflakeLinkedV2ServiceTypeProperties() /// [Newtonsoft.Json.JsonProperty(PropertyName = "encryptedCredential")] public string EncryptedCredential {get; set; } + + /// + /// Gets or sets indicates whether to use UTC timezone for timestamp data + /// types. Type: boolean. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "useUtcTimestamps")] + public object UseUtcTimestamps {get; set; } /// /// Validate the object. /// @@ -253,6 +265,7 @@ public virtual void Validate() + } } } \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/SnowflakeV2LinkedService.cs b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/SnowflakeV2LinkedService.cs index b72381b6dfe6..5a4a03b46473 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/SnowflakeV2LinkedService.cs +++ b/src/DataFactory/DataFactory.Management.Sdk/Generated/Models/SnowflakeV2LinkedService.cs @@ -102,7 +102,11 @@ public SnowflakeV2LinkedService() /// The encrypted credential used for authentication. Credentials are encrypted /// using the integration runtime credential manager. Type: string. /// - public SnowflakeV2LinkedService(object accountIdentifier, object database, object warehouse, System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string version = default(string), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), System.Collections.Generic.IDictionary parameters = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IList annotations = default(System.Collections.Generic.IList), object user = default(object), SecretBase password = default(SecretBase), string authenticationType = default(string), object clientId = default(object), SecretBase clientSecret = default(SecretBase), object tenantId = default(object), object scope = default(object), SecretBase privateKey = default(SecretBase), SecretBase privateKeyPassphrase = default(SecretBase), object role = default(object), object host = default(object), object schema = default(object), string encryptedCredential = default(string)) + + /// Indicates whether to use UTC timezone for timestamp data types. Type: + /// boolean. + /// + public SnowflakeV2LinkedService(object accountIdentifier, object database, object warehouse, System.Collections.Generic.IDictionary additionalProperties = default(System.Collections.Generic.IDictionary), string version = default(string), IntegrationRuntimeReference connectVia = default(IntegrationRuntimeReference), string description = default(string), System.Collections.Generic.IDictionary parameters = default(System.Collections.Generic.IDictionary), System.Collections.Generic.IList annotations = default(System.Collections.Generic.IList), object user = default(object), SecretBase password = default(SecretBase), string authenticationType = default(string), object clientId = default(object), SecretBase clientSecret = default(SecretBase), object tenantId = default(object), object scope = default(object), SecretBase privateKey = default(SecretBase), SecretBase privateKeyPassphrase = default(SecretBase), object role = default(object), object host = default(object), object schema = default(object), string encryptedCredential = default(string), object useUtcTimestamps = default(object)) : base(additionalProperties, version, connectVia, description, parameters, annotations) { @@ -122,6 +126,7 @@ public SnowflakeV2LinkedService() this.Host = host; this.Schema = schema; this.EncryptedCredential = encryptedCredential; + this.UseUtcTimestamps = useUtcTimestamps; CustomInit(); } @@ -239,6 +244,13 @@ public SnowflakeV2LinkedService() /// [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.encryptedCredential")] public string EncryptedCredential {get; set; } + + /// + /// Gets or sets indicates whether to use UTC timezone for timestamp data + /// types. Type: boolean. + /// + [Newtonsoft.Json.JsonProperty(PropertyName = "typeProperties.useUtcTimestamps")] + public object UseUtcTimestamps {get; set; } /// /// Validate the object. /// @@ -276,6 +288,7 @@ public override void Validate() + } } } \ No newline at end of file diff --git a/src/DataFactory/DataFactory.Management.Sdk/README.md b/src/DataFactory/DataFactory.Management.Sdk/README.md index b07e0c7e76ff..3d22c91abc8f 100644 --- a/src/DataFactory/DataFactory.Management.Sdk/README.md +++ b/src/DataFactory/DataFactory.Management.Sdk/README.md @@ -23,8 +23,8 @@ payload-flattening-threshold: 2 ### ``` yaml -commit: aabf307e72445d56c94f896bf2e9bd226fbdf3d6 -require: https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datafactory/resource-manager/readme.md +commit: c6e5248223e3bac9293ea4e0ac7c56f16c334e6a +require: https://github.com/Azure/azure-rest-api-specs/blob/$(commit)/specification/datafactory/resource-manager/Microsoft.DataFactory/DataFactory/readme.md output-folder: Generated diff --git a/src/DataFactory/DataFactory/ChangeLog.md b/src/DataFactory/DataFactory/ChangeLog.md index 1ac3d8968f95..fd78ad4aa946 100644 --- a/src/DataFactory/DataFactory/ChangeLog.md +++ b/src/DataFactory/DataFactory/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Added support for clusterResourceGroupAuthType property in HDInsightOnDemand linked services properties. ## Version 1.19.5 * Added support for Salesforce V2 partitionOption feature.