diff --git a/eng/mgmt/mgmtmetadata/azure-kusto_resource-manager.txt b/eng/mgmt/mgmtmetadata/azure-kusto_resource-manager.txt
index 102a4c0fd067..7d68be7d1dce 100644
--- a/eng/mgmt/mgmtmetadata/azure-kusto_resource-manager.txt
+++ b/eng/mgmt/mgmtmetadata/azure-kusto_resource-manager.txt
@@ -1,15 +1,15 @@
-Installing AutoRest version: v2
+Installing AutoRest version: v2
AutoRest installed successfully.
Commencing code generation
Generating CSharp code
Executing AutoRest command
cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/azure-kusto/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\dev\sdks\azure-sdk-for-net\sdk
Autorest CSharp Version: 2.3.91
-2021-09-22 08:39:40 UTC
+2022-02-15 22:23:13 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: main
-Commit: 2ecc4a457776feff5cf647d28c045ea9acffadb3
+Commit: b7ceedcb657cac760383b17627cd2c1f47dd1521
AutoRest information
Requested version: v2
Bootstrapper version: autorest@2.0.4413
diff --git a/sdk/kusto/Management.Kusto/Generated/ClustersOperations.cs b/sdk/kusto/Management.Kusto/Generated/ClustersOperations.cs
index 402e86b0cf38..d401697a3071 100644
--- a/sdk/kusto/Management.Kusto/Generated/ClustersOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/ClustersOperations.cs
@@ -304,10 +304,10 @@ internal ClustersOperations(KustoManagementClient client)
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, ifMatch, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, ifMatch, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -2306,7 +2306,7 @@ internal ClustersOperations(KustoManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -2460,7 +2460,7 @@ internal ClustersOperations(KustoManagementClient 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"))
@@ -2521,6 +2521,19 @@ internal ClustersOperations(KustoManagementClient client)
throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
diff --git a/sdk/kusto/Management.Kusto/Generated/DataConnectionsOperations.cs b/sdk/kusto/Management.Kusto/Generated/DataConnectionsOperations.cs
index d73af8b474ad..0b0c0d067bf9 100644
--- a/sdk/kusto/Management.Kusto/Generated/DataConnectionsOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/DataConnectionsOperations.cs
@@ -775,10 +775,10 @@ internal DataConnectionsOperations(KustoManagementClient client)
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -1332,7 +1332,7 @@ internal DataConnectionsOperations(KustoManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1489,7 +1489,7 @@ internal DataConnectionsOperations(KustoManagementClient 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"))
@@ -1550,6 +1550,19 @@ internal DataConnectionsOperations(KustoManagementClient client)
throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
diff --git a/sdk/kusto/Management.Kusto/Generated/DatabasesOperations.cs b/sdk/kusto/Management.Kusto/Generated/DatabasesOperations.cs
index c78c5fe3ccf7..f08100069d28 100644
--- a/sdk/kusto/Management.Kusto/Generated/DatabasesOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/DatabasesOperations.cs
@@ -714,10 +714,10 @@ internal DatabasesOperations(KustoManagementClient client)
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -1681,7 +1681,7 @@ internal DatabasesOperations(KustoManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1832,7 +1832,7 @@ internal DatabasesOperations(KustoManagementClient 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"))
@@ -1893,6 +1893,19 @@ internal DatabasesOperations(KustoManagementClient client)
throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
diff --git a/sdk/kusto/Management.Kusto/Generated/IClustersOperations.cs b/sdk/kusto/Management.Kusto/Generated/IClustersOperations.cs
index 8b1c2857c824..2f2a5506557e 100644
--- a/sdk/kusto/Management.Kusto/Generated/IClustersOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/IClustersOperations.cs
@@ -119,7 +119,7 @@ public partial interface IClustersOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a Kusto cluster.
///
@@ -547,7 +547,7 @@ public partial interface IClustersOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, string ifMatch = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a Kusto cluster.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/IDataConnectionsOperations.cs b/sdk/kusto/Management.Kusto/Generated/IDataConnectionsOperations.cs
index 9095624e7eef..e305f5028bf4 100644
--- a/sdk/kusto/Management.Kusto/Generated/IDataConnectionsOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/IDataConnectionsOperations.cs
@@ -214,7 +214,7 @@ public partial interface IDataConnectionsOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes the data connection with the given name.
///
@@ -343,7 +343,7 @@ public partial interface IDataConnectionsOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string dataConnectionName, DataConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes the data connection with the given name.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/IDatabasesOperations.cs b/sdk/kusto/Management.Kusto/Generated/IDatabasesOperations.cs
index 0484c18a2f92..4e8725230216 100644
--- a/sdk/kusto/Management.Kusto/Generated/IDatabasesOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/IDatabasesOperations.cs
@@ -166,7 +166,7 @@ public partial interface IDatabasesOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes the database with the given name.
///
@@ -344,7 +344,7 @@ public partial interface IDatabasesOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes the database with the given name.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/IKustoManagementClient.cs b/sdk/kusto/Management.Kusto/Generated/IKustoManagementClient.cs
index cf7e8976c560..c78e655c1c8f 100644
--- a/sdk/kusto/Management.Kusto/Generated/IKustoManagementClient.cs
+++ b/sdk/kusto/Management.Kusto/Generated/IKustoManagementClient.cs
@@ -134,5 +134,10 @@ public partial interface IKustoManagementClient : System.IDisposable
///
IOperationsResults OperationsResults { get; }
+ ///
+ /// Gets the IOperationsResultsLocation.
+ ///
+ IOperationsResultsLocation OperationsResultsLocation { get; }
+
}
}
diff --git a/sdk/kusto/Management.Kusto/Generated/IManagedPrivateEndpointsOperations.cs b/sdk/kusto/Management.Kusto/Generated/IManagedPrivateEndpointsOperations.cs
index ca476695ffaa..0005a6f9a47e 100644
--- a/sdk/kusto/Management.Kusto/Generated/IManagedPrivateEndpointsOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/IManagedPrivateEndpointsOperations.cs
@@ -166,7 +166,7 @@ public partial interface IManagedPrivateEndpointsOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a managed private endpoint.
///
@@ -253,7 +253,7 @@ public partial interface IManagedPrivateEndpointsOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a managed private endpoint.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/IOperationsResultsLocation.cs b/sdk/kusto/Management.Kusto/Generated/IOperationsResultsLocation.cs
new file mode 100644
index 000000000000..e9ab36d01613
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/IOperationsResultsLocation.cs
@@ -0,0 +1,49 @@
+//
+// 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.Kusto
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// OperationsResultsLocation operations.
+ ///
+ public partial interface IOperationsResultsLocation
+ {
+ ///
+ /// Returns operation results.
+ ///
+ ///
+ /// Azure location (region) name.
+ ///
+ ///
+ /// The Guid of the operation ID
+ ///
+ ///
+ /// 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 GetWithHttpMessagesAsync(string location, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/IScriptsOperations.cs b/sdk/kusto/Management.Kusto/Generated/IScriptsOperations.cs
index 76a00b8070d7..51c7cbf7a8ba 100644
--- a/sdk/kusto/Management.Kusto/Generated/IScriptsOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/IScriptsOperations.cs
@@ -149,7 +149,7 @@ public partial interface IScriptsOperations
///
/// Thrown when a required parameter is null
///
- Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string scriptName, Script parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string scriptName, Script parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a Kusto principalAssignment.
///
@@ -276,7 +276,7 @@ public partial interface IScriptsOperations
///
/// Thrown when a required parameter is null
///
- Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string scriptName, Script parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string scriptName, Script parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Deletes a Kusto principalAssignment.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/KustoManagementClient.cs b/sdk/kusto/Management.Kusto/Generated/KustoManagementClient.cs
index b54bf5a033bb..107780660cb5 100644
--- a/sdk/kusto/Management.Kusto/Generated/KustoManagementClient.cs
+++ b/sdk/kusto/Management.Kusto/Generated/KustoManagementClient.cs
@@ -139,6 +139,11 @@ public partial class KustoManagementClient : ServiceClient
public virtual IOperationsResults OperationsResults { get; private set; }
+ ///
+ /// Gets the IOperationsResultsLocation.
+ ///
+ public virtual IOperationsResultsLocation OperationsResultsLocation { get; private set; }
+
///
/// Initializes a new instance of the KustoManagementClient class.
///
@@ -392,8 +397,9 @@ private void Initialize()
DataConnections = new DataConnectionsOperations(this);
Operations = new Operations(this);
OperationsResults = new OperationsResults(this);
+ OperationsResultsLocation = new OperationsResultsLocation(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2021-08-27";
+ ApiVersion = "2022-02-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
diff --git a/sdk/kusto/Management.Kusto/Generated/ManagedPrivateEndpointsOperations.cs b/sdk/kusto/Management.Kusto/Generated/ManagedPrivateEndpointsOperations.cs
index c1f0af5955bd..cbc2628785fa 100644
--- a/sdk/kusto/Management.Kusto/Generated/ManagedPrivateEndpointsOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/ManagedPrivateEndpointsOperations.cs
@@ -715,10 +715,10 @@ internal ManagedPrivateEndpointsOperations(KustoManagementClient client)
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, managedPrivateEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
+ AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, managedPrivateEndpointName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
}
@@ -1042,7 +1042,7 @@ internal ManagedPrivateEndpointsOperations(KustoManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string managedPrivateEndpointName, ManagedPrivateEndpoint parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -1193,7 +1193,7 @@ internal ManagedPrivateEndpointsOperations(KustoManagementClient 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"))
@@ -1236,6 +1236,19 @@ internal ManagedPrivateEndpointsOperations(KustoManagementClient client)
throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
}
}
+ try
+ {
+ _result.Headers = _httpResponse.GetHeadersAsJson().ToObject(JsonSerializer.Create(Client.DeserializationSettings));
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the headers.", _httpResponse.GetHeadersAsJson().ToString(), ex);
+ }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/AzureSku.cs b/sdk/kusto/Management.Kusto/Generated/Models/AzureSku.cs
index 138f2fae21fd..73520fbf0633 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/AzureSku.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/AzureSku.cs
@@ -30,17 +30,26 @@ public AzureSku()
///
/// Initializes a new instance of the AzureSku class.
///
- /// SKU name. Possible values include:
- /// 'Standard_DS13_v2+1TB_PS', 'Standard_DS13_v2+2TB_PS',
- /// 'Standard_DS14_v2+3TB_PS', 'Standard_DS14_v2+4TB_PS',
- /// 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_L8s',
+ /// SKU name. Possible values include: 'Dev(No
+ /// SLA)_Standard_D11_v2', 'Dev(No SLA)_Standard_E2a_v4',
+ /// 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2',
+ /// 'Standard_D14_v2', 'Standard_D32d_v4', 'Standard_D16d_v5',
+ /// 'Standard_D32d_v5', 'Standard_DS13_v2+1TB_PS',
+ /// 'Standard_DS13_v2+2TB_PS', 'Standard_DS14_v2+3TB_PS',
+ /// 'Standard_DS14_v2+4TB_PS', 'Standard_L4s', 'Standard_L8s',
/// 'Standard_L16s', 'Standard_L8s_v2', 'Standard_L16s_v2',
- /// 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_L4s', 'Dev(No
- /// SLA)_Standard_D11_v2', 'Standard_E64i_v3', 'Standard_E80ids_v4',
- /// 'Standard_E2a_v4', 'Standard_E4a_v4', 'Standard_E8a_v4',
- /// 'Standard_E16a_v4', 'Standard_E8as_v4+1TB_PS',
- /// 'Standard_E8as_v4+2TB_PS', 'Standard_E16as_v4+3TB_PS',
- /// 'Standard_E16as_v4+4TB_PS', 'Dev(No SLA)_Standard_E2a_v4'
+ /// 'Standard_E64i_v3', 'Standard_E80ids_v4', 'Standard_E2a_v4',
+ /// 'Standard_E4a_v4', 'Standard_E8a_v4', 'Standard_E16a_v4',
+ /// 'Standard_E8as_v4+1TB_PS', 'Standard_E8as_v4+2TB_PS',
+ /// 'Standard_E16as_v4+3TB_PS', 'Standard_E16as_v4+4TB_PS',
+ /// 'Standard_E8as_v5+1TB_PS', 'Standard_E8as_v5+2TB_PS',
+ /// 'Standard_E16as_v5+3TB_PS', 'Standard_E16as_v5+4TB_PS',
+ /// 'Standard_E2ads_v5', 'Standard_E4ads_v5', 'Standard_E8ads_v5',
+ /// 'Standard_E16ads_v5', 'Standard_E8s_v4+1TB_PS',
+ /// 'Standard_E8s_v4+2TB_PS', 'Standard_E16s_v4+3TB_PS',
+ /// 'Standard_E16s_v4+4TB_PS', 'Standard_E8s_v5+1TB_PS',
+ /// 'Standard_E8s_v5+2TB_PS', 'Standard_E16s_v5+3TB_PS',
+ /// 'Standard_E16s_v5+4TB_PS'
/// SKU tier. Possible values include: 'Basic',
/// 'Standard'
/// The number of instances of the
@@ -59,17 +68,26 @@ public AzureSku()
partial void CustomInit();
///
- /// Gets or sets SKU name. Possible values include:
- /// 'Standard_DS13_v2+1TB_PS', 'Standard_DS13_v2+2TB_PS',
- /// 'Standard_DS14_v2+3TB_PS', 'Standard_DS14_v2+4TB_PS',
- /// 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_L8s',
+ /// Gets or sets SKU name. Possible values include: 'Dev(No
+ /// SLA)_Standard_D11_v2', 'Dev(No SLA)_Standard_E2a_v4',
+ /// 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2',
+ /// 'Standard_D14_v2', 'Standard_D32d_v4', 'Standard_D16d_v5',
+ /// 'Standard_D32d_v5', 'Standard_DS13_v2+1TB_PS',
+ /// 'Standard_DS13_v2+2TB_PS', 'Standard_DS14_v2+3TB_PS',
+ /// 'Standard_DS14_v2+4TB_PS', 'Standard_L4s', 'Standard_L8s',
/// 'Standard_L16s', 'Standard_L8s_v2', 'Standard_L16s_v2',
- /// 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_L4s', 'Dev(No
- /// SLA)_Standard_D11_v2', 'Standard_E64i_v3', 'Standard_E80ids_v4',
- /// 'Standard_E2a_v4', 'Standard_E4a_v4', 'Standard_E8a_v4',
- /// 'Standard_E16a_v4', 'Standard_E8as_v4+1TB_PS',
- /// 'Standard_E8as_v4+2TB_PS', 'Standard_E16as_v4+3TB_PS',
- /// 'Standard_E16as_v4+4TB_PS', 'Dev(No SLA)_Standard_E2a_v4'
+ /// 'Standard_E64i_v3', 'Standard_E80ids_v4', 'Standard_E2a_v4',
+ /// 'Standard_E4a_v4', 'Standard_E8a_v4', 'Standard_E16a_v4',
+ /// 'Standard_E8as_v4+1TB_PS', 'Standard_E8as_v4+2TB_PS',
+ /// 'Standard_E16as_v4+3TB_PS', 'Standard_E16as_v4+4TB_PS',
+ /// 'Standard_E8as_v5+1TB_PS', 'Standard_E8as_v5+2TB_PS',
+ /// 'Standard_E16as_v5+3TB_PS', 'Standard_E16as_v5+4TB_PS',
+ /// 'Standard_E2ads_v5', 'Standard_E4ads_v5', 'Standard_E8ads_v5',
+ /// 'Standard_E16ads_v5', 'Standard_E8s_v4+1TB_PS',
+ /// 'Standard_E8s_v4+2TB_PS', 'Standard_E16s_v4+3TB_PS',
+ /// 'Standard_E16s_v4+4TB_PS', 'Standard_E8s_v5+1TB_PS',
+ /// 'Standard_E8s_v5+2TB_PS', 'Standard_E16s_v5+3TB_PS',
+ /// 'Standard_E16s_v5+4TB_PS'
///
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/AzureSkuName.cs b/sdk/kusto/Management.Kusto/Generated/Models/AzureSkuName.cs
index 340bd60d03a6..2b996404090a 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/AzureSkuName.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/AzureSkuName.cs
@@ -16,20 +16,24 @@ namespace Microsoft.Azure.Management.Kusto.Models
///
public static class AzureSkuName
{
+ public const string DevNoSLAStandardD11V2 = "Dev(No SLA)_Standard_D11_v2";
+ public const string DevNoSLAStandardE2aV4 = "Dev(No SLA)_Standard_E2a_v4";
+ public const string StandardD11V2 = "Standard_D11_v2";
+ public const string StandardD12V2 = "Standard_D12_v2";
+ public const string StandardD13V2 = "Standard_D13_v2";
+ public const string StandardD14V2 = "Standard_D14_v2";
+ public const string StandardD32dV4 = "Standard_D32d_v4";
+ public const string StandardD16dV5 = "Standard_D16d_v5";
+ public const string StandardD32dV5 = "Standard_D32d_v5";
public const string StandardDS13V21TBPS = "Standard_DS13_v2+1TB_PS";
public const string StandardDS13V22TBPS = "Standard_DS13_v2+2TB_PS";
public const string StandardDS14V23TBPS = "Standard_DS14_v2+3TB_PS";
public const string StandardDS14V24TBPS = "Standard_DS14_v2+4TB_PS";
- public const string StandardD13V2 = "Standard_D13_v2";
- public const string StandardD14V2 = "Standard_D14_v2";
+ public const string StandardL4s = "Standard_L4s";
public const string StandardL8s = "Standard_L8s";
public const string StandardL16s = "Standard_L16s";
public const string StandardL8sV2 = "Standard_L8s_v2";
public const string StandardL16sV2 = "Standard_L16s_v2";
- public const string StandardD11V2 = "Standard_D11_v2";
- public const string StandardD12V2 = "Standard_D12_v2";
- public const string StandardL4s = "Standard_L4s";
- public const string DevNoSLAStandardD11V2 = "Dev(No SLA)_Standard_D11_v2";
public const string StandardE64iV3 = "Standard_E64i_v3";
public const string StandardE80idsV4 = "Standard_E80ids_v4";
public const string StandardE2aV4 = "Standard_E2a_v4";
@@ -40,6 +44,21 @@ public static class AzureSkuName
public const string StandardE8asV42TBPS = "Standard_E8as_v4+2TB_PS";
public const string StandardE16asV43TBPS = "Standard_E16as_v4+3TB_PS";
public const string StandardE16asV44TBPS = "Standard_E16as_v4+4TB_PS";
- public const string DevNoSLAStandardE2aV4 = "Dev(No SLA)_Standard_E2a_v4";
+ public const string StandardE8asV51TBPS = "Standard_E8as_v5+1TB_PS";
+ public const string StandardE8asV52TBPS = "Standard_E8as_v5+2TB_PS";
+ public const string StandardE16asV53TBPS = "Standard_E16as_v5+3TB_PS";
+ public const string StandardE16asV54TBPS = "Standard_E16as_v5+4TB_PS";
+ public const string StandardE2adsV5 = "Standard_E2ads_v5";
+ public const string StandardE4adsV5 = "Standard_E4ads_v5";
+ public const string StandardE8adsV5 = "Standard_E8ads_v5";
+ public const string StandardE16adsV5 = "Standard_E16ads_v5";
+ public const string StandardE8sV41TBPS = "Standard_E8s_v4+1TB_PS";
+ public const string StandardE8sV42TBPS = "Standard_E8s_v4+2TB_PS";
+ public const string StandardE16sV43TBPS = "Standard_E16s_v4+3TB_PS";
+ public const string StandardE16sV44TBPS = "Standard_E16s_v4+4TB_PS";
+ public const string StandardE8sV51TBPS = "Standard_E8s_v5+1TB_PS";
+ public const string StandardE8sV52TBPS = "Standard_E8s_v5+2TB_PS";
+ public const string StandardE16sV53TBPS = "Standard_E16s_v5+3TB_PS";
+ public const string StandardE16sV54TBPS = "Standard_E16s_v5+4TB_PS";
}
}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/Cluster.cs b/sdk/kusto/Management.Kusto/Generated/Models/Cluster.cs
index 2a760939285b..c3f5c5bfb430 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/Cluster.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/Cluster.cs
@@ -95,9 +95,16 @@ public Cluster()
/// 'Enabled', 'Disabled'
/// List of allowed FQDNs(Fully Qualified
/// Domain Name) for egress from Cluster.
+ /// Indicates what public IP type to create
+ /// - IPv4 (default), or DualStack (both IPv4 and IPv6). Possible
+ /// values include: 'IPv4', 'DualStack'
+ /// Virtual Cluster
+ /// graduation properties
+ /// A list of private endpoint
+ /// connections.
/// A unique read-only string that changes whenever
/// the resource is updated.
- public Cluster(string location, AzureSku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), SystemData systemData = default(SystemData), IList zones = default(IList), Identity identity = default(Identity), string state = default(string), string provisioningState = default(string), string uri = default(string), string dataIngestionUri = default(string), string stateReason = default(string), IList trustedExternalTenants = default(IList), OptimizedAutoscale optimizedAutoscale = default(OptimizedAutoscale), bool? enableDiskEncryption = default(bool?), bool? enableStreamingIngest = default(bool?), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), KeyVaultProperties keyVaultProperties = default(KeyVaultProperties), bool? enablePurge = default(bool?), LanguageExtensionsList languageExtensions = default(LanguageExtensionsList), bool? enableDoubleEncryption = default(bool?), string publicNetworkAccess = default(string), IList allowedIpRangeList = default(IList), string engineType = default(string), IList acceptedAudiences = default(IList), bool? enableAutoStop = default(bool?), string restrictOutboundNetworkAccess = default(string), IList allowedFqdnList = default(IList), string etag = default(string))
+ public Cluster(string location, AzureSku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), SystemData systemData = default(SystemData), IList zones = default(IList), Identity identity = default(Identity), string state = default(string), string provisioningState = default(string), string uri = default(string), string dataIngestionUri = default(string), string stateReason = default(string), IList trustedExternalTenants = default(IList), OptimizedAutoscale optimizedAutoscale = default(OptimizedAutoscale), bool? enableDiskEncryption = default(bool?), bool? enableStreamingIngest = default(bool?), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), KeyVaultProperties keyVaultProperties = default(KeyVaultProperties), bool? enablePurge = default(bool?), LanguageExtensionsList languageExtensions = default(LanguageExtensionsList), bool? enableDoubleEncryption = default(bool?), string publicNetworkAccess = default(string), IList allowedIpRangeList = default(IList), string engineType = default(string), IList acceptedAudiences = default(IList), bool? enableAutoStop = default(bool?), string restrictOutboundNetworkAccess = default(string), IList allowedFqdnList = default(IList), string publicIPType = default(string), string virtualClusterGraduationProperties = default(string), IList privateEndpointConnections = default(IList), string etag = default(string))
: base(location, id, name, type, tags)
{
Sku = sku;
@@ -125,6 +132,9 @@ public Cluster()
EnableAutoStop = enableAutoStop;
RestrictOutboundNetworkAccess = restrictOutboundNetworkAccess;
AllowedFqdnList = allowedFqdnList;
+ PublicIPType = publicIPType;
+ VirtualClusterGraduationProperties = virtualClusterGraduationProperties;
+ PrivateEndpointConnections = privateEndpointConnections;
Etag = etag;
CustomInit();
}
@@ -299,6 +309,26 @@ public Cluster()
[JsonProperty(PropertyName = "properties.allowedFqdnList")]
public IList AllowedFqdnList { get; set; }
+ ///
+ /// Gets or sets indicates what public IP type to create - IPv4
+ /// (default), or DualStack (both IPv4 and IPv6). Possible values
+ /// include: 'IPv4', 'DualStack'
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPType")]
+ public string PublicIPType { get; set; }
+
+ ///
+ /// Gets or sets virtual Cluster graduation properties
+ ///
+ [JsonProperty(PropertyName = "properties.virtualClusterGraduationProperties")]
+ public string VirtualClusterGraduationProperties { get; set; }
+
+ ///
+ /// Gets a list of private endpoint connections.
+ ///
+ [JsonProperty(PropertyName = "properties.privateEndpointConnections")]
+ public IList PrivateEndpointConnections { get; private set; }
+
///
/// Gets a unique read-only string that changes whenever the resource
/// is updated.
@@ -335,6 +365,16 @@ public override void Validate()
{
VirtualNetworkConfiguration.Validate();
}
+ if (PrivateEndpointConnections != null)
+ {
+ foreach (var element in PrivateEndpointConnections)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
}
}
}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/ClusterPrincipalAssignment.cs b/sdk/kusto/Management.Kusto/Generated/Models/ClusterPrincipalAssignment.cs
index 3534b0277f5c..bfd96829f48f 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/ClusterPrincipalAssignment.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/ClusterPrincipalAssignment.cs
@@ -51,7 +51,9 @@ public ClusterPrincipalAssignment()
/// The provisioned state of the
/// resource. Possible values include: 'Running', 'Creating',
/// 'Deleting', 'Succeeded', 'Failed', 'Moving'
- public ClusterPrincipalAssignment(string principalId, string role, string principalType, string id = default(string), string name = default(string), string type = default(string), string tenantId = default(string), string tenantName = default(string), string principalName = default(string), string provisioningState = default(string))
+ /// The service principal object id in AAD
+ /// (Azure active directory)
+ public ClusterPrincipalAssignment(string principalId, string role, string principalType, string id = default(string), string name = default(string), string type = default(string), string tenantId = default(string), string tenantName = default(string), string principalName = default(string), string provisioningState = default(string), string aadObjectId = default(string))
: base(id, name, type)
{
PrincipalId = principalId;
@@ -61,6 +63,7 @@ public ClusterPrincipalAssignment()
TenantName = tenantName;
PrincipalName = principalName;
ProvisioningState = provisioningState;
+ AadObjectId = aadObjectId;
CustomInit();
}
@@ -116,6 +119,13 @@ public ClusterPrincipalAssignment()
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }
+ ///
+ /// Gets the service principal object id in AAD (Azure active
+ /// directory)
+ ///
+ [JsonProperty(PropertyName = "properties.aadObjectId")]
+ public string AadObjectId { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/ClusterUpdate.cs b/sdk/kusto/Management.Kusto/Generated/Models/ClusterUpdate.cs
index 8eb94c99a2db..7415c3221b4d 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/ClusterUpdate.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/ClusterUpdate.cs
@@ -93,7 +93,14 @@ public ClusterUpdate()
/// 'Enabled', 'Disabled'
/// List of allowed FQDNs(Fully Qualified
/// Domain Name) for egress from Cluster.
- public ClusterUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), AzureSku sku = default(AzureSku), Identity identity = default(Identity), string state = default(string), string provisioningState = default(string), string uri = default(string), string dataIngestionUri = default(string), string stateReason = default(string), IList trustedExternalTenants = default(IList), OptimizedAutoscale optimizedAutoscale = default(OptimizedAutoscale), bool? enableDiskEncryption = default(bool?), bool? enableStreamingIngest = default(bool?), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), KeyVaultProperties keyVaultProperties = default(KeyVaultProperties), bool? enablePurge = default(bool?), LanguageExtensionsList languageExtensions = default(LanguageExtensionsList), bool? enableDoubleEncryption = default(bool?), string publicNetworkAccess = default(string), IList allowedIpRangeList = default(IList), string engineType = default(string), IList acceptedAudiences = default(IList), bool? enableAutoStop = default(bool?), string restrictOutboundNetworkAccess = default(string), IList allowedFqdnList = default(IList))
+ /// Indicates what public IP type to create
+ /// - IPv4 (default), or DualStack (both IPv4 and IPv6). Possible
+ /// values include: 'IPv4', 'DualStack'
+ /// Virtual Cluster
+ /// graduation properties
+ /// A list of private endpoint
+ /// connections.
+ public ClusterUpdate(string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), string location = default(string), AzureSku sku = default(AzureSku), Identity identity = default(Identity), string state = default(string), string provisioningState = default(string), string uri = default(string), string dataIngestionUri = default(string), string stateReason = default(string), IList trustedExternalTenants = default(IList), OptimizedAutoscale optimizedAutoscale = default(OptimizedAutoscale), bool? enableDiskEncryption = default(bool?), bool? enableStreamingIngest = default(bool?), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration), KeyVaultProperties keyVaultProperties = default(KeyVaultProperties), bool? enablePurge = default(bool?), LanguageExtensionsList languageExtensions = default(LanguageExtensionsList), bool? enableDoubleEncryption = default(bool?), string publicNetworkAccess = default(string), IList allowedIpRangeList = default(IList), string engineType = default(string), IList acceptedAudiences = default(IList), bool? enableAutoStop = default(bool?), string restrictOutboundNetworkAccess = default(string), IList allowedFqdnList = default(IList), string publicIPType = default(string), string virtualClusterGraduationProperties = default(string), IList privateEndpointConnections = default(IList))
: base(id, name, type)
{
Tags = tags;
@@ -121,6 +128,9 @@ public ClusterUpdate()
EnableAutoStop = enableAutoStop;
RestrictOutboundNetworkAccess = restrictOutboundNetworkAccess;
AllowedFqdnList = allowedFqdnList;
+ PublicIPType = publicIPType;
+ VirtualClusterGraduationProperties = virtualClusterGraduationProperties;
+ PrivateEndpointConnections = privateEndpointConnections;
CustomInit();
}
@@ -295,6 +305,26 @@ public ClusterUpdate()
[JsonProperty(PropertyName = "properties.allowedFqdnList")]
public IList AllowedFqdnList { get; set; }
+ ///
+ /// Gets or sets indicates what public IP type to create - IPv4
+ /// (default), or DualStack (both IPv4 and IPv6). Possible values
+ /// include: 'IPv4', 'DualStack'
+ ///
+ [JsonProperty(PropertyName = "properties.publicIPType")]
+ public string PublicIPType { get; set; }
+
+ ///
+ /// Gets or sets virtual Cluster graduation properties
+ ///
+ [JsonProperty(PropertyName = "properties.virtualClusterGraduationProperties")]
+ public string VirtualClusterGraduationProperties { get; set; }
+
+ ///
+ /// Gets a list of private endpoint connections.
+ ///
+ [JsonProperty(PropertyName = "properties.privateEndpointConnections")]
+ public IList PrivateEndpointConnections { get; private set; }
+
///
/// Validate the object.
///
@@ -319,6 +349,16 @@ public virtual void Validate()
{
VirtualNetworkConfiguration.Validate();
}
+ if (PrivateEndpointConnections != null)
+ {
+ foreach (var element in PrivateEndpointConnections)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
}
}
}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/ClustersUpdateHeaders.cs b/sdk/kusto/Management.Kusto/Generated/Models/ClustersUpdateHeaders.cs
new file mode 100644
index 000000000000..08e737c33ffd
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/Models/ClustersUpdateHeaders.cs
@@ -0,0 +1,52 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Kusto.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines headers for Update operation.
+ ///
+ public partial class ClustersUpdateHeaders
+ {
+ ///
+ /// Initializes a new instance of the ClustersUpdateHeaders class.
+ ///
+ public ClustersUpdateHeaders()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ClustersUpdateHeaders class.
+ ///
+ /// URL to query for status of the
+ /// operation.
+ public ClustersUpdateHeaders(string azureAsyncOperation = default(string))
+ {
+ AzureAsyncOperation = azureAsyncOperation;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets URL to query for status of the operation.
+ ///
+ [JsonProperty(PropertyName = "Azure-AsyncOperation")]
+ public string AzureAsyncOperation { get; set; }
+
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/DataConnectionsUpdateHeaders.cs b/sdk/kusto/Management.Kusto/Generated/Models/DataConnectionsUpdateHeaders.cs
new file mode 100644
index 000000000000..5d604e9a9647
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/Models/DataConnectionsUpdateHeaders.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.Kusto.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines headers for Update operation.
+ ///
+ public partial class DataConnectionsUpdateHeaders
+ {
+ ///
+ /// Initializes a new instance of the DataConnectionsUpdateHeaders
+ /// class.
+ ///
+ public DataConnectionsUpdateHeaders()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DataConnectionsUpdateHeaders
+ /// class.
+ ///
+ /// URL to query for status of the
+ /// operation.
+ public DataConnectionsUpdateHeaders(string azureAsyncOperation = default(string))
+ {
+ AzureAsyncOperation = azureAsyncOperation;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets URL to query for status of the operation.
+ ///
+ [JsonProperty(PropertyName = "Azure-AsyncOperation")]
+ public string AzureAsyncOperation { get; set; }
+
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/DatabasePrincipalAssignment.cs b/sdk/kusto/Management.Kusto/Generated/Models/DatabasePrincipalAssignment.cs
index 62957d077d97..31ac34be72b0 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/DatabasePrincipalAssignment.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/DatabasePrincipalAssignment.cs
@@ -54,7 +54,9 @@ public DatabasePrincipalAssignment()
/// The provisioned state of the
/// resource. Possible values include: 'Running', 'Creating',
/// 'Deleting', 'Succeeded', 'Failed', 'Moving'
- public DatabasePrincipalAssignment(string principalId, string role, string principalType, string id = default(string), string name = default(string), string type = default(string), string tenantId = default(string), string tenantName = default(string), string principalName = default(string), string provisioningState = default(string))
+ /// The service principal object id in AAD
+ /// (Azure active directory)
+ public DatabasePrincipalAssignment(string principalId, string role, string principalType, string id = default(string), string name = default(string), string type = default(string), string tenantId = default(string), string tenantName = default(string), string principalName = default(string), string provisioningState = default(string), string aadObjectId = default(string))
: base(id, name, type)
{
PrincipalId = principalId;
@@ -64,6 +66,7 @@ public DatabasePrincipalAssignment()
TenantName = tenantName;
PrincipalName = principalName;
ProvisioningState = provisioningState;
+ AadObjectId = aadObjectId;
CustomInit();
}
@@ -120,6 +123,13 @@ public DatabasePrincipalAssignment()
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }
+ ///
+ /// Gets the service principal object id in AAD (Azure active
+ /// directory)
+ ///
+ [JsonProperty(PropertyName = "properties.aadObjectId")]
+ public string AadObjectId { get; private set; }
+
///
/// Validate the object.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/DatabaseRouting.cs b/sdk/kusto/Management.Kusto/Generated/Models/DatabaseRouting.cs
new file mode 100644
index 000000000000..de4af2bf395a
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/Models/DatabaseRouting.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.Kusto.Models
+{
+
+ ///
+ /// Defines values for DatabaseRouting.
+ ///
+ public static class DatabaseRouting
+ {
+ public const string Single = "Single";
+ public const string Multi = "Multi";
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/DatabasesUpdateHeaders.cs b/sdk/kusto/Management.Kusto/Generated/Models/DatabasesUpdateHeaders.cs
new file mode 100644
index 000000000000..343e6f6f92cc
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/Models/DatabasesUpdateHeaders.cs
@@ -0,0 +1,52 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Kusto.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines headers for Update operation.
+ ///
+ public partial class DatabasesUpdateHeaders
+ {
+ ///
+ /// Initializes a new instance of the DatabasesUpdateHeaders class.
+ ///
+ public DatabasesUpdateHeaders()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DatabasesUpdateHeaders class.
+ ///
+ /// URL to query for status of the
+ /// operation.
+ public DatabasesUpdateHeaders(string azureAsyncOperation = default(string))
+ {
+ AzureAsyncOperation = azureAsyncOperation;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets URL to query for status of the operation.
+ ///
+ [JsonProperty(PropertyName = "Azure-AsyncOperation")]
+ public string AzureAsyncOperation { get; set; }
+
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/EventGridDataConnection.cs b/sdk/kusto/Management.Kusto/Generated/Models/EventGridDataConnection.cs
index 0af19b47bf65..cf0aa73ee009 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/EventGridDataConnection.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/EventGridDataConnection.cs
@@ -45,6 +45,8 @@ public EventGridDataConnection()
/// "Microsoft.Compute/virtualMachines" or
/// "Microsoft.Storage/storageAccounts"
/// Resource location.
+ /// The resource ID of the event grid
+ /// that is subscribed to the storage account events.
/// The table where the data should be
/// ingested. Optionally the table information can be added to each
/// message.
@@ -63,13 +65,23 @@ public EventGridDataConnection()
/// type to process. Possible values include:
/// 'Microsoft.Storage.BlobCreated',
/// 'Microsoft.Storage.BlobRenamed'
+ /// The resource ID of a
+ /// managed identity (system or user assigned) to be used to
+ /// authenticate with event hub and storage account.
+ /// The object ID of
+ /// managedIdentityResourceId
+ /// Indication for database routing
+ /// information from the data connection, by default only database
+ /// routing information is allowed. Possible values include: 'Single',
+ /// 'Multi'
/// The provisioned state of the
/// resource. Possible values include: 'Running', 'Creating',
/// 'Deleting', 'Succeeded', 'Failed', 'Moving'
- public EventGridDataConnection(string storageAccountResourceId, string eventHubResourceId, string consumerGroup, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), bool? ignoreFirstRecord = default(bool?), string blobStorageEventType = default(string), string provisioningState = default(string))
+ public EventGridDataConnection(string storageAccountResourceId, string eventHubResourceId, string consumerGroup, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string eventGridResourceId = default(string), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), bool? ignoreFirstRecord = default(bool?), string blobStorageEventType = default(string), string managedIdentityResourceId = default(string), string managedIdentityObjectId = default(string), string databaseRouting = default(string), string provisioningState = default(string))
: base(id, name, type, location)
{
StorageAccountResourceId = storageAccountResourceId;
+ EventGridResourceId = eventGridResourceId;
EventHubResourceId = eventHubResourceId;
ConsumerGroup = consumerGroup;
TableName = tableName;
@@ -77,6 +89,9 @@ public EventGridDataConnection()
DataFormat = dataFormat;
IgnoreFirstRecord = ignoreFirstRecord;
BlobStorageEventType = blobStorageEventType;
+ ManagedIdentityResourceId = managedIdentityResourceId;
+ ManagedIdentityObjectId = managedIdentityObjectId;
+ DatabaseRouting = databaseRouting;
ProvisioningState = provisioningState;
CustomInit();
}
@@ -93,6 +108,13 @@ public EventGridDataConnection()
[JsonProperty(PropertyName = "properties.storageAccountResourceId")]
public string StorageAccountResourceId { get; set; }
+ ///
+ /// Gets or sets the resource ID of the event grid that is subscribed
+ /// to the storage account events.
+ ///
+ [JsonProperty(PropertyName = "properties.eventGridResourceId")]
+ public string EventGridResourceId { get; set; }
+
///
/// Gets or sets the resource ID where the event grid is configured to
/// send events.
@@ -145,6 +167,28 @@ public EventGridDataConnection()
[JsonProperty(PropertyName = "properties.blobStorageEventType")]
public string BlobStorageEventType { get; set; }
+ ///
+ /// Gets or sets the resource ID of a managed identity (system or user
+ /// assigned) to be used to authenticate with event hub and storage
+ /// account.
+ ///
+ [JsonProperty(PropertyName = "properties.managedIdentityResourceId")]
+ public string ManagedIdentityResourceId { get; set; }
+
+ ///
+ /// Gets the object ID of managedIdentityResourceId
+ ///
+ [JsonProperty(PropertyName = "properties.managedIdentityObjectId")]
+ public string ManagedIdentityObjectId { get; private set; }
+
+ ///
+ /// Gets or sets indication for database routing information from the
+ /// data connection, by default only database routing information is
+ /// allowed. Possible values include: 'Single', 'Multi'
+ ///
+ [JsonProperty(PropertyName = "properties.databaseRouting")]
+ public string DatabaseRouting { get; set; }
+
///
/// Gets the provisioned state of the resource. Possible values
/// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed',
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/EventHubDataConnection.cs b/sdk/kusto/Management.Kusto/Generated/Models/EventHubDataConnection.cs
index 971ba5149327..c7c2588eec9c 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/EventHubDataConnection.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/EventHubDataConnection.cs
@@ -66,7 +66,13 @@ public EventHubDataConnection()
/// The resource ID of a
/// managed identity (system or user assigned) to be used to
/// authenticate with event hub.
- public EventHubDataConnection(string eventHubResourceId, string consumerGroup, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), IList eventSystemProperties = default(IList), string compression = default(string), string provisioningState = default(string), string managedIdentityResourceId = default(string))
+ /// The object ID of the
+ /// managedIdentityResourceId
+ /// Indication for database routing
+ /// information from the data connection, by default only database
+ /// routing information is allowed. Possible values include: 'Single',
+ /// 'Multi'
+ public EventHubDataConnection(string eventHubResourceId, string consumerGroup, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), IList eventSystemProperties = default(IList), string compression = default(string), string provisioningState = default(string), string managedIdentityResourceId = default(string), string managedIdentityObjectId = default(string), string databaseRouting = default(string))
: base(id, name, type, location)
{
EventHubResourceId = eventHubResourceId;
@@ -78,6 +84,8 @@ public EventHubDataConnection()
Compression = compression;
ProvisioningState = provisioningState;
ManagedIdentityResourceId = managedIdentityResourceId;
+ ManagedIdentityObjectId = managedIdentityObjectId;
+ DatabaseRouting = databaseRouting;
CustomInit();
}
@@ -151,6 +159,20 @@ public EventHubDataConnection()
[JsonProperty(PropertyName = "properties.managedIdentityResourceId")]
public string ManagedIdentityResourceId { get; set; }
+ ///
+ /// Gets the object ID of the managedIdentityResourceId
+ ///
+ [JsonProperty(PropertyName = "properties.managedIdentityObjectId")]
+ public string ManagedIdentityObjectId { get; private set; }
+
+ ///
+ /// Gets or sets indication for database routing information from the
+ /// data connection, by default only database routing information is
+ /// allowed. Possible values include: 'Single', 'Multi'
+ ///
+ [JsonProperty(PropertyName = "properties.databaseRouting")]
+ public string DatabaseRouting { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/IotHubDataConnection.cs b/sdk/kusto/Management.Kusto/Generated/Models/IotHubDataConnection.cs
index abb9a20eac26..1ae68994cbf5 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/IotHubDataConnection.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/IotHubDataConnection.cs
@@ -60,10 +60,14 @@ public IotHubDataConnection()
/// 'APACHEAVRO', 'W3CLOGFILE'
/// System properties of the iot
/// hub
+ /// Indication for database routing
+ /// information from the data connection, by default only database
+ /// routing information is allowed. Possible values include: 'Single',
+ /// 'Multi'
/// The provisioned state of the
/// resource. Possible values include: 'Running', 'Creating',
/// 'Deleting', 'Succeeded', 'Failed', 'Moving'
- public IotHubDataConnection(string iotHubResourceId, string consumerGroup, string sharedAccessPolicyName, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), IList eventSystemProperties = default(IList), string provisioningState = default(string))
+ public IotHubDataConnection(string iotHubResourceId, string consumerGroup, string sharedAccessPolicyName, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string tableName = default(string), string mappingRuleName = default(string), string dataFormat = default(string), IList eventSystemProperties = default(IList), string databaseRouting = default(string), string provisioningState = default(string))
: base(id, name, type, location)
{
IotHubResourceId = iotHubResourceId;
@@ -73,6 +77,7 @@ public IotHubDataConnection()
DataFormat = dataFormat;
EventSystemProperties = eventSystemProperties;
SharedAccessPolicyName = sharedAccessPolicyName;
+ DatabaseRouting = databaseRouting;
ProvisioningState = provisioningState;
CustomInit();
}
@@ -131,6 +136,14 @@ public IotHubDataConnection()
[JsonProperty(PropertyName = "properties.sharedAccessPolicyName")]
public string SharedAccessPolicyName { get; set; }
+ ///
+ /// Gets or sets indication for database routing information from the
+ /// data connection, by default only database routing information is
+ /// allowed. Possible values include: 'Single', 'Multi'
+ ///
+ [JsonProperty(PropertyName = "properties.databaseRouting")]
+ public string DatabaseRouting { get; set; }
+
///
/// Gets the provisioned state of the resource. Possible values
/// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed',
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/ManagedPrivateEndpointsUpdateHeaders.cs b/sdk/kusto/Management.Kusto/Generated/Models/ManagedPrivateEndpointsUpdateHeaders.cs
new file mode 100644
index 000000000000..5c42c38153a3
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/Models/ManagedPrivateEndpointsUpdateHeaders.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.Kusto.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines headers for Update operation.
+ ///
+ public partial class ManagedPrivateEndpointsUpdateHeaders
+ {
+ ///
+ /// Initializes a new instance of the
+ /// ManagedPrivateEndpointsUpdateHeaders class.
+ ///
+ public ManagedPrivateEndpointsUpdateHeaders()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// ManagedPrivateEndpointsUpdateHeaders class.
+ ///
+ /// URL to query for status of the
+ /// operation.
+ public ManagedPrivateEndpointsUpdateHeaders(string azureAsyncOperation = default(string))
+ {
+ AzureAsyncOperation = azureAsyncOperation;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets URL to query for status of the operation.
+ ///
+ [JsonProperty(PropertyName = "Azure-AsyncOperation")]
+ public string AzureAsyncOperation { get; set; }
+
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/OperationResult.cs b/sdk/kusto/Management.Kusto/Generated/Models/OperationResult.cs
index 86a0c3e6d912..672d20c3bd44 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/OperationResult.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/OperationResult.cs
@@ -41,10 +41,13 @@ public OperationResult()
/// The operation end time
/// Percentage completed.
/// The kind of the operation.
+ /// The provisioned state of the
+ /// resource. Possible values include: 'Running', 'Creating',
+ /// 'Deleting', 'Succeeded', 'Failed', 'Moving'
/// The state of the operation.
/// The code of the error.
/// The error message.
- public OperationResult(string id = default(string), string name = default(string), string status = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), double? percentComplete = default(double?), string operationKind = default(string), string operationState = default(string), string code = default(string), string message = default(string))
+ public OperationResult(string id = default(string), string name = default(string), string status = default(string), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), double? percentComplete = default(double?), string operationKind = default(string), string provisioningState = default(string), string operationState = default(string), string code = default(string), string message = default(string))
{
Id = id;
Name = name;
@@ -53,6 +56,7 @@ public OperationResult()
EndTime = endTime;
PercentComplete = percentComplete;
OperationKind = operationKind;
+ ProvisioningState = provisioningState;
OperationState = operationState;
Code = code;
Message = message;
@@ -107,6 +111,14 @@ public OperationResult()
[JsonProperty(PropertyName = "properties.operationKind")]
public string OperationKind { get; set; }
+ ///
+ /// Gets the provisioned state of the resource. Possible values
+ /// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed',
+ /// 'Moving'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; private set; }
+
///
/// Gets or sets the state of the operation.
///
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/PublicIPType.cs b/sdk/kusto/Management.Kusto/Generated/Models/PublicIPType.cs
new file mode 100644
index 000000000000..e3182168e1f7
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/Models/PublicIPType.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.Kusto.Models
+{
+
+ ///
+ /// Defines values for PublicIPType.
+ ///
+ public static class PublicIPType
+ {
+ public const string IPv4 = "IPv4";
+ public const string DualStack = "DualStack";
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/ReadOnlyFollowingDatabase.cs b/sdk/kusto/Management.Kusto/Generated/Models/ReadOnlyFollowingDatabase.cs
index 3106af8b75c4..d4b6cfb9e58f 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/ReadOnlyFollowingDatabase.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/ReadOnlyFollowingDatabase.cs
@@ -96,10 +96,10 @@ public ReadOnlyFollowingDatabase()
public System.TimeSpan? HotCachePeriod { get; set; }
///
- /// Gets or sets the statistics of the database.
+ /// Gets the statistics of the database.
///
[JsonProperty(PropertyName = "properties.statistics")]
- public DatabaseStatistics Statistics { get; set; }
+ public DatabaseStatistics Statistics { get; private set; }
///
/// Gets the name of the leader cluster
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/ReadWriteDatabase.cs b/sdk/kusto/Management.Kusto/Generated/Models/ReadWriteDatabase.cs
index 3775cb458c9b..797af3949c0b 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/ReadWriteDatabase.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/ReadWriteDatabase.cs
@@ -89,10 +89,10 @@ public ReadWriteDatabase()
public System.TimeSpan? HotCachePeriod { get; set; }
///
- /// Gets or sets the statistics of the database.
+ /// Gets the statistics of the database.
///
[JsonProperty(PropertyName = "properties.statistics")]
- public DatabaseStatistics Statistics { get; set; }
+ public DatabaseStatistics Statistics { get; private set; }
///
/// Gets indicates whether the database is followed.
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/Script.cs b/sdk/kusto/Management.Kusto/Generated/Models/Script.cs
index f0dc9f87bdf6..e89c90174146 100644
--- a/sdk/kusto/Management.Kusto/Generated/Models/Script.cs
+++ b/sdk/kusto/Management.Kusto/Generated/Models/Script.cs
@@ -32,15 +32,21 @@ public Script()
///
/// Initializes a new instance of the Script class.
///
- /// The url to the KQL script blob
- /// file.
- /// The SaS token.
/// 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 url to the KQL script blob file. Must
+ /// not be used together with scriptContent property
+ /// The SaS token that provide read
+ /// access to the file which contain the script. Must be provided when
+ /// using scriptUrl property.
+ /// The script content. This property
+ /// should be used when the script is provide inline and not through
+ /// file in a SA. Must not be used together with scriptUrl and
+ /// scriptUrlSasToken properties.
/// A unique string. If changed the script
/// will be applied again.
/// Flag that indicates whether to
@@ -48,11 +54,12 @@ public Script()
/// The provisioned state of the
/// resource. Possible values include: 'Running', 'Creating',
/// 'Deleting', 'Succeeded', 'Failed', 'Moving'
- public Script(string scriptUrl, string scriptUrlSasToken, string id = default(string), string name = default(string), string type = default(string), string forceUpdateTag = default(string), bool? continueOnErrors = default(bool?), string provisioningState = default(string), SystemData systemData = default(SystemData))
+ public Script(string id = default(string), string name = default(string), string type = default(string), string scriptUrl = default(string), string scriptUrlSasToken = default(string), string scriptContent = default(string), string forceUpdateTag = default(string), bool? continueOnErrors = default(bool?), string provisioningState = default(string), SystemData systemData = default(SystemData))
: base(id, name, type)
{
ScriptUrl = scriptUrl;
ScriptUrlSasToken = scriptUrlSasToken;
+ ScriptContent = scriptContent;
ForceUpdateTag = forceUpdateTag;
ContinueOnErrors = continueOnErrors;
ProvisioningState = provisioningState;
@@ -66,17 +73,28 @@ public Script()
partial void CustomInit();
///
- /// Gets or sets the url to the KQL script blob file.
+ /// Gets or sets the url to the KQL script blob file. Must not be used
+ /// together with scriptContent property
///
[JsonProperty(PropertyName = "properties.scriptUrl")]
public string ScriptUrl { get; set; }
///
- /// Gets or sets the SaS token.
+ /// Gets or sets the SaS token that provide read access to the file
+ /// which contain the script. Must be provided when using scriptUrl
+ /// property.
///
[JsonProperty(PropertyName = "properties.scriptUrlSasToken")]
public string ScriptUrlSasToken { get; set; }
+ ///
+ /// Gets or sets the script content. This property should be used when
+ /// the script is provide inline and not through file in a SA. Must not
+ /// be used together with scriptUrl and scriptUrlSasToken properties.
+ ///
+ [JsonProperty(PropertyName = "properties.scriptContent")]
+ public string ScriptContent { get; set; }
+
///
/// Gets or sets a unique string. If changed the script will be applied
/// again.
@@ -104,22 +122,5 @@ public Script()
[JsonProperty(PropertyName = "systemData")]
public SystemData SystemData { get; private set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (ScriptUrl == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "ScriptUrl");
- }
- if (ScriptUrlSasToken == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "ScriptUrlSasToken");
- }
- }
}
}
diff --git a/sdk/kusto/Management.Kusto/Generated/Models/ScriptsUpdateHeaders.cs b/sdk/kusto/Management.Kusto/Generated/Models/ScriptsUpdateHeaders.cs
new file mode 100644
index 000000000000..976230ad0fc4
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/Models/ScriptsUpdateHeaders.cs
@@ -0,0 +1,52 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.Kusto.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Defines headers for Update operation.
+ ///
+ public partial class ScriptsUpdateHeaders
+ {
+ ///
+ /// Initializes a new instance of the ScriptsUpdateHeaders class.
+ ///
+ public ScriptsUpdateHeaders()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ScriptsUpdateHeaders class.
+ ///
+ /// URL to query for status of the
+ /// operation.
+ public ScriptsUpdateHeaders(string azureAsyncOperation = default(string))
+ {
+ AzureAsyncOperation = azureAsyncOperation;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets URL to query for status of the operation.
+ ///
+ [JsonProperty(PropertyName = "Azure-AsyncOperation")]
+ public string AzureAsyncOperation { get; set; }
+
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/OperationsResults.cs b/sdk/kusto/Management.Kusto/Generated/OperationsResults.cs
index f37d60f5f921..7b29fb8d18b0 100644
--- a/sdk/kusto/Management.Kusto/Generated/OperationsResults.cs
+++ b/sdk/kusto/Management.Kusto/Generated/OperationsResults.cs
@@ -112,7 +112,7 @@ internal OperationsResults(KustoManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationresults/{operationId}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
_url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId));
diff --git a/sdk/kusto/Management.Kusto/Generated/OperationsResultsLocation.cs b/sdk/kusto/Management.Kusto/Generated/OperationsResultsLocation.cs
new file mode 100644
index 000000000000..1dd8de8e9607
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/OperationsResultsLocation.cs
@@ -0,0 +1,229 @@
+//
+// 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.Kusto
+{
+ 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;
+
+ ///
+ /// OperationsResultsLocation operations.
+ ///
+ internal partial class OperationsResultsLocation : IServiceOperations, IOperationsResultsLocation
+ {
+ ///
+ /// Initializes a new instance of the OperationsResultsLocation class.
+ ///
+ ///
+ /// Reference to the service client.
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ internal OperationsResultsLocation(KustoManagementClient client)
+ {
+ if (client == null)
+ {
+ throw new System.ArgumentNullException("client");
+ }
+ Client = client;
+ }
+
+ ///
+ /// Gets a reference to the KustoManagementClient
+ ///
+ public KustoManagementClient Client { get; private set; }
+
+ ///
+ /// Returns operation results.
+ ///
+ ///
+ /// Azure location (region) name.
+ ///
+ ///
+ /// The Guid of the operation ID
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task GetWithHttpMessagesAsync(string location, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (operationId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "operationId");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("operationId", operationId);
+ 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}/providers/Microsoft.Kusto/locations/{location}/operationResults/{operationId}").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId));
+ 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 && (int)_statusCode != 202)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/OperationsResultsLocationExtensions.cs b/sdk/kusto/Management.Kusto/Generated/OperationsResultsLocationExtensions.cs
new file mode 100644
index 000000000000..5325a6c4b0fd
--- /dev/null
+++ b/sdk/kusto/Management.Kusto/Generated/OperationsResultsLocationExtensions.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.Kusto
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// Extension methods for OperationsResultsLocation.
+ ///
+ public static partial class OperationsResultsLocationExtensions
+ {
+ ///
+ /// Returns operation results.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Azure location (region) name.
+ ///
+ ///
+ /// The Guid of the operation ID
+ ///
+ public static void Get(this IOperationsResultsLocation operations, string location, string operationId)
+ {
+ operations.GetAsync(location, operationId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns operation results.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// Azure location (region) name.
+ ///
+ ///
+ /// The Guid of the operation ID
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAsync(this IOperationsResultsLocation operations, string location, string operationId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ (await operations.GetWithHttpMessagesAsync(location, operationId, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ }
+
+ }
+}
diff --git a/sdk/kusto/Management.Kusto/Generated/ScriptsOperations.cs b/sdk/kusto/Management.Kusto/Generated/ScriptsOperations.cs
index bbb43150fbcf..df0c21bcabe2 100644
--- a/sdk/kusto/Management.Kusto/Generated/ScriptsOperations.cs
+++ b/sdk/kusto/Management.Kusto/Generated/ScriptsOperations.cs
@@ -524,10 +524,10 @@ internal ScriptsOperations(KustoManagementClient client)
///
/// The cancellation token.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string scriptName, Script parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string scriptName, Script parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Send Request
- AzureOperationResponse