diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ClustersOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ClustersOperations.cs
new file mode 100644
index 000000000000..b43e5854018f
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ClustersOperations.cs
@@ -0,0 +1,2159 @@
+//
+// 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.StreamAnalytics
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+ using System.Net;
+ using System.Net.Http;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ClustersOperations operations.
+ ///
+ internal partial class ClustersOperations : IServiceOperations, IClustersOperations
+ {
+ ///
+ /// Initializes a new instance of the ClustersOperations class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal ClustersOperations(StreamAnalyticsManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the StreamAnalyticsManagementClient
+ ///
+ public StreamAnalyticsManagementClient Client { get; private set; }
+
+ ///
+ /// Creates a Stream Analytics Cluster or replaces an already existing cluster.
+ ///
+ ///
+ /// The definition of the cluster that will be used to create a new cluster or
+ /// replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent updating
+ /// an existing record set. Other values will result in a 412 Pre-condition
+ /// Failed response.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> CreateOrUpdateWithHttpMessagesAsync(Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(cluster, resourceGroupName, clusterName, ifMatch, ifNoneMatch, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Updates an existing cluster. This can be used to partially update (ie.
+ /// update one or two properties) a cluster without affecting the rest of the
+ /// cluster definition.
+ ///
+ ///
+ /// The properties specified here will overwrite the corresponding properties
+ /// in the existing cluster (ie. Those properties will be updated).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task> UpdateWithHttpMessagesAsync(Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send Request
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(cluster, resourceGroupName, clusterName, ifMatch, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets information about the specified cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (clusterName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ }
+ string apiVersion = "2020-03-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("clusterName", clusterName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Deletes the specified cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Send request
+ AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false);
+ return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Lists all of the clusters in the given subscription.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ string apiVersion = "2020-03-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListBySubscription", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.StreamAnalytics/clusters").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Lists all of the clusters in the given resource group.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ string apiVersion = "2020-03-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Lists all of the streaming jobs in the given cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListStreamingJobsWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (clusterName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ }
+ string apiVersion = "2020-03-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("clusterName", clusterName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListStreamingJobs", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}/listStreamingJobs").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Creates a Stream Analytics Cluster or replaces an already existing cluster.
+ ///
+ ///
+ /// The definition of the cluster that will be used to create a new cluster or
+ /// replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent updating
+ /// an existing record set. Other values will result in a 412 Pre-condition
+ /// Failed response.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> BeginCreateOrUpdateWithHttpMessagesAsync(Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (cluster == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "cluster");
+ }
+ if (cluster != null)
+ {
+ cluster.Validate();
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (clusterName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ }
+ string apiVersion = "2020-03-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("cluster", cluster);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("clusterName", clusterName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("ifMatch", ifMatch);
+ tracingParameters.Add("ifNoneMatch", ifNoneMatch);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginCreateOrUpdate", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PUT");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (ifMatch != null)
+ {
+ if (_httpRequest.Headers.Contains("If-Match"))
+ {
+ _httpRequest.Headers.Remove("If-Match");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch);
+ }
+ if (ifNoneMatch != null)
+ {
+ if (_httpRequest.Headers.Contains("If-None-Match"))
+ {
+ _httpRequest.Headers.Remove("If-None-Match");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("If-None-Match", ifNoneMatch);
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(cluster != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(cluster, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200 && (int)_statusCode != 201)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 201)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Updates an existing cluster. This can be used to partially update (ie.
+ /// update one or two properties) a cluster without affecting the rest of the
+ /// cluster definition.
+ ///
+ ///
+ /// The properties specified here will overwrite the corresponding properties
+ /// in the existing cluster (ie. Those properties will be updated).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> BeginUpdateWithHttpMessagesAsync(Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (cluster == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "cluster");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (clusterName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ }
+ string apiVersion = "2020-03-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("cluster", cluster);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("clusterName", clusterName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("ifMatch", ifMatch);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("PATCH");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (ifMatch != null)
+ {
+ if (_httpRequest.Headers.Contains("If-Match"))
+ {
+ _httpRequest.Headers.Remove("If-Match");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch);
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(cluster != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(cluster, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200 && (int)_statusCode != 202)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Deletes the specified cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
+ if (clusterName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "clusterName");
+ }
+ string apiVersion = "2020-03-01-preview";
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("clusterName", clusterName);
+ tracingParameters.Add("apiVersion", apiVersion);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/clusters/{clusterName}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName));
+ List _queryParameters = new List();
+ if (apiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("DELETE");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Lists all of the clusters in the given subscription.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListBySubscriptionNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Lists all of the clusters in the given resource group.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Lists all of the streaming jobs in the given cluster.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListStreamingJobsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListStreamingJobsNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new ErrorException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ Error _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ClustersOperationsExtensions.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ClustersOperationsExtensions.cs
new file mode 100644
index 000000000000..603689355063
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ClustersOperationsExtensions.cs
@@ -0,0 +1,603 @@
+//
+// 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.StreamAnalytics
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for ClustersOperations.
+ ///
+ public static partial class ClustersOperationsExtensions
+ {
+ ///
+ /// Creates a Stream Analytics Cluster or replaces an already existing cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The definition of the cluster that will be used to create a new cluster or
+ /// replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent updating
+ /// an existing record set. Other values will result in a 412 Pre-condition
+ /// Failed response.
+ ///
+ public static Cluster CreateOrUpdate(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string))
+ {
+ return operations.CreateOrUpdateAsync(cluster, resourceGroupName, clusterName, ifMatch, ifNoneMatch).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates a Stream Analytics Cluster or replaces an already existing cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The definition of the cluster that will be used to create a new cluster or
+ /// replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent updating
+ /// an existing record set. Other values will result in a 412 Pre-condition
+ /// Failed response.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task CreateOrUpdateAsync(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(cluster, resourceGroupName, clusterName, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Updates an existing cluster. This can be used to partially update (ie.
+ /// update one or two properties) a cluster without affecting the rest of the
+ /// cluster definition.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The properties specified here will overwrite the corresponding properties
+ /// in the existing cluster (ie. Those properties will be updated).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ public static Cluster Update(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string))
+ {
+ return operations.UpdateAsync(cluster, resourceGroupName, clusterName, ifMatch).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Updates an existing cluster. This can be used to partially update (ie.
+ /// update one or two properties) a cluster without affecting the rest of the
+ /// cluster definition.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The properties specified here will overwrite the corresponding properties
+ /// in the existing cluster (ie. Those properties will be updated).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task UpdateAsync(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(cluster, resourceGroupName, clusterName, ifMatch, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Gets information about the specified cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ public static Cluster Get(this IClustersOperations operations, string resourceGroupName, string clusterName)
+ {
+ return operations.GetAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Gets information about the specified cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Deletes the specified cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ public static void Delete(this IClustersOperations operations, string resourceGroupName, string clusterName)
+ {
+ operations.DeleteAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Deletes the specified cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task DeleteAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Lists all of the clusters in the given subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ public static IPage ListBySubscription(this IClustersOperations operations)
+ {
+ return operations.ListBySubscriptionAsync().GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists all of the clusters in the given subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListBySubscriptionAsync(this IClustersOperations operations, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListBySubscriptionWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Lists all of the clusters in the given resource group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ public static IPage ListByResourceGroup(this IClustersOperations operations, string resourceGroupName)
+ {
+ return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists all of the clusters in the given resource group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByResourceGroupAsync(this IClustersOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Lists all of the streaming jobs in the given cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ public static IPage ListStreamingJobs(this IClustersOperations operations, string resourceGroupName, string clusterName)
+ {
+ return operations.ListStreamingJobsAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists all of the streaming jobs in the given cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListStreamingJobsAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListStreamingJobsWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Creates a Stream Analytics Cluster or replaces an already existing cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The definition of the cluster that will be used to create a new cluster or
+ /// replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent updating
+ /// an existing record set. Other values will result in a 412 Pre-condition
+ /// Failed response.
+ ///
+ public static Cluster BeginCreateOrUpdate(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string))
+ {
+ return operations.BeginCreateOrUpdateAsync(cluster, resourceGroupName, clusterName, ifMatch, ifNoneMatch).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Creates a Stream Analytics Cluster or replaces an already existing cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The definition of the cluster that will be used to create a new cluster or
+ /// replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent updating
+ /// an existing record set. Other values will result in a 412 Pre-condition
+ /// Failed response.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginCreateOrUpdateAsync(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(cluster, resourceGroupName, clusterName, ifMatch, ifNoneMatch, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Updates an existing cluster. This can be used to partially update (ie.
+ /// update one or two properties) a cluster without affecting the rest of the
+ /// cluster definition.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The properties specified here will overwrite the corresponding properties
+ /// in the existing cluster (ie. Those properties will be updated).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ public static Cluster BeginUpdate(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string))
+ {
+ return operations.BeginUpdateAsync(cluster, resourceGroupName, clusterName, ifMatch).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Updates an existing cluster. This can be used to partially update (ie.
+ /// update one or two properties) a cluster without affecting the rest of the
+ /// cluster definition.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The properties specified here will overwrite the corresponding properties
+ /// in the existing cluster (ie. Those properties will be updated).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the current
+ /// record set. Specify the last-seen ETag value to prevent accidentally
+ /// overwriting concurrent changes.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginUpdateAsync(this IClustersOperations operations, Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(cluster, resourceGroupName, clusterName, ifMatch, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Deletes the specified cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ public static void BeginDelete(this IClustersOperations operations, string resourceGroupName, string clusterName)
+ {
+ operations.BeginDeleteAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Deletes the specified cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task BeginDeleteAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ ///
+ /// Lists all of the clusters in the given subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListBySubscriptionNext(this IClustersOperations operations, string nextPageLink)
+ {
+ return operations.ListBySubscriptionNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists all of the clusters in the given subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListBySubscriptionNextAsync(this IClustersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListBySubscriptionNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Lists all of the clusters in the given resource group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListByResourceGroupNext(this IClustersOperations operations, string nextPageLink)
+ {
+ return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists all of the clusters in the given resource group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListByResourceGroupNextAsync(this IClustersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Lists all of the streaming jobs in the given cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListStreamingJobsNext(this IClustersOperations operations, string nextPageLink)
+ {
+ return operations.ListStreamingJobsNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Lists all of the streaming jobs in the given cluster.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListStreamingJobsNextAsync(this IClustersOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListStreamingJobsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/FunctionsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/FunctionsOperations.cs
index 345b5e1be962..c94f1fdc45bd 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/FunctionsOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/FunctionsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -59,8 +59,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
/// or replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -71,7 +70,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
///
/// The ETag of the function. Omit this value to always overwrite the current
/// function. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// overwriting concurrent changes.
///
///
/// Set to '*' to allow a new function to be created, but to prevent updating
@@ -105,18 +104,36 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "function");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -125,6 +142,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "functionName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -135,6 +153,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
tracingParameters.Add("function", function);
tracingParameters.Add("ifMatch", ifMatch);
tracingParameters.Add("ifNoneMatch", ifNoneMatch);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("functionName", functionName);
@@ -149,9 +168,9 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{functionName}", System.Uri.EscapeDataString(functionName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -344,8 +363,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
/// and not change as a result of this PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -356,7 +374,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
///
/// The ETag of the function. Omit this value to always overwrite the current
/// function. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// overwriting concurrent changes.
///
///
/// Headers that will be added to request.
@@ -385,18 +403,36 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "function");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -405,6 +441,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "functionName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -414,6 +451,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("function", function);
tracingParameters.Add("ifMatch", ifMatch);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("functionName", functionName);
@@ -428,9 +466,9 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{functionName}", System.Uri.EscapeDataString(functionName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -588,8 +626,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
/// Deletes a function from the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -617,18 +654,36 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
///
public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string jobName, string functionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -637,6 +692,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "functionName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -644,6 +700,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("functionName", functionName);
@@ -658,9 +715,9 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{functionName}", System.Uri.EscapeDataString(functionName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -773,8 +830,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
/// Gets details about the specified function.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -805,18 +861,36 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
///
public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string jobName, string functionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -825,6 +899,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "functionName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -832,6 +907,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("functionName", functionName);
@@ -846,9 +922,9 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{functionName}", System.Uri.EscapeDataString(functionName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -992,15 +1068,14 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
/// Lists all of the functions under the specified streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list of
- /// structural properties to include in the response, or “*” to include all
+ /// structural properties to include in the response, or "*" to include all
/// properties. By default, all properties are returned except diagnostics.
/// Currently only accepts '*' as a valid value.
///
@@ -1027,22 +1102,41 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
///
public async Task>> ListByStreamingJobWithHttpMessagesAsync(string resourceGroupName, string jobName, string select = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1051,6 +1145,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("select", select);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -1067,9 +1162,9 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
_queryParameters.Add(string.Format("$select={0}", System.Uri.EscapeDataString(select)));
}
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1203,8 +1298,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
/// correct.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -1238,8 +1332,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
/// specified.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -1274,18 +1367,36 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
///
public async Task> RetrieveDefaultDefinitionWithHttpMessagesAsync(string resourceGroupName, string jobName, string functionName, FunctionRetrieveDefaultDefinitionParameters functionRetrieveDefaultDefinitionParameters = default(FunctionRetrieveDefaultDefinitionParameters), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -1294,6 +1405,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "functionName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1302,6 +1414,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("functionRetrieveDefaultDefinitionParameters", functionRetrieveDefaultDefinitionParameters);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("functionName", functionName);
@@ -1316,9 +1429,9 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{functionName}", System.Uri.EscapeDataString(functionName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1458,8 +1571,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
/// correct.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -1498,18 +1610,36 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
///
public async Task> BeginTestWithHttpMessagesAsync(string resourceGroupName, string jobName, string functionName, Function function = default(Function), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -1518,6 +1648,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "functionName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1526,6 +1657,7 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("function", function);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("functionName", functionName);
@@ -1540,9 +1672,9 @@ internal FunctionsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{functionName}", System.Uri.EscapeDataString(functionName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/FunctionsOperationsExtensions.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/FunctionsOperationsExtensions.cs
index 83d4ffa06ab0..8b66bceb9456 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/FunctionsOperationsExtensions.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/FunctionsOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -33,8 +33,7 @@ public static partial class FunctionsOperationsExtensions
/// or replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -45,7 +44,7 @@ public static partial class FunctionsOperationsExtensions
///
/// The ETag of the function. Omit this value to always overwrite the current
/// function. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// overwriting concurrent changes.
///
///
/// Set to '*' to allow a new function to be created, but to prevent updating
@@ -69,8 +68,7 @@ public static partial class FunctionsOperationsExtensions
/// or replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -81,7 +79,7 @@ public static partial class FunctionsOperationsExtensions
///
/// The ETag of the function. Omit this value to always overwrite the current
/// function. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// overwriting concurrent changes.
///
///
/// Set to '*' to allow a new function to be created, but to prevent updating
@@ -115,8 +113,7 @@ public static partial class FunctionsOperationsExtensions
/// and not change as a result of this PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -127,7 +124,7 @@ public static partial class FunctionsOperationsExtensions
///
/// The ETag of the function. Omit this value to always overwrite the current
/// function. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// overwriting concurrent changes.
///
public static Function Update(this IFunctionsOperations operations, Function function, string resourceGroupName, string jobName, string functionName, string ifMatch = default(string))
{
@@ -150,8 +147,7 @@ public static partial class FunctionsOperationsExtensions
/// and not change as a result of this PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -162,7 +158,7 @@ public static partial class FunctionsOperationsExtensions
///
/// The ETag of the function. Omit this value to always overwrite the current
/// function. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// overwriting concurrent changes.
///
///
/// The cancellation token.
@@ -182,8 +178,7 @@ public static partial class FunctionsOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -203,8 +198,7 @@ public static void Delete(this IFunctionsOperations operations, string resourceG
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -227,8 +221,7 @@ public static void Delete(this IFunctionsOperations operations, string resourceG
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -248,8 +241,7 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -275,15 +267,14 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list of
- /// structural properties to include in the response, or “*” to include all
+ /// structural properties to include in the response, or "*" to include all
/// properties. By default, all properties are returned except diagnostics.
/// Currently only accepts '*' as a valid value.
///
@@ -299,15 +290,14 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list of
- /// structural properties to include in the response, or “*” to include all
+ /// structural properties to include in the response, or "*" to include all
/// properties. By default, all properties are returned except diagnostics.
/// Currently only accepts '*' as a valid value.
///
@@ -332,8 +322,7 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -364,8 +353,7 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -400,8 +388,7 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -426,8 +413,7 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -460,8 +446,7 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -492,8 +477,7 @@ public static Function Get(this IFunctionsOperations operations, string resource
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IClustersOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IClustersOperations.cs
new file mode 100644
index 000000000000..b1933f366933
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IClustersOperations.cs
@@ -0,0 +1,382 @@
+//
+// 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.StreamAnalytics
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// ClustersOperations operations.
+ ///
+ public partial interface IClustersOperations
+ {
+ ///
+ /// Creates a Stream Analytics Cluster or replaces an already existing
+ /// cluster.
+ ///
+ ///
+ /// The definition of the cluster that will be used to create a new
+ /// cluster or replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the
+ /// current record set. Specify the last-seen ETag value to prevent
+ /// accidentally overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent
+ /// updating an existing record set. Other values will result in a 412
+ /// Pre-condition Failed response.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Updates an existing cluster. This can be used to partially update
+ /// (ie. update one or two properties) a cluster without affecting the
+ /// rest of the cluster definition.
+ ///
+ ///
+ /// The properties specified here will overwrite the corresponding
+ /// properties in the existing cluster (ie. Those properties will be
+ /// updated).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the
+ /// current record set. Specify the last-seen ETag value to prevent
+ /// accidentally overwriting concurrent changes.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> UpdateWithHttpMessagesAsync(Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about the specified cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes the specified cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all of the clusters in the given subscription.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListBySubscriptionWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all of the clusters in the given resource group.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all of the streaming jobs in the given cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListStreamingJobsWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates a Stream Analytics Cluster or replaces an already existing
+ /// cluster.
+ ///
+ ///
+ /// The definition of the cluster that will be used to create a new
+ /// cluster or replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the
+ /// current record set. Specify the last-seen ETag value to prevent
+ /// accidentally overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent
+ /// updating an existing record set. Other values will result in a 412
+ /// Pre-condition Failed response.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginCreateOrUpdateWithHttpMessagesAsync(Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Updates an existing cluster. This can be used to partially update
+ /// (ie. update one or two properties) a cluster without affecting the
+ /// rest of the cluster definition.
+ ///
+ ///
+ /// The properties specified here will overwrite the corresponding
+ /// properties in the existing cluster (ie. Those properties will be
+ /// updated).
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the
+ /// current record set. Specify the last-seen ETag value to prevent
+ /// accidentally overwriting concurrent changes.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> BeginUpdateWithHttpMessagesAsync(Cluster cluster, string resourceGroupName, string clusterName, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes the specified cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all of the clusters in the given subscription.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListBySubscriptionNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all of the clusters in the given resource group.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists all of the streaming jobs in the given cluster.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListStreamingJobsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IFunctionsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IFunctionsOperations.cs
index e6f679b9830b..9897e987b83a 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IFunctionsOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IFunctionsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -32,9 +32,7 @@ public partial interface IFunctionsOperations
/// function or replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -45,7 +43,7 @@ public partial interface IFunctionsOperations
///
/// The ETag of the function. Omit this value to always overwrite the
/// current function. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// Set to '*' to allow a new function to be created, but to prevent
@@ -83,9 +81,7 @@ public partial interface IFunctionsOperations
/// PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -96,7 +92,7 @@ public partial interface IFunctionsOperations
///
/// The ETag of the function. Omit this value to always overwrite the
/// current function. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// The headers that will be added to request.
@@ -118,9 +114,7 @@ public partial interface IFunctionsOperations
/// Deletes a function from the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -145,9 +139,7 @@ public partial interface IFunctionsOperations
/// Gets details about the specified function.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -175,16 +167,14 @@ public partial interface IFunctionsOperations
/// Lists all of the functions under the specified streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list
- /// of structural properties to include in the response, or “*” to
+ /// of structural properties to include in the response, or "*" to
/// include all properties. By default, all properties are returned
/// except diagnostics. Currently only accepts '*' as a valid value.
///
@@ -211,9 +201,7 @@ public partial interface IFunctionsOperations
/// syntactically correct.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -251,9 +239,7 @@ public partial interface IFunctionsOperations
/// parameters specified.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -288,9 +274,7 @@ public partial interface IFunctionsOperations
/// syntactically correct.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IInputsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IInputsOperations.cs
index a3a0b7192fd4..345445299276 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IInputsOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IInputsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -32,9 +32,7 @@ public partial interface IInputsOperations
/// or replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -45,7 +43,7 @@ public partial interface IInputsOperations
///
/// The ETag of the input. Omit this value to always overwrite the
/// current input. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// Set to '*' to allow a new input to be created, but to prevent
@@ -82,9 +80,7 @@ public partial interface IInputsOperations
/// operation.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -95,7 +91,7 @@ public partial interface IInputsOperations
///
/// The ETag of the input. Omit this value to always overwrite the
/// current input. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// The headers that will be added to request.
@@ -117,9 +113,7 @@ public partial interface IInputsOperations
/// Deletes an input from the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -144,9 +138,7 @@ public partial interface IInputsOperations
/// Gets details about the specified input.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -174,16 +166,14 @@ public partial interface IInputsOperations
/// Lists all of the inputs under the specified streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list
- /// of structural properties to include in the response, or “*” to
+ /// of structural properties to include in the response, or "*" to
/// include all properties. By default, all properties are returned
/// except diagnostics. Currently only accepts '*' as a valid value.
///
@@ -208,9 +198,7 @@ public partial interface IInputsOperations
/// Azure Stream Analytics service.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -248,9 +236,7 @@ public partial interface IInputsOperations
/// Azure Stream Analytics service.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IOperations.cs
index 14a3d1a303e8..6a1409c3269e 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IOutputsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IOutputsOperations.cs
index ca25e6195dbd..6bb2591b0645 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IOutputsOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IOutputsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -32,9 +32,7 @@ public partial interface IOutputsOperations
/// output or replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -45,7 +43,7 @@ public partial interface IOutputsOperations
///
/// The ETag of the output. Omit this value to always overwrite the
/// current output. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// Set to '*' to allow a new output to be created, but to prevent
@@ -82,9 +80,7 @@ public partial interface IOutputsOperations
/// PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -95,7 +91,7 @@ public partial interface IOutputsOperations
///
/// The ETag of the output. Omit this value to always overwrite the
/// current output. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// The headers that will be added to request.
@@ -117,9 +113,7 @@ public partial interface IOutputsOperations
/// Deletes an output from the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -144,9 +138,7 @@ public partial interface IOutputsOperations
/// Gets details about the specified output.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -174,16 +166,14 @@ public partial interface IOutputsOperations
/// Lists all of the outputs under the specified streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list
- /// of structural properties to include in the response, or “*” to
+ /// of structural properties to include in the response, or "*" to
/// include all properties. By default, all properties are returned
/// except diagnostics. Currently only accepts '*' as a valid value.
///
@@ -208,9 +198,7 @@ public partial interface IOutputsOperations
/// Azure Stream Analytics service.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -248,9 +236,7 @@ public partial interface IOutputsOperations
/// Azure Stream Analytics service.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IPrivateEndpointsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IPrivateEndpointsOperations.cs
new file mode 100644
index 000000000000..65bb421f77bf
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IPrivateEndpointsOperations.cs
@@ -0,0 +1,195 @@
+//
+// 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.StreamAnalytics
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// PrivateEndpointsOperations operations.
+ ///
+ public partial interface IPrivateEndpointsOperations
+ {
+ ///
+ /// Creates a Stream Analytics Private Endpoint or replaces an already
+ /// existing Private Endpoint.
+ ///
+ ///
+ /// The definition of the private endpoint that will be used to create
+ /// a new cluster or replace the existing one.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The name of the private endpoint.
+ ///
+ ///
+ /// The ETag of the resource. Omit this value to always overwrite the
+ /// current record set. Specify the last-seen ETag value to prevent
+ /// accidentally overwriting concurrent changes.
+ ///
+ ///
+ /// Set to '*' to allow a new resource to be created, but to prevent
+ /// updating an existing record set. Other values will result in a 412
+ /// Pre-condition Failed response.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(PrivateEndpoint privateEndpoint, string resourceGroupName, string clusterName, string privateEndpointName, string ifMatch = default(string), string ifNoneMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets information about the specified Private Endpoint.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The name of the private endpoint.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete the specified private endpoint.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The name of the private endpoint.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists the private endpoints in the cluster.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListByClusterWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Delete the specified private endpoint.
+ ///
+ ///
+ /// The name of the resource group. The name is case insensitive.
+ ///
+ ///
+ /// The name of the cluster.
+ ///
+ ///
+ /// The name of the private endpoint.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Lists the private endpoints in the cluster.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListByClusterNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IStreamAnalyticsManagementClient.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IStreamAnalyticsManagementClient.cs
index d8be5d839ace..a2f00f15315f 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IStreamAnalyticsManagementClient.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IStreamAnalyticsManagementClient.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -41,43 +41,33 @@ public partial interface IStreamAnalyticsManagementClient : System.IDisposable
ServiceClientCredentials Credentials { get; }
///
- /// GUID which uniquely identify Microsoft Azure subscription. The
- /// subscription ID forms part of the URI for every service call.
+ /// The ID of the target subscription.
///
string SubscriptionId { get; set; }
///
- /// Client Api Version.
- ///
- string ApiVersion { get; }
-
- ///
- /// Gets or sets the preferred language for the response.
+ /// The preferred language for the response.
///
string AcceptLanguage { get; set; }
///
- /// Gets or sets the retry timeout in seconds for Long Running
- /// Operations. Default value is 30.
+ /// The retry timeout in seconds for Long Running Operations. Default
+ /// value is 30.
///
int? LongRunningOperationRetryTimeout { get; set; }
///
- /// When set to true a unique x-ms-client-request-id value is generated
- /// and included in each request. Default is true.
+ /// Whether a unique x-ms-client-request-id should be generated. When
+ /// set to true a unique x-ms-client-request-id value is generated and
+ /// included in each request. Default is true.
///
bool? GenerateClientRequestId { get; set; }
///
- /// Gets the IOperations.
- ///
- IOperations Operations { get; }
-
- ///
- /// Gets the IStreamingJobsOperations.
+ /// Gets the IFunctionsOperations.
///
- IStreamingJobsOperations StreamingJobs { get; }
+ IFunctionsOperations Functions { get; }
///
/// Gets the IInputsOperations.
@@ -89,20 +79,35 @@ public partial interface IStreamAnalyticsManagementClient : System.IDisposable
///
IOutputsOperations Outputs { get; }
+ ///
+ /// Gets the IStreamingJobsOperations.
+ ///
+ IStreamingJobsOperations StreamingJobs { get; }
+
+ ///
+ /// Gets the ISubscriptionsOperations.
+ ///
+ ISubscriptionsOperations Subscriptions { get; }
+
///
/// Gets the ITransformationsOperations.
///
ITransformationsOperations Transformations { get; }
///
- /// Gets the IFunctionsOperations.
+ /// Gets the IOperations.
///
- IFunctionsOperations Functions { get; }
+ IOperations Operations { get; }
///
- /// Gets the ISubscriptionsOperations.
+ /// Gets the IClustersOperations.
///
- ISubscriptionsOperations Subscriptions { get; }
+ IClustersOperations Clusters { get; }
+
+ ///
+ /// Gets the IPrivateEndpointsOperations.
+ ///
+ IPrivateEndpointsOperations PrivateEndpoints { get; }
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IStreamingJobsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IStreamingJobsOperations.cs
index 8ddfc43cb070..0bf2575a402d 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IStreamingJobsOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/IStreamingJobsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -32,9 +32,7 @@ public partial interface IStreamingJobsOperations
/// new streaming job or replace the existing one.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -42,7 +40,7 @@ public partial interface IStreamingJobsOperations
///
/// The ETag of the streaming job. Omit this value to always overwrite
/// the current record set. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// Set to '*' to allow a new streaming job to be created, but to
@@ -79,9 +77,7 @@ public partial interface IStreamingJobsOperations
/// this PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -89,7 +85,7 @@ public partial interface IStreamingJobsOperations
///
/// The ETag of the streaming job. Omit this value to always overwrite
/// the current record set. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// The headers that will be added to request.
@@ -111,9 +107,7 @@ public partial interface IStreamingJobsOperations
/// Deletes a streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -135,9 +129,7 @@ public partial interface IStreamingJobsOperations
/// Gets details about the specified streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -169,9 +161,7 @@ public partial interface IStreamingJobsOperations
/// Lists all of the streaming jobs in the specified resource group.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The $expand OData query parameter. This is a comma-separated list
@@ -227,9 +217,7 @@ public partial interface IStreamingJobsOperations
/// processing input events and produce output.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -255,9 +243,7 @@ public partial interface IStreamingJobsOperations
/// job to stop processing input events and producing output.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -284,9 +270,7 @@ public partial interface IStreamingJobsOperations
/// new streaming job or replace the existing one.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -294,7 +278,7 @@ public partial interface IStreamingJobsOperations
///
/// The ETag of the streaming job. Omit this value to always overwrite
/// the current record set. Specify the last-seen ETag value to prevent
- /// accidentally overwritting concurrent changes.
+ /// accidentally overwriting concurrent changes.
///
///
/// Set to '*' to allow a new streaming job to be created, but to
@@ -321,9 +305,7 @@ public partial interface IStreamingJobsOperations
/// Deletes a streaming job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -346,9 +328,7 @@ public partial interface IStreamingJobsOperations
/// processing input events and produce output.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -374,9 +354,7 @@ public partial interface IStreamingJobsOperations
/// job to stop processing input events and producing output.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ISubscriptionsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ISubscriptionsOperations.cs
index 279b33a11339..5a0bdd1262f7 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ISubscriptionsOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ISubscriptionsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ITransformationsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ITransformationsOperations.cs
index a3c9dc87f16b..64a7516ef810 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ITransformationsOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/ITransformationsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -33,9 +33,7 @@ public partial interface ITransformationsOperations
/// job.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -46,7 +44,7 @@ public partial interface ITransformationsOperations
///
/// The ETag of the transformation. Omit this value to always overwrite
/// the current transformation. Specify the last-seen ETag value to
- /// prevent accidentally overwritting concurrent changes.
+ /// prevent accidentally overwriting concurrent changes.
///
///
/// Set to '*' to allow a new transformation to be created, but to
@@ -84,9 +82,7 @@ public partial interface ITransformationsOperations
/// the same and not change as a result of this PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -97,7 +93,7 @@ public partial interface ITransformationsOperations
///
/// The ETag of the transformation. Omit this value to always overwrite
/// the current transformation. Specify the last-seen ETag value to
- /// prevent accidentally overwritting concurrent changes.
+ /// prevent accidentally overwriting concurrent changes.
///
///
/// The headers that will be added to request.
@@ -119,9 +115,7 @@ public partial interface ITransformationsOperations
/// Gets details about the specified transformation.
///
///
- /// The name of the resource group that contains the resource. You can
- /// obtain this value from the Azure Resource Manager API or the
- /// portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/InputsOperations.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/InputsOperations.cs
index 51c7296e3f28..c2f98caabf86 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/InputsOperations.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/InputsOperations.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -59,8 +59,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
/// replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -70,8 +69,8 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
///
///
/// The ETag of the input. Omit this value to always overwrite the current
- /// input. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// input. Specify the last-seen ETag value to prevent accidentally overwriting
+ /// concurrent changes.
///
///
/// Set to '*' to allow a new input to be created, but to prevent updating an
@@ -105,18 +104,40 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "input");
}
- if (Client.ApiVersion == null)
+ if (input != null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ input.Validate();
}
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -125,6 +146,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "inputName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -135,6 +157,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
tracingParameters.Add("input", input);
tracingParameters.Add("ifMatch", ifMatch);
tracingParameters.Add("ifNoneMatch", ifNoneMatch);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("inputName", inputName);
@@ -149,9 +172,9 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{inputName}", System.Uri.EscapeDataString(inputName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -344,8 +367,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
/// change as a result of this PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -355,8 +377,8 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
///
///
/// The ETag of the input. Omit this value to always overwrite the current
- /// input. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// input. Specify the last-seen ETag value to prevent accidentally overwriting
+ /// concurrent changes.
///
///
/// Headers that will be added to request.
@@ -385,18 +407,36 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "input");
}
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -405,6 +445,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "inputName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -414,6 +455,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("input", input);
tracingParameters.Add("ifMatch", ifMatch);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("inputName", inputName);
@@ -428,9 +470,9 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{inputName}", System.Uri.EscapeDataString(inputName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -588,8 +630,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
/// Deletes an input from the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -617,18 +658,36 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
///
public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string jobName, string inputName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -637,6 +696,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "inputName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -644,6 +704,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("inputName", inputName);
@@ -658,9 +719,9 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{inputName}", System.Uri.EscapeDataString(inputName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -773,8 +834,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
/// Gets details about the specified input.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -805,18 +865,36 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
///
public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string jobName, string inputName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -825,6 +903,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "inputName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -832,6 +911,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("inputName", inputName);
@@ -846,9 +926,9 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{inputName}", System.Uri.EscapeDataString(inputName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -992,15 +1072,14 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
/// Lists all of the inputs under the specified streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list of
- /// structural properties to include in the response, or “*” to include all
+ /// structural properties to include in the response, or "*" to include all
/// properties. By default, all properties are returned except diagnostics.
/// Currently only accepts '*' as a valid value.
///
@@ -1027,22 +1106,41 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
///
public async Task>> ListByStreamingJobWithHttpMessagesAsync(string resourceGroupName, string jobName, string select = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
- }
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1051,6 +1149,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("select", select);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -1067,9 +1166,9 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
_queryParameters.Add(string.Format("$select={0}", System.Uri.EscapeDataString(select)));
}
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
@@ -1201,8 +1300,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
/// Stream Analytics service.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -1236,8 +1334,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
/// Stream Analytics service.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -1276,18 +1373,40 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
///
public async Task> BeginTestWithHttpMessagesAsync(string resourceGroupName, string jobName, string inputName, Input input = default(Input), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
+ if (input != null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ input.Validate();
}
if (Client.SubscriptionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
+ if (Client.SubscriptionId != null)
+ {
+ if (Client.SubscriptionId.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "Client.SubscriptionId", 1);
+ }
+ }
if (resourceGroupName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ if (!System.Text.RegularExpressions.Regex.IsMatch(resourceGroupName, "^[-\\w\\._\\(\\)]+$"))
+ {
+ throw new ValidationException(ValidationRules.Pattern, "resourceGroupName", "^[-\\w\\._\\(\\)]+$");
+ }
+ }
if (jobName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "jobName");
@@ -1296,6 +1415,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "inputName");
}
+ string apiVersion = "2017-04-01-preview";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1304,6 +1424,7 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("input", input);
+ tracingParameters.Add("apiVersion", apiVersion);
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("jobName", jobName);
tracingParameters.Add("inputName", inputName);
@@ -1318,9 +1439,9 @@ internal InputsOperations(StreamAnalyticsManagementClient client)
_url = _url.Replace("{jobName}", System.Uri.EscapeDataString(jobName));
_url = _url.Replace("{inputName}", System.Uri.EscapeDataString(inputName));
List _queryParameters = new List();
- if (Client.ApiVersion != null)
+ if (apiVersion != null)
{
- _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(apiVersion)));
}
if (_queryParameters.Count > 0)
{
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/InputsOperationsExtensions.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/InputsOperationsExtensions.cs
index f75d8eba2cfe..9145a16c7499 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/InputsOperationsExtensions.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/InputsOperationsExtensions.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,11 +6,10 @@
// 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.StreamAnalytics
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Models;
@@ -33,8 +33,7 @@ public static partial class InputsOperationsExtensions
/// replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -44,8 +43,8 @@ public static partial class InputsOperationsExtensions
///
///
/// The ETag of the input. Omit this value to always overwrite the current
- /// input. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// input. Specify the last-seen ETag value to prevent accidentally overwriting
+ /// concurrent changes.
///
///
/// Set to '*' to allow a new input to be created, but to prevent updating an
@@ -69,8 +68,7 @@ public static partial class InputsOperationsExtensions
/// replace the existing one under the streaming job.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -80,8 +78,8 @@ public static partial class InputsOperationsExtensions
///
///
/// The ETag of the input. Omit this value to always overwrite the current
- /// input. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// input. Specify the last-seen ETag value to prevent accidentally overwriting
+ /// concurrent changes.
///
///
/// Set to '*' to allow a new input to be created, but to prevent updating an
@@ -115,8 +113,7 @@ public static partial class InputsOperationsExtensions
/// change as a result of this PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -126,8 +123,8 @@ public static partial class InputsOperationsExtensions
///
///
/// The ETag of the input. Omit this value to always overwrite the current
- /// input. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// input. Specify the last-seen ETag value to prevent accidentally overwriting
+ /// concurrent changes.
///
public static Input Update(this IInputsOperations operations, Input input, string resourceGroupName, string jobName, string inputName, string ifMatch = default(string))
{
@@ -150,8 +147,7 @@ public static partial class InputsOperationsExtensions
/// change as a result of this PATCH operation.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -161,8 +157,8 @@ public static partial class InputsOperationsExtensions
///
///
/// The ETag of the input. Omit this value to always overwrite the current
- /// input. Specify the last-seen ETag value to prevent accidentally
- /// overwritting concurrent changes.
+ /// input. Specify the last-seen ETag value to prevent accidentally overwriting
+ /// concurrent changes.
///
///
/// The cancellation token.
@@ -182,8 +178,7 @@ public static partial class InputsOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -203,8 +198,7 @@ public static void Delete(this IInputsOperations operations, string resourceGrou
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -227,8 +221,7 @@ public static void Delete(this IInputsOperations operations, string resourceGrou
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -248,8 +241,7 @@ public static Input Get(this IInputsOperations operations, string resourceGroupN
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -275,15 +267,14 @@ public static Input Get(this IInputsOperations operations, string resourceGroupN
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list of
- /// structural properties to include in the response, or “*” to include all
+ /// structural properties to include in the response, or "*" to include all
/// properties. By default, all properties are returned except diagnostics.
/// Currently only accepts '*' as a valid value.
///
@@ -299,15 +290,14 @@ public static Input Get(this IInputsOperations operations, string resourceGroupN
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
///
///
/// The $select OData query parameter. This is a comma-separated list of
- /// structural properties to include in the response, or “*” to include all
+ /// structural properties to include in the response, or "*" to include all
/// properties. By default, all properties are returned except diagnostics.
/// Currently only accepts '*' as a valid value.
///
@@ -330,8 +320,7 @@ public static Input Get(this IInputsOperations operations, string resourceGroupN
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -360,8 +349,7 @@ public static Input Get(this IInputsOperations operations, string resourceGroupN
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -396,8 +384,7 @@ public static Input Get(this IInputsOperations operations, string resourceGroupN
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
@@ -426,8 +413,7 @@ public static Input Get(this IInputsOperations operations, string resourceGroupN
/// The operations group for this extension method.
///
///
- /// The name of the resource group that contains the resource. You can obtain
- /// this value from the Azure Resource Manager API or the portal.
+ /// The name of the resource group. The name is case insensitive.
///
///
/// The name of the streaming job.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AggregateFunctionProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AggregateFunctionProperties.cs
new file mode 100644
index 000000000000..67d042b8a6dc
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AggregateFunctionProperties.cs
@@ -0,0 +1,54 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The properties that are associated with an aggregate function.
+ ///
+ [Newtonsoft.Json.JsonObject("Aggregate")]
+ public partial class AggregateFunctionProperties : FunctionProperties
+ {
+ ///
+ /// Initializes a new instance of the AggregateFunctionProperties
+ /// class.
+ ///
+ public AggregateFunctionProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AggregateFunctionProperties
+ /// class.
+ ///
+ /// The current entity tag for the function. This is
+ /// an opaque string. You can use it to detect whether the resource has
+ /// changed between requests. You can also use it in the If-Match or
+ /// If-None-Match headers for write operations for optimistic
+ /// concurrency.
+ public AggregateFunctionProperties(string etag = default(string), IList inputs = default(IList), FunctionOutput output = default(FunctionOutput), FunctionBinding binding = default(FunctionBinding))
+ : base(etag, inputs, output, binding)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AuthenticationMode.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AuthenticationMode.cs
new file mode 100644
index 000000000000..3f6875658706
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AuthenticationMode.cs
@@ -0,0 +1,23 @@
+//
+// 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.StreamAnalytics.Models
+{
+
+ ///
+ /// Defines values for AuthenticationMode.
+ ///
+ public static class AuthenticationMode
+ {
+ public const string Msi = "Msi";
+ public const string UserToken = "UserToken";
+ public const string ConnectionString = "ConnectionString";
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AvroSerialization.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AvroSerialization.cs
index c1e608a711fb..aa5af7fbfe53 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AvroSerialization.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AvroSerialization.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -26,7 +25,7 @@ public partial class AvroSerialization : Serialization
///
public AvroSerialization()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureDataLakeStoreOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureDataLakeStoreOutputDataSource.cs
index cfe3dc664f7c..005669c28510 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureDataLakeStoreOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureDataLakeStoreOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -29,7 +28,7 @@ public partial class AzureDataLakeStoreOutputDataSource : OutputDataSource
///
public AzureDataLakeStoreOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
@@ -65,7 +64,9 @@ public AzureDataLakeStoreOutputDataSource()
/// The time format. Wherever {time} appears
/// in filePathPrefix, the value of this property is used as the time
/// format instead.
- public AzureDataLakeStoreOutputDataSource(string refreshToken = default(string), string tokenUserPrincipalName = default(string), string tokenUserDisplayName = default(string), string accountName = default(string), string tenantId = default(string), string filePathPrefix = default(string), string dateFormat = default(string), string timeFormat = default(string))
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ public AzureDataLakeStoreOutputDataSource(string refreshToken = default(string), string tokenUserPrincipalName = default(string), string tokenUserDisplayName = default(string), string accountName = default(string), string tenantId = default(string), string filePathPrefix = default(string), string dateFormat = default(string), string timeFormat = default(string), string authenticationMode = default(string))
{
RefreshToken = refreshToken;
TokenUserPrincipalName = tokenUserPrincipalName;
@@ -75,6 +76,7 @@ public AzureDataLakeStoreOutputDataSource()
FilePathPrefix = filePathPrefix;
DateFormat = dateFormat;
TimeFormat = timeFormat;
+ AuthenticationMode = authenticationMode;
CustomInit();
}
@@ -148,5 +150,12 @@ public AzureDataLakeStoreOutputDataSource()
[JsonProperty(PropertyName = "properties.timeFormat")]
public string TimeFormat { get; set; }
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureFunctionOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureFunctionOutputDataSource.cs
new file mode 100644
index 000000000000..640d502badcf
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureFunctionOutputDataSource.cs
@@ -0,0 +1,104 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines the metadata of AzureFunctionOutputDataSource
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.AzureFunction")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class AzureFunctionOutputDataSource : OutputDataSource
+ {
+ ///
+ /// Initializes a new instance of the AzureFunctionOutputDataSource
+ /// class.
+ ///
+ public AzureFunctionOutputDataSource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AzureFunctionOutputDataSource
+ /// class.
+ ///
+ /// The name of your Azure Functions
+ /// app.
+ /// The name of the function in your Azure
+ /// Functions app.
+ /// If you want to use an Azure Function from
+ /// another subscription, you can do so by providing the key to access
+ /// your function.
+ /// A property that lets you set the maximum
+ /// size for each output batch that's sent to your Azure function. The
+ /// input unit is in bytes. By default, this value is 262,144 bytes
+ /// (256 KB).
+ /// A property that lets you specify the
+ /// maximum number of events in each batch that's sent to Azure
+ /// Functions. The default value is 100.
+ public AzureFunctionOutputDataSource(string functionAppName = default(string), string functionName = default(string), string apiKey = default(string), double? maxBatchSize = default(double?), double? maxBatchCount = default(double?))
+ {
+ FunctionAppName = functionAppName;
+ FunctionName = functionName;
+ ApiKey = apiKey;
+ MaxBatchSize = maxBatchSize;
+ MaxBatchCount = maxBatchCount;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name of your Azure Functions app.
+ ///
+ [JsonProperty(PropertyName = "properties.functionAppName")]
+ public string FunctionAppName { get; set; }
+
+ ///
+ /// Gets or sets the name of the function in your Azure Functions app.
+ ///
+ [JsonProperty(PropertyName = "properties.functionName")]
+ public string FunctionName { get; set; }
+
+ ///
+ /// Gets or sets if you want to use an Azure Function from another
+ /// subscription, you can do so by providing the key to access your
+ /// function.
+ ///
+ [JsonProperty(PropertyName = "properties.apiKey")]
+ public string ApiKey { get; set; }
+
+ ///
+ /// Gets or sets a property that lets you set the maximum size for each
+ /// output batch that's sent to your Azure function. The input unit is
+ /// in bytes. By default, this value is 262,144 bytes (256 KB).
+ ///
+ [JsonProperty(PropertyName = "properties.maxBatchSize")]
+ public double? MaxBatchSize { get; set; }
+
+ ///
+ /// Gets or sets a property that lets you specify the maximum number of
+ /// events in each batch that's sent to Azure Functions. The default
+ /// value is 100.
+ ///
+ [JsonProperty(PropertyName = "properties.maxBatchCount")]
+ public double? MaxBatchCount { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceFunctionBinding.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceFunctionBinding.cs
new file mode 100644
index 000000000000..032e19e52057
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceFunctionBinding.cs
@@ -0,0 +1,114 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The binding to an Azure Machine Learning web service.
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.MachineLearningServices")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class AzureMachineLearningServiceFunctionBinding : FunctionBinding
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AzureMachineLearningServiceFunctionBinding class.
+ ///
+ public AzureMachineLearningServiceFunctionBinding()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AzureMachineLearningServiceFunctionBinding class.
+ ///
+ /// The Request-Response execute endpoint of the
+ /// Azure Machine Learning web service.
+ /// The API key used to authenticate with
+ /// Request-Response endpoint.
+ /// The inputs for the Azure Machine Learning web
+ /// service endpoint.
+ /// A list of outputs from the Azure Machine
+ /// Learning web service endpoint execution.
+ /// Number between 1 and 10000 describing
+ /// maximum number of rows for every Azure ML RRS execute request.
+ /// Default is 1000.
+ /// The number of parallel
+ /// requests that will be sent per partition of your job to the machine
+ /// learning service. Default is 1.
+ public AzureMachineLearningServiceFunctionBinding(string endpoint = default(string), string apiKey = default(string), IList inputs = default(IList), IList outputs = default(IList), int? batchSize = default(int?), int? numberOfParallelRequests = default(int?))
+ {
+ Endpoint = endpoint;
+ ApiKey = apiKey;
+ Inputs = inputs;
+ Outputs = outputs;
+ BatchSize = batchSize;
+ NumberOfParallelRequests = numberOfParallelRequests;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the Request-Response execute endpoint of the Azure
+ /// Machine Learning web service.
+ ///
+ [JsonProperty(PropertyName = "properties.endpoint")]
+ public string Endpoint { get; set; }
+
+ ///
+ /// Gets or sets the API key used to authenticate with Request-Response
+ /// endpoint.
+ ///
+ [JsonProperty(PropertyName = "properties.apiKey")]
+ public string ApiKey { get; set; }
+
+ ///
+ /// Gets or sets the inputs for the Azure Machine Learning web service
+ /// endpoint.
+ ///
+ [JsonProperty(PropertyName = "properties.inputs")]
+ public IList Inputs { get; set; }
+
+ ///
+ /// Gets or sets a list of outputs from the Azure Machine Learning web
+ /// service endpoint execution.
+ ///
+ [JsonProperty(PropertyName = "properties.outputs")]
+ public IList Outputs { get; set; }
+
+ ///
+ /// Gets or sets number between 1 and 10000 describing maximum number
+ /// of rows for every Azure ML RRS execute request. Default is 1000.
+ ///
+ [JsonProperty(PropertyName = "properties.batchSize")]
+ public int? BatchSize { get; set; }
+
+ ///
+ /// Gets or sets the number of parallel requests that will be sent per
+ /// partition of your job to the machine learning service. Default is
+ /// 1.
+ ///
+ [JsonProperty(PropertyName = "properties.numberOfParallelRequests")]
+ public int? NumberOfParallelRequests { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters.cs
new file mode 100644
index 000000000000..cb50473dd77c
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters.cs
@@ -0,0 +1,71 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The parameters needed to retrieve the default function definition for
+ /// an Azure Machine Learning web service function.
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.MachineLearningServices")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters : FunctionRetrieveDefaultDefinitionParameters
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters
+ /// class.
+ ///
+ public AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters
+ /// class.
+ ///
+ /// The Request-Response execute endpoint
+ /// of the Azure Machine Learning web service.
+ /// The function type. Possible values include:
+ /// 'Scalar'
+ public AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters(string executeEndpoint = default(string), UdfType? udfType = default(UdfType?))
+ {
+ ExecuteEndpoint = executeEndpoint;
+ UdfType = udfType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the Request-Response execute endpoint of the Azure
+ /// Machine Learning web service.
+ ///
+ [JsonProperty(PropertyName = "bindingRetrievalProperties.executeEndpoint")]
+ public string ExecuteEndpoint { get; set; }
+
+ ///
+ /// Gets or sets the function type. Possible values include: 'Scalar'
+ ///
+ [JsonProperty(PropertyName = "bindingRetrievalProperties.udfType")]
+ public UdfType? UdfType { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceInputColumn.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceInputColumn.cs
new file mode 100644
index 000000000000..2e0cb1c5a6bf
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceInputColumn.cs
@@ -0,0 +1,74 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes an input column for the Azure Machine Learning web service
+ /// endpoint.
+ ///
+ public partial class AzureMachineLearningServiceInputColumn
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AzureMachineLearningServiceInputColumn class.
+ ///
+ public AzureMachineLearningServiceInputColumn()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AzureMachineLearningServiceInputColumn class.
+ ///
+ /// The name of the input column.
+ /// The (Azure Machine Learning supported) data
+ /// type of the input column.
+ /// The zero based index of the function parameter
+ /// this input maps to.
+ public AzureMachineLearningServiceInputColumn(string name = default(string), string dataType = default(string), int? mapTo = default(int?))
+ {
+ Name = name;
+ DataType = dataType;
+ MapTo = mapTo;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name of the input column.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets the (Azure Machine Learning supported) data type of
+ /// the input column.
+ ///
+ [JsonProperty(PropertyName = "dataType")]
+ public string DataType { get; set; }
+
+ ///
+ /// Gets or sets the zero based index of the function parameter this
+ /// input maps to.
+ ///
+ [JsonProperty(PropertyName = "mapTo")]
+ public int? MapTo { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceInputs.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceInputs.cs
similarity index 69%
rename from sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceInputs.cs
rename to sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceInputs.cs
index 669c8dda8b37..d2604ac739af 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceInputs.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceInputs.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -19,26 +18,26 @@ namespace Microsoft.Azure.Management.StreamAnalytics.Models
///
/// The inputs for the Azure Machine Learning web service endpoint.
///
- public partial class AzureMachineLearningWebServiceInputs
+ public partial class AzureMachineLearningServiceInputs
{
///
- /// Initializes a new instance of the
- /// AzureMachineLearningWebServiceInputs class.
+ /// Initializes a new instance of the AzureMachineLearningServiceInputs
+ /// class.
///
- public AzureMachineLearningWebServiceInputs()
+ public AzureMachineLearningServiceInputs()
{
- CustomInit();
+ CustomInit();
}
///
- /// Initializes a new instance of the
- /// AzureMachineLearningWebServiceInputs class.
+ /// Initializes a new instance of the AzureMachineLearningServiceInputs
+ /// class.
///
/// The name of the input. This is the name provided
/// while authoring the endpoint.
/// A list of input columns for the Azure
/// Machine Learning web service endpoint.
- public AzureMachineLearningWebServiceInputs(string name = default(string), IList columnNames = default(IList))
+ public AzureMachineLearningServiceInputs(string name = default(string), IList columnNames = default(IList))
{
Name = name;
ColumnNames = columnNames;
@@ -62,7 +61,7 @@ public AzureMachineLearningWebServiceInputs()
/// web service endpoint.
///
[JsonProperty(PropertyName = "columnNames")]
- public IList ColumnNames { get; set; }
+ public IList ColumnNames { get; set; }
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceOutputColumn.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceOutputColumn.cs
new file mode 100644
index 000000000000..0dd0b78762bd
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningServiceOutputColumn.cs
@@ -0,0 +1,74 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes an output column for the Azure Machine Learning web service
+ /// endpoint.
+ ///
+ public partial class AzureMachineLearningServiceOutputColumn
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AzureMachineLearningServiceOutputColumn class.
+ ///
+ public AzureMachineLearningServiceOutputColumn()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AzureMachineLearningServiceOutputColumn class.
+ ///
+ /// The name of the output column.
+ /// The (Azure Machine Learning supported) data
+ /// type of the output column.
+ /// The zero based index of the function parameter
+ /// this input maps to.
+ public AzureMachineLearningServiceOutputColumn(string name = default(string), string dataType = default(string), int? mapTo = default(int?))
+ {
+ Name = name;
+ DataType = dataType;
+ MapTo = mapTo;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name of the output column.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets the (Azure Machine Learning supported) data type of
+ /// the output column.
+ ///
+ [JsonProperty(PropertyName = "dataType")]
+ public string DataType { get; set; }
+
+ ///
+ /// Gets or sets the zero based index of the function parameter this
+ /// input maps to.
+ ///
+ [JsonProperty(PropertyName = "mapTo")]
+ public int? MapTo { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceFunctionBinding.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioFunctionBinding.cs
similarity index 70%
rename from sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceFunctionBinding.cs
rename to sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioFunctionBinding.cs
index 0a87da6a193c..4e245c6304a8 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceFunctionBinding.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioFunctionBinding.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -19,38 +18,38 @@ namespace Microsoft.Azure.Management.StreamAnalytics.Models
using System.Linq;
///
- /// The binding to an Azure Machine Learning web service.
+ /// The binding to an Azure Machine Learning Studio.
///
[Newtonsoft.Json.JsonObject("Microsoft.MachineLearning/WebService")]
[Rest.Serialization.JsonTransformation]
- public partial class AzureMachineLearningWebServiceFunctionBinding : FunctionBinding
+ public partial class AzureMachineLearningStudioFunctionBinding : FunctionBinding
{
///
/// Initializes a new instance of the
- /// AzureMachineLearningWebServiceFunctionBinding class.
+ /// AzureMachineLearningStudioFunctionBinding class.
///
- public AzureMachineLearningWebServiceFunctionBinding()
+ public AzureMachineLearningStudioFunctionBinding()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the
- /// AzureMachineLearningWebServiceFunctionBinding class.
+ /// AzureMachineLearningStudioFunctionBinding class.
///
/// The Request-Response execute endpoint of the
- /// Azure Machine Learning web service. Find out more here:
+ /// Azure Machine Learning Studio. Find out more here:
/// https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
/// The API key used to authenticate with
/// Request-Response endpoint.
- /// The inputs for the Azure Machine Learning web
- /// service endpoint.
+ /// The inputs for the Azure Machine Learning
+ /// Studio endpoint.
/// A list of outputs from the Azure Machine
- /// Learning web service endpoint execution.
+ /// Learning Studio endpoint execution.
/// Number between 1 and 10000 describing
/// maximum number of rows for every Azure ML RRS execute request.
/// Default is 1000.
- public AzureMachineLearningWebServiceFunctionBinding(string endpoint = default(string), string apiKey = default(string), AzureMachineLearningWebServiceInputs inputs = default(AzureMachineLearningWebServiceInputs), IList outputs = default(IList), int? batchSize = default(int?))
+ public AzureMachineLearningStudioFunctionBinding(string endpoint = default(string), string apiKey = default(string), AzureMachineLearningStudioInputs inputs = default(AzureMachineLearningStudioInputs), IList outputs = default(IList), int? batchSize = default(int?))
{
Endpoint = endpoint;
ApiKey = apiKey;
@@ -67,7 +66,7 @@ public AzureMachineLearningWebServiceFunctionBinding()
///
/// Gets or sets the Request-Response execute endpoint of the Azure
- /// Machine Learning web service. Find out more here:
+ /// Machine Learning Studio. Find out more here:
/// https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
///
[JsonProperty(PropertyName = "properties.endpoint")]
@@ -81,18 +80,18 @@ public AzureMachineLearningWebServiceFunctionBinding()
public string ApiKey { get; set; }
///
- /// Gets or sets the inputs for the Azure Machine Learning web service
+ /// Gets or sets the inputs for the Azure Machine Learning Studio
/// endpoint.
///
[JsonProperty(PropertyName = "properties.inputs")]
- public AzureMachineLearningWebServiceInputs Inputs { get; set; }
+ public AzureMachineLearningStudioInputs Inputs { get; set; }
///
- /// Gets or sets a list of outputs from the Azure Machine Learning web
- /// service endpoint execution.
+ /// Gets or sets a list of outputs from the Azure Machine Learning
+ /// Studio endpoint execution.
///
[JsonProperty(PropertyName = "properties.outputs")]
- public IList Outputs { get; set; }
+ public IList Outputs { get; set; }
///
/// Gets or sets number between 1 and 10000 describing maximum number
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters.cs
similarity index 71%
rename from sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters.cs
rename to sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters.cs
index c1eef9e9e632..a11dee3305af 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -18,33 +17,33 @@ namespace Microsoft.Azure.Management.StreamAnalytics.Models
///
/// The parameters needed to retrieve the default function definition for
- /// an Azure Machine Learning web service function.
+ /// an Azure Machine Learning Studio function.
///
[Newtonsoft.Json.JsonObject("Microsoft.MachineLearning/WebService")]
[Rest.Serialization.JsonTransformation]
- public partial class AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters : FunctionRetrieveDefaultDefinitionParameters
+ public partial class AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters : FunctionRetrieveDefaultDefinitionParameters
{
///
/// Initializes a new instance of the
- /// AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters
+ /// AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters
/// class.
///
- public AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters()
+ public AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the
- /// AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters
+ /// AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters
/// class.
///
/// The Request-Response execute endpoint
- /// of the Azure Machine Learning web service. Find out more here:
+ /// of the Azure Machine Learning Studio. Find out more here:
/// https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
/// The function type. Possible values include:
/// 'Scalar'
- public AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters(string executeEndpoint = default(string), UdfType? udfType = default(UdfType?))
+ public AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters(string executeEndpoint = default(string), UdfType? udfType = default(UdfType?))
{
ExecuteEndpoint = executeEndpoint;
UdfType = udfType;
@@ -58,7 +57,7 @@ public AzureMachineLearningWebServiceFunctionRetrieveDefaultDefinitionParameters
///
/// Gets or sets the Request-Response execute endpoint of the Azure
- /// Machine Learning web service. Find out more here:
+ /// Machine Learning Studio. Find out more here:
/// https://docs.microsoft.com/en-us/azure/machine-learning/machine-learning-consume-web-services#request-response-service-rrs
///
[JsonProperty(PropertyName = "bindingRetrievalProperties.executeEndpoint")]
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceInputColumn.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioInputColumn.cs
similarity index 81%
rename from sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceInputColumn.cs
rename to sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioInputColumn.cs
index 4809f0fa03b7..85339833c8a4 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceInputColumn.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioInputColumn.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,33 +6,31 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
///
- /// Describes an input column for the Azure Machine Learning web service
+ /// Describes an input column for the Azure Machine Learning Studio
/// endpoint.
///
- public partial class AzureMachineLearningWebServiceInputColumn
+ public partial class AzureMachineLearningStudioInputColumn
{
///
/// Initializes a new instance of the
- /// AzureMachineLearningWebServiceInputColumn class.
+ /// AzureMachineLearningStudioInputColumn class.
///
- public AzureMachineLearningWebServiceInputColumn()
+ public AzureMachineLearningStudioInputColumn()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the
- /// AzureMachineLearningWebServiceInputColumn class.
+ /// AzureMachineLearningStudioInputColumn class.
///
/// The name of the input column.
/// The (Azure Machine Learning supported) data
@@ -41,7 +40,7 @@ public AzureMachineLearningWebServiceInputColumn()
/// .
/// The zero based index of the function parameter
/// this input maps to.
- public AzureMachineLearningWebServiceInputColumn(string name = default(string), string dataType = default(string), int? mapTo = default(int?))
+ public AzureMachineLearningStudioInputColumn(string name = default(string), string dataType = default(string), int? mapTo = default(int?))
{
Name = name;
DataType = dataType;
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioInputs.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioInputs.cs
new file mode 100644
index 000000000000..3e518949ac41
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioInputs.cs
@@ -0,0 +1,67 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The inputs for the Azure Machine Learning Studio endpoint.
+ ///
+ public partial class AzureMachineLearningStudioInputs
+ {
+ ///
+ /// Initializes a new instance of the AzureMachineLearningStudioInputs
+ /// class.
+ ///
+ public AzureMachineLearningStudioInputs()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AzureMachineLearningStudioInputs
+ /// class.
+ ///
+ /// The name of the input. This is the name provided
+ /// while authoring the endpoint.
+ /// A list of input columns for the Azure
+ /// Machine Learning Studio endpoint.
+ public AzureMachineLearningStudioInputs(string name = default(string), IList columnNames = default(IList))
+ {
+ Name = name;
+ ColumnNames = columnNames;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name of the input. This is the name provided while
+ /// authoring the endpoint.
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets a list of input columns for the Azure Machine Learning
+ /// Studio endpoint.
+ ///
+ [JsonProperty(PropertyName = "columnNames")]
+ public IList ColumnNames { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceOutputColumn.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioOutputColumn.cs
similarity index 78%
rename from sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceOutputColumn.cs
rename to sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioOutputColumn.cs
index 8f47daf7468b..d30c659cc59f 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningWebServiceOutputColumn.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureMachineLearningStudioOutputColumn.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,33 +6,31 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
///
- /// Describes an output column for the Azure Machine Learning web service
+ /// Describes an output column for the Azure Machine Learning Studio
/// endpoint.
///
- public partial class AzureMachineLearningWebServiceOutputColumn
+ public partial class AzureMachineLearningStudioOutputColumn
{
///
/// Initializes a new instance of the
- /// AzureMachineLearningWebServiceOutputColumn class.
+ /// AzureMachineLearningStudioOutputColumn class.
///
- public AzureMachineLearningWebServiceOutputColumn()
+ public AzureMachineLearningStudioOutputColumn()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the
- /// AzureMachineLearningWebServiceOutputColumn class.
+ /// AzureMachineLearningStudioOutputColumn class.
///
/// The name of the output column.
/// The (Azure Machine Learning supported) data
@@ -39,7 +38,7 @@ public AzureMachineLearningWebServiceOutputColumn()
/// data types are described at
/// https://msdn.microsoft.com/en-us/library/azure/dn905923.aspx
/// .
- public AzureMachineLearningWebServiceOutputColumn(string name = default(string), string dataType = default(string))
+ public AzureMachineLearningStudioOutputColumn(string name = default(string), string dataType = default(string))
{
Name = name;
DataType = dataType;
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlDatabaseDataSourceProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlDatabaseDataSourceProperties.cs
index ad890fe0b571..0547b0b90ec9 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlDatabaseDataSourceProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlDatabaseDataSourceProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -26,7 +25,7 @@ public partial class AzureSqlDatabaseDataSourceProperties
///
public AzureSqlDatabaseDataSourceProperties()
{
- CustomInit();
+ CustomInit();
}
///
@@ -46,13 +45,24 @@ public AzureSqlDatabaseDataSourceProperties()
/// requests.
/// The name of the table in the Azure SQL
/// database. Required on PUT (CreateOrReplace) requests.
- public AzureSqlDatabaseDataSourceProperties(string server = default(string), string database = default(string), string user = default(string), string password = default(string), string table = default(string))
+ /// Max Batch count for write to Sql
+ /// database, the default value is 10,000. Optional on PUT
+ /// requests.
+ /// Max Write r count, currently only
+ /// 1(single writer) and 0(based on query partition) are available.
+ /// Optional on PUT requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ public AzureSqlDatabaseDataSourceProperties(string server = default(string), string database = default(string), string user = default(string), string password = default(string), string table = default(string), double? maxBatchCount = default(double?), double? maxWriterCount = default(double?), string authenticationMode = default(string))
{
Server = server;
Database = database;
User = user;
Password = password;
Table = table;
+ MaxBatchCount = maxBatchCount;
+ MaxWriterCount = maxWriterCount;
+ AuthenticationMode = authenticationMode;
CustomInit();
}
@@ -96,5 +106,27 @@ public AzureSqlDatabaseDataSourceProperties()
[JsonProperty(PropertyName = "table")]
public string Table { get; set; }
+ ///
+ /// Gets or sets max Batch count for write to Sql database, the default
+ /// value is 10,000. Optional on PUT requests.
+ ///
+ [JsonProperty(PropertyName = "maxBatchCount")]
+ public double? MaxBatchCount { get; set; }
+
+ ///
+ /// Gets or sets max Write r count, currently only 1(single writer) and
+ /// 0(based on query partition) are available. Optional on PUT
+ /// requests.
+ ///
+ [JsonProperty(PropertyName = "maxWriterCount")]
+ public double? MaxWriterCount { get; set; }
+
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlDatabaseOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlDatabaseOutputDataSource.cs
index a024979a5ecc..c2a9c8aa3c72 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlDatabaseOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlDatabaseOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -29,7 +28,7 @@ public partial class AzureSqlDatabaseOutputDataSource : OutputDataSource
///
public AzureSqlDatabaseOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
@@ -49,13 +48,24 @@ public AzureSqlDatabaseOutputDataSource()
/// requests.
/// The name of the table in the Azure SQL
/// database. Required on PUT (CreateOrReplace) requests.
- public AzureSqlDatabaseOutputDataSource(string server = default(string), string database = default(string), string user = default(string), string password = default(string), string table = default(string))
+ /// Max Batch count for write to Sql
+ /// database, the default value is 10,000. Optional on PUT
+ /// requests.
+ /// Max Write r count, currently only
+ /// 1(single writer) and 0(based on query partition) are available.
+ /// Optional on PUT requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ public AzureSqlDatabaseOutputDataSource(string server = default(string), string database = default(string), string user = default(string), string password = default(string), string table = default(string), double? maxBatchCount = default(double?), double? maxWriterCount = default(double?), string authenticationMode = default(string))
{
Server = server;
Database = database;
User = user;
Password = password;
Table = table;
+ MaxBatchCount = maxBatchCount;
+ MaxWriterCount = maxWriterCount;
+ AuthenticationMode = authenticationMode;
CustomInit();
}
@@ -99,5 +109,27 @@ public AzureSqlDatabaseOutputDataSource()
[JsonProperty(PropertyName = "properties.table")]
public string Table { get; set; }
+ ///
+ /// Gets or sets max Batch count for write to Sql database, the default
+ /// value is 10,000. Optional on PUT requests.
+ ///
+ [JsonProperty(PropertyName = "properties.maxBatchCount")]
+ public double? MaxBatchCount { get; set; }
+
+ ///
+ /// Gets or sets max Write r count, currently only 1(single writer) and
+ /// 0(based on query partition) are available. Optional on PUT
+ /// requests.
+ ///
+ [JsonProperty(PropertyName = "properties.maxWriterCount")]
+ public double? MaxWriterCount { get; set; }
+
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlReferenceInputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlReferenceInputDataSource.cs
new file mode 100644
index 000000000000..176168c7fcee
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlReferenceInputDataSource.cs
@@ -0,0 +1,52 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes an Azure SQL database reference input data source.
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.Sql/Server/Database")]
+ public partial class AzureSqlReferenceInputDataSource : ReferenceInputDataSource
+ {
+ ///
+ /// Initializes a new instance of the AzureSqlReferenceInputDataSource
+ /// class.
+ ///
+ public AzureSqlReferenceInputDataSource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AzureSqlReferenceInputDataSource
+ /// class.
+ ///
+ public AzureSqlReferenceInputDataSource(AzureSqlReferenceInputDataSourceProperties properties = default(AzureSqlReferenceInputDataSourceProperties))
+ {
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public AzureSqlReferenceInputDataSourceProperties Properties { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlReferenceInputDataSourceProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlReferenceInputDataSourceProperties.cs
new file mode 100644
index 000000000000..01358220ee7e
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSqlReferenceInputDataSourceProperties.cs
@@ -0,0 +1,151 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ public partial class AzureSqlReferenceInputDataSourceProperties
+ {
+ ///
+ /// Initializes a new instance of the
+ /// AzureSqlReferenceInputDataSourceProperties class.
+ ///
+ public AzureSqlReferenceInputDataSourceProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// AzureSqlReferenceInputDataSourceProperties class.
+ ///
+ /// This element is associated with the datasource
+ /// element. This is the name of the server that contains the database
+ /// that will be written to.
+ /// This element is associated with the
+ /// datasource element. This is the name of the database that output
+ /// will be written to.
+ /// This element is associated with the datasource
+ /// element. This is the user name that will be used to connect to the
+ /// SQL Database instance.
+ /// This element is associated with the
+ /// datasource element. This is the password that will be used to
+ /// connect to the SQL Database instance.
+ /// This element is associated with the datasource
+ /// element. The name of the table in the Azure SQL database..
+ /// This element is associated with the
+ /// datasource element. This element is of enum type. It indicates what
+ /// kind of data refresh option do we want to
+ /// use:Static/RefreshPeriodicallyWithFull/RefreshPeriodicallyWithDelta
+ /// This element is associated with the
+ /// datasource element. This indicates how frequently the data will be
+ /// fetched from the database. It is of DateTime format.
+ /// This element is associated with the
+ /// datasource element. This query is used to fetch data from the sql
+ /// database.
+ /// This element is associated with
+ /// the datasource element. This query is used to fetch incremental
+ /// changes from the SQL database. To use this option, we recommend
+ /// using temporal tables in Azure SQL Database.
+ public AzureSqlReferenceInputDataSourceProperties(string server = default(string), string database = default(string), string user = default(string), string password = default(string), string table = default(string), string refreshType = default(string), string refreshRate = default(string), string fullSnapshotQuery = default(string), string deltaSnapshotQuery = default(string))
+ {
+ Server = server;
+ Database = database;
+ User = user;
+ Password = password;
+ Table = table;
+ RefreshType = refreshType;
+ RefreshRate = refreshRate;
+ FullSnapshotQuery = fullSnapshotQuery;
+ DeltaSnapshotQuery = deltaSnapshotQuery;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. This is the name of the server that contains the database
+ /// that will be written to.
+ ///
+ [JsonProperty(PropertyName = "server")]
+ public string Server { get; set; }
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. This is the name of the database that output will be
+ /// written to.
+ ///
+ [JsonProperty(PropertyName = "database")]
+ public string Database { get; set; }
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. This is the user name that will be used to connect to the
+ /// SQL Database instance.
+ ///
+ [JsonProperty(PropertyName = "user")]
+ public string User { get; set; }
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. This is the password that will be used to connect to the
+ /// SQL Database instance.
+ ///
+ [JsonProperty(PropertyName = "password")]
+ public string Password { get; set; }
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. The name of the table in the Azure SQL database..
+ ///
+ [JsonProperty(PropertyName = "table")]
+ public string Table { get; set; }
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. This element is of enum type. It indicates what kind of
+ /// data refresh option do we want to
+ /// use:Static/RefreshPeriodicallyWithFull/RefreshPeriodicallyWithDelta
+ ///
+ [JsonProperty(PropertyName = "refreshType")]
+ public string RefreshType { get; set; }
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. This indicates how frequently the data will be fetched
+ /// from the database. It is of DateTime format.
+ ///
+ [JsonProperty(PropertyName = "refreshRate")]
+ public string RefreshRate { get; set; }
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. This query is used to fetch data from the sql database.
+ ///
+ [JsonProperty(PropertyName = "fullSnapshotQuery")]
+ public string FullSnapshotQuery { get; set; }
+
+ ///
+ /// Gets or sets this element is associated with the datasource
+ /// element. This query is used to fetch incremental changes from the
+ /// SQL database. To use this option, we recommend using temporal
+ /// tables in Azure SQL Database.
+ ///
+ [JsonProperty(PropertyName = "deltaSnapshotQuery")]
+ public string DeltaSnapshotQuery { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSynapseDataSourceProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSynapseDataSourceProperties.cs
new file mode 100644
index 000000000000..75c31ffedd6c
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSynapseDataSourceProperties.cs
@@ -0,0 +1,99 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The properties that are associated with an Azure SQL database data
+ /// source.
+ ///
+ public partial class AzureSynapseDataSourceProperties
+ {
+ ///
+ /// Initializes a new instance of the AzureSynapseDataSourceProperties
+ /// class.
+ ///
+ public AzureSynapseDataSourceProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AzureSynapseDataSourceProperties
+ /// class.
+ ///
+ /// The name of the SQL server containing the
+ /// Azure SQL database. Required on PUT (CreateOrReplace)
+ /// requests.
+ /// The name of the Azure SQL database. Required
+ /// on PUT (CreateOrReplace) requests.
+ /// The name of the table in the Azure SQL
+ /// database. Required on PUT (CreateOrReplace) requests.
+ /// The user name that will be used to connect to
+ /// the Azure SQL database. Required on PUT (CreateOrReplace)
+ /// requests.
+ /// The password that will be used to connect to
+ /// the Azure SQL database. Required on PUT (CreateOrReplace)
+ /// requests.
+ public AzureSynapseDataSourceProperties(string server = default(string), string database = default(string), string table = default(string), string user = default(string), string password = default(string))
+ {
+ Server = server;
+ Database = database;
+ Table = table;
+ User = user;
+ Password = password;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name of the SQL server containing the Azure SQL
+ /// database. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "server")]
+ public string Server { get; set; }
+
+ ///
+ /// Gets or sets the name of the Azure SQL database. Required on PUT
+ /// (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "database")]
+ public string Database { get; set; }
+
+ ///
+ /// Gets or sets the name of the table in the Azure SQL database.
+ /// Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "table")]
+ public string Table { get; set; }
+
+ ///
+ /// Gets or sets the user name that will be used to connect to the
+ /// Azure SQL database. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "user")]
+ public string User { get; set; }
+
+ ///
+ /// Gets or sets the password that will be used to connect to the Azure
+ /// SQL database. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "password")]
+ public string Password { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSynapseOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSynapseOutputDataSource.cs
new file mode 100644
index 000000000000..335b700bbffc
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureSynapseOutputDataSource.cs
@@ -0,0 +1,102 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes an Azure Synapse output data source.
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.Sql/Server/DataWarehouse")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class AzureSynapseOutputDataSource : OutputDataSource
+ {
+ ///
+ /// Initializes a new instance of the AzureSynapseOutputDataSource
+ /// class.
+ ///
+ public AzureSynapseOutputDataSource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AzureSynapseOutputDataSource
+ /// class.
+ ///
+ /// The name of the SQL server containing the
+ /// Azure SQL database. Required on PUT (CreateOrReplace)
+ /// requests.
+ /// The name of the Azure SQL database. Required
+ /// on PUT (CreateOrReplace) requests.
+ /// The name of the table in the Azure SQL
+ /// database. Required on PUT (CreateOrReplace) requests.
+ /// The user name that will be used to connect to
+ /// the Azure SQL database. Required on PUT (CreateOrReplace)
+ /// requests.
+ /// The password that will be used to connect to
+ /// the Azure SQL database. Required on PUT (CreateOrReplace)
+ /// requests.
+ public AzureSynapseOutputDataSource(string server = default(string), string database = default(string), string table = default(string), string user = default(string), string password = default(string))
+ {
+ Server = server;
+ Database = database;
+ Table = table;
+ User = user;
+ Password = password;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the name of the SQL server containing the Azure SQL
+ /// database. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.server")]
+ public string Server { get; set; }
+
+ ///
+ /// Gets or sets the name of the Azure SQL database. Required on PUT
+ /// (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.database")]
+ public string Database { get; set; }
+
+ ///
+ /// Gets or sets the name of the table in the Azure SQL database.
+ /// Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.table")]
+ public string Table { get; set; }
+
+ ///
+ /// Gets or sets the user name that will be used to connect to the
+ /// Azure SQL database. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.user")]
+ public string User { get; set; }
+
+ ///
+ /// Gets or sets the password that will be used to connect to the Azure
+ /// SQL database. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.password")]
+ public string Password { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureTableOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureTableOutputDataSource.cs
index bbb165aefd3c..636663a40edd 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureTableOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/AzureTableOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -30,7 +29,7 @@ public partial class AzureTableOutputDataSource : OutputDataSource
///
public AzureTableOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobDataSourceProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobDataSourceProperties.cs
index 8aec583587cc..59d507335471 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobDataSourceProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobDataSourceProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -26,7 +25,7 @@ public partial class BlobDataSourceProperties
///
public BlobDataSourceProperties()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobOutputDataSource.cs
index d22fe48278cb..e07dc79c11cc 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -30,7 +29,7 @@ public partial class BlobOutputDataSource : OutputDataSource
///
public BlobOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
@@ -56,13 +55,16 @@ public BlobOutputDataSource()
/// The time format. Wherever {time} appears
/// in pathPattern, the value of this property is used as the time
/// format instead.
- public BlobOutputDataSource(IList storageAccounts = default(IList), string container = default(string), string pathPattern = default(string), string dateFormat = default(string), string timeFormat = default(string))
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ public BlobOutputDataSource(IList storageAccounts = default(IList), string container = default(string), string pathPattern = default(string), string dateFormat = default(string), string timeFormat = default(string), string authenticationMode = default(string))
{
StorageAccounts = storageAccounts;
Container = container;
PathPattern = pathPattern;
DateFormat = dateFormat;
TimeFormat = timeFormat;
+ AuthenticationMode = authenticationMode;
CustomInit();
}
@@ -115,5 +117,12 @@ public BlobOutputDataSource()
[JsonProperty(PropertyName = "properties.timeFormat")]
public string TimeFormat { get; set; }
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobReferenceInputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobReferenceInputDataSource.cs
index f2e717bb9d10..87ebdcc78b6b 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobReferenceInputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobReferenceInputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -31,7 +30,7 @@ public partial class BlobReferenceInputDataSource : ReferenceInputDataSource
///
public BlobReferenceInputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobStreamInputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobStreamInputDataSource.cs
index 7962941b6a44..300dc2237cd3 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobStreamInputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/BlobStreamInputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -30,7 +29,7 @@ public partial class BlobStreamInputDataSource : StreamInputDataSource
///
public BlobStreamInputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CSharpFunctionBinding.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CSharpFunctionBinding.cs
new file mode 100644
index 000000000000..4d2efc454988
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CSharpFunctionBinding.cs
@@ -0,0 +1,87 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The binding to a CSharp function.
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.StreamAnalytics/CLRUdf")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class CSharpFunctionBinding : FunctionBinding
+ {
+ ///
+ /// Initializes a new instance of the CSharpFunctionBinding class.
+ ///
+ public CSharpFunctionBinding()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CSharpFunctionBinding class.
+ ///
+ /// The Csharp code containing a single function
+ /// definition.
+ /// The Csharp code containing a single function
+ /// definition.
+ /// The Csharp code containing a single
+ /// function definition.
+ /// The Csharp code containing a single function
+ /// definition.
+ public CSharpFunctionBinding(string script = default(string), string dllPath = default(string), string classProperty = default(string), string method = default(string))
+ {
+ Script = script;
+ DllPath = dllPath;
+ ClassProperty = classProperty;
+ Method = method;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the Csharp code containing a single function
+ /// definition.
+ ///
+ [JsonProperty(PropertyName = "properties.script")]
+ public string Script { get; set; }
+
+ ///
+ /// Gets or sets the Csharp code containing a single function
+ /// definition.
+ ///
+ [JsonProperty(PropertyName = "properties.dllPath")]
+ public string DllPath { get; set; }
+
+ ///
+ /// Gets or sets the Csharp code containing a single function
+ /// definition.
+ ///
+ [JsonProperty(PropertyName = "properties.class")]
+ public string ClassProperty { get; set; }
+
+ ///
+ /// Gets or sets the Csharp code containing a single function
+ /// definition.
+ ///
+ [JsonProperty(PropertyName = "properties.method")]
+ public string Method { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CSharpFunctionRetrieveDefaultDefinitionParameters.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CSharpFunctionRetrieveDefaultDefinitionParameters.cs
new file mode 100644
index 000000000000..3be155c592a4
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CSharpFunctionRetrieveDefaultDefinitionParameters.cs
@@ -0,0 +1,69 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The parameters needed to retrieve the default function definition for a
+ /// CSharp function.
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.StreamAnalytics/CLRUdf")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class CSharpFunctionRetrieveDefaultDefinitionParameters : FunctionRetrieveDefaultDefinitionParameters
+ {
+ ///
+ /// Initializes a new instance of the
+ /// CSharpFunctionRetrieveDefaultDefinitionParameters class.
+ ///
+ public CSharpFunctionRetrieveDefaultDefinitionParameters()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// CSharpFunctionRetrieveDefaultDefinitionParameters class.
+ ///
+ /// The CSharp code containing a single function
+ /// definition.
+ /// The function type. Possible values include:
+ /// 'Scalar'
+ public CSharpFunctionRetrieveDefaultDefinitionParameters(string script = default(string), UdfType? udfType = default(UdfType?))
+ {
+ Script = script;
+ UdfType = udfType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the CSharp code containing a single function
+ /// definition.
+ ///
+ [JsonProperty(PropertyName = "bindingRetrievalProperties.script")]
+ public string Script { get; set; }
+
+ ///
+ /// Gets or sets the function type. Possible values include: 'Scalar'
+ ///
+ [JsonProperty(PropertyName = "bindingRetrievalProperties.udfType")]
+ public UdfType? UdfType { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Cluster.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Cluster.cs
new file mode 100644
index 000000000000..bd2976be2e5c
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Cluster.cs
@@ -0,0 +1,100 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A Stream Analytics Cluster object
+ ///
+ public partial class Cluster : TrackedResource
+ {
+ ///
+ /// Initializes a new instance of the Cluster class.
+ ///
+ public Cluster()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Cluster class.
+ ///
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ /// Resource tags.
+ /// The geo-location where the resource
+ /// lives
+ /// The current entity tag for the cluster. This is
+ /// an opaque string. You can use it to detect whether the resource has
+ /// changed between requests. You can also use it in the If-Match or
+ /// If-None-Match headers for write operations for optimistic
+ /// concurrency.
+ /// The properties associated with a Stream
+ /// Analytics cluster.
+ public Cluster(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), ClusterSku sku = default(ClusterSku), string etag = default(string), ClusterProperties properties = default(ClusterProperties))
+ : base(id, name, type, tags, location)
+ {
+ Sku = sku;
+ Etag = etag;
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "sku")]
+ public ClusterSku Sku { get; set; }
+
+ ///
+ /// Gets the current entity tag for the cluster. This is an opaque
+ /// string. You can use it to detect whether the resource has changed
+ /// between requests. You can also use it in the If-Match or
+ /// If-None-Match headers for write operations for optimistic
+ /// concurrency.
+ ///
+ [JsonProperty(PropertyName = "etag")]
+ public string Etag { get; private set; }
+
+ ///
+ /// Gets or sets the properties associated with a Stream Analytics
+ /// cluster.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public ClusterProperties Properties { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Sku != null)
+ {
+ Sku.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterInfo.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterInfo.cs
new file mode 100644
index 000000000000..cb890405d74d
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterInfo.cs
@@ -0,0 +1,51 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The properties associated with a Stream Analytics cluster.
+ ///
+ public partial class ClusterInfo
+ {
+ ///
+ /// Initializes a new instance of the ClusterInfo class.
+ ///
+ public ClusterInfo()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ClusterInfo class.
+ ///
+ /// The resource id of cluster.
+ public ClusterInfo(string id = default(string))
+ {
+ Id = id;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the resource id of cluster.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterJob.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterJob.cs
new file mode 100644
index 000000000000..ebe97a6f4fb6
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterJob.cs
@@ -0,0 +1,73 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A streaming job.
+ ///
+ public partial class ClusterJob
+ {
+ ///
+ /// Initializes a new instance of the ClusterJob class.
+ ///
+ public ClusterJob()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ClusterJob class.
+ ///
+ /// Resource ID of the streaming job.
+ /// The number of streaming units that are
+ /// used by the streaming job.
+ /// Possible values include: 'Created',
+ /// 'Starting', 'Running', 'Stopping', 'Stopped', 'Deleting', 'Failed',
+ /// 'Degraded', 'Restarting', 'Scaling'
+ public ClusterJob(string id = default(string), int? streamingUnits = default(int?), string jobState = default(string))
+ {
+ Id = id;
+ StreamingUnits = streamingUnits;
+ JobState = jobState;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets resource ID of the streaming job.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; private set; }
+
+ ///
+ /// Gets the number of streaming units that are used by the streaming
+ /// job.
+ ///
+ [JsonProperty(PropertyName = "streamingUnits")]
+ public int? StreamingUnits { get; private set; }
+
+ ///
+ /// Gets or sets possible values include: 'Created', 'Starting',
+ /// 'Running', 'Stopping', 'Stopped', 'Deleting', 'Failed', 'Degraded',
+ /// 'Restarting', 'Scaling'
+ ///
+ [JsonProperty(PropertyName = "jobState")]
+ public string JobState { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterProperties.cs
new file mode 100644
index 000000000000..d8f8a282f599
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterProperties.cs
@@ -0,0 +1,92 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The properties associated with a Stream Analytics cluster.
+ ///
+ public partial class ClusterProperties
+ {
+ ///
+ /// Initializes a new instance of the ClusterProperties class.
+ ///
+ public ClusterProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ClusterProperties class.
+ ///
+ /// The date this cluster was
+ /// created.
+ /// Unique identifier for the cluster.
+ /// Possible values include:
+ /// 'Succeeded', 'Failed', 'Canceled', 'InProgress'
+ /// Represents the number of streaming
+ /// units currently being used on the cluster.
+ /// Represents the sum of the SUs of all
+ /// streaming jobs associated with the cluster. If all of the jobs were
+ /// running, this would be the capacity allocated.
+ public ClusterProperties(System.DateTime? createdDate = default(System.DateTime?), string clusterId = default(string), string provisioningState = default(string), int? capacityAllocated = default(int?), int? capacityAssigned = default(int?))
+ {
+ CreatedDate = createdDate;
+ ClusterId = clusterId;
+ ProvisioningState = provisioningState;
+ CapacityAllocated = capacityAllocated;
+ CapacityAssigned = capacityAssigned;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the date this cluster was created.
+ ///
+ [JsonProperty(PropertyName = "createdDate")]
+ public System.DateTime? CreatedDate { get; private set; }
+
+ ///
+ /// Gets unique identifier for the cluster.
+ ///
+ [JsonProperty(PropertyName = "clusterId")]
+ public string ClusterId { get; private set; }
+
+ ///
+ /// Gets or sets possible values include: 'Succeeded', 'Failed',
+ /// 'Canceled', 'InProgress'
+ ///
+ [JsonProperty(PropertyName = "provisioningState")]
+ public string ProvisioningState { get; set; }
+
+ ///
+ /// Gets represents the number of streaming units currently being used
+ /// on the cluster.
+ ///
+ [JsonProperty(PropertyName = "capacityAllocated")]
+ public int? CapacityAllocated { get; private set; }
+
+ ///
+ /// Gets represents the sum of the SUs of all streaming jobs associated
+ /// with the cluster. If all of the jobs were running, this would be
+ /// the capacity allocated.
+ ///
+ [JsonProperty(PropertyName = "capacityAssigned")]
+ public int? CapacityAssigned { get; private set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterProvisioningState.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterProvisioningState.cs
new file mode 100644
index 000000000000..8d4c60125ad5
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterProvisioningState.cs
@@ -0,0 +1,36 @@
+//
+// 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.StreamAnalytics.Models
+{
+
+ ///
+ /// Defines values for ClusterProvisioningState.
+ ///
+ public static class ClusterProvisioningState
+ {
+ ///
+ /// The cluster provisioning succeeded.
+ ///
+ public const string Succeeded = "Succeeded";
+ ///
+ /// The cluster provisioning failed.
+ ///
+ public const string Failed = "Failed";
+ ///
+ /// The cluster provisioning was canceled.
+ ///
+ public const string Canceled = "Canceled";
+ ///
+ /// The cluster provisioning was inprogress.
+ ///
+ public const string InProgress = "InProgress";
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterSku.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterSku.cs
new file mode 100644
index 000000000000..f4243fd39f10
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterSku.cs
@@ -0,0 +1,87 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The SKU of the cluster. This determines the size/capacity of the
+ /// cluster. Required on PUT (CreateOrUpdate) requests.
+ ///
+ public partial class ClusterSku
+ {
+ ///
+ /// Initializes a new instance of the ClusterSku class.
+ ///
+ public ClusterSku()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ClusterSku class.
+ ///
+ /// Specifies the SKU name of the cluster. Required
+ /// on PUT (CreateOrUpdate) requests. Possible values include:
+ /// 'Default'
+ /// Denotes the number of streaming units the
+ /// cluster can support. Valid values for this property are multiples
+ /// of 36 with a minimum value of 36 and maximum value of 216. Required
+ /// on PUT (CreateOrUpdate) requests.
+ public ClusterSku(string name = default(string), int? capacity = default(int?))
+ {
+ Name = name;
+ Capacity = capacity;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets specifies the SKU name of the cluster. Required on PUT
+ /// (CreateOrUpdate) requests. Possible values include: 'Default'
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets denotes the number of streaming units the cluster can
+ /// support. Valid values for this property are multiples of 36 with a
+ /// minimum value of 36 and maximum value of 216. Required on PUT
+ /// (CreateOrUpdate) requests.
+ ///
+ [JsonProperty(PropertyName = "capacity")]
+ public int? Capacity { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Capacity > 216)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "Capacity", 216);
+ }
+ if (Capacity < 36)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "Capacity", 36);
+ }
+ }
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterSkuName.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterSkuName.cs
new file mode 100644
index 000000000000..3137e47292f3
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ClusterSkuName.cs
@@ -0,0 +1,24 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.StreamAnalytics.Models
+{
+
+ ///
+ /// Defines values for ClusterSkuName.
+ ///
+ public static class ClusterSkuName
+ {
+ ///
+ /// The default SKU.
+ ///
+ public const string Default = "Default";
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CompatibilityLevel.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CompatibilityLevel.cs
index 080b4145648f..a3d185b4db6d 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CompatibilityLevel.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CompatibilityLevel.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
///
/// Defines values for CompatibilityLevel.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Compression.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Compression.cs
new file mode 100644
index 000000000000..1fb50277f8b8
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Compression.cs
@@ -0,0 +1,63 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes how input data is compressed
+ ///
+ public partial class Compression
+ {
+ ///
+ /// Initializes a new instance of the Compression class.
+ ///
+ public Compression()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Compression class.
+ ///
+ public Compression(string type)
+ {
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Type == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Type");
+ }
+ }
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ContentStoragePolicy.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ContentStoragePolicy.cs
new file mode 100644
index 000000000000..480576118421
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ContentStoragePolicy.cs
@@ -0,0 +1,22 @@
+//
+// 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.StreamAnalytics.Models
+{
+
+ ///
+ /// Defines values for ContentStoragePolicy.
+ ///
+ public static class ContentStoragePolicy
+ {
+ public const string SystemAccount = "SystemAccount";
+ public const string JobStorageAccount = "JobStorageAccount";
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CsvSerialization.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CsvSerialization.cs
index 630ae4dc8133..3b2b6b8f102a 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CsvSerialization.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CsvSerialization.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -29,7 +28,7 @@ public partial class CsvSerialization : Serialization
///
public CsvSerialization()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CustomClrSerialization.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CustomClrSerialization.cs
new file mode 100644
index 000000000000..c2e8c1a4202e
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/CustomClrSerialization.cs
@@ -0,0 +1,66 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes how data from an input is serialized or how data is
+ /// serialized when written to an output in custom format.
+ ///
+ [Newtonsoft.Json.JsonObject("CustomClr")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class CustomClrSerialization : Serialization
+ {
+ ///
+ /// Initializes a new instance of the CustomClrSerialization class.
+ ///
+ public CustomClrSerialization()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CustomClrSerialization class.
+ ///
+ /// The serialization library
+ /// path.
+ /// The serialization class
+ /// name.
+ public CustomClrSerialization(string serializationDllPath = default(string), string serializationClassName = default(string))
+ {
+ SerializationDllPath = serializationDllPath;
+ SerializationClassName = serializationClassName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the serialization library path.
+ ///
+ [JsonProperty(PropertyName = "properties.serializationDllPath")]
+ public string SerializationDllPath { get; set; }
+
+ ///
+ /// Gets or sets the serialization class name.
+ ///
+ [JsonProperty(PropertyName = "properties.serializationClassName")]
+ public string SerializationClassName { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/DiagnosticCondition.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/DiagnosticCondition.cs
index 1817cbcfca59..3cddeebacde1 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/DiagnosticCondition.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/DiagnosticCondition.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class DiagnosticCondition
///
public DiagnosticCondition()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Diagnostics.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Diagnostics.cs
index 8a6d0d67a52e..0a372e4da181 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Diagnostics.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Diagnostics.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -27,7 +26,7 @@ public partial class Diagnostics
///
public Diagnostics()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/DocumentDbOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/DocumentDbOutputDataSource.cs
index d52eb7cc46bb..35e56c876218 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/DocumentDbOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/DocumentDbOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -28,7 +27,7 @@ public partial class DocumentDbOutputDataSource : OutputDataSource
///
public DocumentDbOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Encoding.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Encoding.cs
index 22150735c0a5..994e4e1188f1 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Encoding.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Encoding.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
///
/// Defines values for Encoding.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Error.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Error.cs
new file mode 100644
index 000000000000..10622d367f28
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Error.cs
@@ -0,0 +1,51 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Common error representation.
+ ///
+ public partial class Error
+ {
+ ///
+ /// Initializes a new instance of the Error class.
+ ///
+ public Error()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Error class.
+ ///
+ /// Error definition properties.
+ public Error(ErrorError errorProperty = default(ErrorError))
+ {
+ ErrorProperty = errorProperty;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets error definition properties.
+ ///
+ [JsonProperty(PropertyName = "error")]
+ public ErrorError ErrorProperty { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorDetails.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorDetails.cs
new file mode 100644
index 000000000000..7a403197eafb
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorDetails.cs
@@ -0,0 +1,67 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Common error details representation.
+ ///
+ public partial class ErrorDetails
+ {
+ ///
+ /// Initializes a new instance of the ErrorDetails class.
+ ///
+ public ErrorDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorDetails class.
+ ///
+ /// Error code.
+ /// Error target.
+ /// Error message.
+ public ErrorDetails(string code = default(string), string target = default(string), string message = default(string))
+ {
+ Code = code;
+ Target = target;
+ Message = message;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets error code.
+ ///
+ [JsonProperty(PropertyName = "code")]
+ public string Code { get; set; }
+
+ ///
+ /// Gets or sets error target.
+ ///
+ [JsonProperty(PropertyName = "target")]
+ public string Target { get; set; }
+
+ ///
+ /// Gets or sets error message.
+ ///
+ [JsonProperty(PropertyName = "message")]
+ public string Message { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorError.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorError.cs
new file mode 100644
index 000000000000..646bdfe00075
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorError.cs
@@ -0,0 +1,77 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Error definition properties.
+ ///
+ public partial class ErrorError
+ {
+ ///
+ /// Initializes a new instance of the ErrorError class.
+ ///
+ public ErrorError()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorError class.
+ ///
+ /// Error code.
+ /// Error message.
+ /// Error target.
+ /// Error details.
+ public ErrorError(string code = default(string), string message = default(string), string target = default(string), IList details = default(IList))
+ {
+ Code = code;
+ Message = message;
+ Target = target;
+ Details = details;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets error code.
+ ///
+ [JsonProperty(PropertyName = "code")]
+ public string Code { get; set; }
+
+ ///
+ /// Gets or sets error message.
+ ///
+ [JsonProperty(PropertyName = "message")]
+ public string Message { get; set; }
+
+ ///
+ /// Gets or sets error target.
+ ///
+ [JsonProperty(PropertyName = "target")]
+ public string Target { get; set; }
+
+ ///
+ /// Gets or sets error details.
+ ///
+ [JsonProperty(PropertyName = "details")]
+ public IList Details { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorException.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorException.cs
new file mode 100644
index 000000000000..1447cc601969
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorException.cs
@@ -0,0 +1,61 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+
+ ///
+ /// Exception thrown for an invalid response with Error information.
+ ///
+ public partial class ErrorException : RestException
+ {
+ ///
+ /// Gets information about the associated HTTP request.
+ ///
+ public HttpRequestMessageWrapper Request { get; set; }
+
+ ///
+ /// Gets information about the associated HTTP response.
+ ///
+ public HttpResponseMessageWrapper Response { get; set; }
+
+ ///
+ /// Gets or sets the body object.
+ ///
+ public Error Body { get; set; }
+
+ ///
+ /// Initializes a new instance of the ErrorException class.
+ ///
+ public ErrorException()
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorException class.
+ ///
+ /// The exception message.
+ public ErrorException(string message)
+ : this(message, null)
+ {
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorException class.
+ ///
+ /// The exception message.
+ /// Inner exception.
+ public ErrorException(string message, System.Exception innerException)
+ : base(message, innerException)
+ {
+ }
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorResponse.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorResponse.cs
index 29139bd298ac..fed09e43c638 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorResponse.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ErrorResponse.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class ErrorResponse
///
public ErrorResponse()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubDataSourceProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubDataSourceProperties.cs
index 14ef9cf01688..6d92fd078c0a 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubDataSourceProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubDataSourceProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class EventHubDataSourceProperties : ServiceBusDataSourceProperti
///
public EventHubDataSourceProperties()
{
- CustomInit();
+ CustomInit();
}
///
@@ -41,10 +40,12 @@ public EventHubDataSourceProperties()
/// The shared access policy key
/// for the specified shared access policy. Required on PUT
/// (CreateOrReplace) requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
/// The name of the Event Hub. Required on
/// PUT (CreateOrReplace) requests.
- public EventHubDataSourceProperties(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string eventHubName = default(string))
- : base(serviceBusNamespace, sharedAccessPolicyName, sharedAccessPolicyKey)
+ public EventHubDataSourceProperties(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string authenticationMode = default(string), string eventHubName = default(string))
+ : base(serviceBusNamespace, sharedAccessPolicyName, sharedAccessPolicyKey, authenticationMode)
{
EventHubName = eventHubName;
CustomInit();
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubOutputDataSource.cs
index 31d057e03071..c2b6136bb834 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,15 +6,15 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
using System.Linq;
///
@@ -28,7 +29,7 @@ public partial class EventHubOutputDataSource : OutputDataSource
///
public EventHubOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
@@ -43,17 +44,21 @@ public EventHubOutputDataSource()
/// The shared access policy key
/// for the specified shared access policy. Required on PUT
/// (CreateOrReplace) requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
/// The name of the Event Hub. Required on
/// PUT (CreateOrReplace) requests.
/// The key/column that is used to determine
/// to which partition to send event data.
- public EventHubOutputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string eventHubName = default(string), string partitionKey = default(string))
+ public EventHubOutputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string authenticationMode = default(string), string eventHubName = default(string), string partitionKey = default(string), IList propertyColumns = default(IList))
{
ServiceBusNamespace = serviceBusNamespace;
SharedAccessPolicyName = sharedAccessPolicyName;
SharedAccessPolicyKey = sharedAccessPolicyKey;
+ AuthenticationMode = authenticationMode;
EventHubName = eventHubName;
PartitionKey = partitionKey;
+ PropertyColumns = propertyColumns;
CustomInit();
}
@@ -85,6 +90,13 @@ public EventHubOutputDataSource()
[JsonProperty(PropertyName = "properties.sharedAccessPolicyKey")]
public string SharedAccessPolicyKey { get; set; }
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
///
/// Gets or sets the name of the Event Hub. Required on PUT
/// (CreateOrReplace) requests.
@@ -99,5 +111,10 @@ public EventHubOutputDataSource()
[JsonProperty(PropertyName = "properties.partitionKey")]
public string PartitionKey { get; set; }
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.propertyColumns")]
+ public IList PropertyColumns { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubStreamInputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubStreamInputDataSource.cs
index 1b69c4bb9f59..4ae90ef88bf7 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubStreamInputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubStreamInputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -29,7 +28,7 @@ public partial class EventHubStreamInputDataSource : StreamInputDataSource
///
public EventHubStreamInputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
@@ -45,6 +44,8 @@ public EventHubStreamInputDataSource()
/// The shared access policy key
/// for the specified shared access policy. Required on PUT
/// (CreateOrReplace) requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
/// The name of the Event Hub. Required on
/// PUT (CreateOrReplace) requests.
/// The name of an Event Hub Consumer
@@ -53,11 +54,12 @@ public EventHubStreamInputDataSource()
/// each of those inputs to receive the same events from the Event Hub.
/// If not specified, the input uses the Event Hub’s default consumer
/// group.
- public EventHubStreamInputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string eventHubName = default(string), string consumerGroupName = default(string))
+ public EventHubStreamInputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string authenticationMode = default(string), string eventHubName = default(string), string consumerGroupName = default(string))
{
ServiceBusNamespace = serviceBusNamespace;
SharedAccessPolicyName = sharedAccessPolicyName;
SharedAccessPolicyKey = sharedAccessPolicyKey;
+ AuthenticationMode = authenticationMode;
EventHubName = eventHubName;
ConsumerGroupName = consumerGroupName;
CustomInit();
@@ -91,6 +93,13 @@ public EventHubStreamInputDataSource()
[JsonProperty(PropertyName = "properties.sharedAccessPolicyKey")]
public string SharedAccessPolicyKey { get; set; }
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
///
/// Gets or sets the name of the Event Hub. Required on PUT
/// (CreateOrReplace) requests.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubV2OutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubV2OutputDataSource.cs
new file mode 100644
index 000000000000..9b77a9da132e
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubV2OutputDataSource.cs
@@ -0,0 +1,120 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Describes an Event Hub output data source.
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.EventHub/EventHub")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class EventHubV2OutputDataSource : OutputDataSource
+ {
+ ///
+ /// Initializes a new instance of the EventHubV2OutputDataSource class.
+ ///
+ public EventHubV2OutputDataSource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the EventHubV2OutputDataSource class.
+ ///
+ /// The namespace that is associated
+ /// with the desired Event Hub, Service Bus Queue, Service Bus Topic,
+ /// etc. Required on PUT (CreateOrReplace) requests.
+ /// The shared access policy name
+ /// for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
+ /// Required on PUT (CreateOrReplace) requests.
+ /// The shared access policy key
+ /// for the specified shared access policy. Required on PUT
+ /// (CreateOrReplace) requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ /// The name of the Event Hub. Required on
+ /// PUT (CreateOrReplace) requests.
+ /// The key/column that is used to determine
+ /// to which partition to send event data.
+ public EventHubV2OutputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string authenticationMode = default(string), string eventHubName = default(string), string partitionKey = default(string), IList propertyColumns = default(IList))
+ {
+ ServiceBusNamespace = serviceBusNamespace;
+ SharedAccessPolicyName = sharedAccessPolicyName;
+ SharedAccessPolicyKey = sharedAccessPolicyKey;
+ AuthenticationMode = authenticationMode;
+ EventHubName = eventHubName;
+ PartitionKey = partitionKey;
+ PropertyColumns = propertyColumns;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the namespace that is associated with the desired
+ /// Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on
+ /// PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.serviceBusNamespace")]
+ public string ServiceBusNamespace { get; set; }
+
+ ///
+ /// Gets or sets the shared access policy name for the Event Hub,
+ /// Service Bus Queue, Service Bus Topic, etc. Required on PUT
+ /// (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.sharedAccessPolicyName")]
+ public string SharedAccessPolicyName { get; set; }
+
+ ///
+ /// Gets or sets the shared access policy key for the specified shared
+ /// access policy. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.sharedAccessPolicyKey")]
+ public string SharedAccessPolicyKey { get; set; }
+
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
+ ///
+ /// Gets or sets the name of the Event Hub. Required on PUT
+ /// (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.eventHubName")]
+ public string EventHubName { get; set; }
+
+ ///
+ /// Gets or sets the key/column that is used to determine to which
+ /// partition to send event data.
+ ///
+ [JsonProperty(PropertyName = "properties.partitionKey")]
+ public string PartitionKey { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.propertyColumns")]
+ public IList PropertyColumns { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubV2StreamInputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubV2StreamInputDataSource.cs
new file mode 100644
index 000000000000..c6d9530ef76d
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventHubV2StreamInputDataSource.cs
@@ -0,0 +1,121 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes an Event Hub input data source that contains stream data.
+ ///
+ [Newtonsoft.Json.JsonObject("Microsoft.EventHub/EventHub")]
+ [Rest.Serialization.JsonTransformation]
+ public partial class EventHubV2StreamInputDataSource : StreamInputDataSource
+ {
+ ///
+ /// Initializes a new instance of the EventHubV2StreamInputDataSource
+ /// class.
+ ///
+ public EventHubV2StreamInputDataSource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the EventHubV2StreamInputDataSource
+ /// class.
+ ///
+ /// The namespace that is associated
+ /// with the desired Event Hub, Service Bus Queue, Service Bus Topic,
+ /// etc. Required on PUT (CreateOrReplace) requests.
+ /// The shared access policy name
+ /// for the Event Hub, Service Bus Queue, Service Bus Topic, etc.
+ /// Required on PUT (CreateOrReplace) requests.
+ /// The shared access policy key
+ /// for the specified shared access policy. Required on PUT
+ /// (CreateOrReplace) requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ /// The name of the Event Hub. Required on
+ /// PUT (CreateOrReplace) requests.
+ /// The name of an Event Hub Consumer
+ /// Group that should be used to read events from the Event Hub.
+ /// Specifying distinct consumer group names for multiple inputs allows
+ /// each of those inputs to receive the same events from the Event Hub.
+ /// If not specified, the input uses the Event Hub’s default consumer
+ /// group.
+ public EventHubV2StreamInputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string authenticationMode = default(string), string eventHubName = default(string), string consumerGroupName = default(string))
+ {
+ ServiceBusNamespace = serviceBusNamespace;
+ SharedAccessPolicyName = sharedAccessPolicyName;
+ SharedAccessPolicyKey = sharedAccessPolicyKey;
+ AuthenticationMode = authenticationMode;
+ EventHubName = eventHubName;
+ ConsumerGroupName = consumerGroupName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the namespace that is associated with the desired
+ /// Event Hub, Service Bus Queue, Service Bus Topic, etc. Required on
+ /// PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.serviceBusNamespace")]
+ public string ServiceBusNamespace { get; set; }
+
+ ///
+ /// Gets or sets the shared access policy name for the Event Hub,
+ /// Service Bus Queue, Service Bus Topic, etc. Required on PUT
+ /// (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.sharedAccessPolicyName")]
+ public string SharedAccessPolicyName { get; set; }
+
+ ///
+ /// Gets or sets the shared access policy key for the specified shared
+ /// access policy. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.sharedAccessPolicyKey")]
+ public string SharedAccessPolicyKey { get; set; }
+
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
+ ///
+ /// Gets or sets the name of the Event Hub. Required on PUT
+ /// (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.eventHubName")]
+ public string EventHubName { get; set; }
+
+ ///
+ /// Gets or sets the name of an Event Hub Consumer Group that should be
+ /// used to read events from the Event Hub. Specifying distinct
+ /// consumer group names for multiple inputs allows each of those
+ /// inputs to receive the same events from the Event Hub. If not
+ /// specified, the input uses the Event Hub’s default consumer group.
+ ///
+ [JsonProperty(PropertyName = "properties.consumerGroupName")]
+ public string ConsumerGroupName { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventSerializationType.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventSerializationType.cs
new file mode 100644
index 000000000000..e9bff50a62a8
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventSerializationType.cs
@@ -0,0 +1,25 @@
+//
+// 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.StreamAnalytics.Models
+{
+
+ ///
+ /// Defines values for EventSerializationType.
+ ///
+ public static class EventSerializationType
+ {
+ public const string Csv = "Csv";
+ public const string Avro = "Avro";
+ public const string Json = "Json";
+ public const string CustomClr = "CustomClr";
+ public const string Parquet = "Parquet";
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventsOutOfOrderPolicy.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventsOutOfOrderPolicy.cs
index d560f100e807..34a0e465107f 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventsOutOfOrderPolicy.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/EventsOutOfOrderPolicy.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
///
/// Defines values for EventsOutOfOrderPolicy.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/External.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/External.cs
new file mode 100644
index 000000000000..46f07fed2ba5
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/External.cs
@@ -0,0 +1,61 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The storage account where the custom code artifacts are located.
+ ///
+ public partial class External
+ {
+ ///
+ /// Initializes a new instance of the External class.
+ ///
+ public External()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the External class.
+ ///
+ public External(StorageAccount storageAccount = default(StorageAccount), string container = default(string), string path = default(string))
+ {
+ StorageAccount = storageAccount;
+ Container = container;
+ Path = path;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "storageAccount")]
+ public StorageAccount StorageAccount { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "container")]
+ public string Container { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "path")]
+ public string Path { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Function.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Function.cs
index d2267ec913d0..77a088324b31 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Function.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Function.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class Function : SubResource
///
public Function()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionBinding.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionBinding.cs
index daa7a79665b4..6fa105b54ec5 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionBinding.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionBinding.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using System.Linq;
///
@@ -24,7 +23,7 @@ public partial class FunctionBinding
///
public FunctionBinding()
{
- CustomInit();
+ CustomInit();
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionInput.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionInput.cs
index ae6a70aa47b7..df0c0a6a9084 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionInput.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionInput.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class FunctionInput
///
public FunctionInput()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionOutput.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionOutput.cs
index e0b777d36253..280c7f59548e 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionOutput.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionOutput.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class FunctionOutput
///
public FunctionOutput()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionProperties.cs
index cd9cb77ab0a1..c7b7748e0c35 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,18 +6,21 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
using System.Linq;
///
/// The properties that are associated with a function.
///
+ [Rest.Serialization.JsonTransformation]
public partial class FunctionProperties
{
///
@@ -24,7 +28,7 @@ public partial class FunctionProperties
///
public FunctionProperties()
{
- CustomInit();
+ CustomInit();
}
///
@@ -35,9 +39,12 @@ public FunctionProperties()
/// changed between requests. You can also use it in the If-Match or
/// If-None-Match headers for write operations for optimistic
/// concurrency.
- public FunctionProperties(string etag = default(string))
+ public FunctionProperties(string etag = default(string), IList inputs = default(IList), FunctionOutput output = default(FunctionOutput), FunctionBinding binding = default(FunctionBinding))
{
Etag = etag;
+ Inputs = inputs;
+ Output = output;
+ Binding = binding;
CustomInit();
}
@@ -56,5 +63,20 @@ public FunctionProperties()
[JsonProperty(PropertyName = "etag")]
public string Etag { get; private set; }
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.inputs")]
+ public IList Inputs { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.output")]
+ public FunctionOutput Output { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.binding")]
+ public FunctionBinding Binding { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionRetrieveDefaultDefinitionParameters.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionRetrieveDefaultDefinitionParameters.cs
index efcdf273acad..30923e68a81c 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionRetrieveDefaultDefinitionParameters.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionRetrieveDefaultDefinitionParameters.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using System.Linq;
///
@@ -25,7 +24,7 @@ public partial class FunctionRetrieveDefaultDefinitionParameters
///
public FunctionRetrieveDefaultDefinitionParameters()
{
- CustomInit();
+ CustomInit();
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsCreateOrReplaceHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsCreateOrReplaceHeaders.cs
index d901be499228..9a0c3a3d468c 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsCreateOrReplaceHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsCreateOrReplaceHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class FunctionsCreateOrReplaceHeaders
///
public FunctionsCreateOrReplaceHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsGetHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsGetHeaders.cs
index 48a7207cc51c..30c3cd6ccb84 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsGetHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsGetHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class FunctionsGetHeaders
///
public FunctionsGetHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsUpdateHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsUpdateHeaders.cs
index 6211b29a7dea..323a2e6b412d 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsUpdateHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/FunctionsUpdateHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class FunctionsUpdateHeaders
///
public FunctionsUpdateHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Identity.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Identity.cs
new file mode 100644
index 000000000000..e159634afddd
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Identity.cs
@@ -0,0 +1,61 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes how identity is verified
+ ///
+ public partial class Identity
+ {
+ ///
+ /// Initializes a new instance of the Identity class.
+ ///
+ public Identity()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Identity class.
+ ///
+ public Identity(string tenantId = default(string), string principalId = default(string), string type = default(string))
+ {
+ TenantId = tenantId;
+ PrincipalId = principalId;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "tenantId")]
+ public string TenantId { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "principalId")]
+ public string PrincipalId { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Input.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Input.cs
index 548e7911377f..c26e87a11731 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Input.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Input.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class Input : SubResource
///
public Input()
{
- CustomInit();
+ CustomInit();
}
///
@@ -55,5 +54,18 @@ public Input()
[JsonProperty(PropertyName = "properties")]
public InputProperties Properties { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Properties != null)
+ {
+ Properties.Validate();
+ }
+ }
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputProperties.cs
index 41858099baec..747958f68cb3 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class InputProperties
///
public InputProperties()
{
- CustomInit();
+ CustomInit();
}
///
@@ -41,11 +40,15 @@ public InputProperties()
/// changed between requests. You can also use it in the If-Match or
/// If-None-Match headers for write operations for optimistic
/// concurrency.
- public InputProperties(Serialization serialization = default(Serialization), Diagnostics diagnostics = default(Diagnostics), string etag = default(string))
+ /// partitionKey Describes a key in the
+ /// input data which is used for partitioning the input data
+ public InputProperties(Serialization serialization = default(Serialization), Diagnostics diagnostics = default(Diagnostics), string etag = default(string), Compression compression = default(Compression), string partitionKey = default(string))
{
Serialization = serialization;
Diagnostics = diagnostics;
Etag = etag;
+ Compression = compression;
+ PartitionKey = partitionKey;
CustomInit();
}
@@ -79,5 +82,30 @@ public InputProperties()
[JsonProperty(PropertyName = "etag")]
public string Etag { get; private set; }
+ ///
+ ///
+ [JsonProperty(PropertyName = "compression")]
+ public Compression Compression { get; set; }
+
+ ///
+ /// Gets or sets partitionKey Describes a key in the input data which
+ /// is used for partitioning the input data
+ ///
+ [JsonProperty(PropertyName = "partitionKey")]
+ public string PartitionKey { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Compression != null)
+ {
+ Compression.Validate();
+ }
+ }
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsCreateOrReplaceHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsCreateOrReplaceHeaders.cs
index eb303cd8ab58..eda0acf4e1ae 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsCreateOrReplaceHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsCreateOrReplaceHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class InputsCreateOrReplaceHeaders
///
public InputsCreateOrReplaceHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsGetHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsGetHeaders.cs
index a8a474b40435..34a4d36d3936 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsGetHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsGetHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class InputsGetHeaders
///
public InputsGetHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsUpdateHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsUpdateHeaders.cs
index 74d16662a75e..99f292111c50 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsUpdateHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/InputsUpdateHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class InputsUpdateHeaders
///
public InputsUpdateHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/IoTHubStreamInputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/IoTHubStreamInputDataSource.cs
index 9a437aaffbb1..9cbf93e2e5fc 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/IoTHubStreamInputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/IoTHubStreamInputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -29,7 +28,7 @@ public partial class IoTHubStreamInputDataSource : StreamInputDataSource
///
public IoTHubStreamInputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JavaScriptFunctionBinding.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JavaScriptFunctionBinding.cs
index 9b02a7c9be67..6ab3ba0d5619 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JavaScriptFunctionBinding.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JavaScriptFunctionBinding.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -28,7 +27,7 @@ public partial class JavaScriptFunctionBinding : FunctionBinding
///
public JavaScriptFunctionBinding()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JavaScriptFunctionRetrieveDefaultDefinitionParameters.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JavaScriptFunctionRetrieveDefaultDefinitionParameters.cs
index 36bdbfc1fba6..3aa6364386fc 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JavaScriptFunctionRetrieveDefaultDefinitionParameters.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JavaScriptFunctionRetrieveDefaultDefinitionParameters.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -30,7 +29,7 @@ public partial class JavaScriptFunctionRetrieveDefaultDefinitionParameters : Fun
///
public JavaScriptFunctionRetrieveDefaultDefinitionParameters()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobState.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobState.cs
new file mode 100644
index 000000000000..8c1c9f10c38d
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobState.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.StreamAnalytics.Models
+{
+
+ ///
+ /// Defines values for JobState.
+ ///
+ public static class JobState
+ {
+ ///
+ /// The job is currently in the Created state.
+ ///
+ public const string Created = "Created";
+ ///
+ /// The job is currently in the Starting state.
+ ///
+ public const string Starting = "Starting";
+ ///
+ /// The job is currently in the Running state.
+ ///
+ public const string Running = "Running";
+ ///
+ /// The job is currently in the Stopping state.
+ ///
+ public const string Stopping = "Stopping";
+ ///
+ /// The job is currently in the Stopped state.
+ ///
+ public const string Stopped = "Stopped";
+ ///
+ /// The job is currently in the Deleting state.
+ ///
+ public const string Deleting = "Deleting";
+ ///
+ /// The job is currently in the Failed state.
+ ///
+ public const string Failed = "Failed";
+ ///
+ /// The job is currently in the Degraded state.
+ ///
+ public const string Degraded = "Degraded";
+ ///
+ /// The job is currently in the Restarting state.
+ ///
+ public const string Restarting = "Restarting";
+ ///
+ /// The job is currently in the Scaling state.
+ ///
+ public const string Scaling = "Scaling";
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobStorageAccount.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobStorageAccount.cs
new file mode 100644
index 000000000000..59180d6fa315
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobStorageAccount.cs
@@ -0,0 +1,59 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The properties that are associated with an Azure Storage account with
+ /// MSI
+ ///
+ public partial class JobStorageAccount : StorageAccount
+ {
+ ///
+ /// Initializes a new instance of the JobStorageAccount class.
+ ///
+ public JobStorageAccount()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the JobStorageAccount class.
+ ///
+ /// The name of the Azure Storage account.
+ /// Required on PUT (CreateOrReplace) requests.
+ /// The account key for the Azure Storage
+ /// account. Required on PUT (CreateOrReplace) requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ public JobStorageAccount(string accountName = default(string), string accountKey = default(string), string authenticationMode = default(string))
+ : base(accountName, accountKey)
+ {
+ AuthenticationMode = authenticationMode;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobType.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobType.cs
new file mode 100644
index 000000000000..17d8bd432621
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JobType.cs
@@ -0,0 +1,22 @@
+//
+// 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.StreamAnalytics.Models
+{
+
+ ///
+ /// Defines values for JobType.
+ ///
+ public static class JobType
+ {
+ public const string Cloud = "Cloud";
+ public const string Edge = "Edge";
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JsonOutputSerializationFormat.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JsonOutputSerializationFormat.cs
index 2397493217aa..1a689865ae39 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JsonOutputSerializationFormat.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JsonOutputSerializationFormat.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
///
/// Defines values for JsonOutputSerializationFormat.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JsonSerialization.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JsonSerialization.cs
index df3100a59e2a..880e29bc10eb 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JsonSerialization.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/JsonSerialization.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -29,7 +28,7 @@ public partial class JsonSerialization : Serialization
///
public JsonSerialization()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OAuthBasedDataSourceProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OAuthBasedDataSourceProperties.cs
index fee5ff412f84..b298c0c548f9 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OAuthBasedDataSourceProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OAuthBasedDataSourceProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -26,7 +25,7 @@ public partial class OAuthBasedDataSourceProperties
///
public OAuthBasedDataSourceProperties()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Operation.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Operation.cs
index 72fab38faea4..07fdc6eb557e 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Operation.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Operation.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class Operation
///
public Operation()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OperationDisplay.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OperationDisplay.cs
index 2dafca96f688..9332b0402761 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OperationDisplay.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OperationDisplay.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class OperationDisplay
///
public OperationDisplay()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Output.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Output.cs
index 0ded14f78d38..5e765078a5a9 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Output.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Output.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -28,7 +27,7 @@ public partial class Output : SubResource
///
public Output()
{
- CustomInit();
+ CustomInit();
}
///
@@ -50,10 +49,12 @@ public Output()
/// changed between requests. You can also use it in the If-Match or
/// If-None-Match headers for write operations for optimistic
/// concurrency.
- public Output(string id = default(string), string name = default(string), string type = default(string), OutputDataSource datasource = default(OutputDataSource), Serialization serialization = default(Serialization), Diagnostics diagnostics = default(Diagnostics), string etag = default(string))
+ public Output(string id = default(string), string name = default(string), string type = default(string), OutputDataSource datasource = default(OutputDataSource), string timeWindow = default(string), double? sizeWindow = default(double?), Serialization serialization = default(Serialization), Diagnostics diagnostics = default(Diagnostics), string etag = default(string))
: base(id, name, type)
{
Datasource = datasource;
+ TimeWindow = timeWindow;
+ SizeWindow = sizeWindow;
Serialization = serialization;
Diagnostics = diagnostics;
Etag = etag;
@@ -72,6 +73,16 @@ public Output()
[JsonProperty(PropertyName = "properties.datasource")]
public OutputDataSource Datasource { get; set; }
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.timeWindow")]
+ public string TimeWindow { get; set; }
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.sizeWindow")]
+ public double? SizeWindow { get; set; }
+
///
/// Gets or sets describes how data from an input is serialized or how
/// data is serialized when written to an output. Required on PUT
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputDataSource.cs
index a32945d6a3fc..f43854f245b8 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using System.Linq;
///
@@ -23,7 +22,7 @@ public partial class OutputDataSource
///
public OutputDataSource()
{
- CustomInit();
+ CustomInit();
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputErrorPolicy.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputErrorPolicy.cs
index 820fe8cd5e8b..43d910fa97bb 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputErrorPolicy.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputErrorPolicy.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
///
/// Defines values for OutputErrorPolicy.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputStartMode.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputStartMode.cs
index 10dc3a67ead6..c6cad4faf990 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputStartMode.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputStartMode.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
///
/// Defines values for OutputStartMode.
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsCreateOrReplaceHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsCreateOrReplaceHeaders.cs
index 3bbe3c585455..0c3a075422db 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsCreateOrReplaceHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsCreateOrReplaceHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class OutputsCreateOrReplaceHeaders
///
public OutputsCreateOrReplaceHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsGetHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsGetHeaders.cs
index 97837cb563d4..a86be6dd7fdb 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsGetHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsGetHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class OutputsGetHeaders
///
public OutputsGetHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsUpdateHeaders.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsUpdateHeaders.cs
index e967124ae4a7..03f88d114bfd 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsUpdateHeaders.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/OutputsUpdateHeaders.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -24,7 +23,7 @@ public partial class OutputsUpdateHeaders
///
public OutputsUpdateHeaders()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Page.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Page.cs
index 292ad254bef1..8c7f0cb54c59 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Page.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Page.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Newtonsoft.Json;
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ParquetSerialization.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ParquetSerialization.cs
new file mode 100644
index 000000000000..8c2d7f361427
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ParquetSerialization.cs
@@ -0,0 +1,56 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Describes how data from an input is serialized or how data is
+ /// serialized when written to an output in Parquet format.
+ ///
+ [Newtonsoft.Json.JsonObject("Parquet")]
+ public partial class ParquetSerialization : Serialization
+ {
+ ///
+ /// Initializes a new instance of the ParquetSerialization class.
+ ///
+ public ParquetSerialization()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ParquetSerialization class.
+ ///
+ /// The properties that are associated with
+ /// the Parquet serialization type. Required on PUT (CreateOrReplace)
+ /// requests.
+ public ParquetSerialization(object properties = default(object))
+ {
+ Properties = properties;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the properties that are associated with the Parquet
+ /// serialization type. Required on PUT (CreateOrReplace) requests.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public object Properties { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PowerBIOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PowerBIOutputDataSource.cs
index a562b1c72627..f581e1b0d19f 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PowerBIOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PowerBIOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -28,7 +27,7 @@ public partial class PowerBIOutputDataSource : OutputDataSource
///
public PowerBIOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
@@ -59,7 +58,9 @@ public PowerBIOutputDataSource()
/// The name of the Power BI group. Use this
/// property to help remember which specific Power BI group id was
/// used.
- public PowerBIOutputDataSource(string refreshToken = default(string), string tokenUserPrincipalName = default(string), string tokenUserDisplayName = default(string), string dataset = default(string), string table = default(string), string groupId = default(string), string groupName = default(string))
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ public PowerBIOutputDataSource(string refreshToken = default(string), string tokenUserPrincipalName = default(string), string tokenUserDisplayName = default(string), string dataset = default(string), string table = default(string), string groupId = default(string), string groupName = default(string), string authenticationMode = default(string))
{
RefreshToken = refreshToken;
TokenUserPrincipalName = tokenUserPrincipalName;
@@ -68,6 +69,7 @@ public PowerBIOutputDataSource()
Table = table;
GroupId = groupId;
GroupName = groupName;
+ AuthenticationMode = authenticationMode;
CustomInit();
}
@@ -131,5 +133,12 @@ public PowerBIOutputDataSource()
[JsonProperty(PropertyName = "properties.groupName")]
public string GroupName { get; set; }
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateEndpoint.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateEndpoint.cs
new file mode 100644
index 000000000000..fa7303d10964
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateEndpoint.cs
@@ -0,0 +1,73 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Complete information about the private endpoint.
+ ///
+ public partial class PrivateEndpoint : ProxyResource
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpoint class.
+ ///
+ public PrivateEndpoint()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpoint class.
+ ///
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ /// The properties associated with a private
+ /// endpoint.
+ /// Unique opaque string (generally a GUID) that
+ /// represents the metadata state of the resource (private endpoint)
+ /// and changes whenever the resource is updated. Required on PUT
+ /// (CreateOrUpdate) requests.
+ public PrivateEndpoint(string id = default(string), string name = default(string), string type = default(string), PrivateEndpointProperties properties = default(PrivateEndpointProperties), string etag = default(string))
+ : base(id, name, type)
+ {
+ Properties = properties;
+ Etag = etag;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the properties associated with a private endpoint.
+ ///
+ [JsonProperty(PropertyName = "properties")]
+ public PrivateEndpointProperties Properties { get; set; }
+
+ ///
+ /// Gets unique opaque string (generally a GUID) that represents the
+ /// metadata state of the resource (private endpoint) and changes
+ /// whenever the resource is updated. Required on PUT (CreateOrUpdate)
+ /// requests.
+ ///
+ [JsonProperty(PropertyName = "etag")]
+ public string Etag { get; private set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateEndpointProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateEndpointProperties.cs
new file mode 100644
index 000000000000..ac3c56c8aae6
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateEndpointProperties.cs
@@ -0,0 +1,65 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The properties associated with a private endpoint.
+ ///
+ public partial class PrivateEndpointProperties
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpointProperties class.
+ ///
+ public PrivateEndpointProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpointProperties class.
+ ///
+ /// The date when this private endpoint was
+ /// created.
+ /// A list of
+ /// connections to the remote resource. Immutable after it is
+ /// set.
+ public PrivateEndpointProperties(string createdDate = default(string), IList manualPrivateLinkServiceConnections = default(IList))
+ {
+ CreatedDate = createdDate;
+ ManualPrivateLinkServiceConnections = manualPrivateLinkServiceConnections;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the date when this private endpoint was created.
+ ///
+ [JsonProperty(PropertyName = "createdDate")]
+ public string CreatedDate { get; private set; }
+
+ ///
+ /// Gets or sets a list of connections to the remote resource.
+ /// Immutable after it is set.
+ ///
+ [JsonProperty(PropertyName = "manualPrivateLinkServiceConnections")]
+ public IList ManualPrivateLinkServiceConnections { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateLinkConnectionState.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateLinkConnectionState.cs
new file mode 100644
index 000000000000..a443a7ae837d
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateLinkConnectionState.cs
@@ -0,0 +1,75 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A collection of read-only information about the state of the connection
+ /// to the private remote resource.
+ ///
+ public partial class PrivateLinkConnectionState
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkConnectionState class.
+ ///
+ public PrivateLinkConnectionState()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkConnectionState class.
+ ///
+ /// Indicates whether the connection has been
+ /// Approved/Rejected/Removed by the owner of the remote
+ /// resource/service.
+ /// The reason for approval/rejection of the
+ /// connection.
+ /// A message indicating if changes on
+ /// the service provider require any updates on the consumer.
+ public PrivateLinkConnectionState(string status = default(string), string description = default(string), string actionsRequired = default(string))
+ {
+ Status = status;
+ Description = description;
+ ActionsRequired = actionsRequired;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets indicates whether the connection has been
+ /// Approved/Rejected/Removed by the owner of the remote
+ /// resource/service.
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; private set; }
+
+ ///
+ /// Gets the reason for approval/rejection of the connection.
+ ///
+ [JsonProperty(PropertyName = "description")]
+ public string Description { get; private set; }
+
+ ///
+ /// Gets a message indicating if changes on the service provider
+ /// require any updates on the consumer.
+ ///
+ [JsonProperty(PropertyName = "actionsRequired")]
+ public string ActionsRequired { get; private set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateLinkServiceConnection.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateLinkServiceConnection.cs
new file mode 100644
index 000000000000..83523d5e77e0
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/PrivateLinkServiceConnection.cs
@@ -0,0 +1,94 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A grouping of information about the connection to the remote resource.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class PrivateLinkServiceConnection
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkServiceConnection
+ /// class.
+ ///
+ public PrivateLinkServiceConnection()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkServiceConnection
+ /// class.
+ ///
+ /// The resource id of the private
+ /// link service. Required on PUT (CreateOrUpdate) requests.
+ /// The ID(s) of the group(s) obtained from the
+ /// remote resource that this private endpoint should connect to.
+ /// Required on PUT (CreateOrUpdate) requests.
+ /// A message passed to the owner of the
+ /// remote resource with this connection request. Restricted to 140
+ /// chars.
+ /// A collection of
+ /// read-only information about the state of the connection to the
+ /// private remote resource.
+ public PrivateLinkServiceConnection(string privateLinkServiceId = default(string), IList groupIds = default(IList), string requestMessage = default(string), PrivateLinkConnectionState privateLinkServiceConnectionState = default(PrivateLinkConnectionState))
+ {
+ PrivateLinkServiceId = privateLinkServiceId;
+ GroupIds = groupIds;
+ RequestMessage = requestMessage;
+ PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the resource id of the private link service. Required
+ /// on PUT (CreateOrUpdate) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.privateLinkServiceId")]
+ public string PrivateLinkServiceId { get; set; }
+
+ ///
+ /// Gets or sets the ID(s) of the group(s) obtained from the remote
+ /// resource that this private endpoint should connect to. Required on
+ /// PUT (CreateOrUpdate) requests.
+ ///
+ [JsonProperty(PropertyName = "properties.groupIds")]
+ public IList GroupIds { get; set; }
+
+ ///
+ /// Gets or sets a message passed to the owner of the remote resource
+ /// with this connection request. Restricted to 140 chars.
+ ///
+ [JsonProperty(PropertyName = "properties.requestMessage")]
+ public string RequestMessage { get; set; }
+
+ ///
+ /// Gets or sets a collection of read-only information about the state
+ /// of the connection to the private remote resource.
+ ///
+ [JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")]
+ public PrivateLinkConnectionState PrivateLinkServiceConnectionState { get; set; }
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ProxyResource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ProxyResource.cs
new file mode 100644
index 000000000000..3b552ca3e32f
--- /dev/null
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ProxyResource.cs
@@ -0,0 +1,50 @@
+//
+// 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.StreamAnalytics.Models
+{
+ using System.Linq;
+
+ ///
+ /// The resource model definition for a ARM proxy resource. It will have
+ /// everything other than required location and tags
+ ///
+ public partial class ProxyResource : Resource
+ {
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ public ProxyResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ProxyResource class.
+ ///
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ public ProxyResource(string id = default(string), string name = default(string), string type = default(string))
+ : base(id, name, type)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ReferenceInputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ReferenceInputDataSource.cs
index f2afe48dfe6a..32e223c231ef 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ReferenceInputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ReferenceInputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using System.Linq;
///
@@ -23,7 +22,7 @@ public partial class ReferenceInputDataSource
///
public ReferenceInputDataSource()
{
- CustomInit();
+ CustomInit();
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ReferenceInputProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ReferenceInputProperties.cs
index 7f482d6d4179..012c981966ff 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ReferenceInputProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ReferenceInputProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -26,7 +25,7 @@ public partial class ReferenceInputProperties : InputProperties
///
public ReferenceInputProperties()
{
- CustomInit();
+ CustomInit();
}
///
@@ -43,11 +42,13 @@ public ReferenceInputProperties()
/// changed between requests. You can also use it in the If-Match or
/// If-None-Match headers for write operations for optimistic
/// concurrency.
+ /// partitionKey Describes a key in the
+ /// input data which is used for partitioning the input data
/// Describes an input data source that
/// contains reference data. Required on PUT (CreateOrReplace)
/// requests.
- public ReferenceInputProperties(Serialization serialization = default(Serialization), Diagnostics diagnostics = default(Diagnostics), string etag = default(string), ReferenceInputDataSource datasource = default(ReferenceInputDataSource))
- : base(serialization, diagnostics, etag)
+ public ReferenceInputProperties(Serialization serialization = default(Serialization), Diagnostics diagnostics = default(Diagnostics), string etag = default(string), Compression compression = default(Compression), string partitionKey = default(string), ReferenceInputDataSource datasource = default(ReferenceInputDataSource))
+ : base(serialization, diagnostics, etag, compression, partitionKey)
{
Datasource = datasource;
CustomInit();
@@ -65,5 +66,15 @@ public ReferenceInputProperties()
[JsonProperty(PropertyName = "datasource")]
public ReferenceInputDataSource Datasource { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public override void Validate()
+ {
+ base.Validate();
+ }
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Resource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Resource.cs
index e3114930c63f..3d7700faf54b 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Resource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Resource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,22 +6,15 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Azure;
using Newtonsoft.Json;
- using System.Collections;
- using System.Collections.Generic;
using System.Linq;
- ///
- /// The base resource model definition.
- ///
public partial class Resource : IResource
{
///
@@ -28,25 +22,23 @@ public partial class Resource : IResource
///
public Resource()
{
- CustomInit();
+ CustomInit();
}
///
/// Initializes a new instance of the Resource class.
///
- /// Resource Id
- /// Resource name
- /// Resource type
- /// Resource location. Required on PUT
- /// (CreateOrReplace) requests.
- /// Resource tags
- public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary))
+ /// Fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
+ /// The name of the resource
+ /// The type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
+ public Resource(string id = default(string), string name = default(string), string type = default(string))
{
Id = id;
Name = name;
Type = type;
- Location = location;
- Tags = tags;
CustomInit();
}
@@ -56,35 +48,25 @@ public Resource()
partial void CustomInit();
///
- /// Gets resource Id
+ /// Gets fully qualified resource Id for the resource. Ex -
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
///
[JsonProperty(PropertyName = "id")]
public string Id { get; private set; }
///
- /// Gets resource name
+ /// Gets the name of the resource
///
[JsonProperty(PropertyName = "name")]
public string Name { get; private set; }
///
- /// Gets resource type
+ /// Gets the type of the resource. Ex-
+ /// Microsoft.Compute/virtualMachines or
+ /// Microsoft.Storage/storageAccounts.
///
[JsonProperty(PropertyName = "type")]
public string Type { get; private set; }
- ///
- /// Gets or sets resource location. Required on PUT (CreateOrReplace)
- /// requests.
- ///
- [JsonProperty(PropertyName = "location")]
- public string Location { get; set; }
-
- ///
- /// Gets or sets resource tags
- ///
- [JsonProperty(PropertyName = "tags")]
- public IDictionary Tags { get; set; }
-
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ResourceTestStatus.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ResourceTestStatus.cs
index 726c8704c41a..1f22a97e9975 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ResourceTestStatus.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ResourceTestStatus.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -25,7 +24,7 @@ public partial class ResourceTestStatus
///
public ResourceTestStatus()
{
- CustomInit();
+ CustomInit();
}
///
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ScalarFunctionProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ScalarFunctionProperties.cs
index 1eed041b3387..1f8e400567bd 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ScalarFunctionProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ScalarFunctionProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,14 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
- using Microsoft.Rest;
- using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -22,7 +19,6 @@ namespace Microsoft.Azure.Management.StreamAnalytics.Models
/// The properties that are associated with a scalar function.
///
[Newtonsoft.Json.JsonObject("Scalar")]
- [Rest.Serialization.JsonTransformation]
public partial class ScalarFunctionProperties : FunctionProperties
{
///
@@ -30,7 +26,7 @@ public partial class ScalarFunctionProperties : FunctionProperties
///
public ScalarFunctionProperties()
{
- CustomInit();
+ CustomInit();
}
///
@@ -41,18 +37,9 @@ public ScalarFunctionProperties()
/// changed between requests. You can also use it in the If-Match or
/// If-None-Match headers for write operations for optimistic
/// concurrency.
- /// A list of inputs describing the parameters of
- /// the function.
- /// The output of the function.
- /// The physical binding of the function. For
- /// example, in the Azure Machine Learning web service’s case, this
- /// describes the endpoint.
public ScalarFunctionProperties(string etag = default(string), IList inputs = default(IList), FunctionOutput output = default(FunctionOutput), FunctionBinding binding = default(FunctionBinding))
- : base(etag)
+ : base(etag, inputs, output, binding)
{
- Inputs = inputs;
- Output = output;
- Binding = binding;
CustomInit();
}
@@ -61,26 +48,5 @@ public ScalarFunctionProperties()
///
partial void CustomInit();
- ///
- /// Gets or sets a list of inputs describing the parameters of the
- /// function.
- ///
- [JsonProperty(PropertyName = "properties.inputs")]
- public IList Inputs { get; set; }
-
- ///
- /// Gets or sets the output of the function.
- ///
- [JsonProperty(PropertyName = "properties.output")]
- public FunctionOutput Output { get; set; }
-
- ///
- /// Gets or sets the physical binding of the function. For example, in
- /// the Azure Machine Learning web service’s case, this describes the
- /// endpoint.
- ///
- [JsonProperty(PropertyName = "properties.binding")]
- public FunctionBinding Binding { get; set; }
-
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Serialization.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Serialization.cs
index 3060ea88d919..5655cb74f349 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Serialization.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/Serialization.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using System.Linq;
///
@@ -24,7 +23,7 @@ public partial class Serialization
///
public Serialization()
{
- CustomInit();
+ CustomInit();
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusDataSourceProperties.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusDataSourceProperties.cs
index e1e4d26e1dcd..c78ce8a10fbb 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusDataSourceProperties.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusDataSourceProperties.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Newtonsoft.Json;
using System.Linq;
@@ -26,7 +25,7 @@ public partial class ServiceBusDataSourceProperties
///
public ServiceBusDataSourceProperties()
{
- CustomInit();
+ CustomInit();
}
///
@@ -42,11 +41,14 @@ public ServiceBusDataSourceProperties()
/// The shared access policy key
/// for the specified shared access policy. Required on PUT
/// (CreateOrReplace) requests.
- public ServiceBusDataSourceProperties(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string))
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
+ public ServiceBusDataSourceProperties(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string authenticationMode = default(string))
{
ServiceBusNamespace = serviceBusNamespace;
SharedAccessPolicyName = sharedAccessPolicyName;
SharedAccessPolicyKey = sharedAccessPolicyKey;
+ AuthenticationMode = authenticationMode;
CustomInit();
}
@@ -78,5 +80,12 @@ public ServiceBusDataSourceProperties()
[JsonProperty(PropertyName = "sharedAccessPolicyKey")]
public string SharedAccessPolicyKey { get; set; }
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusQueueOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusQueueOutputDataSource.cs
index fbf16cf406bb..8d0d76bb9cda 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusQueueOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusQueueOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -31,7 +30,7 @@ public partial class ServiceBusQueueOutputDataSource : OutputDataSource
///
public ServiceBusQueueOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
@@ -47,18 +46,22 @@ public ServiceBusQueueOutputDataSource()
/// The shared access policy key
/// for the specified shared access policy. Required on PUT
/// (CreateOrReplace) requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
/// The name of the Service Bus Queue. Required
/// on PUT (CreateOrReplace) requests.
/// A string array of the names of output
/// columns to be attached to Service Bus messages as custom
/// properties.
- public ServiceBusQueueOutputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string queueName = default(string), IList propertyColumns = default(IList))
+ public ServiceBusQueueOutputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string authenticationMode = default(string), string queueName = default(string), IList propertyColumns = default(IList), IDictionary systemPropertyColumns = default(IDictionary))
{
ServiceBusNamespace = serviceBusNamespace;
SharedAccessPolicyName = sharedAccessPolicyName;
SharedAccessPolicyKey = sharedAccessPolicyKey;
+ AuthenticationMode = authenticationMode;
QueueName = queueName;
PropertyColumns = propertyColumns;
+ SystemPropertyColumns = systemPropertyColumns;
CustomInit();
}
@@ -90,6 +93,13 @@ public ServiceBusQueueOutputDataSource()
[JsonProperty(PropertyName = "properties.sharedAccessPolicyKey")]
public string SharedAccessPolicyKey { get; set; }
+ ///
+ /// Gets or sets authentication Mode. Possible values include: 'Msi',
+ /// 'UserToken', 'ConnectionString'
+ ///
+ [JsonProperty(PropertyName = "properties.authenticationMode")]
+ public string AuthenticationMode { get; set; }
+
///
/// Gets or sets the name of the Service Bus Queue. Required on PUT
/// (CreateOrReplace) requests.
@@ -104,5 +114,10 @@ public ServiceBusQueueOutputDataSource()
[JsonProperty(PropertyName = "properties.propertyColumns")]
public IList PropertyColumns { get; set; }
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.systemPropertyColumns")]
+ public IDictionary SystemPropertyColumns { get; set; }
+
}
}
diff --git a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusTopicOutputDataSource.cs b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusTopicOutputDataSource.cs
index a78886a45079..dc08fd4086c4 100644
--- a/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusTopicOutputDataSource.cs
+++ b/sdk/streamanalytics/Microsoft.Azure.Management.StreamAnalytics/src/Generated/Models/ServiceBusTopicOutputDataSource.cs
@@ -1,3 +1,4 @@
+//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
@@ -5,12 +6,10 @@
// 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.StreamAnalytics.Models
{
- using Microsoft.Azure;
- using Microsoft.Azure.Management;
- using Microsoft.Azure.Management.StreamAnalytics;
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
@@ -31,7 +30,7 @@ public partial class ServiceBusTopicOutputDataSource : OutputDataSource
///
public ServiceBusTopicOutputDataSource()
{
- CustomInit();
+ CustomInit();
}
///
@@ -47,18 +46,22 @@ public ServiceBusTopicOutputDataSource()
/// The shared access policy key
/// for the specified shared access policy. Required on PUT
/// (CreateOrReplace) requests.
+ /// Authentication Mode. Possible
+ /// values include: 'Msi', 'UserToken', 'ConnectionString'
/// The name of the Service Bus Topic. Required
/// on PUT (CreateOrReplace) requests.
/// A string array of the names of output
/// columns to be attached to Service Bus messages as custom
/// properties.
- public ServiceBusTopicOutputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string topicName = default(string), IList propertyColumns = default(IList))
+ public ServiceBusTopicOutputDataSource(string serviceBusNamespace = default(string), string sharedAccessPolicyName = default(string), string sharedAccessPolicyKey = default(string), string authenticationMode = default(string), string topicName = default(string), IList propertyColumns = default(IList), IDictionary