From 343636d6a835bcc499d1eee1c66069c39d844239 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 24 Aug 2021 10:30:34 +0000 Subject: [PATCH] CodeGen from PR 15765 in Azure/azure-rest-api-specs Merge 1b8633312762ba416d779a6a420feec72400eca6 into 21056051e0ceb137195559aeff9df03f56a5d9af --- .../AzureADOnlyAuthenticationsOperations.cs | 957 ++++++++++++++++++ ...OnlyAuthenticationsOperationsExtensions.cs | 271 +++++ .../IAzureADOnlyAuthenticationsOperations.cs | 177 ++++ .../IIntegrationRuntimesOperations.cs | 33 + .../ISparkConfigurationOperations.cs | 58 ++ .../ISparkConfigurationsOperations.cs | 80 ++ .../src/Generated/ISynapseManagementClient.cs | 15 + ...SqlServerRecoverableSqlPoolsOperations.cs} | 0 .../IntegrationRuntimesOperations.cs | 230 +++++ ...IntegrationRuntimesOperationsExtensions.cs | 56 + .../Generated/Models/AuthenticationState.cs | 23 + .../Models/AzureADOnlyAuthentication.cs | 91 ++ .../Models/BigDataPoolResourceInfo.cs | 4 +- .../src/Generated/Models/ConfigurationType.cs | 22 + .../Models/CspWorkspaceAdminProperties.cs | 54 + .../Models/CustomerManagedKeyDetails.cs | 10 +- .../Models/DataLakeStorageAccountDetails.cs | 21 +- ...oundNetworkDependenciesCategoryEndpoint.cs | 68 ++ ...timeOutboundNetworkDependenciesEndpoint.cs | 64 ++ ...boundNetworkDependenciesEndpointDetails.cs | 54 + ...undNetworkDependenciesEndpointsResponse.cs | 58 ++ .../IntegrationRuntimeVNetProperties.cs | 12 +- .../Generated/Models/IpFirewallRuleInfo.cs | 12 +- .../Generated/Models/KekIdentityProperties.cs | 62 ++ .../src/Generated/Models/LibraryInfo.cs | 4 +- .../src/Generated/Models/LibraryResource.cs | 4 +- .../src/Generated/Models/ManagedIdentity.cs | 19 +- .../Generated/Models/MetadataSyncConfig.cs | 12 +- .../Generated/Models/ResourceIdentityType.cs | 8 +- .../Generated/Models/SparkConfigProperties.cs | 83 ++ .../Models/SparkConfigurationResource.cs | 120 +++ .../src/Generated/Models/SqlPool.cs | 11 +- .../src/Generated/Models/SqlPoolPatchInfo.cs | 11 +- .../Models/UserAssignedManagedIdentity.cs | 61 ++ .../src/Generated/Models/Workspace.cs | 30 +- .../Generated/Models/WorkspaceAadAdminInfo.cs | 12 +- .../SdkInfo_SynapseManagementClient.cs | 138 ++- .../SdkInfo_SynapseSqlVManagementClient.cs | 1 - .../Generated/SparkConfigurationOperations.cs | 282 ++++++ .../SparkConfigurationOperationsExtensions.cs | 77 ++ .../SparkConfigurationsOperations.cs | 444 ++++++++ ...SparkConfigurationsOperationsExtensions.cs | 111 ++ .../src/Generated/SynapseManagementClient.cs | 20 +- ...SqlServerRecoverableSqlPoolsOperations.cs} | 0 ...ecoverableSqlPoolsOperationsExtensions.cs} | 0 45 files changed, 3780 insertions(+), 100 deletions(-) create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/AzureADOnlyAuthenticationsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/AzureADOnlyAuthenticationsOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IAzureADOnlyAuthenticationsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISparkConfigurationOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISparkConfigurationsOperations.cs rename sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/{IWorkspaceManagedSqlServerRecoverableSqlpoolsOperations.cs => IWorkspaceManagedSqlServerRecoverableSqlPoolsOperations.cs} (100%) create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AuthenticationState.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureADOnlyAuthentication.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ConfigurationType.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CspWorkspaceAdminProperties.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KekIdentityProperties.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SparkConfigProperties.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SparkConfigurationResource.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/UserAssignedManagedIdentity.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationOperationsExtensions.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationsOperations.cs create mode 100644 sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationsOperationsExtensions.cs rename sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/{WorkspaceManagedSqlServerRecoverableSqlpoolsOperations.cs => WorkspaceManagedSqlServerRecoverableSqlPoolsOperations.cs} (100%) rename sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/{WorkspaceManagedSqlServerRecoverableSqlpoolsOperationsExtensions.cs => WorkspaceManagedSqlServerRecoverableSqlPoolsOperationsExtensions.cs} (100%) diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/AzureADOnlyAuthenticationsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/AzureADOnlyAuthenticationsOperations.cs new file mode 100644 index 0000000000000..cdf2c3bbe13c8 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/AzureADOnlyAuthenticationsOperations.cs @@ -0,0 +1,957 @@ +// +// 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.Synapse +{ + 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; + + /// + /// AzureADOnlyAuthenticationsOperations operations. + /// + internal partial class AzureADOnlyAuthenticationsOperations : IServiceOperations, IAzureADOnlyAuthenticationsOperations + { + /// + /// Initializes a new instance of the AzureADOnlyAuthenticationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal AzureADOnlyAuthenticationsOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Get Azure Active Directory Only Authentication property + /// + /// + /// Gets a Azure Active Directory Only Authentication property for the + /// workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// 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 workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + 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 (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + string azureADOnlyAuthenticationName = "default"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("azureADOnlyAuthenticationName", azureADOnlyAuthenticationName); + 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.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{azureADOnlyAuthenticationName}", System.Uri.EscapeDataString(azureADOnlyAuthenticationName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Create or Update Azure Active Directory Only Authentication property + /// + /// + /// Create or Update a Azure Active Directory Only Authentication property for + /// the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Azure Active Directory Property + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets a list of Azure Active Directory Only Authentication property + /// + /// + /// Gets a list of Azure Active Directory Only Authentication properties for a + /// workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// 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>> ListWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + 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 (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", 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.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// Create or Update Azure Active Directory Only Authentication property + /// + /// + /// Create or Update a Azure Active Directory Only Authentication property for + /// the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Azure Active Directory Property + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + 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 (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (azureADOnlyAuthenticationInfo == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "azureADOnlyAuthenticationInfo"); + } + if (azureADOnlyAuthenticationInfo != null) + { + azureADOnlyAuthenticationInfo.Validate(); + } + string azureADOnlyAuthenticationName = "default"; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("azureADOnlyAuthenticationName", azureADOnlyAuthenticationName); + tracingParameters.Add("azureADOnlyAuthenticationInfo", azureADOnlyAuthenticationInfo); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{azureADOnlyAuthenticationName}", System.Uri.EscapeDataString(azureADOnlyAuthenticationName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 (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(azureADOnlyAuthenticationInfo != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(azureADOnlyAuthenticationInfo, 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 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = 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; + } + + /// + /// Gets a list of Azure Active Directory Only Authentication property + /// + /// + /// Gets a list of Azure Active Directory Only Authentication properties for a + /// workspace + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(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, "ListNext", 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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/synapse/Microsoft.Azure.Management.Synapse/src/Generated/AzureADOnlyAuthenticationsOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/AzureADOnlyAuthenticationsOperationsExtensions.cs new file mode 100644 index 0000000000000..9e81a9adfd6be --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/AzureADOnlyAuthenticationsOperationsExtensions.cs @@ -0,0 +1,271 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for AzureADOnlyAuthenticationsOperations. + /// + public static partial class AzureADOnlyAuthenticationsOperationsExtensions + { + /// + /// Get Azure Active Directory Only Authentication property + /// + /// + /// Gets a Azure Active Directory Only Authentication property for the + /// workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + public static AzureADOnlyAuthentication Get(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName) + { + return operations.GetAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); + } + + /// + /// Get Azure Active Directory Only Authentication property + /// + /// + /// Gets a Azure Active Directory Only Authentication property for the + /// workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or Update Azure Active Directory Only Authentication property + /// + /// + /// Create or Update a Azure Active Directory Only Authentication property for + /// the workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Azure Active Directory Property + /// + public static AzureADOnlyAuthentication Create(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo) + { + return operations.CreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo).GetAwaiter().GetResult(); + } + + /// + /// Create or Update Azure Active Directory Only Authentication property + /// + /// + /// Create or Update a Azure Active Directory Only Authentication property for + /// the workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Azure Active Directory Property + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of Azure Active Directory Only Authentication property + /// + /// + /// Gets a list of Azure Active Directory Only Authentication properties for a + /// workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + public static IPage List(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName) + { + return operations.ListAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of Azure Active Directory Only Authentication property + /// + /// + /// Gets a list of Azure Active Directory Only Authentication properties for a + /// workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Create or Update Azure Active Directory Only Authentication property + /// + /// + /// Create or Update a Azure Active Directory Only Authentication property for + /// the workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Azure Active Directory Property + /// + public static AzureADOnlyAuthentication BeginCreate(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo) + { + return operations.BeginCreateAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo).GetAwaiter().GetResult(); + } + + /// + /// Create or Update Azure Active Directory Only Authentication property + /// + /// + /// Create or Update a Azure Active Directory Only Authentication property for + /// the workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Azure Active Directory Property + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IAzureADOnlyAuthenticationsOperations operations, string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, workspaceName, azureADOnlyAuthenticationInfo, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets a list of Azure Active Directory Only Authentication property + /// + /// + /// Gets a list of Azure Active Directory Only Authentication properties for a + /// workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IAzureADOnlyAuthenticationsOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets a list of Azure Active Directory Only Authentication property + /// + /// + /// Gets a list of Azure Active Directory Only Authentication properties for a + /// workspace + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IAzureADOnlyAuthenticationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IAzureADOnlyAuthenticationsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IAzureADOnlyAuthenticationsOperations.cs new file mode 100644 index 0000000000000..dee5d5ee2761d --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IAzureADOnlyAuthenticationsOperations.cs @@ -0,0 +1,177 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AzureADOnlyAuthenticationsOperations operations. + /// + public partial interface IAzureADOnlyAuthenticationsOperations + { + /// + /// Get Azure Active Directory Only Authentication property + /// + /// + /// Gets a Azure Active Directory Only Authentication property for the + /// workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// 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 workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or Update Azure Active Directory Only Authentication + /// property + /// + /// + /// Create or Update a Azure Active Directory Only Authentication + /// property for the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Azure Active Directory Property + /// + /// + /// 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> CreateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of Azure Active Directory Only Authentication property + /// + /// + /// Gets a list of Azure Active Directory Only Authentication + /// properties for a workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// 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>> ListWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Create or Update Azure Active Directory Only Authentication + /// property + /// + /// + /// Create or Update a Azure Active Directory Only Authentication + /// property for the workspace + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Azure Active Directory Property + /// + /// + /// 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> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, AzureADOnlyAuthentication azureADOnlyAuthenticationInfo, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets a list of Azure Active Directory Only Authentication property + /// + /// + /// Gets a list of Azure Active Directory Only Authentication + /// properties for a workspace + /// + /// + /// 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>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IIntegrationRuntimesOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IIntegrationRuntimesOperations.cs index 3d3029778d72c..82dbb66e55263 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IIntegrationRuntimesOperations.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IIntegrationRuntimesOperations.cs @@ -276,6 +276,39 @@ public partial interface IIntegrationRuntimesOperations /// Task StopWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Gets list of outbound network dependencies for a given Azure-SSIS + /// integration runtime. + /// + /// + /// Gets the list of outbound network dependencies for a given + /// Azure-SSIS integration runtime. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace. + /// + /// + /// Integration runtime name + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> ListOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Enable interactive query in integration runtime /// /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISparkConfigurationOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISparkConfigurationOperations.cs new file mode 100644 index 0000000000000..3717e81145c1e --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISparkConfigurationOperations.cs @@ -0,0 +1,58 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SparkConfigurationOperations operations. + /// + public partial interface ISparkConfigurationOperations + { + /// + /// Get SparkConfiguration by name. + /// + /// + /// Get SparkConfiguration by name in a workspace. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// SparkConfiguration name + /// + /// + /// The name of the workspace + /// + /// + /// 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 sparkConfigurationName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISparkConfigurationsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISparkConfigurationsOperations.cs new file mode 100644 index 0000000000000..26d58b9a00df0 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISparkConfigurationsOperations.cs @@ -0,0 +1,80 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// SparkConfigurationsOperations operations. + /// + public partial interface ISparkConfigurationsOperations + { + /// + /// List the sparkConfigurations in a workspace. + /// + /// + /// List sparkConfigurations in a workspace. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// 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>> ListByWorkspaceWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// List the sparkConfigurations in a workspace. + /// + /// + /// List sparkConfigurations in a workspace. + /// + /// + /// 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>> ListByWorkspaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISynapseManagementClient.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISynapseManagementClient.cs index ca32862854245..ee51a61c2d777 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISynapseManagementClient.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/ISynapseManagementClient.cs @@ -374,5 +374,20 @@ public partial interface ISynapseManagementClient : System.IDisposable /// IRestorableDroppedSqlPoolsOperations RestorableDroppedSqlPools { get; } + /// + /// Gets the ISparkConfigurationOperations. + /// + ISparkConfigurationOperations SparkConfiguration { get; } + + /// + /// Gets the ISparkConfigurationsOperations. + /// + ISparkConfigurationsOperations SparkConfigurations { get; } + + /// + /// Gets the IAzureADOnlyAuthenticationsOperations. + /// + IAzureADOnlyAuthenticationsOperations AzureADOnlyAuthentications { get; } + } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IWorkspaceManagedSqlServerRecoverableSqlpoolsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IWorkspaceManagedSqlServerRecoverableSqlPoolsOperations.cs similarity index 100% rename from sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IWorkspaceManagedSqlServerRecoverableSqlpoolsOperations.cs rename to sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IWorkspaceManagedSqlServerRecoverableSqlPoolsOperations.cs diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperations.cs index 02fbf9052c83d..d3eea9e2c4f44 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperations.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperations.cs @@ -1080,6 +1080,236 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); } + /// + /// Gets list of outbound network dependencies for a given Azure-SSIS + /// integration runtime. + /// + /// + /// Gets the list of outbound network dependencies for a given Azure-SSIS + /// integration runtime. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace. + /// + /// + /// Integration runtime name + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + 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 (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + if (integrationRuntimeName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationRuntimeName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListOutboundNetworkDependenciesEndpoints", 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.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/outboundNetworkDependenciesEndpoints").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + _url = _url.Replace("{integrationRuntimeName}", System.Uri.EscapeDataString(integrationRuntimeName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + /// /// Enable interactive query in integration runtime /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperationsExtensions.cs index b688622db2713..43e40bf15431f 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperationsExtensions.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperationsExtensions.cs @@ -454,6 +454,62 @@ public static void Stop(this IIntegrationRuntimesOperations operations, string r (await operations.StopWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Gets list of outbound network dependencies for a given Azure-SSIS + /// integration runtime. + /// + /// + /// Gets the list of outbound network dependencies for a given Azure-SSIS + /// integration runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace. + /// + /// + /// Integration runtime name + /// + public static IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse ListOutboundNetworkDependenciesEndpoints(this IIntegrationRuntimesOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + return operations.ListOutboundNetworkDependenciesEndpointsAsync(resourceGroupName, workspaceName, integrationRuntimeName).GetAwaiter().GetResult(); + } + + /// + /// Gets list of outbound network dependencies for a given Azure-SSIS + /// integration runtime. + /// + /// + /// Gets the list of outbound network dependencies for a given Azure-SSIS + /// integration runtime. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace. + /// + /// + /// Integration runtime name + /// + /// + /// The cancellation token. + /// + public static async Task ListOutboundNetworkDependenciesEndpointsAsync(this IIntegrationRuntimesOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListOutboundNetworkDependenciesEndpointsWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Enable interactive query in integration runtime /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AuthenticationState.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AuthenticationState.cs new file mode 100644 index 0000000000000..4fc0b7dc2dc2a --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AuthenticationState.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.Synapse.Models +{ + + /// + /// Defines values for AuthenticationState. + /// + public static class AuthenticationState + { + public const string Consistent = "Consistent"; + public const string InConsistent = "InConsistent"; + public const string Updating = "Updating"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureADOnlyAuthentication.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureADOnlyAuthentication.cs new file mode 100644 index 0000000000000..bad91911ac8d7 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/AzureADOnlyAuthentication.cs @@ -0,0 +1,91 @@ +// +// 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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Azure Active Directory Only Authentication Info + /// + [Rest.Serialization.JsonTransformation] + public partial class AzureADOnlyAuthentication : ProxyResource + { + /// + /// Initializes a new instance of the AzureADOnlyAuthentication class. + /// + public AzureADOnlyAuthentication() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureADOnlyAuthentication class. + /// + /// Azure Active + /// Directory Only Authentication enabled + /// 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. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Azure Active Directory Only Authentication + /// configuration state. Possible values include: 'Consistent', + /// 'InConsistent', 'Updating' + /// property configuration date + public AzureADOnlyAuthentication(bool azureADOnlyAuthenticationProperty, string id = default(string), string name = default(string), string type = default(string), string state = default(string), System.DateTime? creationDate = default(System.DateTime?)) + : base(id, name, type) + { + AzureADOnlyAuthenticationProperty = azureADOnlyAuthenticationProperty; + State = state; + CreationDate = creationDate; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets azure Active Directory Only Authentication enabled + /// + [JsonProperty(PropertyName = "properties.azureADOnlyAuthentication")] + public bool AzureADOnlyAuthenticationProperty { get; set; } + + /// + /// Gets azure Active Directory Only Authentication configuration + /// state. Possible values include: 'Consistent', 'InConsistent', + /// 'Updating' + /// + [JsonProperty(PropertyName = "properties.state")] + public string State { get; private set; } + + /// + /// Gets property configuration date + /// + [JsonProperty(PropertyName = "properties.creationDate")] + public System.DateTime? CreationDate { get; private set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BigDataPoolResourceInfo.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BigDataPoolResourceInfo.cs index feb9309712a99..3555fb45f415b 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BigDataPoolResourceInfo.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/BigDataPoolResourceInfo.cs @@ -79,7 +79,7 @@ public BigDataPoolResourceInfo() /// 'HardwareAcceleratedFPGA', 'HardwareAcceleratedGPU' /// The time when the Big Data /// pool was updated successfully. - public BigDataPoolResourceInfo(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), AutoScaleProperties autoScale = default(AutoScaleProperties), System.DateTime? creationDate = default(System.DateTime?), AutoPauseProperties autoPause = default(AutoPauseProperties), bool? isComputeIsolationEnabled = default(bool?), bool? sessionLevelPackagesEnabled = default(bool?), int? cacheSize = default(int?), DynamicExecutorAllocation dynamicExecutorAllocation = default(DynamicExecutorAllocation), string sparkEventsFolder = default(string), int? nodeCount = default(int?), LibraryRequirements libraryRequirements = default(LibraryRequirements), IList customLibraries = default(IList), LibraryRequirements sparkConfigProperties = default(LibraryRequirements), string sparkVersion = default(string), string defaultSparkLogFolder = default(string), string nodeSize = default(string), string nodeSizeFamily = default(string), System.DateTime? lastSucceededTimestamp = default(System.DateTime?)) + public BigDataPoolResourceInfo(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string provisioningState = default(string), AutoScaleProperties autoScale = default(AutoScaleProperties), System.DateTime? creationDate = default(System.DateTime?), AutoPauseProperties autoPause = default(AutoPauseProperties), bool? isComputeIsolationEnabled = default(bool?), bool? sessionLevelPackagesEnabled = default(bool?), int? cacheSize = default(int?), DynamicExecutorAllocation dynamicExecutorAllocation = default(DynamicExecutorAllocation), string sparkEventsFolder = default(string), int? nodeCount = default(int?), LibraryRequirements libraryRequirements = default(LibraryRequirements), IList customLibraries = default(IList), SparkConfigProperties sparkConfigProperties = default(SparkConfigProperties), string sparkVersion = default(string), string defaultSparkLogFolder = default(string), string nodeSize = default(string), string nodeSizeFamily = default(string), System.DateTime? lastSucceededTimestamp = default(System.DateTime?)) : base(location, id, name, type, tags) { ProvisioningState = provisioningState; @@ -186,7 +186,7 @@ public BigDataPoolResourceInfo() /// properties /// [JsonProperty(PropertyName = "properties.sparkConfigProperties")] - public LibraryRequirements SparkConfigProperties { get; set; } + public SparkConfigProperties SparkConfigProperties { get; set; } /// /// Gets or sets the Apache Spark version. diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ConfigurationType.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ConfigurationType.cs new file mode 100644 index 0000000000000..a566aad0b91d5 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ConfigurationType.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.Synapse.Models +{ + + /// + /// Defines values for ConfigurationType. + /// + public static class ConfigurationType + { + public const string File = "File"; + public const string Artifact = "Artifact"; + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CspWorkspaceAdminProperties.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CspWorkspaceAdminProperties.cs new file mode 100644 index 0000000000000..7cea4279c1b84 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CspWorkspaceAdminProperties.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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Initial workspace AAD admin properties for a CSP subscription + /// + public partial class CspWorkspaceAdminProperties + { + /// + /// Initializes a new instance of the CspWorkspaceAdminProperties + /// class. + /// + public CspWorkspaceAdminProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the CspWorkspaceAdminProperties + /// class. + /// + /// AAD object ID of + /// initial workspace admin + public CspWorkspaceAdminProperties(string initialWorkspaceAdminObjectId = default(string)) + { + InitialWorkspaceAdminObjectId = initialWorkspaceAdminObjectId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets AAD object ID of initial workspace admin + /// + [JsonProperty(PropertyName = "initialWorkspaceAdminObjectId")] + public string InitialWorkspaceAdminObjectId { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CustomerManagedKeyDetails.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CustomerManagedKeyDetails.cs index 665ec583c040c..cc45fe4a1d258 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CustomerManagedKeyDetails.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CustomerManagedKeyDetails.cs @@ -32,10 +32,12 @@ public CustomerManagedKeyDetails() /// The customer managed key status on the /// workspace /// The key object of the workspace - public CustomerManagedKeyDetails(string status = default(string), WorkspaceKeyDetails key = default(WorkspaceKeyDetails)) + /// Key encryption key + public CustomerManagedKeyDetails(string status = default(string), WorkspaceKeyDetails key = default(WorkspaceKeyDetails), KekIdentityProperties kekIdentity = default(KekIdentityProperties)) { Status = status; Key = key; + KekIdentity = kekIdentity; CustomInit(); } @@ -56,5 +58,11 @@ public CustomerManagedKeyDetails() [JsonProperty(PropertyName = "key")] public WorkspaceKeyDetails Key { get; set; } + /// + /// Gets or sets key encryption key + /// + [JsonProperty(PropertyName = "kekIdentity")] + public KekIdentityProperties KekIdentity { get; set; } + } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataLakeStorageAccountDetails.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataLakeStorageAccountDetails.cs index f2752dafa55ab..8712482f48ca3 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataLakeStorageAccountDetails.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/DataLakeStorageAccountDetails.cs @@ -33,10 +33,16 @@ public DataLakeStorageAccountDetails() /// /// Account URL /// Filesystem name - public DataLakeStorageAccountDetails(string accountUrl = default(string), string filesystem = default(string)) + /// ARM resource Id of this storage + /// account + /// Create managed private + /// endpoint to this storage account or not + public DataLakeStorageAccountDetails(string accountUrl = default(string), string filesystem = default(string), string resourceId = default(string), bool? createManagedPrivateEndpoint = default(bool?)) { AccountUrl = accountUrl; Filesystem = filesystem; + ResourceId = resourceId; + CreateManagedPrivateEndpoint = createManagedPrivateEndpoint; CustomInit(); } @@ -57,5 +63,18 @@ public DataLakeStorageAccountDetails() [JsonProperty(PropertyName = "filesystem")] public string Filesystem { get; set; } + /// + /// Gets or sets ARM resource Id of this storage account + /// + [JsonProperty(PropertyName = "resourceId")] + public string ResourceId { get; set; } + + /// + /// Gets or sets create managed private endpoint to this storage + /// account or not + /// + [JsonProperty(PropertyName = "createManagedPrivateEndpoint")] + public bool? CreateManagedPrivateEndpoint { get; set; } + } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs new file mode 100644 index 0000000000000..d25df86cdbe89 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint.cs @@ -0,0 +1,68 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Azure-SSIS integration runtime outbound network dependency endpoints + /// for one category. + /// + public partial class IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint + { + /// + /// Initializes a new instance of the + /// IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint + /// class. + /// + public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint + /// class. + /// + /// The category of outbound network + /// dependency. + /// The endpoints for outbound network + /// dependency. + public IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint(string category = default(string), IList endpoints = default(IList)) + { + Category = category; + Endpoints = endpoints; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the category of outbound network dependency. + /// + [JsonProperty(PropertyName = "category")] + public string Category { get; set; } + + /// + /// Gets or sets the endpoints for outbound network dependency. + /// + [JsonProperty(PropertyName = "endpoints")] + public IList Endpoints { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs new file mode 100644 index 0000000000000..aaa4aab079df4 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpoint.cs @@ -0,0 +1,64 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The endpoint for Azure-SSIS integration runtime outbound network + /// dependency. + /// + public partial class IntegrationRuntimeOutboundNetworkDependenciesEndpoint + { + /// + /// Initializes a new instance of the + /// IntegrationRuntimeOutboundNetworkDependenciesEndpoint class. + /// + public IntegrationRuntimeOutboundNetworkDependenciesEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationRuntimeOutboundNetworkDependenciesEndpoint class. + /// + /// The domain name of endpoint. + /// The details of endpoint. + public IntegrationRuntimeOutboundNetworkDependenciesEndpoint(string domainName = default(string), IList endpointDetails = default(IList)) + { + DomainName = domainName; + EndpointDetails = endpointDetails; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the domain name of endpoint. + /// + [JsonProperty(PropertyName = "domainName")] + public string DomainName { get; set; } + + /// + /// Gets or sets the details of endpoint. + /// + [JsonProperty(PropertyName = "endpointDetails")] + public IList EndpointDetails { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.cs new file mode 100644 index 0000000000000..f4a8547fafd16 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The details of Azure-SSIS integration runtime outbound network + /// dependency endpoint. + /// + public partial class IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails + { + /// + /// Initializes a new instance of the + /// IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails class. + /// + public IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails class. + /// + /// The port of endpoint. + public IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails(int? port = default(int?)) + { + Port = port; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the port of endpoint. + /// + [JsonProperty(PropertyName = "port")] + public int? Port { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.cs new file mode 100644 index 0000000000000..737d5353784e1 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse.cs @@ -0,0 +1,58 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.Synapse.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Azure-SSIS integration runtime outbound network dependency endpoints. + /// + public partial class IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse + { + /// + /// Initializes a new instance of the + /// IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse + /// class. + /// + public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the + /// IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse + /// class. + /// + /// The list of outbound network dependency + /// endpoints. + public IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse(IList value = default(IList)) + { + Value = value; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the list of outbound network dependency endpoints. + /// + [JsonProperty(PropertyName = "value")] + public IList Value { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeVNetProperties.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeVNetProperties.cs index 1b930883ff22d..a18b90ce8657e 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeVNetProperties.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeVNetProperties.cs @@ -41,12 +41,15 @@ public IntegrationRuntimeVNetProperties() /// runtime will join. /// Resource IDs of the public IP addresses /// that this integration runtime will use. - public IntegrationRuntimeVNetProperties(IDictionary additionalProperties = default(IDictionary), string vNetId = default(string), string subnet = default(string), IList publicIPs = default(IList)) + /// The ID of subnet, to which this Azure-SSIS + /// integration runtime will be joined. + public IntegrationRuntimeVNetProperties(IDictionary additionalProperties = default(IDictionary), string vNetId = default(string), string subnet = default(string), IList publicIPs = default(IList), string subnetId = default(string)) { AdditionalProperties = additionalProperties; VNetId = vNetId; Subnet = subnet; PublicIPs = publicIPs; + SubnetId = subnetId; CustomInit(); } @@ -83,5 +86,12 @@ public IntegrationRuntimeVNetProperties() [JsonProperty(PropertyName = "publicIPs")] public IList PublicIPs { get; set; } + /// + /// Gets or sets the ID of subnet, to which this Azure-SSIS integration + /// runtime will be joined. + /// + [JsonProperty(PropertyName = "subnetId")] + public string SubnetId { get; set; } + } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IpFirewallRuleInfo.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IpFirewallRuleInfo.cs index 49fd0e504ff3c..43e614b0b9add 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IpFirewallRuleInfo.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IpFirewallRuleInfo.cs @@ -11,7 +11,6 @@ namespace Microsoft.Azure.Management.Synapse.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -20,7 +19,7 @@ namespace Microsoft.Azure.Management.Synapse.Models /// IP firewall rule /// [Rest.Serialization.JsonTransformation] - public partial class IpFirewallRuleInfo : IResource + public partial class IpFirewallRuleInfo : ProxyResource { /// /// Initializes a new instance of the IpFirewallRuleInfo class. @@ -33,6 +32,12 @@ public IpFirewallRuleInfo() /// /// Initializes a new instance of the IpFirewallRuleInfo 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. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// The end IP address of the firewall rule. /// Must be IPv4 format. Must be greater than or equal to /// startIpAddress @@ -41,7 +46,8 @@ public IpFirewallRuleInfo() /// 'Failed', 'DeleteError' /// The start IP address of the firewall /// rule. Must be IPv4 format - public IpFirewallRuleInfo(string endIpAddress = default(string), string provisioningState = default(string), string startIpAddress = default(string)) + public IpFirewallRuleInfo(string id = default(string), string name = default(string), string type = default(string), string endIpAddress = default(string), string provisioningState = default(string), string startIpAddress = default(string)) + : base(id, name, type) { EndIpAddress = endIpAddress; ProvisioningState = provisioningState; diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KekIdentityProperties.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KekIdentityProperties.cs new file mode 100644 index 0000000000000..e09ebe2dd8d17 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/KekIdentityProperties.cs @@ -0,0 +1,62 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Key encryption key properties + /// + public partial class KekIdentityProperties + { + /// + /// Initializes a new instance of the KekIdentityProperties class. + /// + public KekIdentityProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the KekIdentityProperties class. + /// + /// User assigned identity resource + /// Id + /// Boolean specifying whether + /// to use system assigned identity or not + public KekIdentityProperties(string userAssignedIdentity = default(string), object useSystemAssignedIdentity = default(object)) + { + UserAssignedIdentity = userAssignedIdentity; + UseSystemAssignedIdentity = useSystemAssignedIdentity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets user assigned identity resource Id + /// + [JsonProperty(PropertyName = "userAssignedIdentity")] + public string UserAssignedIdentity { get; set; } + + /// + /// Gets or sets boolean specifying whether to use system assigned + /// identity or not + /// + [JsonProperty(PropertyName = "useSystemAssignedIdentity")] + public object UseSystemAssignedIdentity { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LibraryInfo.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LibraryInfo.cs index 63bddd291dc3d..cbd89302fe213 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LibraryInfo.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LibraryInfo.cs @@ -77,10 +77,10 @@ public LibraryInfo() public string ContainerName { get; set; } /// - /// Gets the last update time of the library. + /// Gets or sets the last update time of the library. /// [JsonProperty(PropertyName = "uploadedTimestamp")] - public System.DateTime? UploadedTimestamp { get; private set; } + public System.DateTime? UploadedTimestamp { get; set; } /// /// Gets or sets type of the library. diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LibraryResource.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LibraryResource.cs index bbab257a903e9..1796c2927b602 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LibraryResource.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LibraryResource.cs @@ -85,10 +85,10 @@ public LibraryResource() public string ContainerName { get; set; } /// - /// Gets the last update time of the library. + /// Gets or sets the last update time of the library. /// [JsonProperty(PropertyName = "properties.uploadedTimestamp")] - public System.DateTime? UploadedTimestamp { get; private set; } + public System.DateTime? UploadedTimestamp { get; set; } /// /// Gets or sets type of the library. diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ManagedIdentity.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ManagedIdentity.cs index 86d00d6554352..5525d02e95f6d 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ManagedIdentity.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ManagedIdentity.cs @@ -11,6 +11,8 @@ namespace Microsoft.Azure.Management.Synapse.Models { using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -34,12 +36,16 @@ public ManagedIdentity() /// The tenant ID of the workspace managed /// identity /// The type of managed identity for the workspace. - /// Possible values include: 'None', 'SystemAssigned' - public ManagedIdentity(string principalId = default(string), System.Guid? tenantId = default(System.Guid?), ResourceIdentityType? type = default(ResourceIdentityType?)) + /// Possible values include: 'None', 'SystemAssigned', + /// 'SystemAssigned,UserAssigned' + /// The user assigned managed + /// identities. + public ManagedIdentity(string principalId = default(string), System.Guid? tenantId = default(System.Guid?), ResourceIdentityType? type = default(ResourceIdentityType?), IDictionary userAssignedIdentities = default(IDictionary)) { PrincipalId = principalId; TenantId = tenantId; Type = type; + UserAssignedIdentities = userAssignedIdentities; CustomInit(); } @@ -62,10 +68,17 @@ public ManagedIdentity() /// /// Gets or sets the type of managed identity for the workspace. - /// Possible values include: 'None', 'SystemAssigned' + /// Possible values include: 'None', 'SystemAssigned', + /// 'SystemAssigned,UserAssigned' /// [JsonProperty(PropertyName = "type")] public ResourceIdentityType? Type { get; set; } + /// + /// Gets or sets the user assigned managed identities. + /// + [JsonProperty(PropertyName = "userAssignedIdentities")] + public IDictionary UserAssignedIdentities { get; set; } + } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/MetadataSyncConfig.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/MetadataSyncConfig.cs index c3210013ccb31..8ebc727e68312 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/MetadataSyncConfig.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/MetadataSyncConfig.cs @@ -11,7 +11,6 @@ namespace Microsoft.Azure.Management.Synapse.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -23,7 +22,7 @@ namespace Microsoft.Azure.Management.Synapse.Models /// Configuration for metadata sync /// [Rest.Serialization.JsonTransformation] - public partial class MetadataSyncConfig : IResource + public partial class MetadataSyncConfig : ProxyResource { /// /// Initializes a new instance of the MetadataSyncConfig class. @@ -36,11 +35,18 @@ public MetadataSyncConfig() /// /// Initializes a new instance of the MetadataSyncConfig 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. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Indicates whether the metadata sync is /// enabled or disabled /// The Sync Interval in /// minutes. - public MetadataSyncConfig(bool? enabled = default(bool?), int? syncIntervalInMinutes = default(int?)) + public MetadataSyncConfig(string id = default(string), string name = default(string), string type = default(string), bool? enabled = default(bool?), int? syncIntervalInMinutes = default(int?)) + : base(id, name, type) { Enabled = enabled; SyncIntervalInMinutes = syncIntervalInMinutes; diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ResourceIdentityType.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ResourceIdentityType.cs index 95415c6aece46..fdf7f2e09cc0d 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ResourceIdentityType.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ResourceIdentityType.cs @@ -24,7 +24,9 @@ public enum ResourceIdentityType [EnumMember(Value = "None")] None, [EnumMember(Value = "SystemAssigned")] - SystemAssigned + SystemAssigned, + [EnumMember(Value = "SystemAssigned,UserAssigned")] + SystemAssignedUserAssigned } internal static class ResourceIdentityTypeEnumExtension { @@ -41,6 +43,8 @@ internal static string ToSerializedValue(this ResourceIdentityType value) return "None"; case ResourceIdentityType.SystemAssigned: return "SystemAssigned"; + case ResourceIdentityType.SystemAssignedUserAssigned: + return "SystemAssigned,UserAssigned"; } return null; } @@ -53,6 +57,8 @@ internal static string ToSerializedValue(this ResourceIdentityType value) return ResourceIdentityType.None; case "SystemAssigned": return ResourceIdentityType.SystemAssigned; + case "SystemAssigned,UserAssigned": + return ResourceIdentityType.SystemAssignedUserAssigned; } return null; } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SparkConfigProperties.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SparkConfigProperties.cs new file mode 100644 index 0000000000000..20998646c3191 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SparkConfigProperties.cs @@ -0,0 +1,83 @@ +// +// 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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Spark pool Config Properties + /// + /// + /// SparkConfig Properties for a Big Data pool powered by Apache Spark + /// + public partial class SparkConfigProperties + { + /// + /// Initializes a new instance of the SparkConfigProperties class. + /// + public SparkConfigProperties() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SparkConfigProperties class. + /// + /// The last update time of the spark config + /// properties file. + /// The spark config properties. + /// The filename of the spark config properties + /// file. + /// The type of the spark config + /// properties file. Possible values include: 'File', + /// 'Artifact' + public SparkConfigProperties(System.DateTime? time = default(System.DateTime?), string content = default(string), string filename = default(string), string configurationType = default(string)) + { + Time = time; + Content = content; + Filename = filename; + ConfigurationType = configurationType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the last update time of the spark config properties file. + /// + [JsonProperty(PropertyName = "time")] + public System.DateTime? Time { get; private set; } + + /// + /// Gets or sets the spark config properties. + /// + [JsonProperty(PropertyName = "content")] + public string Content { get; set; } + + /// + /// Gets or sets the filename of the spark config properties file. + /// + [JsonProperty(PropertyName = "filename")] + public string Filename { get; set; } + + /// + /// Gets or sets the type of the spark config properties file. Possible + /// values include: 'File', 'Artifact' + /// + [JsonProperty(PropertyName = "configurationType")] + public string ConfigurationType { get; set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SparkConfigurationResource.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SparkConfigurationResource.cs new file mode 100644 index 0000000000000..b240926040ea6 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SparkConfigurationResource.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.Synapse.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// SparkConfiguration response details + /// + [Rest.Serialization.JsonTransformation] + public partial class SparkConfigurationResource : SubResource + { + /// + /// Initializes a new instance of the SparkConfigurationResource class. + /// + public SparkConfigurationResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the SparkConfigurationResource class. + /// + /// SparkConfiguration configs. + /// 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. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource Etag. + /// Description about the + /// SparkConfiguration. + /// Annotations for + /// SparkConfiguration. + /// additional Notes. + /// The identity that created the + /// resource. + /// The timestamp of resource creation. + public SparkConfigurationResource(IDictionary configs, string id = default(string), string name = default(string), string type = default(string), string etag = default(string), string description = default(string), IList annotations = default(IList), string notes = default(string), string createdBy = default(string), System.DateTime? created = default(System.DateTime?)) + : base(id, name, type, etag) + { + Description = description; + Configs = configs; + Annotations = annotations; + Notes = notes; + CreatedBy = createdBy; + Created = created; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets description about the SparkConfiguration. + /// + [JsonProperty(PropertyName = "properties.description")] + public string Description { get; set; } + + /// + /// Gets or sets sparkConfiguration configs. + /// + [JsonProperty(PropertyName = "properties.configs")] + public IDictionary Configs { get; set; } + + /// + /// Gets or sets annotations for SparkConfiguration. + /// + [JsonProperty(PropertyName = "properties.annotations")] + public IList Annotations { get; set; } + + /// + /// Gets or sets additional Notes. + /// + [JsonProperty(PropertyName = "properties.notes")] + public string Notes { get; set; } + + /// + /// Gets or sets the identity that created the resource. + /// + [JsonProperty(PropertyName = "properties.createdBy")] + public string CreatedBy { get; set; } + + /// + /// Gets or sets the timestamp of resource creation. + /// + [JsonProperty(PropertyName = "properties.created")] + public System.DateTime? Created { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Configs == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Configs"); + } + } + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPool.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPool.cs index fc9476511e6bd..6d0545cd1f999 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPool.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPool.cs @@ -61,7 +61,9 @@ public SqlPool() /// The storage account type used to /// store backups for this sql pool. Possible values include: 'GRS', /// 'LRS', 'ZRS' - public SqlPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), long? maxSizeBytes = default(long?), string collation = default(string), string sourceDatabaseId = default(string), string recoverableDatabaseId = default(string), string provisioningState = default(string), string status = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string createMode = default(string), System.DateTime? creationDate = default(System.DateTime?), string storageAccountType = default(string)) + /// Specifies the time that + /// the sql pool was deleted + public SqlPool(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), Sku sku = default(Sku), long? maxSizeBytes = default(long?), string collation = default(string), string sourceDatabaseId = default(string), string recoverableDatabaseId = default(string), string provisioningState = default(string), string status = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string createMode = default(string), System.DateTime? creationDate = default(System.DateTime?), string storageAccountType = default(string), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?)) : base(location, id, name, type, tags) { Sku = sku; @@ -75,6 +77,7 @@ public SqlPool() CreateMode = createMode; CreationDate = creationDate; StorageAccountType = storageAccountType; + SourceDatabaseDeletionDate = sourceDatabaseDeletionDate; CustomInit(); } @@ -150,6 +153,12 @@ public SqlPool() [JsonProperty(PropertyName = "properties.storageAccountType")] public string StorageAccountType { get; set; } + /// + /// Gets or sets specifies the time that the sql pool was deleted + /// + [JsonProperty(PropertyName = "properties.sourceDatabaseDeletionDate")] + public System.DateTime? SourceDatabaseDeletionDate { get; set; } + /// /// Validate the object. /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPoolPatchInfo.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPoolPatchInfo.cs index ad95ca6a2b1d1..5dae33320f984 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPoolPatchInfo.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SqlPoolPatchInfo.cs @@ -55,7 +55,9 @@ public SqlPoolPatchInfo() /// The storage account type used to /// store backups for this sql pool. Possible values include: 'GRS', /// 'LRS', 'ZRS' - public SqlPoolPatchInfo(IDictionary tags = default(IDictionary), string location = default(string), Sku sku = default(Sku), long? maxSizeBytes = default(long?), string collation = default(string), string sourceDatabaseId = default(string), string recoverableDatabaseId = default(string), string provisioningState = default(string), string status = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string createMode = default(string), System.DateTime? creationDate = default(System.DateTime?), string storageAccountType = default(string)) + /// Specifies the time that + /// the sql pool was deleted + public SqlPoolPatchInfo(IDictionary tags = default(IDictionary), string location = default(string), Sku sku = default(Sku), long? maxSizeBytes = default(long?), string collation = default(string), string sourceDatabaseId = default(string), string recoverableDatabaseId = default(string), string provisioningState = default(string), string status = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string createMode = default(string), System.DateTime? creationDate = default(System.DateTime?), string storageAccountType = default(string), System.DateTime? sourceDatabaseDeletionDate = default(System.DateTime?)) { Tags = tags; Location = location; @@ -70,6 +72,7 @@ public SqlPoolPatchInfo() CreateMode = createMode; CreationDate = creationDate; StorageAccountType = storageAccountType; + SourceDatabaseDeletionDate = sourceDatabaseDeletionDate; CustomInit(); } @@ -157,5 +160,11 @@ public SqlPoolPatchInfo() [JsonProperty(PropertyName = "properties.storageAccountType")] public string StorageAccountType { get; set; } + /// + /// Gets or sets specifies the time that the sql pool was deleted + /// + [JsonProperty(PropertyName = "properties.sourceDatabaseDeletionDate")] + public System.DateTime? SourceDatabaseDeletionDate { get; set; } + } } diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/UserAssignedManagedIdentity.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/UserAssignedManagedIdentity.cs new file mode 100644 index 0000000000000..8844408c60bc3 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/UserAssignedManagedIdentity.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.Synapse.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// User Assigned Managed Identity + /// + public partial class UserAssignedManagedIdentity + { + /// + /// Initializes a new instance of the UserAssignedManagedIdentity + /// class. + /// + public UserAssignedManagedIdentity() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the UserAssignedManagedIdentity + /// class. + /// + /// The client ID. + /// The principal ID. + public UserAssignedManagedIdentity(System.Guid? clientId = default(System.Guid?), System.Guid? principalId = default(System.Guid?)) + { + ClientId = clientId; + PrincipalId = principalId; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the client ID. + /// + [JsonProperty(PropertyName = "clientId")] + public System.Guid? ClientId { get; private set; } + + /// + /// Gets the principal ID. + /// + [JsonProperty(PropertyName = "principalId")] + public System.Guid? PrincipalId { get; private set; } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Workspace.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Workspace.cs index 350ba1be6c462..8b9b203317d95 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Workspace.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/Workspace.cs @@ -77,8 +77,13 @@ public Workspace() /// Enable or Disable public network /// access to workspace. Possible values include: 'Enabled', /// 'Disabled' + /// Initial workspace AAD + /// admin properties for a CSP subscription + /// Workspace settings + /// Enable or Disable + /// AzureADOnlyAuthentication on All Workspace subresource /// Identity of the workspace - public Workspace(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), DataLakeStorageAccountDetails defaultDataLakeStorage = default(DataLakeStorageAccountDetails), string sqlAdministratorLoginPassword = default(string), string managedResourceGroupName = default(string), string provisioningState = default(string), string sqlAdministratorLogin = default(string), VirtualNetworkProfile virtualNetworkProfile = default(VirtualNetworkProfile), IDictionary connectivityEndpoints = default(IDictionary), string managedVirtualNetwork = default(string), IList privateEndpointConnections = default(IList), EncryptionDetails encryption = default(EncryptionDetails), System.Guid? workspaceUID = default(System.Guid?), IDictionary extraProperties = default(IDictionary), ManagedVirtualNetworkSettings managedVirtualNetworkSettings = default(ManagedVirtualNetworkSettings), WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = default(WorkspaceRepositoryConfiguration), PurviewConfiguration purviewConfiguration = default(PurviewConfiguration), string adlaResourceId = default(string), string publicNetworkAccess = default(string), ManagedIdentity identity = default(ManagedIdentity)) + public Workspace(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), DataLakeStorageAccountDetails defaultDataLakeStorage = default(DataLakeStorageAccountDetails), string sqlAdministratorLoginPassword = default(string), string managedResourceGroupName = default(string), string provisioningState = default(string), string sqlAdministratorLogin = default(string), VirtualNetworkProfile virtualNetworkProfile = default(VirtualNetworkProfile), IDictionary connectivityEndpoints = default(IDictionary), string managedVirtualNetwork = default(string), IList privateEndpointConnections = default(IList), EncryptionDetails encryption = default(EncryptionDetails), System.Guid? workspaceUID = default(System.Guid?), IDictionary extraProperties = default(IDictionary), ManagedVirtualNetworkSettings managedVirtualNetworkSettings = default(ManagedVirtualNetworkSettings), WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = default(WorkspaceRepositoryConfiguration), PurviewConfiguration purviewConfiguration = default(PurviewConfiguration), string adlaResourceId = default(string), string publicNetworkAccess = default(string), CspWorkspaceAdminProperties cspWorkspaceAdminProperties = default(CspWorkspaceAdminProperties), IDictionary settings = default(IDictionary), bool? azureADOnlyAuthentication = default(bool?), ManagedIdentity identity = default(ManagedIdentity)) : base(location, id, name, type, tags) { DefaultDataLakeStorage = defaultDataLakeStorage; @@ -98,6 +103,9 @@ public Workspace() PurviewConfiguration = purviewConfiguration; AdlaResourceId = adlaResourceId; PublicNetworkAccess = publicNetworkAccess; + CspWorkspaceAdminProperties = cspWorkspaceAdminProperties; + Settings = settings; + AzureADOnlyAuthentication = azureADOnlyAuthentication; Identity = identity; CustomInit(); } @@ -217,6 +225,26 @@ public Workspace() [JsonProperty(PropertyName = "properties.publicNetworkAccess")] public string PublicNetworkAccess { get; set; } + /// + /// Gets or sets initial workspace AAD admin properties for a CSP + /// subscription + /// + [JsonProperty(PropertyName = "properties.cspWorkspaceAdminProperties")] + public CspWorkspaceAdminProperties CspWorkspaceAdminProperties { get; set; } + + /// + /// Gets workspace settings + /// + [JsonProperty(PropertyName = "properties.settings")] + public IDictionary Settings { get; private set; } + + /// + /// Gets or sets enable or Disable AzureADOnlyAuthentication on All + /// Workspace subresource + /// + [JsonProperty(PropertyName = "properties.azureADOnlyAuthentication")] + public bool? AzureADOnlyAuthentication { get; set; } + /// /// Gets or sets identity of the workspace /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/WorkspaceAadAdminInfo.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/WorkspaceAadAdminInfo.cs index 18e09555a1380..8716c426862b7 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/WorkspaceAadAdminInfo.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/WorkspaceAadAdminInfo.cs @@ -11,7 +11,6 @@ namespace Microsoft.Azure.Management.Synapse.Models { using Microsoft.Rest; - using Microsoft.Rest.Azure; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; @@ -20,7 +19,7 @@ namespace Microsoft.Azure.Management.Synapse.Models /// Workspace active directory administrator /// [Rest.Serialization.JsonTransformation] - public partial class WorkspaceAadAdminInfo : IResource + public partial class WorkspaceAadAdminInfo : ProxyResource { /// /// Initializes a new instance of the WorkspaceAadAdminInfo class. @@ -33,6 +32,12 @@ public WorkspaceAadAdminInfo() /// /// Initializes a new instance of the WorkspaceAadAdminInfo 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. E.g. + /// "Microsoft.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" /// Tenant ID of the workspace active directory /// administrator /// Login of the workspace active directory @@ -41,7 +46,8 @@ public WorkspaceAadAdminInfo() /// administrator type /// Object ID of the workspace active directory /// administrator - public WorkspaceAadAdminInfo(string tenantId = default(string), string login = default(string), string administratorType = default(string), string sid = default(string)) + public WorkspaceAadAdminInfo(string id = default(string), string name = default(string), string type = default(string), string tenantId = default(string), string login = default(string), string administratorType = default(string), string sid = default(string)) + : base(id, name, type) { TenantId = tenantId; Login = login; diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs index 9fead5a1adea1..29347dc4f238e 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseManagementClient.cs @@ -13,86 +13,78 @@ namespace Microsoft.Azure.Management.Synapse internal static partial class SdkInfo { - public static IEnumerable> ApiInfo_SynapseSqlManagementClient + public static IEnumerable> ApiInfo_SynapseManagementClient { get { return new Tuple[] { - new Tuple("Synapse", "BigDataPools", "2021-04-01-preview"), - new Tuple("Synapse", "DataMaskingPolicies", "2021-04-01-preview"), - new Tuple("Synapse", "DataMaskingRules", "2021-04-01-preview"), - new Tuple("Synapse", "ExtendedSqlPoolBlobAuditingPolicies", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimeAuthKeys", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimeConnectionInfos", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimeCredentials", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimeMonitoringData", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimeNodeIpAddress", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimeNodes", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimeObjectMetadata", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimeStatus", "2021-04-01-preview"), - new Tuple("Synapse", "IntegrationRuntimes", "2021-04-01-preview"), - new Tuple("Synapse", "IpFirewallRules", "2021-04-01-preview"), - new Tuple("Synapse", "Keys", "2021-04-01-preview"), - new Tuple("Synapse", "Libraries", "2021-04-01-preview"), - new Tuple("Synapse", "Library", "2021-04-01-preview"), - new Tuple("Synapse", "Operations", "2021-04-01-preview"), - new Tuple("Synapse", "PrivateEndpointConnections", "2021-04-01-preview"), - new Tuple("Synapse", "PrivateEndpointConnectionsPrivateLinkHub", "2021-04-01-preview"), - new Tuple("Synapse", "PrivateLinkHubPrivateLinkResources", "2021-04-01-preview"), - new Tuple("Synapse", "PrivateLinkHubs", "2021-04-01-preview"), - new Tuple("Synapse", "PrivateLinkResources", "2021-04-01-preview"), - new Tuple("Synapse", "RestorableDroppedSqlPools", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolBlobAuditingPolicies", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolColumns", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolConnectionPolicies", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolDataWarehouseUserActivities", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolGeoBackupPolicies", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolMaintenanceWindowOptions", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolMaintenanceWindows", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolMetadataSyncConfigs", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolOperationResults", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolOperations", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolRecommendedSensitivityLabels", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolReplicationLinks", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolRestorePoints", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolSchemas", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolSecurityAlertPolicies", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolSensitivityLabels", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolTableColumns", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolTables", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolTransparentDataEncryptions", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolUsages", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolVulnerabilityAssessmentRuleBaselines", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolVulnerabilityAssessmentScans", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolVulnerabilityAssessments", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolWorkloadClassifier", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPoolWorkloadGroup", "2021-04-01-preview"), - new Tuple("Synapse", "SqlPools", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceAadAdmins", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceManagedIdentitySqlControlSettings", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceManagedSqlServerBlobAuditingPolicies", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceManagedSqlServerEncryptionProtector", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceManagedSqlServerExtendedBlobAuditingPolicies", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceManagedSqlServerRecoverableSqlPools", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceManagedSqlServerSecurityAlertPolicy", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceManagedSqlServerUsages", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceManagedSqlServerVulnerabilityAssessments", "2021-04-01-preview"), - new Tuple("Synapse", "WorkspaceSqlAadAdmins", "2021-04-01-preview"), - new Tuple("Synapse", "Workspaces", "2021-04-01-preview"), + new Tuple("Synapse", "AzureADOnlyAuthentications", "2021-06-01-preview"), + new Tuple("Synapse", "BigDataPools", "2021-06-01-preview"), + new Tuple("Synapse", "DataMaskingPolicies", "2021-06-01-preview"), + new Tuple("Synapse", "DataMaskingRules", "2021-06-01-preview"), + new Tuple("Synapse", "ExtendedSqlPoolBlobAuditingPolicies", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimeAuthKeys", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimeConnectionInfos", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimeCredentials", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimeMonitoringData", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimeNodeIpAddress", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimeNodes", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimeObjectMetadata", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimeStatus", "2021-06-01-preview"), + new Tuple("Synapse", "IntegrationRuntimes", "2021-06-01-preview"), + new Tuple("Synapse", "IpFirewallRules", "2021-06-01-preview"), + new Tuple("Synapse", "Keys", "2021-06-01-preview"), + new Tuple("Synapse", "Libraries", "2021-06-01-preview"), + new Tuple("Synapse", "Library", "2021-06-01-preview"), + new Tuple("Synapse", "Operations", "2021-06-01-preview"), + new Tuple("Synapse", "PrivateEndpointConnections", "2021-06-01-preview"), + new Tuple("Synapse", "PrivateEndpointConnectionsPrivateLinkHub", "2021-06-01-preview"), + new Tuple("Synapse", "PrivateLinkHubPrivateLinkResources", "2021-06-01-preview"), + new Tuple("Synapse", "PrivateLinkHubs", "2021-06-01-preview"), + new Tuple("Synapse", "PrivateLinkResources", "2021-06-01-preview"), + new Tuple("Synapse", "RestorableDroppedSqlPools", "2021-06-01-preview"), + new Tuple("Synapse", "SparkConfiguration", "2021-06-01-preview"), + new Tuple("Synapse", "SparkConfigurations", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolBlobAuditingPolicies", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolColumns", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolConnectionPolicies", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolDataWarehouseUserActivities", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolGeoBackupPolicies", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolMaintenanceWindowOptions", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolMaintenanceWindows", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolMetadataSyncConfigs", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolOperationResults", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolOperations", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolRecommendedSensitivityLabels", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolReplicationLinks", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolRestorePoints", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolSchemas", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolSecurityAlertPolicies", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolSensitivityLabels", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolTableColumns", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolTables", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolTransparentDataEncryptions", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolUsages", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolVulnerabilityAssessmentRuleBaselines", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolVulnerabilityAssessmentScans", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolVulnerabilityAssessments", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolWorkloadClassifier", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPoolWorkloadGroup", "2021-06-01-preview"), + new Tuple("Synapse", "SqlPools", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceAadAdmins", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceManagedIdentitySqlControlSettings", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceManagedSqlServerBlobAuditingPolicies", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceManagedSqlServerEncryptionProtector", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceManagedSqlServerExtendedBlobAuditingPolicies", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceManagedSqlServerRecoverableSqlPools", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceManagedSqlServerSecurityAlertPolicy", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceManagedSqlServerUsages", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceManagedSqlServerVulnerabilityAssessments", "2021-06-01-preview"), + new Tuple("Synapse", "WorkspaceSqlAadAdmins", "2021-06-01-preview"), + new Tuple("Synapse", "Workspaces", "2021-06-01-preview"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4413"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/synapse/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\code\\AzureSDK\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "467afe850ec9f7dd60c09b34ead7b60388c89d8a"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseSqlVManagementClient.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseSqlVManagementClient.cs index 55467ab958c7f..0ca731a1cbdb0 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseSqlVManagementClient.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SdkInfo_SynapseSqlVManagementClient.cs @@ -27,4 +27,3 @@ public static IEnumerable> ApiInfo_SynapseSqlVMana } } } - diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationOperations.cs new file mode 100644 index 0000000000000..fa2cfeea3b234 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationOperations.cs @@ -0,0 +1,282 @@ +// +// 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.Synapse +{ + 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; + + /// + /// SparkConfigurationOperations operations. + /// + internal partial class SparkConfigurationOperations : IServiceOperations, ISparkConfigurationOperations + { + /// + /// Initializes a new instance of the SparkConfigurationOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SparkConfigurationOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// Get SparkConfiguration by name. + /// + /// + /// Get SparkConfiguration by name in a workspace. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// SparkConfiguration name + /// + /// + /// The name of the workspace + /// + /// + /// 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 sparkConfigurationName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + 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 (sparkConfigurationName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sparkConfigurationName"); + } + if (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("sparkConfigurationName", sparkConfigurationName); + tracingParameters.Add("workspaceName", workspaceName); + 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.Synapse/workspaces/{workspaceName}/sparkconfigurations/{sparkConfigurationName}").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{sparkConfigurationName}", System.Uri.EscapeDataString(sparkConfigurationName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationOperationsExtensions.cs new file mode 100644 index 0000000000000..aeb8c98a11c75 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationOperationsExtensions.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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SparkConfigurationOperations. + /// + public static partial class SparkConfigurationOperationsExtensions + { + /// + /// Get SparkConfiguration by name. + /// + /// + /// Get SparkConfiguration by name in a workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// SparkConfiguration name + /// + /// + /// The name of the workspace + /// + public static SparkConfigurationResource Get(this ISparkConfigurationOperations operations, string resourceGroupName, string sparkConfigurationName, string workspaceName) + { + return operations.GetAsync(resourceGroupName, sparkConfigurationName, workspaceName).GetAwaiter().GetResult(); + } + + /// + /// Get SparkConfiguration by name. + /// + /// + /// Get SparkConfiguration by name in a workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// SparkConfiguration name + /// + /// + /// The name of the workspace + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this ISparkConfigurationOperations operations, string resourceGroupName, string sparkConfigurationName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, sparkConfigurationName, workspaceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationsOperations.cs new file mode 100644 index 0000000000000..2cfac1a56fe4b --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationsOperations.cs @@ -0,0 +1,444 @@ +// +// 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.Synapse +{ + 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; + + /// + /// SparkConfigurationsOperations operations. + /// + internal partial class SparkConfigurationsOperations : IServiceOperations, ISparkConfigurationsOperations + { + /// + /// Initializes a new instance of the SparkConfigurationsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal SparkConfigurationsOperations(SynapseManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the SynapseManagementClient + /// + public SynapseManagementClient Client { get; private set; } + + /// + /// List the sparkConfigurations in a workspace. + /// + /// + /// List sparkConfigurations in a workspace. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// 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>> ListByWorkspaceWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.ApiVersion != null) + { + if (Client.ApiVersion.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "Client.ApiVersion", 1); + } + } + 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 (workspaceName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByWorkspace", 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.Synapse/workspaces/{workspaceName}/sparkconfigurations").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{workspaceName}", System.Uri.EscapeDataString(workspaceName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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; + } + + /// + /// List the sparkConfigurations in a workspace. + /// + /// + /// List sparkConfigurations in a workspace. + /// + /// + /// 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>> ListByWorkspaceNextWithHttpMessagesAsync(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, "ListByWorkspaceNext", 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 ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _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/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationsOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationsOperationsExtensions.cs new file mode 100644 index 0000000000000..46509a62a03d1 --- /dev/null +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SparkConfigurationsOperationsExtensions.cs @@ -0,0 +1,111 @@ +// +// 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.Synapse +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for SparkConfigurationsOperations. + /// + public static partial class SparkConfigurationsOperationsExtensions + { + /// + /// List the sparkConfigurations in a workspace. + /// + /// + /// List sparkConfigurations in a workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + public static IPage ListByWorkspace(this ISparkConfigurationsOperations operations, string resourceGroupName, string workspaceName) + { + return operations.ListByWorkspaceAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult(); + } + + /// + /// List the sparkConfigurations in a workspace. + /// + /// + /// List sparkConfigurations in a workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// The cancellation token. + /// + public static async Task> ListByWorkspaceAsync(this ISparkConfigurationsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByWorkspaceWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// List the sparkConfigurations in a workspace. + /// + /// + /// List sparkConfigurations in a workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByWorkspaceNext(this ISparkConfigurationsOperations operations, string nextPageLink) + { + return operations.ListByWorkspaceNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// List the sparkConfigurations in a workspace. + /// + /// + /// List sparkConfigurations in a workspace. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByWorkspaceNextAsync(this ISparkConfigurationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByWorkspaceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SynapseManagementClient.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SynapseManagementClient.cs index 99b23908e3cc4..759b080bf4f58 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SynapseManagementClient.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/SynapseManagementClient.cs @@ -379,6 +379,21 @@ public partial class SynapseManagementClient : ServiceClient public virtual IRestorableDroppedSqlPoolsOperations RestorableDroppedSqlPools { get; private set; } + /// + /// Gets the ISparkConfigurationOperations. + /// + public virtual ISparkConfigurationOperations SparkConfiguration { get; private set; } + + /// + /// Gets the ISparkConfigurationsOperations. + /// + public virtual ISparkConfigurationsOperations SparkConfigurations { get; private set; } + + /// + /// Gets the IAzureADOnlyAuthenticationsOperations. + /// + public virtual IAzureADOnlyAuthenticationsOperations AzureADOnlyAuthentications { get; private set; } + /// /// Initializes a new instance of the SynapseManagementClient class. /// @@ -681,8 +696,11 @@ private void Initialize() WorkspaceSqlAadAdmins = new WorkspaceSqlAadAdminsOperations(this); WorkspaceManagedIdentitySqlControlSettings = new WorkspaceManagedIdentitySqlControlSettingsOperations(this); RestorableDroppedSqlPools = new RestorableDroppedSqlPoolsOperations(this); + SparkConfiguration = new SparkConfigurationOperations(this); + SparkConfigurations = new SparkConfigurationsOperations(this); + AzureADOnlyAuthentications = new AzureADOnlyAuthenticationsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-04-01-preview"; + ApiVersion = "2021-06-01-preview"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true; diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/WorkspaceManagedSqlServerRecoverableSqlpoolsOperations.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/WorkspaceManagedSqlServerRecoverableSqlPoolsOperations.cs similarity index 100% rename from sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/WorkspaceManagedSqlServerRecoverableSqlpoolsOperations.cs rename to sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/WorkspaceManagedSqlServerRecoverableSqlPoolsOperations.cs diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/WorkspaceManagedSqlServerRecoverableSqlpoolsOperationsExtensions.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/WorkspaceManagedSqlServerRecoverableSqlPoolsOperationsExtensions.cs similarity index 100% rename from sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/WorkspaceManagedSqlServerRecoverableSqlpoolsOperationsExtensions.cs rename to sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/WorkspaceManagedSqlServerRecoverableSqlPoolsOperationsExtensions.cs