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 6b77b0f061ca..76c80c029793 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,73 @@ public partial interface IIntegrationRuntimesOperations /// Task StopWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Create integration runtime + /// + /// + /// Create an integration runtime + /// + /// + /// The name of the resource group. The name is case insensitive. + /// + /// + /// The name of the workspace + /// + /// + /// Integration runtime name + /// + /// + /// Integration runtime resource definition. + /// + /// + /// ETag of the integration runtime entity. Should only be specified + /// for update, for which it should match existing entity or can be * + /// for unconditional update. + /// + /// + /// 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, string integrationRuntimeName, IntegrationRuntimeResource integrationRuntime, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Delete integration runtime + /// + /// + /// Delete an 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 a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// List integration runtimes /// /// 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 7cf2b6fa0736..862724fc6072 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperations.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/IntegrationRuntimesOperations.cs @@ -576,6 +576,62 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// unconditional update. /// /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeResource integrationRuntime, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Delete integration runtime + /// + /// + /// Delete an 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. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Upgrade integration runtime + /// + /// + /// Upgrade an 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. /// /// @@ -584,9 +640,6 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -596,7 +649,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeResource integrationRuntime, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task UpgradeWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -647,14 +700,6 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "integrationRuntimeName"); } - if (integrationRuntime == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "integrationRuntime"); - } - if (integrationRuntime != null) - { - integrationRuntime.Validate(); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -665,14 +710,12 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("workspaceName", workspaceName); tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); - tracingParameters.Add("ifMatch", ifMatch); - tracingParameters.Add("integrationRuntime", integrationRuntime); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Create", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Upgrade", 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}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/upgrade").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)); @@ -689,21 +732,13 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (ifMatch != null) - { - if (_httpRequest.Headers.Contains("If-Match")) - { - _httpRequest.Headers.Remove("If-Match"); - } - _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); - } if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) @@ -728,12 +763,6 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) // Serialize Request string _requestContent = null; - if(integrationRuntime != null) - { - _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(integrationRuntime, 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) { @@ -789,31 +818,13 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -822,10 +833,10 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) } /// - /// Delete integration runtime + /// List integration runtimes /// /// - /// Delete an integration runtime + /// List all integration runtimes /// /// /// The name of the resource group. The name is case insensitive. @@ -833,9 +844,6 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// The name of the workspace /// - /// - /// Integration runtime name - /// /// /// Headers that will be added to request. /// @@ -845,6 +853,9 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -854,7 +865,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListByWorkspaceWithHttpMessagesAsync(string resourceGroupName, string workspaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -901,10 +912,6 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); } - if (integrationRuntimeName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "integrationRuntimeName"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -914,17 +921,15 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("workspaceName", workspaceName); - tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + 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}/integrationRuntimes/{integrationRuntimeName}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes").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) { @@ -937,7 +942,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -988,7 +993,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 204) + if ((int)_statusCode != 200) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1023,13 +1028,31 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1038,10 +1061,10 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) } /// - /// Upgrade integration runtime + /// Start integration runtime /// /// - /// Upgrade an integration runtime + /// Start an integration runtime /// /// /// The name of the resource group. The name is case insensitive. @@ -1061,6 +1084,9 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// Thrown when the operation returned an invalid status code /// + /// + /// Thrown when unable to deserialize the response + /// /// /// Thrown when a required parameter is null /// @@ -1070,7 +1096,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task UpgradeWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> StartWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1132,11 +1158,11 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) tracingParameters.Add("workspaceName", workspaceName); tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Upgrade", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Start", 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}/upgrade").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start").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)); @@ -1204,7 +1230,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1239,13 +1265,31 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1254,10 +1298,10 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) } /// - /// List integration runtimes + /// Stop integration runtime /// /// - /// List all integration runtimes + /// Stop an integration runtime /// /// /// The name of the resource group. The name is case insensitive. @@ -1265,6 +1309,9 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// The name of the workspace /// + /// + /// Integration runtime name + /// /// /// Headers that will be added to request. /// @@ -1274,9 +1321,6 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// Thrown when the operation returned an invalid status code /// - /// - /// Thrown when unable to deserialize the response - /// /// /// Thrown when a required parameter is null /// @@ -1286,7 +1330,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// 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)) + public async Task StopWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1333,6 +1377,10 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "workspaceName"); } + if (integrationRuntimeName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationRuntimeName"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1342,15 +1390,17 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("workspaceName", workspaceName); + tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListByWorkspace", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Stop", 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").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop").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) { @@ -1363,7 +1413,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1414,7 +1464,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 202) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -1449,31 +1499,13 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse>(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) { _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } - // Deserialize Response - if ((int)_statusCode == 200) - { - _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - try - { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); - } - catch (JsonException ex) - { - _httpRequest.Dispose(); - if (_httpResponse != null) - { - _httpResponse.Dispose(); - } - throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); - } - } if (_shouldTrace) { ServiceClientTracing.Exit(_invocationId, _result); @@ -1482,10 +1514,10 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) } /// - /// Start integration runtime + /// Create integration runtime /// /// - /// Start an integration runtime + /// Create an integration runtime /// /// /// The name of the resource group. The name is case insensitive. @@ -1496,6 +1528,14 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// Integration runtime name /// + /// + /// Integration runtime resource definition. + /// + /// + /// ETag of the integration runtime entity. Should only be specified for + /// update, for which it should match existing entity or can be * for + /// unconditional update. + /// /// /// Headers that will be added to request. /// @@ -1517,7 +1557,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> StartWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeResource integrationRuntime, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1568,6 +1608,14 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "integrationRuntimeName"); } + if (integrationRuntime == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "integrationRuntime"); + } + if (integrationRuntime != null) + { + integrationRuntime.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1578,12 +1626,14 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("workspaceName", workspaceName); tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); + tracingParameters.Add("ifMatch", ifMatch); + tracingParameters.Add("integrationRuntime", integrationRuntime); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Start", tracingParameters); + 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}/integrationRuntimes/{integrationRuntimeName}/start").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}").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)); @@ -1600,13 +1650,21 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } + if (ifMatch != null) + { + if (_httpRequest.Headers.Contains("If-Match")) + { + _httpRequest.Headers.Remove("If-Match"); + } + _httpRequest.Headers.TryAddWithoutValidation("If-Match", ifMatch); + } if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) @@ -1631,6 +1689,12 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) // Serialize Request string _requestContent = null; + if(integrationRuntime != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(integrationRuntime, 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) { @@ -1686,7 +1750,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) throw ex; } // Create Result - var _result = new AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1699,7 +1763,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -1719,10 +1783,10 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) } /// - /// Stop integration runtime + /// Delete integration runtime /// /// - /// Stop an integration runtime + /// Delete an integration runtime /// /// /// The name of the resource group. The name is case insensitive. @@ -1751,7 +1815,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task StopWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string integrationRuntimeName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (Client.ApiVersion == null) { @@ -1813,11 +1877,11 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) tracingParameters.Add("workspaceName", workspaceName); tracingParameters.Add("integrationRuntimeName", integrationRuntimeName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Stop", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; - var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}").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)); @@ -1834,7 +1898,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1885,7 +1949,7 @@ internal IntegrationRuntimesOperations(SynapseManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 202) + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) { var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try 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 5cfec801faec..b2c1cbb0eaad 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,123 @@ public static void Stop(this IIntegrationRuntimesOperations operations, string r (await operations.StopWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } + /// + /// Create integration runtime + /// + /// + /// Create an 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 + /// + /// + /// Integration runtime resource definition. + /// + /// + /// ETag of the integration runtime entity. Should only be specified for + /// update, for which it should match existing entity or can be * for + /// unconditional update. + /// + public static IntegrationRuntimeResource BeginCreate(this IIntegrationRuntimesOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeResource integrationRuntime, string ifMatch = default(string)) + { + return operations.BeginCreateAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch).GetAwaiter().GetResult(); + } + + /// + /// Create integration runtime + /// + /// + /// Create an 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 + /// + /// + /// Integration runtime resource definition. + /// + /// + /// ETag of the integration runtime entity. Should only be specified for + /// update, for which it should match existing entity or can be * for + /// unconditional update. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IIntegrationRuntimesOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName, IntegrationRuntimeResource integrationRuntime, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, ifMatch, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Delete integration runtime + /// + /// + /// Delete an 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 void BeginDelete(this IIntegrationRuntimesOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName) + { + operations.BeginDeleteAsync(resourceGroupName, workspaceName, integrationRuntimeName).GetAwaiter().GetResult(); + } + + /// + /// Delete integration runtime + /// + /// + /// Delete an 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 BeginDeleteAsync(this IIntegrationRuntimesOperations operations, string resourceGroupName, string workspaceName, string integrationRuntimeName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, integrationRuntimeName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + /// /// List integration runtimes /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CmdkeySetup.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CmdkeySetup.cs index 0943e87381eb..febc57fd713d 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CmdkeySetup.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CmdkeySetup.cs @@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Synapse.Models /// /// The custom setup of running cmdkey commands. /// - [Newtonsoft.Json.JsonObject("CmdkeySetup")] [Rest.Serialization.JsonTransformation] public partial class CmdkeySetup : CustomSetupBase { diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ComponentSetup.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ComponentSetup.cs index 34c50be227ce..a169067a5e03 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ComponentSetup.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/ComponentSetup.cs @@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Synapse.Models /// /// The custom setup of installing 3rd party components. /// - [Newtonsoft.Json.JsonObject("ComponentSetup")] [Rest.Serialization.JsonTransformation] public partial class ComponentSetup : CustomSetupBase { diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CustomSetupBase.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CustomSetupBase.cs index 53b69b88f2f4..0c380de02ff8 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CustomSetupBase.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/CustomSetupBase.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.Synapse.Models { - using Newtonsoft.Json; using System.Linq; /// /// The base definition of the custom setup. /// - [Newtonsoft.Json.JsonObject("CustomSetupBase")] public partial class CustomSetupBase { /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EnvironmentVariableSetup.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EnvironmentVariableSetup.cs index 3f4bcd031f0e..f6e9033ff337 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EnvironmentVariableSetup.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/EnvironmentVariableSetup.cs @@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Synapse.Models /// /// The custom setup of setting environment variable. /// - [Newtonsoft.Json.JsonObject("EnvironmentVariableSetup")] [Rest.Serialization.JsonTransformation] public partial class EnvironmentVariableSetup : CustomSetupBase { diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntime.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntime.cs index 5d7f7df005f5..f47ccb469af9 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntime.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntime.cs @@ -19,7 +19,6 @@ namespace Microsoft.Azure.Management.Synapse.Models /// Azure Synapse nested object which serves as a compute resource for /// activities. /// - [Newtonsoft.Json.JsonObject("IntegrationRuntime")] public partial class IntegrationRuntime { /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeStatus.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeStatus.cs index 90ca58bb52a9..c4e00102a95a 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeStatus.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/IntegrationRuntimeStatus.cs @@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Synapse.Models /// /// Integration runtime status. /// - [Newtonsoft.Json.JsonObject("IntegrationRuntimeStatus")] public partial class IntegrationRuntimeStatus { /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LinkedIntegrationRuntimeType.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LinkedIntegrationRuntimeType.cs index 70139b2569f1..262a7a4d4a57 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LinkedIntegrationRuntimeType.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/LinkedIntegrationRuntimeType.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.Synapse.Models { - using Newtonsoft.Json; using System.Linq; /// /// The base definition of a linked integration runtime. /// - [Newtonsoft.Json.JsonObject("LinkedIntegrationRuntimeType")] public partial class LinkedIntegrationRuntimeType { /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SecretBase.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SecretBase.cs index 465ba8b8acf4..d104da9991df 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SecretBase.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SecretBase.cs @@ -10,13 +10,11 @@ namespace Microsoft.Azure.Management.Synapse.Models { - using Newtonsoft.Json; using System.Linq; /// /// The base definition of a secret type. /// - [Newtonsoft.Json.JsonObject("SecretBase")] public partial class SecretBase { /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SecureString.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SecureString.cs index c157c37face5..7a4c4ad5e523 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SecureString.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SecureString.cs @@ -18,7 +18,6 @@ namespace Microsoft.Azure.Management.Synapse.Models /// Azure Synapse secure string definition. The string value will be masked /// with asterisks '*' during Get or List API calls. /// - [Newtonsoft.Json.JsonObject("SecureString")] public partial class SecureString : SecretBase { /// diff --git a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SsisObjectMetadata.cs b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SsisObjectMetadata.cs index 660f7b030c07..bd2544bf0f3d 100644 --- a/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SsisObjectMetadata.cs +++ b/sdk/synapse/Microsoft.Azure.Management.Synapse/src/Generated/Models/SsisObjectMetadata.cs @@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.Synapse.Models /// /// SSIS object metadata. /// - [Newtonsoft.Json.JsonObject("SsisObjectMetadata")] public partial class SsisObjectMetadata { /// 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 c54e666b5430..4c8b09307b74 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 @@ -48,7 +48,11 @@ public Workspace() /// SQL administrator login /// password /// Workspace managed resource - /// group + /// group. The resource group name uniquely identifies the resource + /// group within the user subscriptionId. The resource group name must + /// be no longer than 90 characters long, and must be alphanumeric + /// characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. + /// Note that the name cannot end with '.' /// Resource provisioning state /// Login for workspace SQL active /// directory administrator @@ -94,10 +98,15 @@ public Workspace() public string SqlAdministratorLoginPassword { get; set; } /// - /// Gets workspace managed resource group + /// Gets or sets workspace managed resource group. The resource group + /// name uniquely identifies the resource group within the user + /// subscriptionId. The resource group name must be no longer than 90 + /// characters long, and must be alphanumeric characters + /// (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that + /// the name cannot end with '.' /// [JsonProperty(PropertyName = "properties.managedResourceGroupName")] - public string ManagedResourceGroupName { get; private set; } + public string ManagedResourceGroupName { get; set; } /// /// Gets resource provisioning state 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 8a6a03cb827a..cbf446c585f0 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 @@ -60,16 +60,5 @@ public static IEnumerable> ApiInfo_SynapseManageme }.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 = "b2a2f8bdac81a285f541d03f60b452f9fd8fe38a"; - 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 55467ab958c7..0ca731a1cbdb 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 } } } -