Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions eng/mgmt/mgmtmetadata/azure-kusto_resource-manager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Installing AutoRest version: latest
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/master/specification/azure-kusto/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\Git\Clients\azure-sdk-for-net\src\SDKs
2019-09-02 13:37:08 UTC
Azure-rest-api-specs repository information
GitHub fork: Azure
Branch: master
Commit: 8fff657a61cd85b0a9ce9a42d17dc4f536d9f7a8
AutoRest information
Requested version: latest
Bootstrapper version: autorest@2.0.4283
2 changes: 1 addition & 1 deletion sdk/kusto/Microsoft.Azure.Management.Kusto/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>Kusto_2019-01-21;</AzureApiTag>
<AzureApiTag>Kusto_2019-05-15;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ internal ClustersOperations(KustoManagementClient client)
/// <return>
/// A response object containing the response body and response headers.
/// </return>
public async Task<AzureOperationResponse<IEnumerable<AzureSku>>> ListSkusWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
public async Task<AzureOperationResponse<IEnumerable<SkuDescription>>> ListSkusWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.ApiVersion == null)
{
Expand Down Expand Up @@ -873,7 +873,7 @@ internal ClustersOperations(KustoManagementClient client)
throw ex;
}
// Create Result
var _result = new AzureOperationResponse<IEnumerable<AzureSku>>();
var _result = new AzureOperationResponse<IEnumerable<SkuDescription>>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
Expand All @@ -886,7 +886,7 @@ internal ClustersOperations(KustoManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
_result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<AzureSku>>(_responseContent, Client.DeserializationSettings);
_result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject<Page<SkuDescription>>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public static IEnumerable<Cluster> List(this IClustersOperations operations)
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
public static IEnumerable<AzureSku> ListSkus(this IClustersOperations operations)
public static IEnumerable<SkuDescription> ListSkus(this IClustersOperations operations)
{
return operations.ListSkusAsync().GetAwaiter().GetResult();
}
Expand All @@ -348,7 +348,7 @@ public static IEnumerable<AzureSku> ListSkus(this IClustersOperations operations
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<IEnumerable<AzureSku>> ListSkusAsync(this IClustersOperations operations, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<IEnumerable<SkuDescription>> ListSkusAsync(this IClustersOperations operations, CancellationToken cancellationToken = default(CancellationToken))
{
using (var _result = await operations.ListSkusWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public partial interface IClustersOperations
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
Task<AzureOperationResponse<IEnumerable<AzureSku>>> ListSkusWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
Task<AzureOperationResponse<IEnumerable<SkuDescription>>> ListSkusWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Checks that the cluster name is valid and is not already in use.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ private void Initialize()
DataConnections = new DataConnectionsOperations(this);
Operations = new Operations(this);
BaseUri = new System.Uri("https://management.azure.com");
ApiVersion = "2019-01-21";
ApiVersion = "2019-05-15";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public AzureResourceSku()
/// </summary>
/// <param name="resourceType">Resource Namespace and Type.</param>
/// <param name="sku">The SKU details.</param>
/// <param name="capacity">The SKU capacity.</param>
/// <param name="capacity">The number of instances of the
/// cluster.</param>
public AzureResourceSku(string resourceType = default(string), AzureSku sku = default(AzureSku), AzureCapacity capacity = default(AzureCapacity))
{
ResourceType = resourceType;
Expand All @@ -58,7 +59,7 @@ public AzureResourceSku()
public AzureSku Sku { get; set; }

/// <summary>
/// Gets or sets the SKU capacity.
/// Gets or sets the number of instances of the cluster.
/// </summary>
[JsonProperty(PropertyName = "capacity")]
public AzureCapacity Capacity { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,46 +30,51 @@ public AzureSku()
/// <summary>
/// Initializes a new instance of the AzureSku class.
/// </summary>
/// <param name="name">SKU name. Possible values include: 'D13_v2',
/// 'D14_v2', 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'</param>
/// <param name="capacity">SKU capacity.</param>
public AzureSku(string name, int? capacity = default(int?))
/// <param name="name">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',
/// 'Standard_L16s', 'Standard_D11_v2', 'Standard_D12_v2',
/// 'Standard_L4s', 'Dev(No SLA)_Standard_D11_v2'</param>
/// <param name="tier">SKU tier. Possible values include: 'Basic',
/// 'Standard'</param>
/// <param name="capacity">The number of instances of the
/// cluster.</param>
public AzureSku(string name, string tier, int? capacity = default(int?))
{
Name = name;
Capacity = capacity;
Tier = tier;
CustomInit();
}
/// <summary>
/// Static constructor for AzureSku class.
/// </summary>
static AzureSku()
{
Tier = "Standard";
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets SKU name. Possible values include: 'D13_v2', 'D14_v2',
/// 'L8', 'L16', 'D11_v2', 'D12_v2', 'L4'
/// 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',
/// 'Standard_L16s', 'Standard_D11_v2', 'Standard_D12_v2',
/// 'Standard_L4s', 'Dev(No SLA)_Standard_D11_v2'
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

/// <summary>
/// Gets or sets SKU capacity.
/// Gets or sets the number of instances of the cluster.
/// </summary>
[JsonProperty(PropertyName = "capacity")]
public int? Capacity { get; set; }

/// <summary>
/// SKU tier.
/// Gets or sets SKU tier. Possible values include: 'Basic', 'Standard'
/// </summary>
[JsonProperty(PropertyName = "tier")]
public static string Tier { get; private set; }
public string Tier { get; set; }

/// <summary>
/// Validate the object.
Expand All @@ -83,6 +88,10 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
}
if (Tier == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Tier");
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ namespace Microsoft.Azure.Management.Kusto.Models
/// </summary>
public static class AzureSkuName
{
public const string D13V2 = "D13_v2";
public const string D14V2 = "D14_v2";
public const string L8 = "L8";
public const string L16 = "L16";
public const string D11V2 = "D11_v2";
public const string D12V2 = "D12_v2";
public const string L4 = "L4";
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 StandardL8s = "Standard_L8s";
public const string StandardL16s = "Standard_L16s";
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";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.Kusto.Models
{

/// <summary>
/// Defines values for AzureSkuTier.
/// </summary>
public static class AzureSkuTier
{
public const string Basic = "Basic";
public const string Standard = "Standard";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public partial class Cluster : TrackedResource
/// </summary>
public Cluster()
{
Sku = new AzureSku();
CustomInit();
}

Expand All @@ -45,26 +44,40 @@ public Cluster()
/// Microsoft.Compute/virtualMachines or
/// Microsoft.Storage/storageAccounts.</param>
/// <param name="tags">Resource tags.</param>
/// <param name="zones">The availability zones of the cluster.</param>
/// <param name="state">The state of the resource. Possible values
/// include: 'Creating', 'Unavailable', 'Running', 'Deleting',
/// 'Deleted', 'Stopping', 'Stopped', 'Starting', 'Updating'</param>
/// <param name="provisioningState">The provisioned state of the
/// resource. Possible values include: 'Running', 'Creating',
/// 'Deleting', 'Succeeded', 'Failed'</param>
/// 'Deleting', 'Succeeded', 'Failed', 'Moving'</param>
/// <param name="uri">The cluster URI.</param>
/// <param name="dataIngestionUri">The cluster data ingestion
/// URI.</param>
/// <param name="trustedExternalTenants">The cluster's external
/// tenants.</param>
public Cluster(string location, AzureSku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string state = default(string), string provisioningState = default(string), string uri = default(string), string dataIngestionUri = default(string), IList<TrustedExternalTenant> trustedExternalTenants = default(IList<TrustedExternalTenant>))
/// <param name="optimizedAutoscale">Optimized auto scale
/// definition.</param>
/// <param name="enableDiskEncryption">A boolean value that indicates
/// if the cluster's disks are encrypted.</param>
/// <param name="enableStreamingIngest">A boolean value that indicates
/// if the streaming ingest is enabled.</param>
/// <param name="virtualNetworkConfiguration">Virtual network
/// definition.</param>
public Cluster(string location, AzureSku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), IList<string> zones = default(IList<string>), string state = default(string), string provisioningState = default(string), string uri = default(string), string dataIngestionUri = default(string), IList<TrustedExternalTenant> trustedExternalTenants = default(IList<TrustedExternalTenant>), OptimizedAutoscale optimizedAutoscale = default(OptimizedAutoscale), bool? enableDiskEncryption = default(bool?), bool? enableStreamingIngest = default(bool?), VirtualNetworkConfiguration virtualNetworkConfiguration = default(VirtualNetworkConfiguration))
: base(location, id, name, type, tags)
{
Sku = sku;
Zones = zones;
State = state;
ProvisioningState = provisioningState;
Uri = uri;
DataIngestionUri = dataIngestionUri;
TrustedExternalTenants = trustedExternalTenants;
OptimizedAutoscale = optimizedAutoscale;
EnableDiskEncryption = enableDiskEncryption;
EnableStreamingIngest = enableStreamingIngest;
VirtualNetworkConfiguration = virtualNetworkConfiguration;
CustomInit();
}

Expand All @@ -79,6 +92,12 @@ public Cluster()
[JsonProperty(PropertyName = "sku")]
public AzureSku Sku { get; set; }

/// <summary>
/// Gets or sets the availability zones of the cluster.
/// </summary>
[JsonProperty(PropertyName = "zones")]
public IList<string> Zones { get; set; }

/// <summary>
/// Gets the state of the resource. Possible values include:
/// 'Creating', 'Unavailable', 'Running', 'Deleting', 'Deleted',
Expand All @@ -89,7 +108,8 @@ public Cluster()

/// <summary>
/// Gets the provisioned state of the resource. Possible values
/// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed'
/// include: 'Running', 'Creating', 'Deleting', 'Succeeded', 'Failed',
/// 'Moving'
/// </summary>
[JsonProperty(PropertyName = "properties.provisioningState")]
public string ProvisioningState { get; private set; }
Expand All @@ -112,6 +132,32 @@ public Cluster()
[JsonProperty(PropertyName = "properties.trustedExternalTenants")]
public IList<TrustedExternalTenant> TrustedExternalTenants { get; set; }

/// <summary>
/// Gets or sets optimized auto scale definition.
/// </summary>
[JsonProperty(PropertyName = "properties.optimizedAutoscale")]
public OptimizedAutoscale OptimizedAutoscale { get; set; }

/// <summary>
/// Gets or sets a boolean value that indicates if the cluster's disks
/// are encrypted.
/// </summary>
[JsonProperty(PropertyName = "properties.enableDiskEncryption")]
public bool? EnableDiskEncryption { get; set; }

/// <summary>
/// Gets or sets a boolean value that indicates if the streaming ingest
/// is enabled.
/// </summary>
[JsonProperty(PropertyName = "properties.enableStreamingIngest")]
public bool? EnableStreamingIngest { get; set; }

/// <summary>
/// Gets or sets virtual network definition.
/// </summary>
[JsonProperty(PropertyName = "properties.virtualNetworkConfiguration")]
public VirtualNetworkConfiguration VirtualNetworkConfiguration { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand All @@ -129,6 +175,14 @@ public override void Validate()
{
Sku.Validate();
}
if (OptimizedAutoscale != null)
{
OptimizedAutoscale.Validate();
}
if (VirtualNetworkConfiguration != null)
{
VirtualNetworkConfiguration.Validate();
}
}
}
}
Loading